:root{--bg:#101112;--panel:#171819;--panel2:#1d1e20;--line:#2b2d2f;--ink:#f4f3f0;--muted:#a3a3a5;--dim:#85878b;--accent:#ff6b36;--race:#fa784b;--show:#b599ff;--meet:#62d8b2;--swap:#f4c76a;--header:70px;--side:214px;color-scheme:dark;font-family:Inter,Arial,sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{cursor:default;opacity:.45}button svg,span[data-icon] svg{width:17px;height:17px;display:block;flex:none}button{border:0;background:none}h1,h2,h3,p{margin:0}img{max-width:100%;display:block}a{color:var(--accent)}.topbar{position:sticky;top:0;z-index:10;height:var(--header);display:flex;border-bottom:1px solid var(--line);background:var(--chrome)}.brand{height:100%;width:var(--side);flex:none;display:flex;gap:8px;align-items:center;padding:0 16px;border-right:1px solid var(--line);text-align:left}.brand-mark,.tiny-mark{width:31px;height:31px;flex:none;display:inline-block;background:var(--accent);clip-path:polygon(58% 1%,100% 98%,73% 98%,58% 60%,44% 83%,58% 83%,65% 98%,0 98%)}.brand b{display:block;font-family:'Barlow Condensed',Impact,sans-serif;font-style:italic;font-size:28px;font-weight:800;line-height:1;white-space:nowrap}.top-content{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding:0 33px}.search{min-width:0;height:38px;width:min(100%,390px);display:flex;align-items:center;gap:10px;padding:0 11px;background:var(--panel2);border:1px solid #2b2c2e;border-radius:6px;color:var(--dim)}.search input{min-width:0;background:none;border:0;color:var(--ink);outline:none;width:100%;font-size:12px}.search input:focus-visible{outline:none}.search:focus-within{border-color:var(--accent)}kbd{width:20px;height:20px;text-align:center;line-height:18px;color:#9d9da2;border:1px solid #36383b;border-radius:4px;font:12px/18px Inter,Arial,sans-serif}.top-actions,.location{display:flex;align-items:center;gap:16px}.location{gap:8px;color:#c3c3c6;white-space:nowrap;font-size:12px}.location [data-icon=pin]{color:var(--accent)}.location [data-icon=chevron] svg{width:12px}.vertical{height:24px;background:var(--line);width:1px}.icon-button{position:relative;display:grid;place-items:center;padding:6px;color:#b6b7ba;border-radius:5px}.icon-button:hover,.subtle:hover{color:#fff}.notify i{position:absolute;top:5px;right:5px;background:var(--accent);width:6px;height:6px;border-radius:50%;box-shadow:0 0 0 2px var(--chrome)}.avatar{display:grid;place-items:center;flex:none;border-radius:50%;width:35px;height:35px;background:#363136;color:#f9d0b4;font-size:11px;font-weight:800;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.user{background:var(--accent-muted);color:var(--accent-text);border:1px solid var(--accent-border);width:33px;height:33px}
.sidebar{position:fixed;top:var(--header);bottom:0;left:0;width:var(--side);background:var(--chrome);border-right:1px solid var(--line);padding:25px 13px 16px;display:flex;flex-direction:column;justify-content:space-between}.sidebar nav{display:grid;gap:4px}.nav-label{font-size:10px;font-weight:750;color:var(--dim);letter-spacing:1.4px;padding:5px 12px 9px}.garage-label{margin-top:24px}.sidebar nav button{color:#aaaeb1;display:flex;align-items:center;gap:11px;text-align:left;padding:12px 11px;border-radius:6px;font-size:13px;font-weight:600;position:relative}.sidebar nav button:hover{background:var(--panel2);color:#fff}.sidebar nav button.active{background:var(--accent-muted);color:var(--accent-text)}.sidebar nav button.active::before{content:'';height:22px;width:2px;background:var(--accent);position:absolute;left:0;border-radius:2px}.side-footer{display:flex;align-items:center;gap:7px;border-top:1px solid var(--line);padding:13px 4px 0;color:var(--dim);font-size:8px;font-weight:750;letter-spacing:1px}.tiny-mark{width:11px;height:11px;background:#76797c}.edition{margin-left:auto}
main{margin-left:var(--side);padding:29px 33px 45px;max-width:calc(var(--side) + 1390px)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{color:var(--accent);display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1.8px;font-weight:800;margin-bottom:5px}.eyebrow::before{content:'';width:13px;height:2px;background:var(--accent);transform:skew(-28deg)}h1{font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;font-size:clamp(46px,5vw,68px);font-style:italic;line-height:.95;font-weight:800;letter-spacing:.4px;text-transform:uppercase}.page-head p{color:var(--muted);margin-top:10px;font-size:13px;line-height:1.5}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:5px;font-weight:750;font-size:12px;min-height:36px;padding:8px 13px;white-space:nowrap}.primary{background:var(--accent);color:#17100d}.primary:hover{background:var(--accent-text)}.secondary{background:#1f2022;border:1px solid #36383b;color:#e5e5e5}.secondary:hover{border-color:#999}.page-head .primary{min-height:39px;margin-bottom:1px;padding-inline:15px}
.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(292px,355px);gap:22px}.feed-column,.rail{min-width:0;display:grid;align-content:start;gap:15px}.feed-tools{border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.tabs{display:flex;gap:20px;padding:0 15px;border-bottom:1px solid var(--line)}.tabs button{position:relative;padding:13px 0 12px;color:var(--muted);font-weight:650;font-size:12px;white-space:nowrap}.tabs button.active{color:var(--accent)}.tabs button.active::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--accent)}.interests-row,.filters{display:flex;gap:7px;flex-wrap:wrap;padding:10px 13px}.chip{white-space:nowrap;border:1px solid #353638;border-radius:5px;background:var(--panel2);color:#c6c6c8;padding:5px 8px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:5px;min-height:25px}.chip:hover{border-color:#909294}.chip.active{border-color:var(--accent-border);background:var(--accent-muted);color:var(--accent-text)}.chip.edit{margin-left:auto;background:transparent;color:var(--muted)}.chip svg{width:12px!important;height:12px!important}
.card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;overflow:hidden}.post-head{display:flex;align-items:center;gap:10px;padding:12px 14px}.post-author{font-size:12px;font-weight:750}.meta,.post-meta{color:var(--dim);font-size:11px;line-height:1.5}.post-meta{margin-top:2px}.post-head .icon-button{margin-left:auto}.post-photo{display:block;padding:0;width:100%;position:relative;background:#242629;text-align:left;overflow:hidden}.post-photo img{width:100%;aspect-ratio:1.86;object-fit:cover}.post-photo:hover img{filter:brightness(1.08)}.photo-label,.photo-count{position:absolute;left:12px;top:12px;display:flex;align-items:center;gap:5px;background:#161616e8;border:1px solid #ffffff24;border-radius:4px;padding:5px 7px;color:#f5f0ec;font-weight:750;font-size:9px;letter-spacing:.7px}.photo-label [data-icon]{color:var(--accent)}.photo-label svg,.photo-count svg{width:12px!important;height:12px!important}.photo-count{left:auto;right:12px;top:auto;bottom:11px;font-weight:600}.post-body{padding:12px 14px}.post-body h2{font-size:19px;font-weight:800;letter-spacing:-.5px}.post-body p{margin-top:6px;font-size:12px;line-height:1.6;color:#b5b5b8}.post-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.tag{color:#a6a7a9;font-size:10px;font-weight:650;padding:3px 6px;border-radius:3px;background:#242527}.post-actions{border-top:1px solid var(--line);display:flex;gap:16px;padding:8px 13px}.post-actions button{display:flex;align-items:center;gap:6px;padding:4px 1px;font-size:11px;color:var(--muted)}.post-actions button:last-child{margin-left:auto}.post-actions .selected,.selected{color:var(--accent)!important}.selected svg{fill:var(--accent-fill)}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 13px 12px}.panel-title{display:flex;align-items:center;gap:8px;font-weight:750;font-size:14px;letter-spacing:-.2px}.panel-title span{color:var(--accent)}.text-button{font-size:11px;color:var(--accent-text);font-weight:700;white-space:nowrap;padding:3px 0;display:inline-flex;align-items:center;gap:4px}.text-button svg{width:12px!important;height:12px!important}.text-button:hover{text-decoration:underline}.map{position:relative;overflow:hidden;isolation:isolate;background:#1a2227;aspect-ratio:1.85}.map-stage{width:100%;height:100%;position:relative;transform-origin:center;transition:transform .2s}.map-stage svg{display:block;width:100%;height:100%}.pin-marker{position:absolute;transform:translate(-50%,-50%);background:var(--color);border-radius:50%;width:23px;height:23px;display:grid;place-items:center;color:#1c1512;border:2px solid #171a1c;box-shadow:0 1px 7px #000a;padding:0}.pin-marker:hover,.pin-marker:focus-visible{z-index:2;scale:1.16}.pin-marker svg{width:11px!important;height:11px!important}.map-tools{position:absolute;top:8px;right:8px;display:grid;gap:2px}.map-tools button{background:#181a1cea;border:1px solid #3d4144;border-radius:4px;width:24px;height:23px;line-height:18px;font-size:16px;padding:0}.map-credit{position:absolute;bottom:2px;right:5px;color:#bbb;background:#161719b0;padding:1px 3px;font-size:8px}.legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;padding:9px 12px;border-bottom:1px solid var(--line);font-size:9px;color:#bcbec0}.legend-item{padding:2px 0;display:flex;align-items:center;gap:4px}.legend-item.inactive{opacity:.45}.dot{width:7px;height:7px;border-radius:50%;background:var(--color);display:inline-block;flex:none}.event-row,.activity-row,.listing-row{width:100%;display:flex;align-items:center;text-align:left;gap:9px;padding:9px 12px;border-bottom:1px solid var(--line)}.panel button:last-child.event-row,.panel button:last-child.activity-row,.panel button:last-child.listing-row{border-bottom:0}.event-row:hover,.activity-row:hover,.listing-row:hover{background:#222325}.event-row strong,.activity-row strong,.listing-row strong{font-size:11px;line-height:1.45;display:block}.event-type,.activity-type{display:grid;place-items:center;color:var(--color);background:color-mix(in srgb,var(--color) 13%,#171819);border-radius:5px;width:29px;height:29px;flex:none}.event-type svg,.activity-type svg{width:14px!important;height:14px!important}.event-row .meta,.activity-row .meta{font-size:10px}.distance,.price{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap}.price{color:var(--ink);font-weight:750;font-size:12px}.listing-row img,.listing-thumb{width:47px;height:34px;object-fit:cover;border-radius:4px;background:#292b2d;flex:none}.listing-thumb{display:grid;place-items:center;color:var(--muted)}
.section-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:16px;align-items:start}.section-grid .map{min-height:280px}.section-grid .event-row,.section-grid .listing-row{padding:13px}.section-grid .event-row strong,.section-grid .listing-row strong{font-size:13px}.section-grid .legend{justify-content:start;gap:15px}.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px}.market-card{text-align:left;padding:0;cursor:pointer}.market-card:hover{border-color:#735244}.market-card img,.market-card .listing-thumb{height:150px;width:100%;object-fit:cover;border-radius:0}.market-card div.card-copy{padding:13px}.market-card h2{font-size:15px;margin:4px 0}.market-card .price{font-size:16px}.page-filters{margin-bottom:15px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:7px}.page-filters .spacer{flex:1}.activity-list{max-width:850px}.activity-list .activity-row{padding:14px}.activity-list .activity-row strong{font-size:13px}.empty{font-size:13px;color:var(--muted);padding:24px;border:1px dashed var(--line);border-radius:7px}.group{display:grid;gap:12px;margin-bottom:21px}.group h2{font-size:16px}.group .card{max-width:770px}
dialog{color:var(--ink);background:var(--panel);border:1px solid #46464a;border-radius:9px;width:min(calc(100% - 28px),560px);max-height:calc(100dvh - 50px);padding:0;box-shadow:0 18px 60px #000a}dialog.wide{width:min(calc(100% - 28px),830px)}dialog::backdrop{background:#000a}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 17px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);z-index:2}.dialog-head h2{font-size:18px}.dialog-copy{padding:16px;display:grid;gap:13px}.dialog-copy p{color:#bababe;line-height:1.55}.dialog-copy form{display:grid;gap:11px}.dialog-copy label{font-size:12px;color:#ccc;display:grid;gap:5px;font-weight:600}.dialog-copy input,.dialog-copy select,.dialog-copy textarea,.sort{width:100%;background:#212224;border:1px solid #3b3d40;border-radius:5px;padding:8px 9px;color:var(--ink)}.sort{width:auto;font-size:11px}.dialog-copy textarea{min-height:80px;resize:vertical}.dialog-copy .filters{padding:0}.dialog-copy .primary{justify-self:start}.dialog-img{width:100%;max-height:60vh;object-fit:contain;background:#101112}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}.history{width:100%;border-collapse:collapse;font-size:12px}.history td,.history th{text-align:left;padding:8px 4px;border-bottom:1px solid var(--line)}.history th{color:var(--muted)}.toast{display:none;position:fixed;bottom:17px;right:17px;z-index:30;padding:11px 15px;background:var(--accent-muted);border:1px solid var(--accent-border);border-radius:7px;font-size:12px;color:var(--ink);pointer-events:none}.toast.show{display:block}
@media (min-width:1510px){.columns{grid-template-columns:minmax(0,1fr) minmax(320px,390px)}}
@media(max-width:1120px){:root{--side:182px}.top-content,main{padding-left:22px;padding-right:22px}.columns{gap:14px;grid-template-columns:minmax(0,1fr) minmax(270px,306px)}}
@media(max-width:880px){:root{--side:63px}.brand{width:auto;padding:0 12px}.brand b{font-size:24px}.brand-mark{width:24px;height:24px}.nav-label,.side-footer{display:none}.sidebar{padding:12px 7px;justify-content:start}.sidebar nav button{font-size:0;justify-content:center;padding:13px 0;gap:0}.sidebar nav button[data-page=saved]{margin-top:12px}.sidebar nav button svg{width:19px;height:19px}}
@media(max-width:690px){:root{--header:55px;--side:0px}.brand{padding:0 9px;gap:5px}.brand-mark{width:19px;height:19px}.brand b{font-size:21px}.top-content{padding:0 10px;gap:8px}.top-actions{gap:5px}.top-actions .vertical,.location span:not([data-icon=pin]),.top-actions .notify,kbd{display:none}.location{padding-inline:3px}.search{height:34px;gap:5px;padding-inline:7px}.search input{font-size:11px}.sidebar{top:auto;bottom:0;width:100%;border:0;border-top:1px solid var(--line);padding:3px 6px max(4px,env(safe-area-inset-bottom));z-index:9}.sidebar nav{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:column;gap:2px}.sidebar nav button{min-height:47px;flex-direction:column;gap:3px;padding:4px 0;font-size:9px}.sidebar nav button.active::before,.sidebar nav button[data-action=interests]{display:none}.sidebar nav button[data-page=saved]{margin:0}main{padding:21px 12px 75px}.page-head{margin-bottom:16px}.page-head p{font-size:12px}.page-head .primary{padding-inline:9px;min-height:35px}.columns,.section-grid{grid-template-columns:1fr}.rail{margin-top:3px}.post-photo img{aspect-ratio:1.57}.tabs{gap:16px}.interests-row{padding:9px}.section-grid .map{min-height:220px}.market-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px}.market-card img,.market-card .listing-thumb{height:110px}.toast{bottom:65px}}
@media(max-width:360px){.brand-mark{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.page-load-state { max-width: 720px; min-height: 132px; padding: 20px; }
.page-load-state p { color: var(--muted); font-size: 14px; }
.page-load-state button { margin-top: 12px; }
.email-confirmation { max-width: 480px; margin: min(12dvh,96px) auto 0; padding: 16px; }
.email-confirmation p { margin: 12px 0 18px; color: var(--muted); }
.email-confirmation .secondary { display: inline-flex; text-decoration: none; }
.email-confirmation .primary:not([hidden]) { margin-right: 8px; }
.email-confirmation button[hidden] { display: none; }
.page-loading-lines { display: grid; gap: 9px; margin-top: 18px; }
.page-loading-lines span { display: block; width: 65%; height: 10px; background: var(--panel2); border-radius: 4px; }
.page-loading-lines span + span { width: 38%; }

.gallery-stage {
  position: relative;
  overflow: hidden;
  background: #101112;
  user-select: none;
}
.carousel-track {
  display: flex;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel.swipe-enabled, .swipe-enabled .carousel-track { touch-action: pan-y pinch-zoom; }
.carousel-track:is(.is-dragging,.is-settling) { scroll-snap-type: none; }
.carousel-track.is-dragging { cursor: grabbing; }
.carousel-track > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.post-photo .carousel-track { align-items: flex-start; }
.post-photo .carousel-track > :not(.is-current) { contain: size; }
.post-slide { display: block; width: 100%; padding: 0; user-select: none; }
.post-slide:focus-visible { outline-offset: -3px; }
.post-slide img { height: auto; max-height: 75vh; aspect-ratio: auto 1.86; object-fit: contain; pointer-events: none; }
.listing-gallery-image { width: 100%; text-align: left; }
.card:has(> .photo-grid) { border-inline: 0; }
.photo-grid-row {
  display: flex;
  width: 100%;
  aspect-ratio: var(--row-aspect);
  max-height: 75vh;
}
.photo-grid button {
  flex: var(--tile-aspect,1) 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #101112;
}
.photo-grid .grid-video { --tile-aspect: 1.7777778; }
.photo-grid button:focus-visible { outline-offset: -3px; }
.photo-grid img, .photo-grid .video-preview { width: 100%; height: 100%; }
.photo-grid .grid-photo img { object-fit: contain; }
.gallery-back {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: max(12px,env(safe-area-inset-left));
}
.event-photos, .event-photo-posts { display: grid; gap: 12px; }
.event-photos { border-top: 1px solid var(--line); padding-top: 16px; }
.event-photo-filters, .moderation-filters, .moderation-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.moderation-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.moderation-row p { margin-top: 6px; overflow-wrap: anywhere; }
.moderation-search { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.post-actions { flex-wrap: wrap; align-items: center; gap: 12px; }
.post-reactions[open] { flex-basis: 100%; }
.reaction-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.reaction-trigger::-webkit-details-marker { display: none; }
.reaction-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reaction-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.post-reactions .reaction-options button {
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
  font-size: 18px;
  line-height: 1;
}
.post-reactions .reaction-options button:hover { border-color: var(--muted); }
.post-reactions .reaction-options button[aria-pressed=true] { border-color: var(--accent); background: var(--accent-muted); }
.reaction-options small { font-size: 10px; }
.post-actions .post-action-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.post-actions .post-action-link:hover, .post-body h2 a:hover { text-decoration: underline; }
.post-body[data-post-permalink] { cursor: pointer; }
.post-page { max-width: 860px; }
.listing-page { width: min(100%,860px); }
.listing-back { display: inline-flex; margin: 0 14px 10px; }
.listing-price { font-size: 25px; color: var(--accent-text); }
.listing-seller { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 0; color: var(--muted); font-size: 12px; text-align: left; }
.listing-seller .avatar { width: 24px; height: 24px; font-size: 9px; }
.listing-seller .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
button.listing-seller:hover { color: var(--accent-text); }
.listing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.listing-page .listing-gallery-image img { display: block; max-height: 74vh; }
.listing-page .listing-discussion { margin-top: 16px; scroll-margin-top: calc(var(--header) + 12px); }
.listing-discussion .post-actions { padding: 0 0 8px; border-top: 0; }
.listing-discussion .thread-comment { padding: 8px 0; }
.chat-page {
  display: grid;
  grid-template-columns: minmax(195px, 290px) minmax(0, 1fr);
  height: calc(100dvh - var(--header) - 48px);
  min-height: 420px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 14px;
}
.chat-sidebar { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.chat-sidebar header, .chat-thread-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-sidebar h1, .chat-thread-head h2 { font: 700 20px/1.2 Inter,Arial,sans-serif; }
.chat-roster { display: grid; padding: 5px 8px; }
.chat-contact, .chat-person {
  display: flex; align-items: center; gap: 9px; text-align: left;
  min-width: 0; padding: 9px; border-radius: 6px; white-space: normal; overflow-wrap: anywhere;
}
.chat-contact:hover, .chat-person:hover { background: var(--panel2); }
.chat-contact[aria-current] { background: var(--accent-muted); }
.chat-contact small { display: block; margin-top: 3px; color: var(--muted); }
.chat-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; flex: none; }
.nav-inbox-count {
  margin-left: auto; min-width: 18px; padding: 0 4px; border-radius: 10px;
  background: var(--accent); color: #17100d; text-align: center; font-size: 10px; font-weight: 800; line-height: 17px;
}
@media(max-width:880px) {
  .nav-inbox-count { position: absolute; left: calc(50% + 2px); top: 3px; margin: 0; }
}
.chat-people { padding: 12px; border-top: 1px solid var(--line); }
.chat-people label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.chat-people input, .chat-compose textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px; background: var(--panel2); color: var(--ink);
}
.chat-people-results { display: grid; margin-top: 5px; }
.chat-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-thread-head .text-button { display: block; margin-top: 5px; }
.chat-empty { display: grid; place-items: center; height: 100%; }
.chat-back { display: none; }
.chat-history { flex: 1; min-height: 0; overflow: auto; padding: 14px; overscroll-behavior-y: contain; }
.chat-message { margin: 0 0 10px; display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
.chat-mine { align-items: flex-end; }
.chat-message time { font-size: 10px; color: var(--muted); }
.chat-bubble { max-width: min(85%,520px); padding: 8px 11px; border-radius: 11px; background: var(--panel2); overflow-wrap: anywhere; }
.chat-mine .chat-bubble { background: var(--accent-muted); }
.chat-bubble p { white-space: pre-wrap; line-height: 1.45; }
.chat-bubble img, .chat-bubble video { display: block; max-height: 320px; max-width: 100%; border-radius: 6px; }
.chat-bubble img:not([src]) { width: 100px; min-height: 60px; }
.chat-compose { padding: 12px; border-top: 1px solid var(--line); }
.chat-compose[hidden] { display: none; }
.chat-compose textarea { display: block; min-height: 48px; max-height: 120px; resize: vertical; font-size: 16px; }
.chat-tools { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 8px; }
.chat-tools .primary { margin-left: auto; }
.chat-file { position: relative; cursor: pointer; }
.chat-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.chat-file-name { color: var(--muted); font-size: 11px; max-width: 100%; overflow-wrap: anywhere; }
.chat-tools [hidden] { display: none; }
.chat-emoji { position: relative; }
.chat-emoji summary { cursor: pointer; list-style: none; }
.chat-emoji summary::-webkit-details-marker { display: none; }
.chat-emoji > div { position: absolute; bottom: calc(100% + 5px); left: 0; z-index: 2; display: grid; grid-template-columns: repeat(4,36px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.chat-emoji button { font-size: 20px; height: 36px; }
.chat-emoji button:hover { background: var(--panel2); }
@media(max-width:690px) {
  .chat-page { grid-template-columns: minmax(0,1fr); height: calc(100dvh - var(--header) - 58px); min-height: 0; }
  .chat-page .chat-panel, .chat-page.chat-selected .chat-sidebar { display: none; }
  .chat-page.chat-selected .chat-panel { display: flex; }
  .chat-back { display: block; align-self: flex-start; margin: 8px 12px 0; }
}
.post-page .post-comments { margin-top: 16px; scroll-margin-top: calc(var(--header) + 12px); }
.post-comments > h2 { padding: 14px 16px 2px; font-size: 17px; }
.post-comments .thread-composer { position: static; }
.member-notice { padding: 12px; border: 1px solid var(--accent-border); border-radius: 8px; margin: 12px 0; }
.moderation-filters [aria-pressed=true], .event-photo-filters [aria-pressed=true] { border-color: var(--accent); }
.post-photo .photo-label, .post-photo .photo-count { pointer-events: none; }
.post-photo .gallery-arrow { z-index: 1; }
.gallery-expand {
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff44;
  border-radius: 6px;
  background: #151617df;
  color: #fff;
}
.gallery-expand:hover { background: #25272a; }
.gallery-track { height: 100%; }
.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  place-items: center;
}
.gallery-slide img, .gallery-slide video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.gallery-slide img {
  pointer-events: none;
}
.gallery-photo-viewport { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; touch-action: none; }
.gallery-photo-viewport.is-zoomed { cursor: grab; }
.gallery-photo-viewport.is-zoomed:active { cursor: grabbing; }
.gallery-stage.is-photo-zoomed .gallery-track { overflow-x: hidden; }
.gallery-video-error { position: absolute; top: 16px; color: var(--muted); }
html:has(dialog.gallery-dialog[open]) { overflow: hidden; }
dialog.gallery-dialog[open] {
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #101112;
  display: grid;
  grid-template-rows: minmax(0,1fr);
  overflow: hidden;
}
.gallery-dialog .dialog-head {
  position: absolute;
  z-index: 3;
  inset: max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) auto auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.gallery-dialog .dialog-head h2 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery-dialog .dialog-head .icon-button, .gallery-zoom button {
  min-width: 44px;
  min-height: 44px;
  color: #fff;
}
.gallery-dialog .dialog-head .icon-button { background: #151617df; border-radius: 50%; }
.gallery-dialog .gallery-slide { min-height: 0; }
.gallery-dialog .gallery-arrow { z-index: 2; }
.gallery-dialog .gallery-arrow.previous { left: max(6px,env(safe-area-inset-left)); }
.gallery-dialog .gallery-arrow.next { right: max(6px,env(safe-area-inset-right)); }
.gallery-zoom {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(6px,env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  align-items: center;
  border-radius: 24px;
  background: #151617df;
}
.gallery-zoom[hidden] { display: none; }
.gallery-zoom button { padding: 4px 10px; border-radius: 22px; }
.gallery-zoom button:not(:disabled):hover { background: #333438; }
.gallery-zoom button[data-zoom=in], .gallery-zoom button[data-zoom=out] { font-size: 20px; }
.youtube-slide {
  display: grid;
  align-content: start;
  width: 100%;
  background: var(--panel2);
}
.gallery-dialog .youtube-slide {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0,1fr) auto;
  background: transparent;
  padding: 31px 52px 10px;
}
.youtube-player {
  position: relative;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16/9;
}
.gallery-dialog .youtube-player { min-height: 0; aspect-ratio: auto; }
.youtube-play { position: absolute; inset: 0; width: 100%; padding: 0; }
.youtube-play:focus-visible { outline-offset: -3px; z-index: 1; }
.youtube-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.youtube-watch-link { justify-self: center; padding: 5px 10px; font-size: 11px; line-height: 1.5; }
.youtube-watch-link:hover { text-decoration: underline; }
.dialog-copy .field-error { color: var(--accent-text); font-size: 12px; }
.video-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.86;
  background: radial-gradient(ellipse at 50% 80%,var(--accent-muted),#191b1d 72%);
}
.video-preview-play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #121213ba;
  color: var(--ink);
}
.youtube-thumbnail { position: relative; overflow: hidden; }
.youtube-play .youtube-thumbnail { height: 100%; aspect-ratio: auto; }
.youtube-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.youtube-thumbnail .video-preview-play { position: relative; width: 58px; height: 40px; border-radius: 10px; background: #e62117; color: #fff; }
.thread-preview .video-preview { height: 100%; }
.thread-preview .video-preview-play { width: 28px; height: 28px; }
.gallery-arrow {
  position: absolute;
  background: #151617df;
  border: 1px solid #ffffff44;
  color: #fff;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.gallery-arrow:hover { background: #25272a; border-color: #fff9; }
.gallery-arrow[aria-disabled=true] { opacity: .4; cursor: default; }
.gallery-arrow svg { width: 21px !important; height: 21px !important; }
.gallery-arrow.previous { left: 13px; }
.gallery-arrow.previous svg { rotate: 90deg; }
.gallery-arrow.next { right: 13px; }
.gallery-arrow.next svg { rotate: -90deg; }
.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  :root { --header: 44px; }
  .top-content { gap: 8px; padding-inline: 10px; }
  .brand { gap: 6px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand b { font-size: 22px; }
  .topbar .search { height: 32px; }
  .topbar kbd { display: none; }
}
dialog.comment-drawer[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  inset: 0 0 0 auto;
  width: min(430px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-width: 0 0 0 1px;
  border-radius: 0;
  overflow: hidden;
}
.comment-drawer::backdrop { background: #0006; }
.comment-drawer .dialog-head { position: static; padding: 14px 20px; }
.thread-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #1d1e20;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.thread-context strong { font-size: 13px; }
.thread-context .meta { margin-top: 3px; }
.thread-preview {
  width: 65px;
  height: 45px;
  padding: 0;
  flex: none;
  overflow: hidden;
  border-radius: 5px;
}
.thread-preview img { width: 100%; height: 100%; object-fit: cover; }
.thread-list { overflow: auto; overscroll-behavior: contain; padding: 6px 20px; }
.thread-group { padding: 14px 0; }
.thread-group + .thread-group { border-top: 1px solid var(--line); }
.thread-comment { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; }
.thread-comment .avatar { width: 34px; height: 34px; }
.thread-reply { margin: 12px 0 0 16px; padding-left: 12px; border-left: 2px solid #3e342f; }
.thread-byline { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: baseline; font-size: 12px; }
.thread-comment p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: #d5d5d7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.thread-reply-button { color: var(--muted); padding: 6px 0 0; font-size: 11px; font-weight: 650; }
.thread-reply-button:hover { color: var(--accent); }
.comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.thread-list > .meta, .listing-comment-list > .meta { padding: 12px 0; }
.comment-photo { display: block; padding: 0; margin-top: 7px; border-radius: 6px; overflow: hidden; }
.comment-photo img { width: auto; height: auto; max-width: min(100%,420px); max-height: 340px; object-fit: contain; }
.comment-attachment:not([hidden]) {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px;
  padding: 6px 2px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere;
}
.listing-discussion .thread-composer { padding: 10px 0 0; background: transparent; }
.listing-discussion .thread-input textarea { margin: 0; }
.thread-empty { color: var(--muted); text-align: center; margin: 38px 0; font-size: 13px; }
.thread-composer {
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.thread-reply-context:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-left: 6px;
  font-size: 12px;
  color: var(--muted);
}
.thread-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 5px;
  background: #212224;
  border: 1px solid #44464a;
  border-radius: 12px;
}
.thread-input:focus-within { border-color: var(--accent); }
.thread-input textarea {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  max-height: 110px;
  width: 100%;
  field-sizing: content;
  resize: none;
  background: none;
  color: var(--ink);
  border: 0;
  padding: 8px 7px;
  line-height: 20px;
}
.thread-input textarea:focus-visible { outline: none; }
.thread-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #17100d;
}

.page-head h1, .feed-heading h1, .profile-head h1 {
  font-family: Inter,Arial,sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -.04em;
  text-transform: none;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.post-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
}
.post-profile .post-author, .post-profile .post-meta { display: block; }
.post-profile:hover .post-author { text-decoration: underline; }
.post-body .post-text { margin: 0; color: var(--ink); font-size: 14px; }
.post-body h2 + .post-text { margin-top: 6px; }
.post-text, .profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-copy { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
.post-body h2 + .post-copy { margin-top: 6px; }
.post-copy .expand-post { justify-self: start; font-size: 12px; }
.post-copy .inline-post-photo { margin: 10px 0; }
.inline-post-photo :is(a,button) { display: block; width: fit-content; max-width: 100%; padding: 0; }
.inline-post-photo img { width: auto; height: auto; max-height: 75vh; object-fit: contain; border-radius: 6px; }
.inline-post-photo figcaption { margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.post-actions [data-action=view-thread], .post-actions [data-action=add-to-thread] { color: var(--accent-text); }
.post-length { justify-self: end; margin-top: -7px; font-variant-numeric: tabular-nums; }
.thread-composer-context { overflow-wrap: anywhere; }
.thread-posts { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.thread-posts > li { position: relative; min-width: 0; }
.thread-posts > li + li::before {
  content: '';
  position: absolute;
  left: 30px;
  top: -16px;
  width: 2px;
  height: 16px;
  background: #484345;
}
#profile-button.avatar { position: relative; padding: 0; }
#profile-button.avatar img { position: absolute; inset: 0; object-position: center; }
.top-actions .user[aria-current=page] { border-color: var(--accent); }
.signup-button {
  flex: none;
  min-height: 34px;
  padding-inline: 9px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--accent-muted);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.signup-button:hover { border-color: var(--accent); }
.sidebar nav .nav-inbox svg { width: 20px; height: 20px; }
.profile-page { width: min(100%, 760px); margin-inline: auto; }
.profile-head {
  display: grid;
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.profile-head > .avatar { width: 60px; height: 60px; font-size: 18px; }
.profile-head h1, .profile-bio { overflow-wrap: anywhere; }
.profile-head .meta { margin-top: 5px; }
.profile-bio { margin-top: 8px; line-height: 1.5; color: var(--muted); }
.profile-actions, .composer-author { display: flex; align-items: center; gap: 9px; }
.profile-actions { grid-column: 2; flex-wrap: wrap; }
.profile-posts { margin-top: 18px; }
.profile-posts > h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.composer-author strong { font-size: 13px; }
.dialog-copy [data-form=post] textarea {
  min-height: 115px;
  border-color: transparent;
  background: #1d1e20;
  font-size: 16px;
  line-height: 1.5;
}
.post-writing { display: grid; gap: 10px; min-width: 0; }
.post-writing .draft-inline-photo {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.draft-inline-photo img { width: 58px; height: 46px; object-fit: cover; border-radius: 4px; }
.draft-inline-photo input { min-width: 0; }
.post-writing-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; }
.post-writing-tools .post-length { margin-top: 0; }
.post-edit-media { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.post-edit-media legend { padding: 0 4px; font-size: 13px; font-weight: 650; }
.dialog-copy .post-edit-attachment { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.post-edit-attachment img { width: 46px; height: 38px; border-radius: 4px; object-fit: cover; }
.composer-footer { display: flex; justify-content: flex-end; padding-top: 3px; }
.dialog-copy .feed-settings { gap: 18px; }
.feed-settings fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.feed-settings legend { margin-bottom: 4px; padding: 0; font-size: 14px; font-weight: 750; }
.taste-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.feed-settings .taste-choice { position: relative; display: inline-flex; cursor: pointer; }
.feed-settings .taste-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; }
.taste-choice span { border: 1px solid #414346; background: #212224; border-radius: 6px; padding: 7px 10px; }
.taste-choice input:checked + span { border-color: var(--accent-border); background: var(--accent-muted); color: var(--accent-text); }
.taste-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ranking-rows { margin-top: 8px; }
.ranking-row { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ranking-row .meta { margin-top: 3px; }
.ranking-row select { font-size: 13px; }
.settings-footer { display: flex; justify-content: space-between; gap: 10px; }
.feed-entry-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-size: 12px; }
.feed-entry-head > button { margin-left: auto; }
.feed-entry-head .event-type { width: 35px; height: 35px; }
.feed-entry-body { padding: 4px 14px 13px; }
.feed-entry-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 4px; }
.feed-entry-title h2 { font-size: 18px; letter-spacing: -.035em; }
.feed-entry-price { color: var(--accent-text); white-space: nowrap; }
.feed-entry-description { margin-top: 7px; color: #d5d5d7; line-height: 1.5; font-size: 13px; }
.feed-entry-footer { border-top: 1px solid var(--line); padding: 9px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.impression-count { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.impression-count svg { width: 14px; height: 14px; }
.feed-entry-footer .text-button [data-icon] { order: 1; }
.feed-listing-photo { display: block; width: 100%; margin-bottom: 9px; padding: 0; }
.feed-listing-photo img { width: 100%; height: auto; aspect-ratio: auto 1.86; object-fit: contain; }
img[data-preview-photo], .gallery-full-photo { opacity: 0; transition: opacity 140ms ease-out; }
img[data-preview-photo].is-loaded, .gallery-full-photo.is-loaded { opacity: 1; }
.listing-gallery-image { background: var(--panel2); }
.listing-gallery-image img { width: 100%; height: auto; aspect-ratio: auto 16/9; object-fit: contain; }
.post-tags .tag { min-height: 23px; }
.post-tags .tag:hover { background: var(--accent-muted); color: var(--accent-text); }
.rail-tag-search { display: grid; gap: 8px; padding: 0 13px 13px; }
.rail-tag-search .secondary { justify-self: start; }
.rail-tag-search input, .tag-directory input {
  min-width: 0;
  width: 100%;
  border: 1px solid #3b3d40;
  background: #212224;
  border-radius: 6px;
  padding: 9px;
  color: var(--ink);
}
.tag-directory { display: grid; max-width: 770px; gap: 13px; }
.tag-directory > label { font-size: 13px; font-weight: 700; }
.tag-directory-group h2 { margin: 5px 0 8px; font-size: 14px; }
.tag-directory-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-directory-grid .chip { padding: 5px 9px; gap: 8px; }
.tag-directory-back { margin-bottom: 14px; }
.tag-picker { display: grid; gap: 7px; margin-top: 8px; }
.tag-picker-results { max-height: 145px; overflow: auto; overscroll-behavior: contain; padding: 2px 4px 4px 2px; }
.tag-picker-group h4 { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.tag-picker-group .taste-choices { margin-top: 5px; }
.tag-picker .taste-choice { display: inline-flex; position: relative; cursor: pointer; }
.tag-picker .taste-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; }
.tag-picker [hidden], .tag-directory [hidden] { display: none; }
.composer-tags { min-width: 0; margin: 0; padding: 0; border: 0; }
.composer-tags legend { padding: 0; font-size: 12px; font-weight: 650; }
.mobile-tag-link { display: none; }
.market-refine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.market-refine > .meta { margin-right: auto; }
.feed-shop-link { padding-inline: 12px; }
.vehicle-fields { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.vehicle-fields legend { padding: 0 5px; font-weight: 700; font-size: 13px; }
.vehicle-grid, .vehicle-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.vehicle-grid label, .vehicle-grid select, .vehicle-grid input { min-width: 0; }
.vehicle-specs { margin: 0; }
.vehicle-specs > div { background: #212224; border-radius: 5px; padding: 8px 10px; }
.vehicle-specs dt { color: var(--muted); font-size: 11px; }
.vehicle-specs dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.street-map { position: relative; isolation: isolate; }
.street-map .map-canvas {
  aspect-ratio: auto;
  height: clamp(330px, 62dvh, 620px);
  background: #15191e;
  color-scheme: dark;
}
.street-map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) saturate(.18) brightness(.89);
}
.event-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.event-fields label { min-width: 0; }
.event-fields input { min-width: 0; }
dialog.event-dialog { width: min(calc(100% - 28px),620px); }
.event-dialog .post-photo img, .event-dialog .video-preview, .event-dialog .youtube-player { max-height: 290px; }
.rally-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rally-actions:empty { display: none; }
.rally-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.rally-stops { display: grid; gap: 10px; }
.rally-stop, .rsvp-choices { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.rally-stop { display: grid; gap: 10px; }
.rally-stop legend, .rsvp-choices legend { padding: 0 5px; font-weight: 700; }
.rally-stop button:disabled { opacity: .4; cursor: default; }
.rally-detail { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.rally-detail h3 { font-size: 15px; }
.rally-itinerary, .rally-rows, .rsvp-counts { list-style: none; margin: 0; padding: 0; }
.rally-itinerary { display: grid; gap: 10px; }
.rally-itinerary li { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 10px; }
.rally-stop-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  color: var(--accent-text);
  font-weight: 750;
}
.rally-itinerary strong, .rally-itinerary .meta { display: block; }
.rally-itinerary p { overflow-wrap: anywhere; }
.rally-itinerary .rally-note { white-space: pre-wrap; }
.rally-rows { display: grid; gap: 8px; }
.rally-rows li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rally-rows a { color: var(--accent-text); }
.rsvp-counts, .rsvp-choices { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rsvp-counts li { color: var(--muted); }
.rsvp-counts strong { color: var(--ink); }
.rsvp-choices label { display: inline-flex; align-items: center; gap: 5px; }
.rsvp-choices input[name=response] { width: auto; accent-color: var(--accent); }
[data-rsvp-car][hidden] { display: none; }
@media(max-width:520px) {
  .rally-fields { grid-template-columns: 1fr; }
}
.event-detail-type, .event-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.event-detail-type .meta { margin-left: auto; }
.event-facts { display: grid; gap: 10px; margin: 0; padding: 11px 0; border-block: 1px solid var(--line); }
.event-facts > div { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 8px; }
.event-facts dt { color: var(--muted); font-size: 12px; font-weight: 650; }
.event-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.event-detail-actions a { text-decoration: none; }
.feed-entry-body .meta { overflow-wrap: anywhere; }
.street-map .leaflet-control-zoom a {
  color: #f4f3f0;
  background: #202225;
  border-color: #414346;
}
.street-map .leaflet-control-zoom a:hover { background: #303235; }
.street-map .leaflet-control-zoom a.leaflet-disabled { color: #888; background: #191a1c; }
.street-map .leaflet-container .leaflet-control-attribution {
  color: #d5d5d7;
  background: #171819e8;
}
.street-map .leaflet-container .leaflet-control-attribution a { color: var(--accent-text); }
.street-map .leaflet-popup-content-wrapper, .street-map .leaflet-popup-tip {
  color: var(--ink);
  background: #202225;
}
.street-map .leaflet-container .leaflet-popup-close-button { color: #d5d5d7; }
.street-map .leaflet-container .leaflet-popup-close-button:hover { color: #fff; }
.map-status { position: absolute; top: 12px; left: 50%; translate: -50% 0; z-index: 500; width: max-content; max-width: 66%; padding: 6px 9px; border-radius: 5px; background: #171819ed; font-size: 12px; }
.map-fit { position: absolute; z-index: 500; right: 9px; top: 9px; }
.map-location-note { padding: 8px 12px; }
.street-pin-face { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; background: var(--pin-color); color: #161719; box-shadow: 0 2px 6px #0008; font-size: 12px; font-weight: 800; }
.street-pin-face svg { width: 14px !important; height: 14px !important; }
.map-popup { display: grid; gap: 6px; min-width: 145px; }
.map-popup button { display: flex; align-items: center; gap: 6px; padding: 3px 0; text-align: left; }
.map-popup button:hover { text-decoration: underline; }
.map-popup .event-type { width: 23px; height: 23px; background: var(--panel2); }

@media(max-width:690px) {
  main { padding-inline: 0; }
  .sidebar nav button { min-width: 0; white-space: nowrap; }
  .market-refine { padding-inline: 12px; }
  .street-map .map-canvas { height: clamp(300px, 50dvh, 460px); }
  .feed-heading, .profile-posts > h2 { padding-inline: 12px; }
  .feed-entry-footer { border-top: 0; }
  .feed-listing-photo img { aspect-ratio: auto 1.57; }
  .tag-directory, .tag-directory-back { padding-inline: 12px; }
  .mixed-feed .rail .panel:first-child { display: none; }
  .mobile-tag-link { display: inline-flex; justify-self: start; margin: -7px 12px -4px; }
  .profile-head { gap: 12px; padding: 16px 12px; border: 0; border-radius: 0; }
  .profile-head > .avatar { width: 48px; height: 48px; }
  .profile-actions { grid-column: 1 / -1; }
  .page-head { padding-inline: 12px; }
  .feed-tools, .card, .panel, .page-filters, .empty { border: 0; border-radius: 0; }
  .post-actions { border-top: 0; }
  .tabs, .legend { border-bottom: 0; }
  .event-row, .activity-row, .listing-row { border-bottom: 0; }
  .group > h2 { padding-inline: 12px; }
  .video-preview { aspect-ratio: 1.57; }
  .gallery-dialog .youtube-slide { padding-inline: 37px; }
  .gallery-arrow {
    width: 36px;
    height: 42px;
    background: transparent;
    border: 0;
    isolation: isolate;
  }
  .gallery-arrow::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #151617d9;
  }
  .gallery-arrow:hover { background: transparent; }
  .gallery-arrow svg { width: 14px !important; height: 14px !important; }
  .gallery-arrow.previous { left: 3px; }
  .gallery-arrow.next { right: 3px; }
  dialog.comment-drawer[open] {
    inset: auto 0 0;
    width: 100%;
    height: min(82dvh, 680px);
    border-width: 1px 0 0;
    border-radius: 15px 15px 0 0;
  }
  .thread-input textarea { font-size: 16px; }
}

.garage-section { margin-top: 22px; }
.garage-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.garage-heading h2 { font-size: 16px; }
.garage-grid, .garage-photos, .garage-edit-photos { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.garage-card, .garage-photos button {
  min-width: 0; padding: 0; overflow: hidden; text-align: left; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel2);
}
.garage-card:hover, .garage-photos button:hover { border-color: var(--accent); }
.garage-card img, .garage-photos img, .garage-edit-photos img, .garage-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.garage-placeholder { display: grid; place-items: center; color: var(--muted); background: #232426; }
.garage-placeholder svg { width: 30px; height: 30px; }
.garage-card-label { display: grid; gap: 4px; padding: 10px; overflow-wrap: anywhere; }
.car-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.car-heading h1 { font-size: clamp(24px,5vw,36px); overflow-wrap: anywhere; }
.garage-mods { margin: 0; padding: 0 0 0 22px; }
.garage-mods li { padding-block: 6px; overflow-wrap: anywhere; }
.garage-car-fields { display: grid; gap: 8px; grid-template-columns: minmax(65px,.6fr) 1fr 1fr; }
.garage-car-fields input { min-width: 0; }
.post-car-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.car-post-link { display: inline-flex; align-items: center; gap: 5px; }
.avatar-remove, .garage-edit-photos label span { display: flex; gap: 6px; align-items: center; }
.avatar-remove input, .garage-edit-photos input { width: auto; }
@media(max-width:690px) {
  .profile-page > .garage-section, .car-page > :not(.profile-posts), .car-page .profile-posts > .garage-heading { margin-inline: 12px; }
  .garage-grid, .garage-photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.appearance-entry { margin-bottom: 12px; }

:root {
  --chrome: #141516;
  --livery-trim: #ff9d7c;
  --accent-text: color-mix(in srgb,var(--accent) 80%,white);
  --accent-muted: color-mix(in srgb,var(--accent) 16%,var(--panel));
  --accent-border: color-mix(in srgb,var(--accent) 36%,var(--line));
  --accent-fill: color-mix(in srgb,var(--accent) 18%,transparent);
}
:root[data-theme]:not([data-theme=apex]) { --line: color-mix(in srgb,var(--panel2) 84%,var(--accent)); }
.topbar::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,var(--accent) 0 68%,var(--livery-trim) 68% 90%,var(--livery-stripe,var(--livery-trim)) 90%);
}
:root[data-theme=apex] .topbar::after { display: none; }
.theme-settings { margin: 0; padding: 0; border: 0; min-width: 0; }
.theme-settings legend { margin-bottom: 5px; font-weight: 750; }
.theme-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.theme-option { position: relative; min-width: 0; cursor: pointer; }
.theme-option input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.theme-tile { display: flex; flex-direction: column; min-height: 68px; height: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); overflow: hidden; }
.theme-option input:checked + .theme-tile { border-color: var(--accent); background: var(--accent-muted); color: var(--accent-text); }
.theme-option input:focus-visible + .theme-tile { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-swatches { display: flex; height: 19px; flex: none; }
.theme-swatches i { flex: 1; }
.theme-swatches i:first-child { flex: 1.5; }
.theme-name { display: grid; align-items: center; flex: 1; padding: 7px 8px; font-size: 12px; font-weight: 650; line-height: 1.3; }
@media(max-width:690px) {
  .sidebar nav button[data-action=appearance] { display: none; }
  .theme-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.track-map-tabs { margin-bottom: 15px; padding-inline: 13px; }
.track-map-grid .panel { min-width: 0; }
.track-search { display: grid; gap: 7px; padding: 0 13px 10px; border-bottom: 1px solid var(--line); }
.track-search label { color: var(--muted); font-size: 12px; }
.track-search input {
  min-width: 0; width: 100%; padding: 8px 9px; color: var(--ink);
  background: var(--panel2); border: 1px solid var(--line); border-radius: 5px;
}
.track-rows { max-height: clamp(240px, 53dvh, 535px); overflow-y: auto; }
.track-row .meta { display: block; }
.track-pin .street-pin-face { --pin-color: var(--accent); }
.track-pin .track-pin-inactive { --pin-color: var(--muted); }
.track-load { padding: 13px; display: grid; gap: 10px; justify-items: start; }
dialog.track-dialog { width: min(calc(100% - 28px),620px); }
.track-dialog .event-facts > div { grid-template-columns: 64px minmax(0,1fr); }
.track-dialog .track-length { border-bottom: 0; }
.track-diagram {
  margin: 0; min-width: 0; padding: 8px; color: var(--accent);
  border: 1px solid var(--line); border-radius: 7px; background: var(--panel2);
}
.track-diagram svg { display: block; width: 100%; height: clamp(120px, 27dvh, 245px); }
.track-diagram figcaption { text-align: right; padding-inline: 4px; }
.track-diagram figcaption a { color: var(--muted); }
.track-upcoming { display: grid; gap: 8px; }
.track-upcoming h3 { font-size: 14px; }
.track-upcoming ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.track-upcoming li { display: grid; gap: 2px; }
.track-upcoming .text-button { justify-self: start; color: var(--accent); }
.track-map-grid .empty { margin: 12px; }
