:root {
  color-scheme: dark;
  --background: #0e1012;
  --sidebar: #111315;
  --surface: #15181b;
  --raised: #1b1e21;
  --line: #292d31;
  --muted: #a0a3aa;
  --text: #f3f4f6;
  --yellow: #ffd443;
  --yellow-text: #14120b;
  --green: #a1e5ae;
  --sidebar-width: 226px;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Condensed", "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
  font: 14px/1.5 var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; background: var(--background); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
img { display: block; width: 100%; }
svg.icon { width: 19px; height: 19px; flex: none; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px; background: var(--yellow); color: #111; transform: translateY(-150%); }
.skip:focus { transform: none; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 25px 17px 18px; overflow: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 35px 5px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: #111; background: var(--yellow); box-shadow: 0 5px 20px #ffd44316; }
.brand-mark .icon { width: 29px; height: 29px; }
.brand-name { font: 800 22px/.9 var(--display); letter-spacing: .035em; white-space: nowrap; }
.brand-name b { color: var(--yellow); font-weight: inherit; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.nav-group { display: grid; gap: 5px; margin-bottom: 25px; }
.nav-heading { margin: 0 0 6px 11px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.nav-item { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: #b9bbc0; font-weight: 650; font-size: 13px; transition: background .18s, color .18s; }
.nav-item:hover { background: #202327; color: var(--text); }
.nav-item[aria-current="page"] { color: var(--yellow); background: #ffd44313; border-color: #ffd44328; }
.nav-item > .icon:last-child:not(:first-child) { margin-left: auto; width: 13px; height: 13px; opacity: .7; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 15px 4px 2px; }
.sidebar-foot p { color: var(--muted); margin: 0; font-size: 11px; }
.garage-tag { display: flex; gap: 7px; align-items: center; color: #d9dce0; font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.garage-tag::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px #ffd44355; }

.shell { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 clamp(18px, 2.5vw, 38px); border-bottom: 1px solid #25282b; background: #111315; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.breadcrumb .icon { height: 12px; width: 12px; }
.breadcrumb strong { color: var(--text); font-weight: 700; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-actions .icon { width: 16px; height: 16px; }
.language { display: flex; align-items: center; padding-left: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); gap: 5px; color: #d2d3d6; }
.language select { height: 35px; background: transparent; color: inherit; border: 0; padding: 0 7px 0 2px; font-size: 12px; font-weight: 750; cursor: pointer; }
.language option { background: var(--surface); }
.mobile-menu, .mobile-brand { display: none !important; }
.workspace { width: 100%; max-width: 1600px; flex: 1; margin: 0 auto; padding: 27px clamp(18px, 2.5vw, 38px) 38px; outline: none; }
.footer { display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding: 18px clamp(18px, 2.5vw, 38px); color: var(--muted); font-size: 11px; }
.footer a:hover { color: var(--yellow); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--text); font-size: 13px; font-weight: 700; text-align: center; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { background: #262a2e; border-color: #464b50; }
.button:active { transform: translateY(1px); }
.button.primary { color: var(--yellow-text); background: var(--yellow); border-color: var(--yellow); }
.button.primary:hover { background: #ffe179; border-color: #ffe179; }
.button.ghost { background: transparent; }
.button.ghost:hover { background: #242628; }
.button.small { min-height: 37px; padding: 6px 11px; font-size: 12px; }
.button.icon-only { width: 40px; padding-inline: 0; }
.button.danger { color: #ffb1ac; }
.inline-link { color: var(--yellow); border: 0; background: none; padding: 0; font-size: inherit; font-weight: 750; }
.inline-link:hover { text-decoration: underline; }

.hero { display: flex; position: relative; isolation: isolate; align-items: center; min-height: 347px; overflow: hidden; border: 1px solid #323030; border-radius: 15px; background: #0a0a0a; }
.hero-photo { position: absolute; z-index: -2; inset: -12px 0; background: url("/media/garage.webp") right 47% / 81% auto no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #090a0b 1%, #090a0bf2 23%, #090a0b75 45%, #090a0b00 68%), linear-gradient(0deg, #0a0a0bb0, #0a0a0b00 30%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--yellow), #ffd44333 31%, transparent 67%); }
.hero-copy { padding: 35px 36px 36px; max-width: 530px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 17px; height: 2px; border-radius: 1px; background: currentColor; }
.hero h1 { margin: 0; font: 800 clamp(49px, 5.2vw, 82px)/.88 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--yellow); }
.hero p:not(.eyebrow) { margin: 15px 0 22px; max-width: 330px; color: #cdced1; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.hero .button.ghost { border-color: #535458; background: #13141796; }
.hero .button.ghost:hover { background: #26282b; }
.hero-meta { position: absolute; bottom: 16px; right: 19px; font-size: 9px; font-weight: 750; letter-spacing: .13em; color: #e3dfd5; text-transform: uppercase; text-shadow: 0 1px 7px #000; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 20px; margin-top: 29px; align-items: start; }
#marketplace { min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.section-head h2, .section-head h1 { margin: 0; font: 750 37px/.94 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.section-head .eyebrow { margin-bottom: 10px; color: var(--yellow); }
.page-title { margin: 2px 0 22px; }
.page-title h1 { font-size: clamp(37px, 6vw, 58px); }
.filters { display: flex; gap: 8px; margin-bottom: 13px; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); padding-left: 11px; }
.search-field input { flex: 1; width: 100%; min-width: 0; height: 39px; background: transparent; color: var(--text); border: none; padding: 0 9px 0 0; }
.search-field:focus-within { border-color: var(--yellow); }
.search-field input:focus { outline: none; }
.filters select { min-width: 0; max-width: 45%; min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: #d3d5d8; font-size: 12px; }
.filters .button { min-height: 41px; }
.filter-options { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 11px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.filter-options input[type="number"] { width: min(145px, 35vw); }
.chips { display: flex; align-items: center; gap: 6px; margin: 0 0 13px; overflow-x: auto; padding: 2px 3px 4px; scrollbar-width: thin; }
.chip { flex: none; min-height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 4px 10px; color: #c2c4c9; font-size: 11px; font-weight: 700; }
.chip:hover { color: var(--text); border-color: #545a61; }
.chip[aria-pressed="true"] { background: #ffd44315; border-color: #ffd44355; color: var(--yellow); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.listing-card { min-width: 0; display: block; width: 100%; padding: 0; color: var(--text); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; transition: border-color .2s, transform .2s; }
.listing-card:hover { border-color: #ffd44382; transform: translateY(-3px); }
.card-image { aspect-ratio: 1.55; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 55% 70%, #383c40, #212428 55%, #181b1d); }
.card-image img { height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .35s; }
.listing-card:hover img { transform: scale(1.05); }
.card-image > .icon { width: 56px; height: 56px; color: #73797f; stroke-width: 1; }
.card-badge { position: absolute; top: 9px; left: 9px; background: #111416eb; border: 1px solid #ffffff28; border-radius: 5px; color: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; }
.card-content { display: block; padding: 11px 12px 12px; }
.card-content > strong { display: block; font-size: 13px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.card-price { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 4px; margin: 4px 0 7px; }
.card-price b { font: 750 clamp(19px, 2vw, 28px)/1.1 var(--display); color: var(--yellow); white-space: nowrap; }
.price-mode { color: var(--muted); font-size: 10px; font-weight: 650; }
.price-mode.negotiable { color: var(--green); }
.card-foot { border-top: 1px solid var(--line); padding-top: 7px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.card-foot .icon { width: 13px; height: 13px; }
.card-foot .icon:last-child { margin-left: auto; color: #c5c8cb; }
.load-more { display: block; margin: 16px auto 0; }
.rail { display: grid; gap: 12px; }
.rail-panel { padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.rail-title { display: flex; align-items: center; gap: 8px; color: var(--yellow); margin: 0 0 6px; }
.rail-title h2 { color: var(--text); margin: 0; font: 750 25px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.rail-panel p { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.rail-link { display: flex; align-items: center; min-height: 50px; padding: 7px 0; border-top: 1px solid var(--line); gap: 8px; }
.rail-link:hover strong { color: var(--yellow); }
.rail-icon { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 7px; background: #ffd44312; color: var(--yellow); }
.rail-icon .icon { width: 17px; height: 17px; }
.rail-link span:nth-child(2) { display: grid; min-width: 0; }
.rail-link strong { font-size: 11px; }
.rail-link small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.rail-link > .icon { width: 14px; height: 14px; color: var(--muted); margin-left: auto; }
.rail-promo { background: linear-gradient(140deg, #252013, #17191b 65%); border-color: #463b24; }
.rail-promo .button { width: 100%; }
.stats { display: flex; gap: 4px; margin: 0; }
.stats div { flex: 1; display: flex; flex-direction: column; text-align: center; min-width: 0; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.stats dd { order: -1; color: var(--text); font: 750 24px/1.1 var(--display); margin: 0 0 2px; }

.loader, .empty { padding: 27px 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.empty .icon { width: 30px; height: 30px; color: var(--yellow); }
.empty h2 { color: var(--text); font: 750 30px/1 var(--display); margin: 10px 0 8px; }
.empty p { margin: 0 auto 14px; max-width: 360px; }
.post-grid, .ad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.post-card, .ad-card, .panel { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; min-width: 0; }
.post-card { overflow: hidden; }
.post-image { aspect-ratio: 1.55; object-fit: cover; background: var(--raised); }
.post-body, .ad-card, .panel { padding: 16px; }
.post-body h2, .ad-card h2, .panel h2 { margin: 5px 0 8px; font: 750 29px/1 var(--display); overflow-wrap: anywhere; }
.post-body p, .ad-card p, .description { color: #d2d4d8; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-by { color: var(--muted); font-size: 11px; }
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin-top: 13px; color: var(--muted); }
.rating button { display: grid; width: 36px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: #c6c9ce; padding: 0; }
.rating button:hover, .rating button.selected { color: var(--yellow); }
.rating button.selected .icon { fill: var(--yellow); }
.rating small { margin-left: 3px; }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
.ad-card .rail-icon { margin-bottom: 14px; }
.ad-label { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--yellow); font-size: 11px; font-weight: 750; }
.ad-label .rail-icon { margin-bottom: 0; }
.ad-card .button { margin-top: 6px; }
.creator-panel { margin-bottom: 17px; display: flex; gap: 15px; align-items: center; padding: 21px; background: linear-gradient(140deg, #2a2212, var(--surface) 70%); }
.creator-panel p { margin: 5px 0 0; color: var(--muted); }
.creator-panel .rail-icon { width: 42px; height: 42px; }
.creator-panel .rail-icon .icon { width: 24px; height: 24px; }

.chat-layout { display: grid; grid-template-columns: minmax(195px, 270px) minmax(0, 1fr); gap: 13px; align-items: start; }
.chat-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; overflow: hidden; min-width: 0; }
.chat-head { display: flex; gap: 8px; align-items: center; min-height: 53px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 750; }
.chat-head .icon { color: var(--yellow); }
.chat-profile { margin-left: auto; text-align: right; font-size: 12px; }
.chat-stream { height: clamp(240px, 53vh, 590px); overflow: auto; overscroll-behavior: contain; padding: 14px; }
.chat-row { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 13px; gap: 4px; }
.chat-row.mine { align-items: flex-end; }
.chat-meta { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 6px; }
.chat-meta strong { color: #e0e2e5; }
.chat-bubble { border-radius: 3px 9px 9px; background: #25282d; border: 1px solid #35393d; padding: 8px 11px; color: var(--text); max-width: min(89%, 72ch); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mine .chat-bubble { border-radius: 9px 3px 9px 9px; background: #ffd44319; border-color: #ffd44337; }
.chat-form { border-top: 1px solid var(--line); display: flex; align-items: end; padding: 12px; gap: 8px; }
.chat-form textarea { min-height: 43px; flex: 1; width: 0; max-height: 125px; resize: vertical; }
.chat-error { padding: 0 12px 12px; margin: 0; }
.inbox-panel { display: grid; align-content: start; gap: 8px; padding: 12px; max-height: 65vh; overflow: auto; }
.thread-list { display: grid; gap: 5px; }
.thread-button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 41px; border: 1px solid var(--line); background: var(--raised); border-radius: 7px; text-align: left; color: var(--text); padding: 6px 8px; }
.thread-button:hover, .thread-button[aria-current="true"] { border-color: #ffd44365; }
.thread-button > span:last-child { display: grid; min-width: 0; }
.thread-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #ffd44322; color: var(--yellow); font-size: 11px; font-weight: 800; flex: none; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.admin-list { padding: 0; list-style: none; margin: 0; }
.admin-list li { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 6px 0; overflow-wrap: anywhere; }
.admin-list li .button { flex: none; }
.admin-form { max-width: 650px; }
.admin-form .form-grid { grid-template-columns: 1fr 1fr; }
.admin-form .span-all { grid-column: 1 / -1; }
.garage-profile { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; padding: 15px; }
.garage-profile h2 { margin: 0; }
.garage-profile .avatar { width: 43px; height: 43px; font-size: 15px; }
.profile-actions { margin-left: auto; }
.garage-card .post-body { overflow-wrap: anywhere; }
.offer-tabs .chip { display: flex; align-items: center; padding-inline: 15px; min-height: 39px; }
.offer-tabs .chip[aria-current] { background: #ffd44315; border-color: #ffd44355; color: var(--yellow); }
.offers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 13px; }
.offer-head { display: flex; gap: 9px; justify-content: space-between; align-items: flex-start; }
.offer-status { flex: none; border: 1px solid var(--line); background: var(--raised); border-radius: 5px; padding: 3px 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.offer-status.pending { color: var(--yellow); }
.offer-status.accepted { color: var(--green); }
.offer-value { display: flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 750; overflow-wrap: anywhere; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

dialog { width: min(545px, calc(100vw - 28px)); max-height: min(88dvh, 840px); overflow: auto; padding: 0; border: 1px solid #41454a; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px #000a; }
dialog::backdrop { background: #060708c9; backdrop-filter: blur(4px); }
dialog[open] { animation: appear .18s ease-out; }
.dialog-head { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-head h2 { margin: 0; font: 750 34px/1 var(--display); overflow-wrap: anywhere; }
.dialog-body { padding: 16px 18px 20px; }
.dialog-image { border-radius: 9px; max-height: 365px; object-fit: contain; background: #0c0d0e; }
.dialog-image[src^="/media/"] { aspect-ratio: 1.64; object-fit: cover; }
.detail-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 13px 0; }
.detail-price { color: var(--yellow); font: 750 37px/1 var(--display); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.form-grid { display: grid; gap: 12px; }
.form-grid label:not(.check), .field { display: grid; gap: 5px; font-size: 12px; font-weight: 680; }
.form-grid label small, .form-note { font-size: 11px; color: var(--muted); font-weight: 500; }
.form-note { margin: 0; }
.form-grid input:not([type="checkbox"]), .form-grid select, .form-grid textarea, .filter-options input[type="number"], .chat-form textarea {
  width: 100%; background: #101215; border: 1px solid #3a3e43; color: var(--text); border-radius: 7px; padding: 8px 10px; min-height: 41px;
}
.form-grid textarea { resize: vertical; }
.form-grid input[type="file"] { cursor: pointer; padding: 5px; }
::file-selector-button { background: var(--raised); color: var(--text); padding: 5px 8px; margin-right: 8px; border: 1px solid #46494d; border-radius: 4px; cursor: pointer; }
.check { display: flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 650; }
.check input { accent-color: var(--yellow); width: 17px; height: 17px; }
.form-error { color: #ffb3ad; font-size: 12px; }
.form-error:empty { display: none; }
.form-submit { justify-self: start; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.auth-switch { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.toast { position: fixed; z-index: 9; bottom: 14px; right: 14px; max-width: min(380px, calc(100vw - 28px)); padding: 12px 16px; background: #212525; color: var(--text); border: 1px solid #777351; border-radius: 9px; box-shadow: 0 8px 24px #0007; animation: appear .2s ease-out; }
.toast.error { border-color: #b67170; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1200px) {
  :root { --sidebar-width: 200px; }
  .sidebar .brand-name { font-size: 19px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 218px; gap: 13px; }
  .rail-panel { padding: 12px; }
  .hero-photo { background-size: 88% auto; }
}
@media (max-width: 1000px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .hero { min-height: 315px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 232px; }
  .sidebar .brand-name { font-size: 22px; }
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .23s, visibility .23s; }
  .sidebar.open { transform: none; visibility: visible; }
  #nav-scrim { position: fixed; z-index: 4; inset: 0; background: #000b; }
  .shell { margin: 0; }
  .mobile-menu, .mobile-brand { display: inline-flex !important; }
  .mobile-brand { margin: 0; align-items: center; white-space: nowrap; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; }
  .mobile-brand .brand-mark .icon { width: 24px; height: 24px; }
  .mobile-brand .brand-name { font-size: 21px; }
  .breadcrumb { display: none; }
  .topbar { height: 59px; gap: 8px; padding: 0 12px; }
  .top-actions { gap: 6px; }
  .top-actions .top-add { display: none; }
  .workspace { padding: 14px 12px 25px; }
  .hero-copy { padding: 27px 23px; }
  .hero h1 { font-size: clamp(49px, 9vw, 69px); }
  .hero-photo { background-size: cover; background-position: 50% 52%; }
  .hero::before { background: linear-gradient(90deg, #090a0bf7, #090a0bd9 28%, #090a0b32 75%), linear-gradient(0deg, #090a0bb0, #090a0b00 35%); }
  .home-grid { margin-top: 23px; }
  .post-grid, .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 495px) {
  .mobile-brand .brand-mark { display: none; }
  .top-actions .username { display: none; }
  .top-actions .button.small { padding-inline: 8px; }
  .language { padding-left: 6px; }
  .language .icon { width: 14px; height: 14px; }
  .hero { min-height: 345px; align-items: end; }
  .hero-photo { background-position: right 20%; }
  .hero::before { background: linear-gradient(0deg, #0a0a0b 8%, #0a0a0bf0 31%, #0a0a0b28 87%), linear-gradient(90deg, #0a0a0b6b, transparent); }
  .hero-copy { padding: 120px 15px 17px; }
  .hero h1 { font-size: 46px; }
  .hero p:not(.eyebrow) { margin: 10px 0 14px; font-size: 12px; }
  .hero-meta { display: none; }
  .hero .button { font-size: 11px; min-height: 39px; padding-inline: 8px; }
  .hero .button .icon { width: 16px; height: 16px; }
  .section-head h2 { font-size: 34px; }
  .section-head p { font-size: 12px; }
  .filters { gap: 5px; }
  .filters .filter-label { display: none; }
  .filters select { width: 102px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-content { padding: 9px; }
  .card-content > strong { font-size: 12px; }
  .rail { grid-template-columns: 1fr; }
  .post-grid, .ad-grid, .chat-layout, .admin-grid, .offers-grid { grid-template-columns: minmax(0, 1fr); }
  .inbox-panel { max-height: 30vh; }
  .footer { flex-wrap: wrap; }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-photo {
      animation: garage-parallax linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 420px;
    }
    .listing-card .card-image, .garage-card .card-image {
      animation: garage-card-depth ease-out both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 30%;
      transform-origin: center bottom;
    }
  }
}
@keyframes garage-parallax {
  from { transform: none; }
  to { transform: translateY(24px) scale(1.08); }
}
@keyframes garage-card-depth {
  from { opacity: .72; transform: perspective(700px) rotateX(9deg) scale(.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:root[data-paint="cyan"] { --yellow: #7de0ef; --yellow-text: #09202a; }
:root[data-paint="violet"] { --yellow: #d7b1ff; --yellow-text: #21112f; }
.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 11px 15px; }
.live-metrics { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.live-metrics div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; padding: 0 7px; }
.live-metrics div + div { border-left: 1px solid var(--line); }
.live-metrics dt { color: var(--muted); font-size: 11px; line-height: 1.3; font-weight: 650; }
.live-metrics dd { order: -1; font: 750 28px/1 var(--display); margin: 0; }
.live-metrics .is-online dd { color: var(--green); }
.is-online dd::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 100%; background: currentColor; margin-right: 6px; vertical-align: middle; }
.live-note { margin: 0; white-space: nowrap; color: var(--muted); font-size: 11px; }
.home-grid { margin-top: 23px; }
.market-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 10px; }
.market-actions label { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.market-actions select, .filter-options select, .offer-controls select { color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 7px; padding: 6px; min-height: 34px; }
.filter-options label.field { align-self: center; }
.listing-tools { border-top: 1px solid var(--line); padding-top: 12px; }
.nav-count { margin-left: auto; color: var(--yellow-text); background: var(--yellow); border-radius: 6px; min-width: 19px; min-height: 18px; padding: 1px 4px; text-align: center; font-size: 10px; font-weight: 800; }
.offer-metrics { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 7px; margin-bottom: 15px; }
.offer-controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 12px; }
.offer-controls .chips { margin: 0; }
.offer-status.completed { color: var(--green); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-bio { width: 100%; margin: 0; }
.garage-profile { border-left: 3px solid var(--profile-color, var(--yellow)); }
.profile-cyan { --profile-color: #7de0ef; }
.profile-violet { --profile-color: #d7b1ff; }
.profile-amber { --profile-color: #ffd443; }
.featured-car { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 7px 12px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.featured-car img { width: 70px; height: 49px; object-fit: cover; border-radius: 5px; }
.featured-car .icon { color: var(--profile-color); width: 34px; height: 34px; }
.featured-car small { display: block; color: var(--muted); }
.featured-car strong { display: block; overflow-wrap: anywhere; }
.garage-filters { max-width: 580px; }
.extra-tabs .chip { display: grid; place-items: center; min-height: 37px; }
.extra-tabs .chip[aria-current] { border-color: var(--yellow); color: var(--yellow); }
.extra-search { width: min(440px, 100%); margin: 0 0 12px; }
.extra-paging { display: flex; gap: 7px; justify-content: center; margin: 15px 0 0; }
.player-heading { display: flex; align-items: center; gap: 8px; }
.player-heading h2 { margin: 0; }
.player-heading a:hover { color: var(--yellow); }
.compare-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.compare-table table { width: 100%; border-collapse: collapse; background: var(--surface); }
.compare-table th, .compare-table td { min-width: 130px; text-align: left; padding: 10px 11px; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--raised); }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table th:first-child { min-width: 110px; }
.draw-card { border-top-color: var(--yellow); }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.tools-grid h2 { margin-bottom: 15px; }
.tools-grid output { padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.tools-grid output strong { color: var(--yellow); }
.wheel-wrap { position: relative; display: grid; place-items: center; gap: 15px; padding-top: 8px; }
.wheel-face { width: min(230px, 72vw); aspect-ratio: 1; border: 7px solid #393a40; border-radius: 100%; display: grid; place-items: center;
  background: repeating-conic-gradient(#ffd443 0deg 40deg, #1f242a 40deg 80deg, #f28b38 80deg 120deg);
  animation: wheel-spin 2.5s cubic-bezier(.15,.64,.16,1) both; }
.wheel-face .icon { width: 54px; height: 54px; color: white; border: 4px solid #353a3f; background: #15181b; border-radius: 100%; padding: 10px; }
.wheel-pointer { position: absolute; z-index: 1; top: 1px; width: 19px; height: 28px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.wheel-result { color: var(--text); font-size: 16px; text-align: center; margin: 0; animation: appear .2s ease 2.5s both; }
.wheel-result strong { color: var(--yellow); }
.scroll-meter { position: fixed; inset: 0 0 auto; z-index: 8; appearance: none; border: 0; width: 100%; height: 3px; background: transparent; pointer-events: none; }
.scroll-meter::-webkit-progress-bar { background: transparent; }
.scroll-meter::-webkit-progress-value { background: var(--yellow); }
.scroll-meter::-moz-progress-bar { background: var(--yellow); }
.back-top { position: fixed; bottom: 14px; left: calc(var(--sidebar-width) + 16px); z-index: 3; }
.back-top .icon { transform: rotate(-90deg); }
.workspace > .page-title { animation: route-enter .25s ease-out both; }
.compact-ui .nav-item { min-height: 36px; }
.compact-ui .nav-group { margin-bottom: 13px; }
.compact-ui .card-image { aspect-ratio: 2; }
.compact-ui .workspace { padding-top: 15px; }
.compact-ui .panel { padding: 11px; }
.quiet-motion *, .quiet-motion *::before, .quiet-motion *::after {
  scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important;
}
@keyframes route-enter { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes wheel-spin { from { transform: rotate(0deg); } to { transform: rotate(1732deg); } }
@media (max-width: 980px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .back-top { left: 12px; } }
@media (max-width: 495px) {
  .live-strip { gap: 6px; padding: 10px 7px; }
  .live-metrics { gap: 2px; }
  .live-metrics div { padding: 0 5px; flex-direction: column; }
  .live-metrics dt { font-size: 10px; }
  .live-metrics dd { font-size: 23px; }
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-actions { width: 100%; margin-left: 0; }
  .market-actions .button { min-height: 35px; }
}
@media (prefers-reduced-motion: reduce) { .wheel-result { animation-delay: 0ms !important; } }

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; }
.footer-links .inline-link { color: var(--muted); }
.footer-links .inline-link:hover { color: var(--yellow); }
.privacy-banner {
  position: fixed; z-index: 9; inset: auto 18px 18px auto; width: min(520px, calc(100vw - 36px));
  padding: 16px; border: 1px solid #52504b; border-radius: 12px; background: #1b1e21;
  color: var(--text); box-shadow: 0 12px 34px #0009;
}
.privacy-banner h2 { font: 750 25px/1 var(--display); margin: 0 0 7px; }
.privacy-banner p { margin: 0 0 9px; color: #d2d4d8; font-size: 13px; }
.privacy-banner .inline-link { display: inline-block; margin-right: 12px; font-size: 12px; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.privacy-banner .privacy-actions > .button { flex: 1; border-color: #505458; }
.privacy-panel .privacy-actions { margin-bottom: 12px; }
.privacy-panel .privacy-actions > .button { flex: 1; border-color: #505458; }
.privacy-clear { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.privacy-clear p { margin: 0 0 8px; }
.privacy-clear p:last-child { margin-top: 8px; }
.privacy-feedback { position: fixed; z-index: 9; bottom: 15px; right: 15px; margin: 0; max-width: calc(100% - 30px);
  border: 1px solid #55565a; border-radius: 8px; background: #212427; padding: 10px 14px; color: var(--text); }
.toast, .privacy-feedback { pointer-events: none; }
.privacy-topbar { display: flex; align-items: center; justify-content: space-between; padding: 13px max(16px, calc((100% - 940px) / 2));
  gap: 10px; min-height: 64px; background: var(--sidebar); border-bottom: 1px solid var(--line); }
.privacy-topbar nav { display: flex; gap: 5px; }
.privacy-topbar nav a { padding: 5px 8px; border-radius: 5px; color: var(--muted); }
.privacy-topbar nav a[aria-current] { background: var(--raised); color: var(--yellow); }
.privacy-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 23px/1 var(--display); white-space: nowrap; }
.privacy-brand img { width: 34px; height: 34px; }
.privacy-document { margin: 0 auto; width: min(940px, calc(100% - 32px)); padding: 28px 0 70px; }
.privacy-hero { border: 1px solid var(--line); border-radius: 13px; padding: 24px; margin-bottom: 13px;
  background: linear-gradient(115deg, #222019 0%, var(--surface) 66%); }
.privacy-hero h1 { font: 800 clamp(36px, 7vw, 58px)/.95 var(--display); margin: 0 0 11px; }
.privacy-hero p:not(.eyebrow) { color: #d6d7da; margin: 0 0 7px; }
.privacy-hero small { color: var(--muted); }
.privacy-section { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 19px 21px; margin-bottom: 12px; }
.privacy-section h2 { margin: 0 0 9px; font: 750 29px/1 var(--display); }
.privacy-section p, .privacy-section li, .privacy-types dd { color: #d4d6da; line-height: 1.65; overflow-wrap: anywhere; }
.privacy-section li + li { margin-top: 7px; }
.privacy-types dt { font-weight: 750; margin: 12px 0 3px; }
.privacy-types dd { margin: 0; }
.policy-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.policy-table table { width: 100%; border-collapse: collapse; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.policy-table th { background: var(--raised); }
.policy-table tbody tr:last-child > * { border-bottom: 0; }
.privacy-footer { margin: 14px 0 0; }
@media (max-width: 520px) {
  .privacy-banner { inset: auto 8px 8px; width: auto; padding: 12px; }
  .privacy-section, .privacy-hero { padding: 14px; }
  .policy-table table { min-width: 475px; }
}
