@media (max-width: 899px) {
  html body:not(.desktop-page) .page[data-panel="sold"] .sold-card .card-actions.sold-card-actions {
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 4px !important;
    padding: 6px 7px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  html body:not(.desktop-page) .page[data-panel="sold"] .sold-card .card-actions.sold-card-actions > button {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border-radius: 4px !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }
  html body:not(.desktop-page) .page[data-panel="sold"] .sold-card .card-actions.sold-card-actions > button::before {
    width: 9px !important;
    height: 9px !important;
    flex: 0 0 9px !important;
    margin-right: 3px !important;
  }
  html body:not(.desktop-page) .page[data-panel="sold"] .sold-card .card-actions.sold-card-actions > .view {
    background: #fffaf0 !important;
  }
  html body:not(.desktop-page) .page[data-panel="sold"] .sold-card .card-actions.sold-card-actions > .sell {
    background: #f8d783 !important;
  }
  html body:not(.desktop-page) .page[data-panel="sold"] .sold-card .card-actions.sold-card-actions > .manage {
    background: #efecff !important;
  }
  html body:not(.desktop-page) .page[data-panel="sold"] .sold-card .card-actions.sold-card-actions > .delete {
    background: #fff !important;
    border-color: #efbaba !important;
    color: #d34d4d !important;
  }
}
/* Larger, readable vehicle action targets on phones. */
@media(max-width:899px){
html body:not(.desktop-page) .page:is([data-panel="inventory"],[data-panel="sold"]) :is(.vehicle-card,.sold-card) .card-actions.card-actions{display:flex!important;flex-wrap:wrap!important;gap:5px!important;width:100%!important;box-sizing:border-box!important;padding:8px 6px!important}
html body:not(.desktop-page) .page:is([data-panel="inventory"],[data-panel="sold"]) :is(.vehicle-card,.sold-card) .card-actions.card-actions>button{flex:1 1 70px!important;min-width:0!important;width:auto!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 3px!important;font-size:12px!important;line-height:1.2!important;border-radius:6px!important;white-space:nowrap!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important}
html body:not(.desktop-page) .page:is([data-panel="inventory"],[data-panel="sold"]) :is(.vehicle-card,.sold-card) .card-actions.card-actions>button::before{width:13px!important;height:13px!important;flex:0 0 13px!important;margin:0!important}
}
@media(max-width:359px){html body:not(.desktop-page) .page:is([data-panel="inventory"],[data-panel="sold"]) :is(.vehicle-card,.sold-card) .card-actions.card-actions>button{flex-basis:calc(50% - 5px)!important}}

/* The floating action bar belongs only to the mobile layout. */
@media (max-width: 899px) {
/* Slim vehicle actions retain the source navigation's 23/11 icons/text
   and glass layers. No moving lens, resizing, or navigation behavior is attached. */
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] { grid-template-rows: auto minmax(0, 1fr) !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > .modal-body {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions {
  position: absolute !important;
  inset: auto 12px calc(2px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 3;
  box-sizing: border-box !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 0 !important;
  width: auto !important;
  max-width: 640px !important;
  min-height: 60px !important;
  height: 60px !important;
  margin: 0 auto !important;
  padding: 4px !important;
  border: 1.5px solid rgba(255, 255, 255, .88) !important;
  border-radius: 999px !important;
  background: rgba(247, 251, 252, .94) !important;
  color: #435968 !important;
  box-shadow: 0 10px 30px rgba(29, 39, 48, .15), 0 1px 4px rgba(34, 43, 51, .08), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .5) !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  isolation: isolate;
  overflow: visible !important;
}
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button {
  position: relative !important;
  z-index: 1;
  isolation: isolate;
  box-sizing: border-box !important;
  flex: 1 1 0 !important;
  grid-area: auto !important;
  width: 0 !important;
  min-width: 0 !important;
  min-height: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 3px 2px !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #435968 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: color 140ms ease !important;
  animation: none !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button::before {
  content: '';
  position: static !important;
  display: block;
  width: 28px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  margin: 0 !important;
  background: currentColor !important;
  -webkit-mask: var(--vehicle-action-icon) center / 23px 23px no-repeat;
  mask: var(--vehicle-action-icon) center / 23px 23px no-repeat;
  transform: none !important;
}
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sql-sell-detail-save] { order: 1 !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sale-report-mode] { order: 2 !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sale-line-share-open] { order: 3 !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sql-sell-submit] { order: 4 !important; color: #24536a !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-close-modal] { order: 5 !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sql-sell-submit]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  box-sizing: border-box;
  width: 50px;
  max-width: 100%;
  height: 50px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: radial-gradient(ellipse at 15% 6%, rgba(255,255,255,.43), transparent 45%), linear-gradient(120deg, transparent 38%, rgba(255,255,255,.22) 48%, transparent 61%), linear-gradient(145deg, rgba(255,255,255,.74), rgba(205,219,224,.56) 46%, rgba(221,231,235,.65));
  box-shadow: inset 1px 1.5px 1px rgba(255,255,255,.96), inset -1px -1px 2px rgba(106,126,130,.16), 0 2px 5px rgba(42,62,70,.07);
  pointer-events: none;
}
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button:not(:disabled):hover,
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button:not(:disabled):active { color: #123856 !important; background: transparent !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button:focus-visible { outline: 2px solid #24536a !important; outline-offset: -3px; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button:disabled { opacity: .45 !important; cursor: not-allowed; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button[hidden],
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button[aria-hidden="true"] { display: none !important; }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sql-sell-detail-save] { --vehicle-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h12l4%204v14H3V3h2Zm2%200v6h10V3M7%2021v-8h10v8%22%2F%3E%3C%2Fsvg%3E"); }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sale-report-mode] { --vehicle-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m15%204%205%205M4%2016%2016%204a2.1%202.1%200%200%201%203%200l1%201a2.1%202.1%200%200%201%200%203L8%2020l-5%201%201-5Z%22%2F%3E%3C%2Fsvg%3E"); }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sale-line-share-open] { --vehicle-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2015V3m-4%204%204-4%204%204M6%2011H4v10h16V11h-2%22%2F%3E%3C%2Fsvg%3E"); }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-sql-sell-submit] { --vehicle-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%203%207v5c0%205%205%208%209%2010%204-2%209-5%209-10V7l-9-4Zm-4%209%203%203%205-6%22%2F%3E%3C%2Fsvg%3E"); }
html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > [data-close-modal] { --vehicle-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H4v16h5m4-4%204-4-4-4m-5%204h13%22%2F%3E%3C%2Fsvg%3E"); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions {
    background: linear-gradient(120deg, rgba(253,255,255,.62), rgba(242,247,250,.46), rgba(255,255,255,.56)) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
  }
}
/* Keep the established iOS editor no-blur safeguard; approximate with layered white. */
@media (max-width: 899px) {
  html body:where(:not(.desktop-page)).ios-touch-viewport.ios-sell-modal-open .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions {
    background: linear-gradient(120deg, rgba(253,255,255,.96), rgba(242,247,250,.94), rgba(255,255,255,.96)) !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions { background: #f8fbfc !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-reduced-motion: reduce) { html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions > button { transition: none !important; } }
@media print {
  html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > footer.modal-actions { display: none !important; }
  html body:where(:not(.desktop-page)) .mobile-modal[data-modal="vehicle-sell"] > .modal-body { padding-bottom: 0 !important; }
}

}
