#specialty-market-menu .vehicle-category-strip {
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:clamp(7px,.9vw,14px);
  width:100%;
  padding:12px var(--content-inset) 14px;
  background:#f7f9fc;
  box-shadow:0 12px 30px #0f1c3322;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
}
#specialty-market-menu .vehicle-category-strip a {
  position:relative;
  display:grid;
  grid-template-rows:auto minmax(36px,1fr);
  min-width:0;
  padding:4px;
  border:0;
  border-radius:12px;
  background:#fff;
  color:#243c56;
  box-shadow:none;
  text-align:center;
  text-decoration:none;
  white-space:normal;
  scroll-snap-align:start;
  font-size:clamp(.72rem,.92vw,.86rem);
  font-weight:750;
  line-height:1.35;
}
#specialty-market-menu .vehicle-category-strip a:hover { background:#e9eff7; }
#specialty-market-menu .vehicle-category-strip a[aria-current] { background:#263c54; color:#fff; }
#specialty-market-menu .vehicle-category-strip a:focus-visible { outline:2px solid #43698e; outline-offset:-2px; }
#specialty-market-menu .vehicle-category-name { display:grid; place-items:center; padding:2px 3px; }
.vehicle-category-art { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:1.72; overflow:hidden; border-radius:8px; background:#26374b; }
.vehicle-category-art img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center 55%; transition:transform .24s; }
.vehicle-category-art svg { width:22px; height:22px; color:#edf5ff; }
.vehicle-category-gallery a:hover .vehicle-category-art img { transform:scale(1.055); }
@media(max-width:1060px) {
  #specialty-market-menu .vehicle-category-strip { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(116px,1fr); }
}
main>.hero.specialty-hero { position:relative; isolation:isolate; overflow:hidden; background:#111e2c; }
main>.hero.specialty-hero::before { z-index:-1; inset:0; background:linear-gradient(to left,#0b1725f5 0%,#0b1725b5 25%,#0b172500 56%),linear-gradient(to top,#0b17254a,transparent 28%); filter:none; opacity:1; }
main>.hero.specialty-hero::after { content:none; }
main>.specialty-hero picture { position:absolute; z-index:-2; inset:0; pointer-events:none; }
.specialty-hero-art { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:left center; }
main>.specialty-hero .hero-text { max-width:min(100%,52rem); }
.specialty-hero-actions {
  position:absolute;
  z-index:1;
  inset-inline-start:var(--content-inset);
  inset-block-end:max(clamp(24px,6svh,64px),env(safe-area-inset-bottom));
}
.specialty-hero-actions .button { min-height:44px; padding-inline:18px; }
@media (max-width:760px) and (max-aspect-ratio:1/1) {
  main>.hero.specialty-hero {
    height:100svh;
    min-height:min(480px,100svh);
    align-items:start;
    background:#0d1826;
  }
  .installed-kapooto main>.hero.specialty-hero {
    height:calc(100svh - var(--app-nav-height, 0px) - 64px - env(safe-area-inset-top, 0px));
  }
  main>.hero.specialty-hero::before,
  main>.hero.specialty-hero::after { content:none; }
  main>.hero.specialty-hero .specialty-hero-picture {
    inset:55% 0 auto;
    width:100%;
    aspect-ratio:704/410;
    transform:translateY(-50%);
    mask-image:linear-gradient(180deg,transparent 0%,black 13%,black 85%,transparent 100%);
  }
  main>.hero.specialty-hero .specialty-hero-art {
    object-fit:contain;
    object-position:center;
  }
  main>.hero.specialty-hero .hero-text {
    position:absolute;
    inset-inline:0;
    inset-block-start:clamp(92px,17svh,148px);
    padding:0 var(--content-inset);
  }
  .installed-kapooto main>.hero.specialty-hero .hero-text {
    inset-block-start:clamp(32px,8svh,66px);
  }
  main>.hero.specialty-hero .hero-text h1 {
    max-width:15ch;
    font-size:clamp(29px,7vw,47px);
    text-shadow:0 2px 18px #09111cbd;
  }
  main>.hero.specialty-hero .specialty-hero-actions {
    inset-block-end:max(27px,env(safe-area-inset-bottom,0px));
  }
  main>.hero.specialty-hero .specialty-hero-actions .button {
    border:1px solid #ffffff79;
    background:#fbfcfe;
    color:#182b41;
    box-shadow:0 5px 16px #0e192c59;
  }
}
.category-crumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px clamp(12px, 2.1vw, 30px); font-size: .77rem; color: #435b75; }
.category-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.equipment-market-controls { display:flex; flex-wrap:wrap; align-items:center; gap:9px 16px; }
.equipment-market-home-link { display:inline-flex; align-items:center; min-height:36px; text-decoration:underline; text-underline-offset:4px; font-size:.8rem; }
.equipment-market-header {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(200px,1fr);
  min-height: clamp(133px, 14vw, 194px);
  color: #f8fbff;
  background: #142334;
}
.equipment-market-header > div:first-child { align-self: center; padding: 15px clamp(16px, 3.4vw, 54px); }
.equipment-market-header h1 { margin: 0 0 10px; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.23; }
.equipment-market-art { position:relative; overflow:hidden; min-width:0; background:#213247; }
.equipment-market-art img { position:absolute; inset:0; width:100%; height:100%; object-position:55% 52%; object-fit:contain; }
.equipment-market-art::after { content:""; pointer-events:none; position:absolute; inset:0; background:linear-gradient(to left,#142334,transparent 33%); }
.equipment-offer-switch { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid #6b8097; border-radius: 9px; background: #203349; }
.equipment-offer-switch a { display: grid; place-items: center; min-height: 36px; min-width: clamp(36px,4.5vw,61px); padding-inline: clamp(4px,.75vw,8px); border-radius: 6px; color: #ebf4ff; font-size: .83rem; }
.equipment-offer-switch a:hover { background: #38536e; }
.equipment-offer-switch a[aria-current] { color: #fff; background: #9f1e33; font-weight: 730; }
.equipment-workspace.market-workspace:not(.landing) { background: #f2f6fa; }
.equipment-workspace.market-workspace:not(.landing) > .search-panel { background: #fbfdff; }
.equipment-workspace .search-panel > .filter-toggle { min-height: 49px; background: #e5edf6; }
.equipment-filter-form input:not([type=checkbox]), .equipment-filter-form select { min-width: 0; width: 100%; }
.equipment-filter-form .filter-core, .equipment-filter-form .filter-fields { display: grid; gap: 9px; }
.equipment-filter-pair, .equipment-range div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.equipment-range { min-width: 0; margin: 0; padding: 0; border: 0; }
.equipment-range legend { padding: 0 0 4px; font-size: .83rem; }
.equipment-range small { margin-inline-start: 3px; color: #647a8f; }
.equipment-range label { min-width: 0; }
.equipment-filter-group summary { font-weight: 730; }
.equipment-workspace .catalog > .section-head { min-height: 49px; }
.equipment-empty { display: grid; justify-items: center; gap: 11px; min-height: 265px; align-content: center; margin: 14px clamp(10px,2vw,28px); border: 1px solid #dbe5ef; border-radius: 13px; background: #fff; color: #233d56; text-align: center; padding: 18px; }
.equipment-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; background: #e8f0f8; color: #385a7b; }
.equipment-empty-icon svg { width: 30px; height: 30px; }
.equipment-empty h2 { margin: 0; font-size: 1.06rem; }
.equipment-card .car-photo { background: #e1eaf2; }
.equipment-card .card-facts > div { background: #f4f7fb; border-color: #e1e9f2; }

.equipment-category-fields, .equipment-fields, .equipment-rental fieldset { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 12px; }
.equipment-category-fields { background: #eef4fa; border: 1px solid #d7e3ef; border-radius: 12px; padding: clamp(10px, 1.4vw, 18px); }
.equipment-fields { grid-column: 1/-1; border: 1px solid #d2e0ed; border-radius: 9px; padding: 12px; margin: 0; background: #fff; }
.equipment-fields[hidden], [data-rental-fields][hidden], [data-passenger-form][hidden] { display: none; }
.equipment-fields legend, .equipment-rental legend { font-weight: 720; color: #28425e; }
.equipment-part-editor { grid-column: 1/-1; border-block-start: 1px solid #d9e4f0; padding-block-start: 9px; }
.equipment-part-editor > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 8px; padding: 8px; margin-block: 5px; background: #f3f7fb; border-radius: 8px; }
.equipment-rental fieldset { margin-block: 10px; border: 1px solid #d5e0eb; border-radius: 9px; padding: 12px; background: #f3f7fb; }
.equipment-rental small { grid-column: 1/-1; color: #405a74; }
.offer-badge { display: inline-flex; align-items: center; min-height: 25px; border-radius: 6px; padding: 2px 8px; background: #e4eef8; color: #254765; font-size: .73rem; font-weight: 740; }
.car-photo .offer-badge { position: absolute; inset: 10px auto auto 10px; z-index: 1; }
.detail-identity .offer-badge { margin-block: 0 8px; }

.equipment-condition { background: #fbfdff; }
.equipment-condition-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-block-end: 10px; }
.equipment-condition-heading h2 { margin: 0; }
.equipment-condition-heading p { margin: 2px 0 0; color: #506782; font-size: .8rem; }
.equipment-condition-heading > span { padding: 4px 9px; border-radius: 6px; background: #e9f0f8; color: #375570; font-size: .75rem; }
.equipment-condition-layout { display: grid; grid-template-columns: minmax(0,1fr) clamp(220px,25%,310px); align-items: stretch; gap: 10px; }
.equipment-side {
  display: grid;
  place-items: center;
  min-height: 215px;
  padding: 8px;
  border: 1px solid #294660;
  border-radius: 12px;
  background-color: #15283c;
  background-image: linear-gradient(#91b3d118 1px, transparent 1px),linear-gradient(90deg,#91b3d118 1px,transparent 1px),radial-gradient(ellipse at 50% 45%,#294c67,#15283c 71%);
  background-size: 24px 24px,24px 24px,100% 100%;
}
.equipment-side svg { display: block; width: min(100%,530px); height: auto; max-height: 260px; overflow: visible; }
.equipment-baseline { stroke: #91abc268; stroke-dasharray: 4 4; fill: none; }
.equipment-outline { stroke: #cbe0f1; stroke-width: 1.05; stroke-linejoin: round; fill-rule: evenodd; }
.equipment-wheel { stroke: #8ca5bc; stroke-width: 1.1; }
.equipment-seams { fill: none; stroke: #2d4960; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.equipment-rods { fill: none; stroke: #e2edf7; stroke-width: 1.05; stroke-linecap: round; }
.equipment-tread { fill: none; stroke: #b7cde166; stroke-width: 2; stroke-dasharray: 1.7 2.6; }
.equipment-hub { fill: #93afc7; stroke: #67829d; stroke-width: 1; }
.equipment-hub-detail { fill: #1c344b; }
.equipment-pin { fill: #304e69; stroke: #f1f8ff; stroke-width: 1.15; }
.equipment-pin[data-state=good] { fill: #27604b; }
.equipment-pin:is([data-state=worn],[data-state=repaired],[data-state=replaced]) { fill: #795914; }
.equipment-pin:is([data-state=repair],[data-state=damaged]) { fill: #962c39; }
.equipment-side a[aria-pressed=true] .equipment-pin, .equipment-side a:focus-visible .equipment-pin, .equipment-side a:hover .equipment-pin { stroke: #ffc971; stroke-width: 2; }
.equipment-side text { fill: #fff; text-anchor: middle; dominant-baseline: middle; font-size: 7px; pointer-events: none; }
.equipment-part-inspector { display: grid; grid-template-rows: auto 1fr; gap: 10px; align-content: start; padding: 12px; border: 1px solid #d8e4ef; border-radius: 12px; background: #edf3fa; }
.equipment-part-inspector label { display: grid; gap: 5px; font-size: .81rem; color: #334e6b; }
.equipment-part-inspector select { min-width: 0; width: 100%; background: #fff; }
.equipment-part-detail { padding: 10px; border-radius: 8px; background: #fff; border: 1px solid #dae5ef; }
.equipment-part-detail h3 { margin: 0 0 5px; font-size: .96rem; color: #243e58; }
.equipment-part-detail p { margin: 5px 0 0; color: #425b74; font-size: .82rem; }
.equipment-part-status { display: inline-block; padding: 3px 7px; border-radius: 5px; background: #e9eff6; color: #2d4863; font-size: .75rem; }
.equipment-part-status[data-state=good] { background: #dceee5; color: #1e5340; }
.equipment-part-status:is([data-state=repaired],[data-state=worn],[data-state=replaced]) { background: #f4e9ce; color: #674a10; }
.equipment-part-status:is([data-state=repair],[data-state=damaged]) { background: #f7e3e7; color: #792537; }
.equipment-part-photo { display: flex; align-items: center; gap: 8px; margin-block-start: 8px; color: #365d81; font-size: .75rem; }
.equipment-part-photo img { width: 55px; height: 42px; object-fit: cover; border-radius: 4px; }

@media(max-width:700px) {
  .equipment-market-header { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
  .equipment-market-controls { gap:3px 12px; }
  .equipment-market-header > div:first-child { padding-inline:12px; }
  .equipment-market-art img { object-fit: cover; }
  .equipment-condition-layout { grid-template-columns: minmax(0,1fr); }
  .equipment-side { min-height: 170px; }
  .equipment-side svg { max-height: 196px; }
}
@media(prefers-reduced-motion:reduce) {
  .vehicle-category-strip a, .vehicle-category-art img { transition: none; }
}

.specialty-album .album-slide>img { object-position:center 50%; }
.specialty-album .album-slide[data-active=false] .album-label { white-space:normal; overflow-wrap:anywhere; }
.specialty-album .album-current .album-facts { white-space:normal; }
.specialty-album .album-flag:not(.album-paid) { background:#182d44e8; }
@media(min-width:1001px) {
  .specialty-album .album-track { height:clamp(290px,28vw,386px); }
}

footer > .shell {
  --footer-columns: 9;
  display:grid;
  grid-template-columns:repeat(var(--footer-columns),minmax(0,1fr));
  gap:10px 8px;
}
.footer-market-links:not([hidden]), footer .footer-links {
  display:grid;
  grid-column:1 / -1;
  grid-template-columns:repeat(var(--footer-columns),minmax(0,1fr));
  gap:4px 8px;
}
.footer-market-links:not([hidden]) {
  grid-row:1;
  padding-block-end:12px;
  border-block-end:1px solid var(--line);
}
footer .footer-links { grid-row:2; }
footer .footer-links a { white-space:nowrap; padding-inline:2px; }
footer .footer-links a:first-child { grid-column:2; }
footer .site-logo-footer { grid-column:1; grid-row:2; align-self:start; justify-self:start; }
footer .footer-email {
  grid-column:-3 / -1;
  grid-row:2;
  justify-self:end;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#304760;
  font-size:.84rem;
  font-weight:650;
  user-select:text;
  -webkit-user-select:text;
  cursor:text;
}
@media(max-width:1060px) {
  footer .footer-email { grid-row:3; }
}
.footer-market-links a, footer .footer-links a {
  display:grid;
  place-items:center;
  min-height:44px;
  padding:6px 4px;
  border-radius:8px;
  color:#304760;
  text-align:center;
  font-size:.84rem;
  font-weight:650;
  line-height:1.55;
}
.footer-market-links a:hover, footer .footer-links a:hover { background:#e2eaf4; color:#172d45; }
.footer-market-links a:focus-visible, footer .footer-links a:focus-visible { outline:2px solid #43698e; outline-offset:-2px; }
@media(max-width:1060px) {
  footer > .shell { --footer-columns: 4; }
  .footer-market-links a[href="/#/market?category=cars"] { grid-column:1 / -1; }
}
@media(max-width:540px) {
  footer > .shell { --footer-columns: 2; }
}

.header-actions { display:flex; align-items:center; gap:8px; margin-inline-start:auto; flex:none; }
.header-actions .button { min-height:42px; white-space:nowrap; }
.header-login[hidden] { display:none; }
.header-actions .header-login { padding-inline:14px; color:#304760; background:transparent; border-color:#cdd8e4; }
.header-actions .header-login:is(:hover,[aria-current=page]) { color:#1e344e; background:#e9f0f8; border-color:#b9c9dc; }
body:has(main>.hero) .header-actions .header-login { background:#122034; color:#f5f8fc; border-color:#66788e; }
body:has(main>.hero) .header-actions .header-login:hover { background:#263c54; }
.top .header-market-nav { gap:clamp(4px,1vw,12px); }
.top .header-market-nav :is(a,button) { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding-inline:9px; border-radius:8px; color:var(--brand-navy); text-decoration:none; }
.top .header-market-nav a:is(:hover,[aria-current=page]) { background:#e9eff7; box-shadow:none; }
.top nav #specialty-market-toggle::after { content:""; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.top nav #specialty-market-toggle[aria-expanded=true] { background:#e9eff7; }
.top nav #specialty-market-toggle[aria-expanded=true]::after { transform:translateY(2px) rotate(225deg); }
body:has(main>.hero) .top .header-market-nav :is(a,button) { color:#f4f7fa; }
body:has(main>.hero) .top .header-market-nav a:hover { background:#27394f; }
body:has(main>.hero) .top nav #specialty-market-toggle[aria-expanded=true] { background:#27394f; }
@media(max-width:740px) {
  .header-actions { gap:5px; }
  .header-actions .button { min-height:38px; padding:5px 8px; font-size:.8rem; }
  .top .shell:has(#header-login:not([hidden])) { gap:6px; }
  .top .header-market-nav { order:0; flex:1; }
  .top .header-market-nav :is(a,button) { padding-inline:6px; gap:5px; font-size:.82rem; }
}
@media(max-width:540px) {
  .top .header-market-nav { order:3; flex:0 0 100%; }
  .top .header-market-nav :is(a,button) { flex:1; background:#edf2f7; }
  body:has(main>.hero) .top .header-market-nav :is(a,button) { background:#18283a; }
  body:has(main>.hero) .top nav #specialty-market-toggle[aria-expanded=true] { background:#27394f; }
}
