:root {
    --f7-theme-color: #ffca28;
    --f7-theme-color-rgb: 255, 202, 40;
    --f7-theme-color-shade: #e3ad00;
    --f7-theme-color-tint: #ffd85c;
    --f7-button-fill-text-color: #101011;
    --ink: #f4f1ec;
    --muted: #97938e;
    --muted-2: #6c6965;
    --surface: #151516;
    --surface-raised: #1d1d1f;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #ffca28;
    --accent-soft: rgba(255, 202, 40, 0.14);
    --green: #65d59b;
    --visual-viewport-bottom: 0px;
    --f7-font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    --f7-navbar-height: 64px;
    --f7-toolbar-height: 70px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: #09090a;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        radial-gradient(circle at 48% -10%, rgba(255, 202, 40, 0.08), transparent 28rem),
        #09090a;
}

button,
input,
textarea { font: inherit; }

button { color: inherit; }

img { display: block; }

.site-shell {
    width: min(1450px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 252px minmax(520px, 680px) 320px;
    gap: 28px;
    align-items: start;
    padding: 0 28px;
}

.desktop-rail,
.desktop-context {
    position: sticky;
    top: 0;
    height: 100vh;
}

.desktop-rail {
    padding: 36px 8px 28px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px 42px;
    color: var(--ink);
    text-decoration: none;
    font-size: 23px;
    font-weight: 760;
    letter-spacing: -0.8px;
}

.brand-wordmark {
    display: inline-block;
    color: var(--ink);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1.25px;
    line-height: 1;
}

.brand-wordmark b { color: var(--accent); font-weight: inherit; }

.rail-nav { display: grid; gap: 6px; }

.rail-link {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9a9691;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 620;
    text-align: left;
    transition: .2s ease;
}

.rail-link i { font-size: 22px; }
.rail-link:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.rail-link.active { background: var(--accent-soft); color: var(--accent); }

.rail-compose {
    margin: 27px 10px 0;
    height: 48px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 9px 26px rgba(255,202,40,.2);
}

.rail-compose i { font-size: 18px; margin-right: 7px; }

.rail-profile {
    margin-top: auto;
    display: grid;
    grid-template-columns: 39px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.rail-profile img { width: 39px; height: 39px; border-radius: 50%; object-fit: cover; }
.rail-profile strong, .rail-profile span { display: block; line-height: 1.35; }
.rail-profile strong { font-size: 13px; }
.rail-profile span { color: var(--muted); font-size: 12px; }
.rail-profile > i { color: var(--muted); font-size: 18px; }

.phone-stage {
    min-height: 100vh;
    border-inline: 1px solid var(--line);
    background: #0f0f10;
}

#app,
.view-main,
.page { min-height: 100vh; }

.page { background: #0f0f10; }
.page-content { background: #0f0f10; }

.app-navbar {
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15,15,16,.82);
    will-change: transform;
}

.app-navbar.scrolled-away { pointer-events: none; }

.app-navbar .navbar-bg { background: transparent; }
.app-navbar .navbar-inner { padding-inline: 23px; }
.app-navbar .title { font-size: 14px; font-weight: 680; letter-spacing: -.1px; }
.mobile-brand { display: none; }

.icon-only,
.icon-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 7px;
    cursor: pointer;
}

.icon-only i { font-size: 23px; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 7px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); border: 1px solid #111; }

.app-tabbar {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 10px !important;
    bottom: calc(10px + constant(safe-area-inset-bottom) + var(--visual-viewport-bottom)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom) + var(--visual-viewport-bottom)) !important;
    width: auto !important;
    height: 64px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 34px;
    background: rgba(18,19,20,.94);
    box-shadow: 0 16px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);
    transform: none !important;
    z-index: 9000;
}

.standalone-mode .app-tabbar {
    bottom: calc(12px + var(--visual-viewport-bottom)) !important;
    bottom: calc(max(12px, calc(env(safe-area-inset-bottom) - 12px)) + var(--visual-viewport-bottom)) !important;
}

.app-tabbar::before { display: none; }

.app-tabbar .toolbar-inner {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 7px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    transform: none !important;
}

.app-tabbar .tab-link {
    width: 100% !important;
    min-width: 0;
    height: 50px;
    padding: 0 4px;
    flex: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d8e90;
}

.tab-icon-shell {
    position: relative;
    width: min(64px, 100%);
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.app-tabbar .tab-link i { font-size: 25px; }

.app-tabbar .tab-link-active { color: #fff; }
.app-tabbar .tab-link-active .tab-icon-shell { background: rgba(255,255,255,.17); }
.app-tabbar .tab-link:active .tab-icon-shell { transform: scale(.94); }

.tab-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.profile-tab-avatar img {
    width: 29px;
    height: 29px;
    border: 1.5px solid rgba(255,255,255,.68);
    border-radius: 50%;
    object-fit: cover;
}

.profile-tab-avatar b {
    position: absolute;
    top: 7px;
    right: calc(50% - 20px);
    width: 7px;
    height: 7px;
    border: 2px solid #18191a;
    border-radius: 50%;
    background: var(--accent);
}

.tab-link-active .profile-tab-avatar img { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }

.keyboard-visible .app-tabbar {
    opacity: 0;
    pointer-events: none;
}

.app-content { padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important; }
.tab { padding: 25px 22px 46px; }
.tab:not(.tab-active) { display: none; }

.section-intro { padding: 10px 2px 26px; }
.section-intro .eyebrow,
.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 790;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

.section-intro h1 {
    margin: 0;
    max-width: 510px;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.05;
    letter-spacing: -1.35px;
    font-weight: 760;
}

.section-intro > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.feed-intro { padding-bottom: 19px; }
.feed-intro h1 { font-size: 30px; }

.topic-strip {
    margin: 0 -22px 29px;
    padding: 0 22px 2px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.topic-strip::-webkit-scrollbar,
.filter-row::-webkit-scrollbar,
.garage-tabs::-webkit-scrollbar { display: none; }

.topic-bubble {
    appearance: none;
    border: 0;
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 69px;
    padding: 0;
    cursor: pointer;
}

.topic-bubble > span {
    width: 61px;
    height: 61px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    font-size: 23px;
    background:
        linear-gradient(#19191b, #19191b) padding-box,
        linear-gradient(145deg, var(--topic-accent), rgba(255,255,255,.15)) border-box;
    border: 2px solid transparent;
    box-shadow: inset 0 0 18px rgba(255,255,255,.025);
}

.topic-bubble strong { width: 74px; color: #aaa6a1; font-size: 10px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed-heading,
.content-heading,
.context-heading,
.car-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.feed-heading { margin: 0 1px 13px; }
.feed-heading h2,
.content-heading h2,
.context-heading h3 { margin: 0; font-size: 18px; letter-spacing: -.45px; }

.text-button {
    appearance: none;
    border: 0;
    background: transparent;
    width: auto !important;
    flex: none;
    color: var(--accent);
    padding: 4px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.text-button i { font-size: 12px; }
.feed-heading h2 { white-space: nowrap; }
.content-heading > div { min-width: 0; }
.feed-list { display: grid; gap: 16px; }

.post-card,
.group-card,
.car-card,
.context-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 19px;
}

.post-header {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px 15px 8px;
}

.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.12); }
.post-author > div { display: flex; align-items: center; gap: 5px; }
.post-author strong { font-size: 13px; }
.post-author span { color: var(--muted); font-size: 11px; }
.group-chip { appearance: none; border: 0; background: transparent; padding: 2px 0 0; color: var(--accent); font-size: 10.5px; cursor: pointer; }
.post-menu i { color: var(--muted); font-size: 20px; }
.post-copy { margin: 5px 15px 13px; font-size: 13.5px; line-height: 1.52; color: #d2cfca; }

.post-media { margin: 0; position: relative; background: #0a0a0a; }
.post-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-media figcaption { position: absolute; left: 12px; bottom: 11px; display: flex; align-items: center; gap: 5px; padding: 6px 9px; background: rgba(10,10,10,.63); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; font-size: 9.5px; font-weight: 600; }
.post-media figcaption i { font-size: 11px; color: var(--accent); }
.post-actions { min-height: 52px; display: flex; align-items: center; gap: 3px; padding: 7px 10px; }
.post-action { appearance: none; border: 0; background: transparent; color: #96928e; display: inline-flex; align-items: center; gap: 6px; padding: 8px; cursor: pointer; font-size: 11px; font-weight: 600; }
.post-action i { font-size: 20px; }
.post-action.active { color: var(--accent); }
.save-button { margin-left: auto; }

.app-search {
    height: 48px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #171719;
    margin-bottom: 18px;
}

.app-search i { color: #7d7975; font-size: 18px; }
.app-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.app-search input::placeholder { color: #77736f; }
.app-search > span { border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; color: #686561; font-size: 8px; }
.app-search.prominent { height: 52px; border-color: rgba(255,202,40,.22); box-shadow: 0 0 0 3px rgba(255,202,40,.035); }

.feature-group {
    position: relative;
    height: 255px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 31px;
}

.feature-group > img { width: 100%; height: 100%; object-fit: cover; }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(5,5,5,.92)); }
.feature-copy { position: absolute; inset: auto 17px 17px; }
.feature-copy h2 { margin: 10px 0 4px; font-size: 21px; letter-spacing: -.6px; }
.feature-copy p { margin: 0 0 13px; color: #cbc6c0; font-size: 12px; }
.feature-copy .button { width: auto; display: inline-flex; height: 35px; padding-inline: 15px; border-radius: 10px; font-size: 11px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 8px; background: rgba(8,8,8,.58); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.13); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .55px; }
.live-pill i, .online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(101,213,155,.65); }

.content-heading { margin: 0 1px 14px; }
.content-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; }
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.group-card { min-width: 0; }
.group-card-main { appearance: none; position: relative; border: 0; padding: 0; width: 100%; height: 120px; background: #111; cursor: pointer; overflow: hidden; }
.group-card-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.group-card:hover .group-card-main img { transform: scale(1.035); }
.group-category { position: absolute; left: 9px; top: 9px; padding: 5px 7px; border-radius: 7px; background: rgba(7,7,7,.66); backdrop-filter: blur(7px); color: white; font-size: 8px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.group-card-copy { padding: 12px; }
.group-card-copy h3 { margin: 0 0 5px; font-size: 13px; letter-spacing: -.2px; }
.group-card-copy > p { margin: 0; height: 34px; color: var(--muted); font-size: 10px; line-height: 1.45; overflow: hidden; }
.group-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 10px 0; color: #77736f; font-size: 8.5px; }
.group-meta .online-dot { width: 4px; height: 4px; }
.group-join-button { height: 33px; font-size: 10.5px; font-weight: 700; border-radius: 9px; }
.group-join-button.joined,
.car-join-button.joined { border: 1px solid var(--line); color: #a5a19c; background: rgba(255,255,255,.035); }
.group-card[hidden], .car-card[hidden], .garage-card[hidden] { display: none; }

.car-intro { padding-bottom: 21px; }
.filter-row,
.garage-tabs { display: flex; gap: 8px; margin: 0 -22px 28px; padding: 0 22px; overflow-x: auto; scrollbar-width: none; }
.filter-chip,
.garage-tabs button {
    appearance: none;
    border: 1px solid var(--line);
    background: #161617;
    color: #8e8a85;
    white-space: nowrap;
    padding: 8px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 620;
}

.filter-chip.active,
.garage-tabs button.active { background: var(--ink); color: #121213; border-color: var(--ink); }
.compact-heading { margin-bottom: 13px; }
.car-list { display: grid; gap: 16px; }
.car-image-wrap { position: relative; height: 228px; background: #0a0a0a; }
.car-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.garage-tag { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 7px; color: #edf7f1; background: rgba(19,82,55,.75); border: 1px solid rgba(101,213,155,.3); backdrop-filter: blur(7px); font-size: 9px; font-weight: 650; }
.garage-tag i { color: var(--green); font-size: 12px; }
.car-card-body { padding: 15px; }
.car-title-row { align-items: flex-start; }
.car-title-row span { color: var(--accent); font-size: 9px; font-weight: 720; text-transform: uppercase; letter-spacing: .8px; }
.car-title-row h3 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.6px; }
.car-title-row > strong { padding: 5px 8px; border-radius: 7px; background: #262628; color: #b6b1ab; font-size: 10px; }
.car-specs { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.car-specs i { width: 3px; height: 3px; border-radius: 50%; background: #5a5753; }
.car-community { display: flex; align-items: center; gap: 8px; margin: 16px 0 14px; color: #8d8984; font-size: 10px; }
.stacked-avatars { display: flex; padding-left: 7px; }
.stacked-avatars b { width: 21px; height: 21px; margin-left: -7px; border: 2px solid #1d1d1f; border-radius: 50%; background: linear-gradient(135deg, #6f8fb8, #d59b6d); }
.stacked-avatars b:nth-child(2) { background: linear-gradient(135deg, #bc6e73, #543e62); }
.stacked-avatars b:nth-child(3) { background: linear-gradient(135deg, #4f786f, #b5a06d); }
.car-buttons { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.car-buttons .button { height: 39px; border-radius: 10px; font-size: 10.5px; font-weight: 700; }
.garage-add-button { padding-inline: 13px; color: #aaa6a1; border-color: var(--line); }
.garage-add-button i { font-size: 12px; }

.profile-cover { height: 180px; margin: -25px -22px 0; position: relative; overflow: hidden; background: #171719; }
.profile-cover-art { position: absolute; inset: 0; background:
    linear-gradient(180deg, transparent 20%, #0f0f10 105%),
    radial-gradient(ellipse at 18% 20%, rgba(255,202,40,.4), transparent 28%),
    linear-gradient(120deg, #242326, #101011 56%, #29201e);
}
.profile-cover-art::before,
.profile-cover-art::after { content: ''; position: absolute; height: 2px; width: 85%; right: -15%; top: 60px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); transform: rotate(-13deg); }
.profile-cover-art::after { top: 95px; right: 20%; opacity: .45; }
.profile-settings { position: absolute; top: 14px; right: 13px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(8,8,8,.42); backdrop-filter: blur(8px); }
.profile-settings i { font-size: 18px; }
.profile-summary { position: relative; padding: 0 2px 26px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 90px; height: 90px; margin-top: -45px; border: 4px solid #0f0f10; border-radius: 50%; object-fit: cover; position: relative; }
.edit-profile { position: absolute; right: 0; top: 13px; width: auto; padding-inline: 15px; height: 34px; border-radius: 10px; color: #b3afa9; border-color: var(--line); font-size: 10.5px; font-weight: 650; }
.profile-identity { margin-top: 10px; }
.profile-identity h1 { margin: 0; font-size: 23px; letter-spacing: -.6px; }
.profile-identity span { color: var(--muted); font-size: 11px; }
.profile-summary > p { margin: 12px 0 8px; max-width: 470px; color: #c0bcb6; font-size: 12.5px; line-height: 1.5; }
.profile-location { display: flex; align-items: center; gap: 5px; color: #7f7b76; font-size: 10px; }
.profile-location i { font-size: 12px; }
.profile-stats { display: flex; gap: 33px; margin-top: 19px; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-size: 15px; }
.profile-stats span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.garage-section { padding: 27px 0 0; }
.garage-section .content-heading { align-items: center; }
.garage-section .content-heading .eyebrow { margin-bottom: 3px; }
.garage-sheet-trigger { width: auto; height: 34px; border-radius: 9px; padding-inline: 12px; font-size: 10px; font-weight: 700; }
.garage-sheet-trigger i { font-size: 12px; margin-right: 4px; }
.garage-tabs { margin-top: 18px; margin-bottom: 15px; }
.garage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.garage-card { position: relative; min-width: 0; overflow: hidden; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.garage-card > img { width: 100%; height: 125px; object-fit: cover; }
.garage-card > div { padding: 11px; }
.garage-card div > span { color: var(--muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .5px; }
.garage-card h3 { margin: 3px 0 2px; font-size: 13px; line-height: 1.2; }
.garage-card p { margin: 0; color: var(--accent); font-size: 9px; font-weight: 650; }
.garage-status { position: absolute; top: 9px; left: 9px; padding: 5px 7px; border-radius: 6px; background: rgba(8,8,8,.7); backdrop-filter: blur(8px); font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .45px; }
.garage-status.status-want { color: #d8c0ff; }
.garage-status.status-own { color: #9be6be; }
.garage-empty-card { appearance: none; min-height: 190px; border: 1px dashed rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.015); display: grid; align-content: center; justify-items: center; gap: 6px; color: #8a8681; cursor: pointer; }
.garage-empty-card i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin-bottom: 3px; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.garage-empty-card strong { font-size: 10.5px; }
.garage-empty-card span { font-size: 8.5px; color: #67645f; }

.desktop-context { padding: 35px 0; }
.context-card { padding: 16px; margin-bottom: 14px; border-radius: 16px; }
.context-heading { align-items: center; margin-bottom: 12px; }
.context-heading h3 { font-size: 14px; }
.context-heading button { appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px; }
.context-heading button i { font-size: 17px; }
.event-card { appearance: none; border: 0; width: 100%; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 11px 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.event-card + .event-card { border-top: 1px solid var(--line); }
.event-date { width: 42px; height: 46px; border-radius: 10px; background: color-mix(in srgb, var(--event-accent, var(--accent)) 14%, transparent); color: var(--event-accent, var(--accent)); display: grid; place-content: center; text-align: center; font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.event-date strong { display: block; font-size: 16px; line-height: 1; }
.event-date.purple { color: #b998ed; background: rgba(154,101,223,.13); }
.event-card > span:last-child strong,
.event-card > span:last-child small { display: block; }
.event-card > span:last-child strong { font-size: 11px; margin-bottom: 5px; }
.event-card > span:last-child small { color: var(--muted); font-size: 8.5px; }
.suggestion { display: grid; grid-template-columns: 36px 1fr auto; gap: 9px; align-items: center; padding: 9px 0; }
.suggestion-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--suggestion-accent, var(--accent)), #292929); color: #fff; font-weight: 800; }
.suggestion-icon.teal { background: linear-gradient(135deg,#5e998f,#233b38); }
.suggestion-icon.blue { background: linear-gradient(135deg,#596fba,#292e49); }
.suggestion strong, .suggestion small { display: block; }
.suggestion strong { font-size: 10.5px; }
.suggestion small { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.quick-join { appearance: none; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 700; cursor: pointer; }
.context-footer { color: #53504d; font-size: 8px; line-height: 1.8; padding: 3px 8px; }

.popup,
.sheet-modal { --f7-popup-tablet-width: 520px; background: #111112; }
.chat-popup { max-width: 520px; }
.chat-popup .page,
.chat-popup .page-content { background: #111112; }
.chat-navbar .navbar-bg { background: #171718; }
.chat-navbar .title { display: grid; justify-items: center; line-height: 1.25; }
.chat-navbar .title strong { font-size: 12px; }
.chat-navbar .title span { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 500; }
.chat-navbar .title span i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.messages-content { padding: 78px 16px 90px; }
.chat-day { width: max-content; margin: 3px auto 22px; padding: 5px 8px; border-radius: 7px; color: #77736f; background: #1a1a1b; font-size: 8px; font-weight: 650; }
.message-row { display: grid; grid-template-columns: 30px minmax(0, 76%); gap: 8px; align-items: end; margin-bottom: 14px; }
.message-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.message-row span { display: block; color: var(--muted); font-size: 8px; margin: 0 0 4px 3px; }
.message-row p { width: fit-content; margin: 0; padding: 10px 12px; background: #242426; border-radius: 14px 14px 14px 4px; color: #d8d5d1; font-size: 12px; line-height: 1.4; }
.message-row.mine { display: flex; justify-content: flex-end; }
.message-row.mine > div { display: grid; justify-items: end; max-width: 76%; }
.message-row.mine p { background: var(--accent); color: white; border-radius: 14px 14px 4px 14px; }
.chat-messagebar { background: #171718; border-top: 1px solid var(--line); }
.chat-messagebar .toolbar-inner { padding-inline: 10px; }
.chat-messagebar textarea { font-size: 12px; }
.send-link { color: var(--accent); }
.thread-state { margin: 28px auto; color: var(--muted); font-size: 11px; text-align: center; }
.thread-state.error-state { color: #ed8a8a; }

.comments-popup { max-width: 520px; }
.comments-popup .page,
.comments-popup .page-content { background: #111112; }
.comments-popup .navbar-inner > .right { visibility: hidden; }
.comments-content { padding: 72px 16px 92px; }
.comment-post-context { padding: 4px 0 18px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.comment-post-context > div { display: flex; align-items: center; gap: 9px; }
.comment-post-context img,
.comment-composer-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.comment-post-context strong,
.comment-post-context span { display: block; }
.comment-post-context strong { font-size: 11px; }
.comment-post-context span { margin-top: 2px; color: var(--accent); font-size: 8.5px; }
.comment-post-context > p { margin: 12px 0 0; color: #d4d1cd; font-size: 12px; line-height: 1.48; }
.comment-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; margin-bottom: 18px; }
.comment-row > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.comment-row > div > div { display: flex; align-items: baseline; gap: 7px; }
.comment-row strong { font-size: 10.5px; }
.comment-row span { color: var(--muted); font-size: 8.5px; }
.comment-row p { margin: 4px 0 0; color: #d3d0cc; font-size: 11.5px; line-height: 1.45; }
.comment-row.mine p { color: var(--ink); }
.comment-composer-avatar { flex: 0 0 auto; width: 30px; height: 30px; margin-left: 3px; }

.sheet-modal { height: auto; max-height: 82vh; border-radius: 20px 20px 0 0; }
.sheet-modal .toolbar { background: #1a1a1c; border-bottom: 1px solid var(--line); }
.sheet-modal .toolbar-inner { padding-inline: 17px; }
.sheet-modal .toolbar strong { font-size: 13px; }
.sheet-modal .toolbar .link { font-size: 11px; font-weight: 700; }
.sheet-modal .page-content { padding: 20px 17px calc(28px + env(safe-area-inset-bottom)); }
.compose-author { display: flex; gap: 9px; align-items: center; }
.compose-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.compose-author strong { display: block; font-size: 12px; }
.compose-author button { appearance: none; border: 0; background: transparent; color: var(--accent); padding: 2px 0; font-size: 9px; }
.compose-author button i { font-size: 9px; }
.compose-textarea { display: block; width: 100%; min-height: 130px; margin: 18px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font-size: 18px; line-height: 1.4; }
.compose-textarea::placeholder { color: #5e5b58; }
.compose-attachment { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 13px; border: 1px dashed rgba(255,255,255,.14); border-radius: 12px; }
.compose-attachment > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.compose-attachment strong, .compose-attachment span { display: block; }
.compose-attachment strong { font-size: 11px; }
.compose-attachment span { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.compose-attachment button { appearance: none; border: 0; background: transparent; color: var(--accent); }
.compose-submit, .garage-submit { height: 45px; margin-top: 17px; border-radius: 12px; font-weight: 720; font-size: 12px; }
.garage-form > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.garage-form label span { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .65px; color: #8a8681; }
.garage-form label input { width: 100%; height: 47px; border: 1px solid var(--line); outline: 0; background: #19191b; border-radius: 11px; padding: 0 12px; color: var(--ink); font-size: 12px; }
.garage-choice-row { display: grid; gap: 8px; margin-top: 14px; }
.garage-choice { appearance: none; display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid var(--line); background: #18181a; border-radius: 11px; padding: 10px; cursor: pointer; }
.garage-choice > i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.04); color: #8d8984; font-size: 16px; }
.garage-choice strong, .garage-choice small { display: block; }
.garage-choice strong { font-size: 11px; }
.garage-choice small { color: var(--muted); font-size: 8.5px; margin-top: 2px; }
.garage-choice.active { border-color: rgba(255,202,40,.5); background: var(--accent-soft); }
.garage-choice.active > i { color: var(--accent); background: rgba(255,202,40,.14); }

@media (max-width: 1160px) {
    .site-shell { grid-template-columns: 220px minmax(500px, 680px); max-width: 960px; }
    .desktop-context { display: none; }
}

@media (min-width: 781px) {
    .app-tabbar { display: none !important; }
    .app-content { padding-bottom: 0 !important; }
}

@media (max-width: 780px) {
    .site-shell { display: block; padding: 0; width: 100%; }
    .desktop-rail { display: none; }
    .phone-stage { width: 100%; border: 0; }
    .app-navbar .mobile-brand {
        display: flex;
        align-items: center;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 0;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .mobile-brand .brand-wordmark { font-size: 19px; }
    .app-navbar .title { display: none; }
    .app-navbar .navbar-inner { padding-inline: 14px; }
}

@supports (height: 100dvh) {
    @media (max-width: 780px) {
        .site-shell,
        .phone-stage,
        #app,
        .view-main,
        .page { min-height: 100dvh; }
    }
}

@media (max-width: 480px) {
    .tab { padding-inline: 14px; }
    .topic-strip,
    .filter-row,
    .garage-tabs { margin-inline: -14px; padding-inline: 14px; }
    .profile-cover { margin-inline: -14px; }
    .section-intro h1 { font-size: 30px; }
    .feed-intro h1 { font-size: 27px; }
    .group-grid { grid-template-columns: 1fr; }
    .group-card { display: grid; grid-template-columns: 136px 1fr; }
    .group-card-main { height: 100%; min-height: 155px; }
    .car-image-wrap { height: 205px; }
    .garage-grid { gap: 9px; }
    .garage-card > img { height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
