* { box-sizing: border-box; }
:root {
    /* Высота нижней панели как в вёрстке .tabbar (включая safe-area внутри блока) */
    --tabbar-height: 82px;
    /* Все наименования как шапка «Поиск» (SF semibold), кегль чуть меньше прежних карточек */
    --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --text-search: 600 16px/1.2 var(--font-ui);
    --letter-nav-tight: -0.01em;
}
body {
    margin: 0;
    background: #f2f2f7;
    color: #000;
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    padding-bottom: var(--tabbar-height);
}
/* Баннер «открыть приложение» (мобильные); высота задаётся в JS в --smart-app-banner-offset */
.smart-app-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
    background: #fff;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
    box-sizing: border-box;
    padding: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
}
.smart-app-banner.hidden {
    display: none !important;
}
body.smart-app-banner-visible {
    padding-top: var(--smart-app-banner-offset, 0px);
}
body.smart-app-banner-visible .screen-header {
    top: var(--smart-app-banner-offset, 0px);
}
.smart-app-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 430px;
    margin: 0 auto;
}
.smart-app-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
}
.smart-app-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.smart-app-banner-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.smart-app-banner-title {
    font: 600 14px/1.15 var(--font-ui);
    color: #000;
    letter-spacing: -0.01em;
}
.smart-app-banner-sub {
    font: 400 11px/1.25 var(--font-ui);
    color: #8e8e93;
}
.smart-app-banner-cta {
    flex-shrink: 0;
    border: none;
    border-radius: 14px;
    padding: 8px 12px;
    font: 600 11px/1 var(--font-ui);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #007aff;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.smart-app-banner-cta:active {
    opacity: 0.88;
}
.smart-app-banner-dismiss {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #c7c7cc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: -2px 0;
    -webkit-tap-highlight-color: transparent;
}
.smart-app-banner-dismiss:active {
    opacity: 0.6;
}
.hidden { display: none !important; }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
.screen-header {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 6px);
    background: #f2f2f7;
    position: sticky;
    top: 0;
    z-index: 5;
}
.screen-header h1 { margin: 0; font-size: 18px; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; font-family: var(--font-ui); }
.screen-header.center { justify-content: space-between; }
.screen-header.center h1 { font-size: 18px; }
.compact-nav {
    padding-bottom: 6px;
    border-bottom: 1px solid #d9d9de;
}
.compact-nav h1 {
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
}
.screen-header.side { justify-content: center; }
.screen-header.side h1 {
    width: 100%;
    text-align: center;
}
.my-ads-header-ios {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.my-ads-header-ios h1 {
    flex: 1;
    margin: 0;
    text-align: center;
}
.center-title h1 { margin-left: auto; margin-right: auto; font-size: 28px; }
.header-actions { display: flex; gap: 8px; }
.icon-button {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid #d0d0d4;
    background: #fff;
    color: #007aff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.text-action { border: none; background: none; color: #007aff; font-size: 16px; font-family: var(--font-ui); }
.screen-content { padding: 0 12px 12px; }
.home-banner {
    border-radius: 14px;
    margin: 2px 4px 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e7ec;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
}
.home-banner-shell {
    position: relative;
    width: 100%;
}
.home-banner-link {
    display: grid;
    grid-template-columns: 1fr 132px;
    color: inherit;
    text-decoration: none;
    min-height: 118px;
}
.home-banner.banner-layout-overlay .home-banner-link {
    grid-template-columns: 1fr;
    min-height: 128px;
}
.banner-dismiss {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 20;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}
.banner-dismiss:active {
    opacity: 0.82;
    transform: scale(0.96);
}
.banner-overlay {
    position: relative;
    min-height: 128px;
    border-radius: 14px;
    overflow: hidden;
}
.banner-overlay-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-overlay-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 128px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
    pointer-events: none;
}
.banner-overlay-text {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.banner-overlay-text .banner-brand { color: rgba(255, 255, 255, 0.9); margin-bottom: 0; }
.banner-overlay-text .banner-title { color: #fff; border-color: rgba(56, 189, 248, 0.9); margin-bottom: 0; }
.banner-overlay-text .banner-sub { color: rgba(255, 255, 255, 0.92); margin: 0; }
/* Как SearchPromoBannerView split: padding 14/12 на тексте + HStack(alignment: .center) */
.banner-left {
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 118px;
    box-sizing: border-box;
}
.banner-left-inner {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.banner-left-inner .banner-brand { margin-bottom: 0; }
.banner-left-inner .banner-title { margin-bottom: 0; }
.banner-left-inner .banner-sub { margin: 0; }
.banner-title {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-ui);
    margin: 0 0 6px;
    line-height: 1.2;
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 2px 4px;
    border: 1px solid rgba(56, 189, 248, 0.85);
    border-radius: 6px;
}
.banner-sub { margin: 0; font-size: 15px; line-height: 1.25; opacity: 0.92; }
.banner-right { background: #f9f9fb; position: relative; display: flex; align-items: center; justify-content: center; min-height: 118px; width: 132px; font-size: 14px; color: #a83c44; font-weight: 700; }
.banner-brand { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 6px; opacity: 0.95; }
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.search-cars-list { display: flex; flex-direction: column; gap: 16px; }
.search-card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}
.search-photo-wrap {
    padding: 12px 12px 0;
}
.search-card-gallery-outer {
    border-radius: 10px;
    overflow: hidden;
    background: #ececf0;
    aspect-ratio: 1 / 1;
    min-height: 300px;
    position: relative;
}
.search-card-gallery {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* pan-x alone блокирует вертикальную прокрутку ленты при старте жеста с фото */
    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior-x: contain;
}
.search-card-gallery::-webkit-scrollbar {
    display: none;
}
.search-card-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    background: #ececf0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-card-slide .search-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 0;
    border-radius: 0;
    background: #ececf0;
}
.photo-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-top: 7px;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d5;
}
.dot.active { background: #8f8f96; }
.car-main { padding: 10px 12px 12px; }
/* Метки модерации под фото — как FeedCardView / CarCardView в iOS */
.search-card-moderation-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    margin-bottom: 2px;
}
.search-moderation-badge {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-ui);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    line-height: 1.2;
}
.car-main:has(.search-card-moderation-row) .car-title-row {
    padding-top: 6px;
}
.car-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
}
/* Как экран детали (первый референс): крупный заголовок, цена semibold, характеристики body чёрным */
.car-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-ui);
    line-height: 1.2;
    letter-spacing: var(--letter-nav-tight);
    color: #000;
    flex: 1;
    min-width: 0;
}
.car-price {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-ui);
    margin: 4px 0 0;
    letter-spacing: var(--letter-nav-tight);
    line-height: 1.2;
    color: #000;
}
.car-specs { margin-top: 10px; }
.spec-line.spec-caption {
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.35;
    color: #000;
}
.spec-line.spec-caption2 {
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.35;
    color: #8e8e93;
    margin-top: 4px;
}
.call-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0; }
.btn-green, .btn-blue, .btn-light, .btn-red {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}
.btn-green { background: #34c759; color: #fff; flex: 1; height: auto; min-height: 48px; border-radius: 12px; font-size: 16px; font-weight: 600; font-family: var(--font-ui); padding: 14px 16px; }
.btn-blue { background: #007aff; color: #fff; margin-top: 10px; }
.btn-light { background: #ebebef; color: #111; margin-top: 8px; }
.btn-red { background: #ff3b30; color: #fff; margin-top: 12px; }
.fav-button {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #aeaeb2;
}
.fav-button:active { transform: scale(0.98); opacity: 0.85; }
.fav-button.fav-on { color: #ff3b30; }
.compact-list { display: flex; flex-direction: column; gap: 10px; }
.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    background: #fff;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}
/* «Мои объявления» — строка как в iOS: миниатюра, текст, шеврон */
.my-ad-card-ios {
    grid-template-columns: 96px 1fr 20px;
    align-items: center;
    cursor: pointer;
}
.my-ad-card-ios .my-ad-card-text {
    min-width: 0;
}
.my-ad-chevron {
    color: #c7c7cc;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    justify-self: end;
    padding-right: 2px;
}
.my-ad-status-pill {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: #8e8e93;
}
.compact-photo { width: 96px; height: 74px; border-radius: 10px; object-fit: cover; background: #ececf0; }
.compact-title { margin: 0; font: var(--text-search); letter-spacing: var(--letter-nav-tight); }
.compact-price { margin: 1px 0 3px; font-size: 14px; font-weight: 600; font-family: var(--font-ui); letter-spacing: var(--letter-nav-tight); }
.compact-meta { margin: 0; color: #8e8e93; font-size: 12px; line-height: 1.35; }
.compact-date { margin-top: 4px; color: #8e8e93; font-size: 12px; }
.segmented { background: #ececf0; border-radius: 11px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; margin: 4px 0 10px; }
.segmented button { border: none; background: transparent; padding: 9px 6px; border-radius: 9px; font-size: 14px; font-family: var(--font-ui); }
.segmented button.active { background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.fixed-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 90px;
    z-index: 15;
    pointer-events: none;
}
.fixed-cta .btn-green {
    pointer-events: auto;
}
/* Запас под таббар (~90px) + кнопку «Разместить», чтобы карточки не уходили под слой клика */
.has-bottom-button {
    padding-bottom: calc(84px + 72px + env(safe-area-inset-bottom, 0px));
}
.services-list { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e7e7ec; }
.service-item { display: grid; grid-template-columns: 95px 1fr; gap: 12px; padding: 12px; border-bottom: 1px solid #efeff2; }
.service-item:last-child { border-bottom: none; }
.service-photo { width: 95px; height: 95px; border-radius: 14px; object-fit: cover; background: #ececf0; }
.service-title { margin: 2px 0 4px; font: var(--text-search); letter-spacing: var(--letter-nav-tight); }
.service-price { margin: 0; font-size: 14px; font-weight: 600; font-family: var(--font-ui); letter-spacing: var(--letter-nav-tight); }
.service-city { margin: 6px 0 0; color: #8d8d94; font-size: 14px; }
.auth-card, .profile-card, .settings-group { background: #fff; border: 1px solid #e7e7ec; border-radius: 14px; }
.auth-card { padding: 16px; text-align: center; }
.auth-card h2 { margin: 0 0 6px; }
.auth-card p { margin: 0 0 10px; color: #8d8d94; }

/* Авторизация — как AuthView / LoginView / SignUpView (iOS) */
.auth-welcome-screen {
    background: #fff;
    border-radius: 0;
    border: none;
    min-height: calc(100vh - var(--tabbar-height) - env(safe-area-inset-bottom, 0px) - 52px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}
.auth-welcome-inner {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    box-sizing: border-box;
}
.auth-welcome-inner-modal {
    padding: 32px 24px;
    min-height: auto;
}
.auth-welcome-brand {
    text-align: center;
    margin-bottom: 32px;
}
.auth-welcome-title {
    margin: 0;
    font-size: 39px;
    font-weight: 700;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
    line-height: 1.1;
}
.auth-welcome-tagline {
    margin: 12px 0 0;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-ui);
    color: #8e8e93;
    line-height: 1.25;
}
.auth-welcome-actions {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-welcome-btn-filled {
    width: 100%;
    border: none;
    border-radius: 12px;
    height: 50px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    background: #000;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.auth-welcome-btn-filled:active {
    opacity: 0.85;
}
.auth-welcome-btn-outline {
    width: 100%;
    border: 2px solid #000;
    border-radius: 12px;
    height: 50px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    background: transparent;
    color: #000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.auth-welcome-btn-outline:active {
    opacity: 0.65;
}
.auth-choice-panel {
    margin: 70px auto 0;
    max-width: 400px;
    width: calc(100% - 32px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.auth-flow-sheet {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}
.auth-login-toolbar {
    flex-shrink: 0;
    padding: 10px 8px 8px 12px;
    background: #fff;
}
.auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    padding: 8px 8px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.auth-back-chevron {
    display: block;
    flex-shrink: 0;
    margin-top: 1px;
}
.auth-register-toolbar {
    flex-shrink: 0;
    padding: 10px 12px 8px;
    background: #fff;
}
.auth-toolbar-text-btn {
    border: none;
    background: none;
    padding: 8px 4px;
    min-height: 44px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #007aff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.auth-flow-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.auth-flow-padding {
    padding: 8px 24px 32px;
    box-sizing: border-box;
}
.auth-welcome-login-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-ui);
    text-align: center;
    color: #000;
}
.auth-welcome-login-subtitle {
    margin: 0 0 28px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-ui);
    text-align: center;
    color: #8e8e93;
    line-height: 1.35;
}
.auth-field-block {
    margin-bottom: 16px;
}
.auth-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #000;
}
.auth-text-field {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c6c6c8;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 17px;
    font-family: var(--font-ui);
    color: #000;
    background: #fff;
}
.auth-text-field::placeholder {
    color: #c7c7cc;
}
.auth-text-field:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 1px #007aff;
}
.auth-phone-well {
    background: #f2f2f7;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
}
.auth-text-field-plain {
    border: 1px solid #c6c6c8;
}
.auth-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-password-wrap .auth-password-input {
    padding-right: 48px;
}
.auth-eye-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 8px;
    color: #8e8e93;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.auth-eye-btn svg {
    display: block;
}
.auth-validation-msg {
    margin: 8px 0 0;
    font-size: 13px;
    font-family: var(--font-ui);
    line-height: 1.3;
}
.auth-validation-msg.is-ok {
    color: #34c759;
}
.auth-validation-msg.is-bad {
    color: #ff3b30;
}
.auth-banner-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 59, 48, 0.1);
    font-size: 13px;
    font-family: var(--font-ui);
    color: #ff3b30;
    line-height: 1.35;
}
.auth-submit-primary {
    width: 100%;
    border: none;
    border-radius: 12px;
    height: 50px;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #fff;
    background: #8e8e93;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
}
.auth-submit-primary.is-active {
    background: #000;
    cursor: pointer;
}
.auth-submit-primary.is-active:active {
    opacity: 0.88;
}
.auth-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: change-password-spin 0.7s linear infinite;
}
.auth-footer-link-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 17px;
    font-family: var(--font-ui);
}
.auth-footer-muted {
    color: #8e8e93;
}
.auth-footer-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.auth-support-chip {
    margin: 12px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 122, 255, 0.1);
    font-size: 17px;
    font-weight: 500;
    font-family: var(--font-ui);
    color: #007aff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.auth-support-icon {
    flex-shrink: 0;
    color: #007aff;
}
.auth-register-large-title {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 700;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
    line-height: 1.15;
}
.auth-register-header-block {
    text-align: center;
    margin-bottom: 24px;
}
.auth-register-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-register-avatar svg {
    display: block;
    width: 44px;
    height: 44px;
}
.auth-register-avatar svg path {
    fill: #fff;
}
.auth-register-hero-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #000;
}
.auth-register-hero-subtitle {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #8e8e93;
    line-height: 1.35;
}
.auth-consent-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 20px;
}
.auth-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-ui);
    line-height: 1.35;
    color: #000;
}
.auth-consent-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #000;
}
.auth-consent-text {
    flex: 1;
    min-width: 0;
}
.auth-consent-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: #007aff;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.auth-register-login-row {
    margin-bottom: 24px;
}
.profile-card { margin-top: 6px; padding: 16px; text-align: center; }
.avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #f0f0f4;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    font-weight: 700;
}
.profile-name { font-size: 22px; font-weight: 700; font-family: var(--font-ui); letter-spacing: -0.01em; }
.profile-phone { color: #8e8e93; margin-top: 2px; font-size: 15px; font-weight: 400; }
.profile-number { margin-top: 6px; color: #007aff; font-size: 15px; font-weight: 500; }
.settings-title { margin: 16px 4px 8px; font-size: 22px; font-weight: 600; font-family: var(--font-ui); letter-spacing: -0.02em; }
.settings-group { overflow: hidden; }
.settings-group button {
    width: 100%;
    border: none;
    border-bottom: 1px solid #efeff2;
    text-align: left;
    background: #fff;
    padding: 14px 12px;
    font-size: 16px;
    font-family: var(--font-ui);
}
.settings-group button:last-child { border-bottom: none; }
.profile-ios-card {
    border: none;
    background: #efeff4;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.profile-ios-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
}
.profile-ios-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 59px;
    background: #fff;
}
.profile-ios-avatar-badge {
    position: absolute;
    right: -2px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    border-radius: 17px;
    background: #0a84ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #efeff4;
}
.profile-ios-avatar-badge svg {
    width: 16px;
    height: 16px;
    color: #fff;
}
.profile-ios-status {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.profile-ios-status-star { color: #f5b700; font-size: 14px; }
.profile-ios-status-text { color: #111; font-weight: 600; }
.profile-ios-status-dot { color: #b0b3bb; }
.profile-ios-status-muted { color: #8e8e93; }
.profile-ios-title {
    margin: 16px 16px 12px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.profile-ios-group {
    border: none;
    border-radius: 14px;
    background: #efeff4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.profile-ios-group button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    border-bottom: 1px solid #dddfe6;
    background: transparent;
    padding: 16px;
}
.profile-ios-group button:last-child { border-bottom: none; }
.profile-ios-row-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a84ff;
    line-height: 0;
}
.profile-ios-row-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    color: inherit;
}
.profile-ios-row-text {
    flex: 1;
    text-align: left;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #111;
}
.profile-ios-row-chevron {
    width: 14px;
    height: 14px;
    color: #8e8e93;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.profile-ios-row-chevron svg {
    width: 14px;
    height: 14px;
    display: block;
    color: inherit;
}
.profile-ios-logout {
    margin-top: 16px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.profile-ios-logout-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.profile-ios-logout-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}
/* Редактирование профиля — как iOS sheet (ProfileView.editProfileSheet) */
.profile-edit-sheet {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: #f2f2f7;
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
}
.profile-edit-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px;
    background: #fff;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}
.profile-edit-nav h3 {
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #111;
}
.profile-edit-nav-btn {
    border: none;
    background: none;
    color: #0a84ff;
    font-size: 17px;
    font-weight: 400;
    padding: 4px 2px;
}
.profile-edit-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px 16px 14px;
}
.profile-edit-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.profile-edit-logo-wrap img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}
.profile-edit-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-edit-card input {
    border: 1px solid #d9d9de;
    border-radius: 10px;
    background: #fff;
    font-size: 17px;
    font-weight: 400;
    color: #111;
    line-height: 1.2;
    padding: 13px 14px;
}
.profile-edit-card input:disabled {
    color: #3c3c43;
    opacity: 1;
    background: #f9f9fb;
}
.profile-edit-hint {
    margin: 6px 0 0;
    text-align: center;
    color: #8e8e93;
    font-size: 13px;
    font-weight: 400;
}
.profile-edit-footer {
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #f2f2f7;
    border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}
.profile-edit-delete-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #ff3b30;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 16px;
    line-height: 1.1;
}

/* Смена пароля — как ChangePasswordView (iOS) */
.change-password-sheet {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}
.change-password-nav {
    position: relative;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}
.change-password-nav-cancel {
    justify-self: start;
    border: none;
    background: none;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 4px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #007aff;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.change-password-nav-cancel:active {
    opacity: 0.55;
}
.change-password-nav-title {
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
    grid-column: 2;
}
.change-password-nav-trail {
    grid-column: 3;
    min-width: 56px;
}
.change-password-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 16px;
}
.change-password-page-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-ui);
    line-height: 1.2;
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.change-password-subtitle {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.35;
    color: #8e8e93;
}
.change-password-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.change-password-fields input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c7c7cc;
    border-radius: 8px;
    background: #fff;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #000;
    line-height: 1.2;
    padding: 14px 14px;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}
.change-password-fields input::placeholder {
    color: #c7c7cd;
}
.change-password-fields input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 1px #007aff;
}
.change-password-field-error {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #ff3b30;
    line-height: 1.3;
}
.change-password-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}
.change-password-submit {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 16px 16px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    line-height: 1.1;
    color: #fff;
    background: #8e8e93;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: not-allowed;
    -webkit-tap-highlight-color: transparent;
}
.change-password-submit:not(:disabled) {
    background: #007aff;
    cursor: pointer;
}
.change-password-submit:disabled {
    opacity: 1;
}
.change-password-submit.is-loading {
    cursor: wait;
}
.change-password-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: change-password-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes change-password-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Поддержка — как SupportView (iOS) */
.support-sheet {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}
.support-nav {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 6px 12px;
    background: #fff;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}
.support-nav-title {
    margin: 0;
    grid-column: 2;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.support-nav-spacer {
    min-width: 44px;
}
.support-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.support-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 36px 32px calc(28px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.support-hero-icon {
    line-height: 0;
    margin-bottom: 0;
}
.support-hero-icon svg {
    display: block;
}
.support-block-title {
    margin: 24px 0 0;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-ui);
    line-height: 1.2;
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.support-lead {
    margin: 24px 0 0;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.4;
    color: #8e8e93;
    max-width: 100%;
    padding: 0;
}
.support-btn {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    line-height: 1.1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.support-btn:active {
    opacity: 0.88;
}
.support-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.support-btn-telegram {
    margin-top: 24px;
    background: #007aff;
}
.support-mail-block {
    margin-top: 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.support-mail-hint {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #8e8e93;
}
.support-mail-address {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    color: #000;
    user-select: text;
}
.support-btn-mail {
    margin-top: 0;
    background: rgb(51, 115, 217);
}

/* О приложении — как AboutView (iOS); версия без номера сборки (только маркетинговая). */
.about-app-sheet {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}
.about-app-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 10px 12px 10px;
    background: #fff;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
    flex-shrink: 0;
}
.about-app-nav-title {
    margin: 0;
    grid-column: 2;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.about-app-nav-spacer {
    min-width: 44px;
}
.about-app-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.about-app-inner {
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.about-app-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
    gap: 16px;
}
.about-app-car-wrap {
    line-height: 0;
}
.about-app-car {
    display: block;
}
.about-app-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
    line-height: 1.15;
}
.about-app-version {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.3;
    color: #8e8e93;
}
.about-app-desc {
    margin-top: 32px;
    padding: 0 20px;
    box-sizing: border-box;
}
.about-app-desc-title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #000;
    line-height: 1.2;
}
.about-app-desc-body {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.35;
    color: #8e8e93;
}
.about-app-links {
    margin: 32px 20px 0;
    background: #e5e5ea;
    border-radius: 12px;
    overflow: hidden;
}
.about-app-link-row {
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    -webkit-tap-highlight-color: transparent;
}
.about-app-link-row:active {
    opacity: 0.65;
}
.about-app-link-icon {
    width: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.about-app-link-icon svg {
    display: block;
}
.about-app-link-label {
    flex: 1;
    font-size: 17px;
    font-weight: 400;
    color: #000;
    line-height: 1.25;
}
.about-app-link-chevron {
    flex-shrink: 0;
    line-height: 0;
    display: flex;
    align-items: center;
}
.about-app-link-divider {
    height: 0.5px;
    background: rgba(60, 60, 67, 0.29);
    margin-left: 64px;
}
.about-app-footer {
    margin-top: 20px;
    padding: 0 20px 40px;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.35;
    color: #8e8e93;
}
.about-app-footer p {
    margin: 0;
}
.about-app-footer p + p {
    margin-top: 8px;
}

/* Отблагодарить создателя — как ThankAdminView (iOS), данные с GET /api/thank-creator */
.thank-creator-sheet {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: #f2f2f7;
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}
.thank-creator-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 10px 12px 10px;
    background: #f2f2f7;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}
.thank-creator-nav-title {
    margin: 0;
    grid-column: 2;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.thank-creator-nav-spacer {
    min-width: 44px;
}
.thank-creator-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.thank-creator-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 0 calc(32px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    box-sizing: border-box;
}
.thank-creator-loading {
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    font-size: 17px;
    color: #8e8e93;
    font-family: var(--font-ui);
}
.thank-creator-content.hidden,
.thank-creator-loading.hidden {
    display: none !important;
}
.thank-creator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.thank-creator-heart {
    margin-top: 20px;
    line-height: 0;
    color: #000;
}
.thank-creator-heart svg {
    display: block;
}
.thank-creator-headline {
    margin: 32px 32px 0;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-ui);
    line-height: 1.15;
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.thank-creator-body {
    margin: 24px 32px 0;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-ui);
    line-height: 1.45;
    color: #8e8e93;
    white-space: pre-wrap;
}
.thank-creator-qr-wrap {
    margin: 32px 32px 0;
    padding: 20px;
    width: calc(100% - 64px);
    max-width: 360px;
    box-sizing: border-box;
    background: rgba(88, 86, 214, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.thank-creator-qr-img,
.thank-creator-qr-host {
    width: 100%;
    max-width: 320px;
    min-height: 200px;
}
.thank-creator-qr-host {
    display: flex;
    align-items: center;
    justify-content: center;
}
.thank-creator-qr-host table {
    margin: 0 auto;
}
.thank-creator-qr-img {
    display: block;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}
.thank-creator-qr-placeholder {
    width: 100%;
    max-width: 320px;
    min-height: 200px;
    border-radius: 12px;
    background: rgba(60, 60, 67, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #8e8e93;
    font-family: var(--font-ui);
}
.thank-creator-qr-placeholder.hidden,
.thank-creator-qr-img.hidden {
    display: none !important;
}
.thank-creator-beneficiary {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-ui);
    color: #000;
}
.thank-creator-contract {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: #8e8e93;
}
.thank-creator-beneficiary.hidden,
.thank-creator-contract.hidden {
    display: none !important;
}
.thank-creator-btn-primary {
    margin-top: 32px;
    width: calc(100% - 64px);
    max-width: 366px;
    border: none;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    line-height: 1.1;
    color: #000;
    background: #ffcc00;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.thank-creator-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.thank-creator-btn-primary:active:not(:disabled) {
    opacity: 0.9;
}
.thank-creator-btn-secondary {
    margin-top: 16px;
    width: calc(100% - 64px);
    max-width: 366px;
    border: none;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 500;
    font-family: var(--font-ui);
    line-height: 1.1;
    color: #000;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.thank-creator-btn-secondary:active {
    opacity: 0.85;
}
.thank-creator-star {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.thank-creator-btn-primary.hidden,
.thank-creator-btn-secondary.hidden {
    display: none !important;
}
.thank-creator-secondary-in-flow {
    margin-top: 16px;
    width: calc(100% - 64px);
    max-width: calc(430px - 64px);
    box-sizing: border-box;
}

/* Т-Касса / оплата картой — как ThankAdminView (iOS) */
.thank-creator-card-block {
    align-self: stretch;
    width: calc(100% - 64px);
    max-width: calc(430px - 64px);
    box-sizing: border-box;
    margin: 32px 32px 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(142, 142, 147, 0.12);
    text-align: left;
}
.thank-creator-card-block.hidden {
    display: none !important;
}
.thank-creator-card-label {
    font-size: 14px;
    font-weight: 500;
    color: #8e8e93;
    margin-bottom: 10px;
    font-family: var(--font-ui);
}
.thank-creator-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.thank-creator-amount-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #8e8e93;
    margin: 10px 0 6px;
    font-family: var(--font-ui);
}
.thank-creator-amount-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 17px;
    margin-bottom: 14px;
    background: #fff;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
}
.thank-creator-amount-input::placeholder {
    color: #8e8e93;
}
.thank-creator-preset-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    background: #e5e5ea;
    color: #000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.thank-creator-preset-btn.thank-creator-preset-btn-active {
    background: #ffdd2d;
}
.thank-creator-btn-card {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 12px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    background: #fff;
    color: #000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.thank-creator-btn-card:disabled {
    opacity: 0.55;
    cursor: default;
}
.thank-creator-card-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #8e8e93;
    line-height: 1.35;
    font-family: var(--font-ui);
}

.empty-block {
    text-align: center;
    color: #8d8d94;
    padding: 30px 10px;
    font-size: 16px;
}
.empty-sub {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.35;
    color: #8e8e93;
}
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--tabbar-height);
    background: #fff;
    border-top: 0.5px solid rgba(60, 60, 67, 0.29);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 50;
}
.tab {
    border: none;
    background: #fff;
    color: #8e8e93;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.tab .tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab .tab-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}
/* Обычные вкладки: заливка currentColor (как SF Symbols .fill в активном состоянии) */
.tab .tab-glyph-fill {
    fill: currentColor;
}
.tab.active {
    color: #007aff;
}
.tab span.tab-label {
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Поиск: неактивно — magnifyingglass.circle; активно — белая лупа на синем круге */
.tab[data-tab="home"] .tab-glyph-home-inactive {
    display: block;
}
.tab[data-tab="home"] .tab-glyph-home-active {
    display: none;
}
.tab[data-tab="home"].active .tab-glyph-home-inactive {
    display: none;
}
.tab[data-tab="home"].active .tab-glyph-home-active {
    display: block;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 100;
    padding: 16px;
}
.modal-card {
    margin: 70px auto 0;
    background: #fff;
    max-width: 480px;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}
.modal-card input, .modal-card textarea {
    border: 1px solid #d9d9de;
    border-radius: 10px;
    font-size: 16px;
    padding: 10px;
}
.modal-card .modal-hint {
    margin: 0;
    font-size: 13px;
    color: #8e8e93;
    line-height: 1.35;
}

/* Фильтры — как ModernFilterView (iOS) */
.filter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #f2f2f7;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.filter-modal-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
}
.filter-modal-nav {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 44px 1fr 88px;
    align-items: center;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 4px 10px;
    background: #fff;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}
.filter-nav-back {
    border: none;
    background: none;
    color: #007aff;
    font-size: 32px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 400;
    justify-self: start;
}
.filter-nav-title {
    margin: 0;
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
    text-align: center;
    color: #000;
}
.filter-nav-clear {
    border: none;
    background: none;
    color: #007aff;
    font-size: 16px;
    padding: 8px 4px;
    cursor: pointer;
    justify-self: end;
}
.filter-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 8px;
}
.filter-modal-scroll-spacer {
    height: 24px;
}
.filter-ios-section {
    margin-bottom: 24px;
}
.filter-ios-heading {
    margin: 0 0 8px 4px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #000;
    letter-spacing: var(--letter-nav-tight);
}
.filter-ios-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 0.5px solid rgba(60, 60, 67, 0.18);
}
.filter-ios-card-pad {
    padding: 12px 14px 14px;
}
.filter-ios-sublabel {
    margin: 0 0 8px;
    font-size: 13px;
    color: #8e8e93;
    font-weight: 400;
}
.filter-ios-sublabel-spaced {
    margin-top: 14px;
}
.filter-ios-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.filter-ios-num {
    border: 0.5px solid rgba(60, 60, 67, 0.29);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 16px;
    font-family: var(--font-ui);
    background: #fff;
    width: 100%;
}
.filter-ios-num::placeholder {
    color: #c7c7cc;
}
.filter-ios-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    min-height: 48px;
    margin: 0;
    cursor: pointer;
}
.filter-ios-row-border {
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}
.filter-ios-icon {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.filter-ios-icon svg {
    width: 22px;
    height: 22px;
    color: #007aff;
}
.filter-ios-icon svg path,
.filter-ios-icon svg circle,
.filter-ios-icon svg rect,
.filter-ios-icon svg ellipse {
    stroke: currentColor;
}
.filter-ios-row-text {
    flex: 0 1 auto;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
    min-width: 0;
}
.filter-ios-field {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    font-size: 16px;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    text-align: right;
    background: transparent;
    color: #8e8e93;
    font-weight: 400;
    outline: none;
}
.filter-ios-field:not(:placeholder-shown) {
    color: #000;
    font-weight: 600;
}
.filter-ios-field::placeholder {
    color: #c7c7cc;
    font-weight: 400;
}
.filter-ios-combo {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.filter-ios-combo .filter-ios-field {
    width: 100%;
}
.filter-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 10000;
    max-height: min(42vh, 280px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 10px;
    padding: 4px 0;
    margin: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
    border: 0.5px solid rgba(60, 60, 67, 0.18);
}
.filter-search-dropdown.hidden {
    display: none !important;
}
.filter-search-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    min-height: 44px;
    box-sizing: border-box;
    border: none;
    background: none;
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
    text-align: left;
    color: #000;
    cursor: pointer;
}
.filter-search-option:hover,
.filter-search-option:focus {
    background: rgba(0, 122, 255, 0.1);
    outline: none;
}
.filter-search-option.is-active {
    background: rgba(0, 122, 255, 0.1);
}
.filter-search-hint {
    padding: 8px 14px 6px;
    font-size: 13px;
    color: #8e8e93;
}
.filter-ios-chevron {
    flex: 0 0 auto;
    color: #c7c7cc;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}
.filter-ios-select {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    font-size: 16px;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    font-weight: 600;
    text-align: right;
    background: transparent;
    color: #000;
    appearance: none;
    padding: 4px 0;
    cursor: pointer;
}
.filter-ios-toggle-row {
    cursor: default;
}
.filter-ios-toggle-label {
    flex: 1;
}
.filter-ios-switch {
    position: relative;
    flex: 0 0 51px;
    height: 31px;
    cursor: pointer;
}
.filter-ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.filter-ios-switch-ui {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: #e9e9ea;
    transition: background 0.2s;
}
.filter-ios-switch-ui::after {
    content: "";
    position: absolute;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.filter-ios-switch input:checked + .filter-ios-switch-ui {
    background: #34c759;
}
.filter-ios-switch input:checked + .filter-ios-switch-ui::after {
    transform: translateX(20px);
}
.filter-modal-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #f2f2f7;
    border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}
.filter-show-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #007aff;
    color: #fff;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    -webkit-tap-highlight-color: transparent;
}
.filter-show-title {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-ui);
}
.filter-show-count {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.95;
}
@media (min-width: 600px) {
    .filter-modal-overlay {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 430px;
        width: 100%;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
}

/* Карточка объявления — как CarDetailView + PhotoGalleryView (iOS); не перекрываем TabView */
.car-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--tabbar-height);
    z-index: 40;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0);
}
.car-detail-toolbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    column-gap: 2px;
    padding: 6px 0 8px;
    padding-left: max(4px, env(safe-area-inset-left, 0px));
    padding-right: max(2px, env(safe-area-inset-right, 0px));
    background: #f9f9f9;
    border-bottom: 0.5px solid #c6c6c8;
}
.car-detail-toolbar-leading {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
}
.car-detail-back-ios {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    border: none;
    background: none;
    color: #007aff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.car-detail-back-chevron {
    font-size: 28px;
    font-weight: 400;
    line-height: 0.85;
    margin-right: 2px;
    margin-top: -2px;
}
.car-detail-back-text {
    font-size: 16px;
}
.car-detail-toolbar-title {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    padding: 0 2px;
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
    text-align: center;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.car-detail-toolbar-trailing {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch;
    gap: 2px;
    min-width: 0;
    min-height: 36px;
}
.car-detail-share-ios {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #007aff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
}
.car-detail-share-ios:active {
    opacity: 0.55;
}
.car-detail-share-icon {
    display: block;
}
.car-detail-edit-ios {
    border: none;
    background: none;
    color: #007aff;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.car-detail-toolbar-spacer {
    display: none;
}
.web-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--tabbar-height) + 20px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    max-width: min(340px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(60, 60, 67, 0.92);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-ui);
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.web-toast.hidden {
    display: none !important;
}
.car-detail-owner-strip {
    padding: 12px 16px 4px;
    background: #fff;
}
.car-detail-owner-strip.hidden {
    display: none !important;
}
.btn-car-detail-owner-action {
    display: block;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.btn-car-detail-unpublish {
    background: #007aff;
    color: #fff;
}
.btn-car-detail-republish {
    background: #007aff;
    color: #fff;
}
.car-detail-gallery-mount {
    flex-shrink: 0;
    background: #fff;
}
.car-detail-gallery-wrap-ios {
    background: #fff;
}
.car-detail-gallery-outer-ios {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 0;
    background: #e5e5ea;
}
.car-detail-gallery {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior-x: contain;
}
.car-detail-gallery::-webkit-scrollbar {
    display: none;
}
.car-detail-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 280px;
    scroll-snap-align: start;
    background: #2c2c2e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.car-detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.car-detail-dots-ios {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 0 4px;
    background: #fff;
}
.car-detail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d1d6;
}
.car-detail-dot.active {
    background: #3c3c43;
}
.car-detail-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
}
.car-detail-sheet {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.car-detail-title-ios {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-ui);
    line-height: 1.2;
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.car-detail-price-ios {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-ui);
    line-height: 1.2;
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.car-detail-loc-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
    line-height: 1.35;
    color: #8e8e93;
}
.car-detail-loc-row svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    stroke: #8e8e93;
    fill: none;
}
.car-detail-moderation-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.car-detail-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}
.car-detail-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-detail-call,
.btn-detail-fav {
    border: none;
    border-radius: 8px;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
}
.btn-detail-call {
    background: #34c759;
}
.btn-detail-call[disabled],
.btn-detail-call.btn-detail-disabled {
    background: #aeaeb2;
    cursor: not-allowed;
}
.btn-detail-fav {
    background: #007aff;
}
.btn-detail-fav.btn-detail-fav-on {
    background: #ff3b30;
}
.btn-detail-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
    stroke: currentColor;
}
/* Иконка трубки только заливка — общий stroke ломал контур */
.btn-detail-call-icon {
    stroke: none;
    fill: currentColor;
}
.car-detail-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-ui);
    line-height: 1.2;
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.car-detail-char-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 16px;
    font-family: var(--font-ui);
    line-height: 1.35;
    color: #000;
}
.car-detail-char-row .k {
    font-weight: 700;
}
.car-detail-char-row .v {
    font-weight: 400;
}
.car-detail-chars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.car-detail-desc-ios {
    font-size: 16px;
    font-family: var(--font-ui);
    line-height: 1.45;
    color: #8e8e93;
    white-space: pre-wrap;
    word-break: break-word;
}
.car-detail-contact-name {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.car-detail-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 8px;
    margin-top: 8px;
    border: none;
    background: none;
    font-size: 15px;
    color: #8e8e93;
    cursor: pointer;
}
.car-detail-report svg {
    width: 16px;
    height: 16px;
    fill: #8e8e93;
}
.car-detail-loading,
.car-detail-error {
    padding: 32px 20px;
    text-align: center;
    font-size: 16px;
    color: #8e8e93;
}
.car-detail-error .btn-light {
    margin-top: 12px;
    width: auto;
    min-width: 160px;
}

/* ——— Разместить / Редактировать объявление (iOS-стиль) ——— */
.ad-editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--tabbar-height);
    z-index: 200;
    background: #f2f2f7;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0);
}
.ad-editor-toolbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: center;
    padding: 6px 8px 10px;
    background: #f9f9f9;
    border-bottom: 0.5px solid #c6c6c8;
}
.ad-editor-toolbar-btn {
    justify-self: start;
    border: none;
    background: none;
    padding: 8px 4px;
    font-size: 16px;
    color: #007aff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ad-editor-toolbar-title {
    margin: 0;
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
    text-align: center;
    max-width: 56vw;
}
.ad-editor-toolbar-trail {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 36px;
}
.ad-editor-toolbar-done {
    border: none;
    background: none;
    padding: 8px 4px;
    font-size: 16px;
    font-weight: 600;
    color: #007aff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ad-editor-form {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 8px;
}
.ad-editor-section {
    margin-bottom: 20px;
}
.ad-editor-section-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #000;
    letter-spacing: var(--letter-nav-tight);
}
.ad-editor-photo-edit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.ad-editor-section-title-inline {
    margin: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
}
.ad-editor-photo-edit-icon,
.ad-editor-photo-picker-icon {
    display: flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.ad-editor-photo-edit-icon svg,
.ad-editor-photo-picker-icon svg {
    width: 100%;
    height: 100%;
}
.ad-editor-photo-badge {
    font-size: 15px;
    font-weight: 500;
    color: #007aff;
    background: rgba(0, 122, 255, 0.12);
    padding: 4px 10px;
    border-radius: 12px;
}
.ad-editor-photo-picker {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: #e5e5ea;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.ad-editor-photo-picker:active {
    opacity: 0.85;
}
.ad-editor-photo-picker-label {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    color: #000;
}
.ad-editor-photo-counter {
    font-size: 16px;
    font-weight: 500;
    color: #8e8e93;
}
.ad-editor-file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.ad-editor-photo-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: #8e8e93;
}
.ad-editor-photo-warning {
    color: #c00;
}
.ad-editor-photo-edit-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.ad-editor-photo-strip {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ad-editor-photo-strip-edit {
    flex-wrap: nowrap;
}
.ad-editor-thumb {
    flex: 0 0 auto;
    width: 96px;
    position: relative;
}
.ad-editor-thumb img {
    display: block;
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #e5e5ea;
}
.ad-editor-thumb-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.ad-editor-thumb-btn {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    border: none;
    background: #007aff;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.ad-editor-thumb-btn:active {
    opacity: 0.7;
}
.ad-editor-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 59, 48, 0.95);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ad-editor-photo-add-slot {
    flex: 0 0 auto;
    width: 96px;
    min-height: 100px;
    border: 2px dashed #c6c6c8;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #007aff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ad-editor-photo-add-plus {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}
.ad-editor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0.5px 0 rgba(0,0,0,0.04);
}
.ad-editor-field-group {
    padding: 12px 14px;
    border-bottom: 0.5px solid #c6c6c8;
}
.ad-editor-field-group-last {
    border-bottom: none;
}
.ad-editor-field-mileage .ad-editor-row-mileage {
    background: #fff;
    border: 1px solid #c6c6c8;
    border-radius: 10px;
    padding: 0 12px;
}
.ad-editor-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.01em;
}
.ad-editor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    background: #f2f2f7;
    border-radius: 10px;
    padding: 0 12px;
}
.ad-editor-row .filter-ios-combo.ad-editor-search-combo {
    flex: 1 1 auto;
    min-width: 0;
}
.filter-ios-combo.ad-editor-search-combo .ad-editor-row-input {
    flex: none;
    width: 100%;
    box-sizing: border-box;
}
.ad-editor-row-input,
.ad-editor-row-select {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    padding: 10px 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}
.ad-editor-row-input {
    font-weight: 600;
    color: #000;
}
.ad-editor-row-input:placeholder-shown {
    font-weight: 400;
    color: #8e8e93;
}
.ad-editor-row-input::placeholder {
    color: #8e8e93;
    font-weight: 400;
}
.ad-editor-row-select {
    cursor: pointer;
    font-weight: 600;
    color: #000;
}
.ad-editor-chevron {
    flex-shrink: 0;
    font-size: 20px;
    color: #c7c7cc;
    line-height: 1;
    pointer-events: none;
}
.ad-editor-chevron-forward {
    font-size: 22px;
    font-weight: 300;
}
.ad-editor-chevron-down {
    font-size: 14px;
    margin-right: 2px;
}
.ad-editor-suffix {
    flex-shrink: 0;
    font-size: 16px;
    color: #8e8e93;
}
.ad-editor-textarea {
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: #f2f2f7;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    font-weight: 400;
    color: #000;
    resize: vertical;
    min-height: 100px;
}
.ad-editor-textarea::placeholder {
    color: #8e8e93;
}
.ad-editor-form-spacer {
    height: 24px;
}
.ad-editor-footer {
    flex-shrink: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
    background: #f9f9f9;
    border-top: 0.5px solid #c6c6c8;
}
.ad-editor-publish-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #fff;
    background: #34c759;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ad-editor-publish-btn:active {
    opacity: 0.88;
}

/* Полноэкранный список марки/модели — как iOS «Выберите марку» */
.ios-list-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--tabbar-height);
    z-index: 310;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.ios-list-picker-overlay.hidden {
    display: none !important;
}
.ios-list-picker-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
}
.ios-list-picker-toolbar {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 12px 10px;
    border-bottom: 0.5px solid #c6c6c8;
    background: #fff;
}
.ios-list-picker-back {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #007aff;
    font-size: 16px;
    padding: 8px 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ios-list-picker-title {
    margin: 0;
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
    text-align: center;
    padding: 0 96px;
}
.ios-list-picker-search-outer {
    flex-shrink: 0;
    padding: 8px 16px 10px;
    background: #fff;
}
.ios-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e5e5ea;
    border-radius: 10px;
    padding: 8px 12px;
}
.ios-search-field-icon {
    flex-shrink: 0;
    color: #8e8e93;
    display: flex;
    align-items: center;
}
.ios-search-field-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: var(--font-ui);
    letter-spacing: var(--letter-nav-tight);
    font-weight: 400;
    padding: 2px 0;
    color: #000;
}
.ios-search-field-input::placeholder {
    color: #8e8e93;
}
.ios-search-field-input:focus {
    outline: none;
}
.ios-list-picker-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    padding-bottom: 28px;
}
.ios-list-picker-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 11px 16px;
    box-sizing: border-box;
    border: none;
    border-bottom: 0.5px solid #c6c6c8;
    background: #fff;
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
    text-align: left;
    color: #000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ios-list-picker-row.is-selected {
    color: #007aff;
    background: rgba(0, 122, 255, 0.08);
}
.ios-list-picker-row-none.is-selected {
    color: #007aff;
    background: rgba(0, 122, 255, 0.08);
}
.ios-list-picker-row:active {
    background: #e5e5ea;
}
.ios-list-picker-row.is-selected:active,
.ios-list-picker-row-none.is-selected:active {
    background: rgba(0, 122, 255, 0.14);
}
.ios-list-picker-row-forward .ios-list-picker-chevron {
    flex-shrink: 0;
    color: #c7c7cc;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}
.ios-list-picker-hint {
    padding: 12px 16px;
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.35;
}

/* Выбор региона / города (как RegionPickerView в iOS, справочник regions.json) */
.region-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--tabbar-height);
    z-index: 300;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.region-picker-overlay.hidden {
    display: none !important;
}
.region-picker-sheet {
    width: 100%;
    max-width: 430px;
    max-height: calc(100% - 8px);
    background: #fff;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.region-picker-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 6px 16px;
    border-bottom: 0.5px solid #c6c6c8;
    background: #fff;
    flex-shrink: 0;
}
.region-picker-toolbar-left {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    max-width: 52%;
}
.region-picker-title {
    margin: 0;
    font: var(--text-search);
    letter-spacing: var(--letter-nav-tight);
    text-align: center;
    padding: 0 12px;
    max-width: 78%;
}
.region-picker-toolbar-btn {
    border: none;
    background: none;
    color: #007aff;
    font-size: 16px;
    padding: 8px 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.region-picker-toolbar-btn.hidden {
    display: none !important;
}
.region-picker-search-outer {
    flex-shrink: 0;
    padding: 8px 16px 10px;
    background: #fff;
}
.region-picker-scroll {
    flex: 1;
    min-height: 140px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 20px;
    background: #fff;
}
.region-picker-section-label {
    padding: 10px 16px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.region-picker-hint {
    padding: 10px 16px;
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.35;
}
.filter-ios-combo-region .filter-ios-field,
.filter-ios-combo-tap .filter-ios-field {
    cursor: pointer;
    caret-color: transparent;
}
.ad-editor-tap-combo .ad-editor-row-input {
    cursor: pointer;
    caret-color: transparent;
}

@media (min-width: 600px) {
    #app {
        max-width: 430px;
        margin: 0 auto;
        background: #f2f2f7;
        min-height: 100vh;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
    .tabbar {
        left: 50%;
        transform: translateX(-50%);
        max-width: 430px;
        width: 100%;
    }
    .car-detail-modal {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 430px;
        width: 100%;
        bottom: var(--tabbar-height);
    }
    .ad-editor-overlay {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 430px;
        width: 100%;
        bottom: var(--tabbar-height);
    }
    .region-picker-overlay {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 430px;
        width: 100%;
        bottom: var(--tabbar-height);
    }
    .ios-list-picker-overlay {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 430px;
        width: 100%;
        bottom: var(--tabbar-height);
    }
}
