/* V7.1.2 — Mobile Polish & cohérence visuelle. Additive only. */
.ca-inline-icon{width:18px;height:18px;display:inline-block;vertical-align:-4px;flex:0 0 auto}.dashboard-top-shortcuts-v6611 button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.dashboard-kpi-icon-v661 .ca-icon{width:20px;height:20px;margin:auto}.nav-icon .ca-icon{margin:auto}.nav button>span:first-child{flex:0 0 auto}
@media(max-width:760px){
 :root{--v712-safe-bottom:calc(78px + env(safe-area-inset-bottom));--v712-gutter:clamp(10px,3.8vw,18px)}
 html,body{max-width:100%;overflow-x:hidden}body{min-width:0}.app-shell,main,.view,.panel,.page-head{min-width:0;max-width:100%}
 main{padding-left:var(--v712-gutter)!important;padding-right:var(--v712-gutter)!important;padding-bottom:calc(var(--v712-safe-bottom) + 20px)!important}
 .page-head{align-items:flex-start!important}.page-head>div{min-width:0}.page-head h1{overflow-wrap:anywhere}.page-head p{max-width:60ch}
 .page-head>button,.page-head>.primary{width:100%;min-height:44px;white-space:normal}
 button,.primary,.secondary,.filter,input,select,textarea{max-width:100%;box-sizing:border-box}.primary,.secondary{min-height:42px}
 input,select,textarea{font-size:16px!important}textarea{min-height:110px}
 .market-tabs-v711{top:calc(clamp(62px,9vw,72px) + 4px);z-index:25;box-shadow:0 7px 18px rgba(18,52,43,.06)}.market-tab-v711{min-height:44px}
 .catalog-summary{align-items:stretch!important}.catalog-summary-left,.catalog-summary-actions{min-width:0;width:100%}.catalog-summary-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:7px}.catalog-summary-actions .filter{width:100%;max-width:none!important}.v54-reset{min-height:42px}
 .export-grid,.market-grid,.stock-visual-grid{grid-template-columns:1fr!important}.export-card,.market-card,.stock-vehicle-card{min-width:0}
 .modal{padding:8px!important;align-items:flex-end!important}.modal-box{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 12px)!important;border-radius:22px 22px 12px 12px!important}.modal-head{position:sticky;top:0;z-index:3;background:#fff}.modal-box .form{padding-bottom:calc(var(--v712-safe-bottom) + 18px)!important}.form-actions{position:sticky;bottom:0;z-index:2;background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 24%);padding-top:10px;padding-bottom:max(8px,env(safe-area-inset-bottom));display:grid!important;grid-template-columns:1fr 1fr;gap:8px}.form-actions>*{width:100%;min-width:0}
 .mobile-nav{min-height:calc(66px + env(safe-area-inset-bottom));padding-bottom:max(6px,env(safe-area-inset-bottom))!important}.mobile-nav button{min-width:0;min-height:54px;touch-action:manipulation}.mobile-nav button .ca-icon{width:22px;height:22px}.mobile-nav button span{overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .mobile-drawer{max-height:min(82dvh,720px);overflow:auto;-webkit-overflow-scrolling:touch}.mobile-drawer-links button{min-height:58px;display:flex;align-items:center;gap:10px;text-align:left}.mobile-drawer-links .ca-icon{width:21px;height:21px;flex:0 0 auto}
 #services .services-v673-grid,#services .services-category-grid,#services .services-grid{grid-template-columns:1fr!important}#services input,#services select{width:100%;min-width:0}
 .vehicle-detail,.vehicle-detail-shell,.detail-grid,.vehicle-detail-grid{min-width:0;max-width:100%}.vehicle-detail .actions,.vehicle-detail-actions{display:grid!important;grid-template-columns:1fr;gap:8px}.vehicle-detail .actions button,.vehicle-detail-actions button{width:100%}
 #messages .composer input{min-width:0}.thread-list,.chat{min-width:0}
}
@media(max-width:390px){.mobile-nav button span{font-size:8.5px!important}.mobile-nav{padding-inline:3px!important}.mobile-drawer-links{grid-template-columns:1fr 1fr!important;gap:7px!important}.mobile-drawer-links button{padding:12px 9px!important}.market-tab-v711{font-size:12px}.catalog-summary-actions{grid-template-columns:1fr}.form-actions{grid-template-columns:1fr}}

/* V7.1.2.2 — Mobile Navigation & UI Fix */
@media(max-width:760px){
 /* The five primary shortcuts are persistent UI: never hide them according to scroll direction. */
 .mobile-nav{
  display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;
  transform:none!important;translate:none!important;opacity:1!important;visibility:visible!important;
  pointer-events:auto!important;z-index:100!important;
  transition:background-color .18s ease,box-shadow .18s ease!important;
 }
 /* Gold remains an accent, not a permanent outline around touch actions. */
 .dashboard-top-shortcuts-v6611 button,
 .sv-hero-actions-v673 button,
 .sv-tools-v673 button,
 .page-head>.primary{
  border-color:transparent!important;outline:0;
 }
 .dashboard-top-shortcuts-v6611 .secondary,
 .sv-hero-actions-v673 .secondary{
  border-color:#ddd6c9!important;
 }
 button:focus-visible,.primary:focus-visible,.secondary:focus-visible{
  outline:2px solid #0b5748!important;outline-offset:2px!important;
 }
}

/* V7.1.2.3 — Mobile Menu Scroll Fix */
@media(max-width:760px){
 /* Keep the drawer entirely above the persistent navigation and scroll only its shortcuts. */
 .mobile-drawer{
  bottom:var(--v712-safe-bottom)!important;
  max-height:calc(100dvh - var(--v712-safe-bottom) - 16px)!important;
  overflow:hidden!important;
  padding-bottom:12px!important;
 }
 .mobile-drawer-head{
  flex:0 0 auto;position:sticky;top:0;z-index:2;background:var(--panel);
 }
 .mobile-drawer-links{
  min-height:0;overflow-y:auto!important;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding-bottom:12px;
 }
}


/* V7.1.2.4 — Mobile Logout Access */
@media(max-width:760px){
 .mobile-drawer-links .mobile-logout-v7124{
  grid-column:1 / -1;justify-content:center!important;font-weight:800;
  margin-top:2px;border-color:rgba(154,55,45,.24)!important;color:#8f3029!important;background:#fffaf7!important;
 }
}
