/* PEP-MOBILE-CROSS-UI-POLISH-AUTHORITY-135
 * Clean-room patterns adapted from established open-source UI conventions:
 * unified input+button group, compact carousel navigation and accessible offcanvas rows.
 */
:root{
  --kbm-135-navy:#08283d;
  --kbm-135-navy-2:#0d3d57;
  --kbm-135-yellow:#ffca18;
  --kbm-135-yellow-soft:#fff7cf;
  --kbm-135-line:#dce5ec;
  --kbm-135-muted:#647586;
  --kbm-135-soft:#f6f9fb;
  --kbm-135-shadow:0 12px 32px rgba(7,31,49,.09);
  --kbm-135-appbar-h:96px;
}

/* 1) Machine-sale price: one commercial focal point instead of a flat block. */
.kbm-machine-sale-recode-card .kbm-machine-sale-recode-price{
  min-height:72px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-areas:"label value" "note note"!important;
  align-items:center!important;
  gap:3px 10px!important;
  padding:10px 14px!important;
  border:1px solid #e4c64c!important;
  border-inline-start:5px solid var(--kbm-135-yellow)!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,var(--kbm-135-navy),#103b56)!important;
  box-shadow:0 9px 22px rgba(8,40,61,.13)!important;
  text-align:center!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.kbm-machine-sale-recode-card .kbm-machine-sale-recode-price__label{
  grid-area:label!important;color:#dbe8f0!important;-webkit-text-fill-color:#dbe8f0!important;
  font-size:11px!important;font-weight:800!important;white-space:nowrap!important
}
.kbm-machine-sale-recode-card .kbm-machine-sale-recode-price__value{
  grid-area:value!important;display:block!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  font-size:clamp(18px,2vw,24px)!important;line-height:1.45!important;font-weight:1000!important;overflow-wrap:anywhere!important
}
.kbm-machine-sale-recode-card .kbm-machine-sale-recode-price small{
  grid-area:note!important;color:#bed0dc!important;-webkit-text-fill-color:#bed0dc!important;font-size:9.5px!important;font-weight:700!important
}
.kbm-machine-sale-recode-card .kbm-machine-sale-recode-price.is-negotiable{
  grid-template-columns:1fr!important;grid-template-areas:"label" "value" "note"!important;justify-items:center!important;
  background:linear-gradient(135deg,#0a2d45,#123e59)!important
}
.kbm-machine-sale-recode-card .kbm-machine-sale-recode-price.is-negotiable .kbm-machine-sale-recode-price__value{
  font-size:26px!important;letter-spacing:-.2px!important
}
@media(max-width:720px){
  .kbm-machine-sale-recode-card .kbm-machine-sale-recode-price{min-height:78px!important;border-radius:17px!important;padding:9px 11px!important}
  .kbm-machine-sale-recode-card .kbm-machine-sale-recode-price__label{font-size:10px!important}
  .kbm-machine-sale-recode-card .kbm-machine-sale-recode-price__value{font-size:22px!important}
  .kbm-machine-sale-recode-card .kbm-machine-sale-recode-price.is-negotiable .kbm-machine-sale-recode-price__value{font-size:27px!important}
}

/* Machine-sale mobile card cleanup: no empty badge rail; machine pictogram is a centered squircle. */
.kbm-machine-sale-recode-card .kbm-machine-sale-recode-badges:empty{
  display:none!important;min-height:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important
}
@media(max-width:720px){
  .kbm-machine-sale-recode-card__type{
    width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;
    display:grid!important;place-items:center!important;padding:5px!important;margin:0!important;
    border:1px solid rgba(8,40,61,.12)!important;border-radius:14px!important;background:rgba(255,255,255,.96)!important;
    color:transparent!important;-webkit-text-fill-color:transparent!important;font-size:0!important;line-height:0!important;
    box-shadow:0 7px 18px rgba(8,40,61,.14)!important;overflow:hidden!important
  }
  .kbm-machine-sale-recode-card__type .kbm-iconlib93{
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;flex-basis:38px!important;
    display:grid!important;place-items:center!important;margin:0!important;padding:0!important
  }
  .kbm-machine-sale-recode-card__type .kbm-iconlib93 img{
    width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;object-position:center!important;transform:none!important;margin:0!important
  }
}

/* 2) Provider / parts-service archive: remove dead bands and keep any media icon centered in its tile. */
@media(max-width:720px){
  .kbm-services-recode-card--rental-parity .kbm-services-recode-card-top{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}
  .kbm-services-recode-card--rental-parity .kbm-services-recode-card-body>:empty{display:none!important}
}
.kbm-services-recode-card-media{position:relative!important;overflow:hidden!important}
.kbm-services-recode-card-media>.kbm-iconlib93,
.kbm-services-recode-card-media>.kbm-vasset-auto-badge{
  position:absolute!important;z-index:7!important;inset-block-start:9px!important;inset-inline-end:9px!important;
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  display:grid!important;place-items:center!important;padding:5px!important;margin:0!important;
  border:1px solid rgba(8,40,61,.12)!important;border-radius:15px!important;background:rgba(255,255,255,.94)!important;
  color:var(--kbm-135-navy)!important;box-shadow:0 7px 18px rgba(8,40,61,.13)!important;backdrop-filter:blur(8px)!important
}
.kbm-services-recode-card-media>.kbm-iconlib93 img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}

/* 3) Tender hero is now only a CMS banner surface. */
.kbm-t125-archive .kbm-t125-hero-banner-slot{
  display:block!important;width:100%!important;min-height:clamp(128px,24vw,250px)!important;margin:0 0 18px!important;
  border:1px solid #e1e7ec!important;border-radius:24px!important;background:linear-gradient(145deg,#f6f8fa,#edf2f5)!important;
  overflow:hidden!important;box-shadow:0 9px 24px rgba(8,40,61,.055)!important
}
@media(max-width:640px){.kbm-t125-archive .kbm-t125-hero-banner-slot{min-height:150px!important;border-radius:20px!important;margin-bottom:14px!important}}

/* 4) Featured rental listings: compact premium medallion + restrained highlight. */
.kbm-ads-recode-section--featured{
  border:1px solid #f0d874!important;border-radius:24px!important;padding:14px!important;
  background:linear-gradient(180deg,#fffdf1 0%,#fff 55%)!important;box-shadow:0 12px 30px rgba(128,92,0,.07)!important
}
.kbm-ads-recode-section--featured .kbm-ads-recode-section-head h2:before{content:"★";display:inline-grid;place-items:center;width:30px;height:30px;margin-inline-end:7px;border-radius:10px;background:var(--kbm-135-yellow);color:var(--kbm-135-navy);font-size:15px;vertical-align:middle;box-shadow:0 6px 15px rgba(255,202,24,.28)}
.kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired){border:1px solid #e8cc55!important;border-top:4px solid var(--kbm-135-yellow)!important;box-shadow:0 12px 28px rgba(8,40,61,.09)!important;background:#fff!important}
.kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired)::before{content:none!important}
.kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured,
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured{
  inset:10px 10px auto auto!important;width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;
  display:grid!important;place-items:center!important;padding:4px!important;border:1px solid #efd45f!important;border-radius:14px!important;
  background:rgba(255,255,255,.96)!important;box-shadow:0 8px 20px rgba(8,40,61,.13)!important;overflow:hidden!important
}
.kbm-ads-recode-section--featured .kbm-ads-recode-badge--featured img,
.kbm-ads-recode-grid .kbm-ads-recode-badge--featured img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;object-fit:contain!important;object-position:center!important;filter:none!important;transform:none!important}
.kbm-ads-recode-featured-toggle{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:11px!important;padding:0!important}
@media(max-width:640px){
  .kbm-ads-recode-section--featured{padding:10px!important;border-radius:20px!important}
  .kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured,
  .kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;inset:8px 8px auto auto!important;border-radius:13px!important}
  .kbm-ads-recode-section--featured .kbm-ads-recode-badge--featured img,.kbm-ads-recode-grid .kbm-ads-recode-badge--featured img{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important}
}

/* 5) Theme-owned header search: visual ButtonGroup only. No controller/markup ownership. */
body.kbm-header-theme-owned :is(.kbm-header .kbm-search,.kbm-theme-mobile-search,[data-kbm-theme-mobile-search]):has(input[type="search"]){
  border:1px solid #cfd9e1!important;border-radius:15px!important;background:#fff!important;box-shadow:0 5px 16px rgba(8,40,61,.055)!important;overflow:hidden!important
}
body.kbm-header-theme-owned :is(.kbm-header .kbm-search,.kbm-theme-mobile-search,[data-kbm-theme-mobile-search]):has(input[type="search"]):focus-within{
  border-color:#dcb300!important;box-shadow:0 0 0 3px rgba(255,202,24,.18)!important
}
body.kbm-header-theme-owned :is(.kbm-header .kbm-search,.kbm-theme-mobile-search,[data-kbm-theme-mobile-search]):has(input[type="search"]) input[type="search"]{
  border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;background:#fff!important
}
body.kbm-header-theme-owned :is(.kbm-header .kbm-search,.kbm-theme-mobile-search,[data-kbm-theme-mobile-search]):has(input[type="search"]) button{
  border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important
}

/* 6) Mobile appbar: same 5 actions, smaller industrial shell. */
@media(max-width:767px){
  body.kbm-ui135-active{--kbm-128-appbar-h:var(--kbm-135-appbar-h)!important;--kbm-mae-appbar-h:var(--kbm-135-appbar-h)!important;--kbm-vp14-bottom-h:var(--kbm-135-appbar-h)!important;--kbm-app-bottom-nav-h:var(--kbm-135-appbar-h)!important;--kbm-rsb-bottom-h:var(--kbm-135-appbar-h)!important;--kbm-mps-a-appbar:var(--kbm-135-appbar-h)!important}
  body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar){
    height:var(--kbm-135-appbar-h)!important;min-height:var(--kbm-135-appbar-h)!important;inset-inline:6px!important;bottom:calc(5px + env(safe-area-inset-bottom,0px))!important;
    padding:6px 5px calc(6px + env(safe-area-inset-bottom,0px))!important;gap:4px!important;border-radius:24px!important;box-shadow:0 14px 36px rgba(8,40,61,.17)!important
  }
  body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar) :is(.kbm-quf-app-bar__item,.kbm-theme-mobile-appbar__item,[data-kbm-theme-appbar-item],[data-key]){
    min-width:0!important;min-height:68px!important;height:68px!important;padding:6px 4px!important;gap:4px!important;border-radius:18px!important;font-size:13px!important;line-height:1.15!important
  }
  body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar) :is(.kbm-quf-app-bar__icon,.kbm-theme-mobile-appbar__icon,[data-kbm-nav-icon]){
    width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;flex-basis:29px!important
  }
  body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar) :is(.kbm-quf-app-bar__icon,.kbm-theme-mobile-appbar__icon,[data-kbm-nav-icon]) :is(svg,img){width:29px!important;height:29px!important}
  body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar) :is(.kbm-quf-app-bar__label,.kbm-theme-mobile-appbar__label,[data-kbm-nav-label]){
    font-size:13px!important;line-height:1.15!important;font-weight:900!important;max-width:64px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
  }
  body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar) :is([data-key="submit"],.kbm-quf-app-bar__item--primary,.is-primary){
    min-height:74px!important;height:74px!important;border-radius:20px!important;padding:7px 5px!important;transform:translateY(-3px)!important;box-shadow:0 9px 24px rgba(255,202,24,.25)!important
  }
}
@media(max-width:390px){:root{--kbm-135-appbar-h:92px}body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar) :is(.kbm-quf-app-bar__item,.kbm-theme-mobile-appbar__item,[data-kbm-theme-appbar-item],[data-key]){height:65px!important;min-height:65px!important}body.kbm-ui135-active :is(.kbm-theme-mobile-appbar,#kbm-app-bar,[data-kbm-theme-mobile-appbar],.kbm-quf-app-bar) :is([data-key="submit"],.kbm-quf-app-bar__item--primary,.is-primary){height:71px!important;min-height:71px!important}}

/* 7) Contractor archive rating: metadata pill, not a fake price panel. */
.kbm-c118-card .kbm-c118-rating{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:max-content!important;max-width:100%!important;
  min-height:34px!important;height:auto!important;margin:0!important;padding:6px 10px!important;border:1px solid #dbe4eb!important;border-radius:999px!important;
  background:#f7f9fb!important;color:#314b5f!important;-webkit-text-fill-color:#314b5f!important;font-size:12px!important;font-weight:850!important;box-shadow:none!important
}
.kbm-c118-card .kbm-c118-rating small{font-size:10px!important;color:#718090!important;-webkit-text-fill-color:#718090!important}
.kbm-c118-card .kbm-ads-recode-card-foot{align-items:center!important;gap:8px!important}

/* 8) Contractor Single: compact gallery controls + dashboard-like profile grid. */
.kbm-c118-single .kbm-ad-single-recode-gallery-controls{
  display:flex!important;align-items:center!important;gap:5px!important;padding:5px!important;border:1px solid rgba(255,255,255,.26)!important;
  border-radius:13px!important;background:rgba(8,40,61,.76)!important;backdrop-filter:blur(10px)!important;box-shadow:0 7px 18px rgba(8,40,61,.16)!important
}
.kbm-c118-single .kbm-ad-single-recode-gallery-controls button{
  width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border:1px solid rgba(255,255,255,.34)!important;
  border-radius:10px!important;background:rgba(255,255,255,.09)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:16px!important;font-weight:900!important;line-height:1!important;box-shadow:none!important
}
.kbm-c118-single .kbm-ad-single-recode-gallery-controls button[data-kbm-gallery-toggle]{width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;font-size:11px!important;background:var(--kbm-135-yellow)!important;color:var(--kbm-135-navy)!important;-webkit-text-fill-color:var(--kbm-135-navy)!important;border-color:var(--kbm-135-yellow)!important}
.kbm-c118-single .kbm-ad-single-recode-commercial{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:58px!important;padding:9px 11px!important;
  border:1px solid #dce5ec!important;border-radius:17px!important;background:linear-gradient(145deg,#f8fafc,#fff)!important;box-shadow:none!important
}
.kbm-c118-single .kbm-ad-single-recode-commercial>span{font-size:11px!important;color:#647586!important;font-weight:800!important}
.kbm-c118-single .kbm-ad-single-recode-commercial>strong{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:7px 13px!important;border-radius:12px!important;background:var(--kbm-135-navy)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:14px!important;font-weight:950!important}
.kbm-c135-contractor-profile-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin-top:16px!important}
.kbm-c135-contractor-profile-grid>.kbm-c118-panel{margin:0!important;min-width:0!important;height:100%!important}
.kbm-c135-contractor-profile-grid>.kbm-c118-panel.is-fleet,
.kbm-c135-contractor-profile-grid>.kbm-c118-panel.is-projects,
.kbm-c135-contractor-profile-grid>.kbm-c118-panel.is-qualifications{grid-column:1/-1!important}
.kbm-c135-contractor-profile-grid>.kbm-c118-panel .kbm-ad-single-recode-section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
.kbm-c135-contractor-profile-grid>.kbm-c118-panel .kbm-ad-single-recode-section-head h2{font-size:18px!important;line-height:1.55!important;margin:0!important}
.kbm-c135-contractor-profile-grid>.kbm-c118-panel .kbm-ad-single-recode-section-head span{font-size:10.5px!important;color:#778795!important;text-align:left!important;max-width:46%!important}
.kbm-c118-single .kbm-ad-single-recode-bottombar{
  max-width:480px!important;margin-inline:auto!important;grid-template-columns:1fr 1.15fr!important;gap:7px!important;padding:7px!important;border:1px solid #d9e3ea!important;
  border-radius:18px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 12px 32px rgba(8,40,61,.15)!important;backdrop-filter:blur(12px)!important
}
.kbm-c118-single .kbm-ad-single-recode-bottombar-price,
.kbm-c118-single .kbm-ad-single-recode-bottombar-btn{min-height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;border-radius:13px!important;font-size:13px!important;font-weight:950!important;padding:8px 10px!important}
.kbm-c118-single .kbm-ad-single-recode-bottombar-price{background:var(--kbm-135-navy)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.kbm-c118-single .kbm-ad-single-recode-bottombar-btn{background:var(--kbm-135-yellow)!important;color:var(--kbm-135-navy)!important;-webkit-text-fill-color:var(--kbm-135-navy)!important}
@media(max-width:820px){.kbm-c135-contractor-profile-grid{grid-template-columns:1fr!important}.kbm-c135-contractor-profile-grid>.kbm-c118-panel{grid-column:1!important}.kbm-c118-single .kbm-ad-single-recode-bottombar{bottom:calc(var(--kbm-135-appbar-h) + 10px + env(safe-area-inset-bottom,0px))!important;left:10px!important;right:10px!important;width:auto!important;max-width:none!important}}
@media(max-width:520px){.kbm-c118-single .kbm-ad-single-recode-gallery-controls{left:7px!important;bottom:7px!important}.kbm-c118-single .kbm-ad-single-recode-gallery-controls button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}.kbm-c118-single .kbm-ad-single-recode-commercial{min-height:54px!important;border-radius:15px!important}.kbm-c118-single .kbm-ad-single-recode-commercial>strong{font-size:12px!important;min-height:33px!important}.kbm-c135-contractor-profile-grid{gap:10px!important}.kbm-c135-contractor-profile-grid>.kbm-c118-panel{border-radius:17px!important;padding:14px!important}}

/* 9) Offcanvas navigation: Flowbite-like compact rows while Theme/controller ownership stays intact. */
@media(max-width:900px){
  body.kbm-ui135-active .kbm-offcanvas{
    width:min(84vw,330px)!important;max-width:330px!important;padding:14px 12px!important;border-radius:24px 0 0 24px!important;
    background:#fff!important;box-shadow:-24px 0 60px rgba(8,40,61,.2)!important;overflow-y:auto!important;overscroll-behavior:contain!important
  }
  body.kbm-ui135-active .kbm-offcanvas__link{
    min-height:48px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:9px 11px!important;margin:2px 0!important;
    border:1px solid transparent!important;border-radius:13px!important;color:#102b3d!important;font-size:15px!important;font-weight:850!important;line-height:1.45!important
  }
  body.kbm-ui135-active .kbm-offcanvas__link:hover,
  body.kbm-ui135-active .kbm-offcanvas__link.is-current{background:#f7f9fb!important;border-color:#e1e8ed!important;color:var(--kbm-135-navy)!important}
  body.kbm-ui135-active .kbm-offcanvas__link.is-current{border-inline-start:4px solid var(--kbm-135-yellow)!important}
  body.kbm-ui135-active .kbm-offcanvas__sub{padding:3px 8px 7px!important}
  body.kbm-ui135-active .kbm-offcanvas__sub a{display:flex!important;align-items:center!important;min-height:40px!important;padding:7px 10px!important;border-radius:11px!important;font-size:13px!important;color:#526576!important}
  body.kbm-ui135-active .kbm-overlay{background:rgba(7,27,42,.52)!important;backdrop-filter:blur(2px)!important}
}

@media(prefers-reduced-motion:reduce){
  .kbm-ads-recode-section--featured *,
  .kbm-c118-single *,
  .kbm-offcanvas{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
