/* Compact mobile header, with the same navigation and account access as desktop. */
@media(max-width:700px){
body.ta-marketplace-light.ta-preview-light .altivo-header.ta-header-market{grid-template-columns:48px minmax(0,1fr)!important;padding:8px 12px!important;gap:6px 10px!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market .altivo-brand{width:48px!important;min-width:48px!important;height:48px!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market .altivo-brand-logo{width:48px!important;height:48px!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0 4px!important;padding:0!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav>a{font-size:12px!important;line-height:1.25!important;padding:4px 2px!important;min-width:0!important;min-height:48px!important;margin:0!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market>.altivo-header-actions.ta-account-entrypoints{gap:8px!important;max-width:none!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market #taAgstar{margin:0!important;padding:0!important}
body.ta-marketplace-light .ta-agstar-header-button{min-height:40px!important;padding:3px 8px!important;gap:7px!important}
body.ta-marketplace-light .ta-agstar-header-button img{width:22px!important;height:28px!important;object-fit:contain!important}
body.ta-marketplace-light .ta-agstar-header-button strong{font-size:12px!important}
body.ta-marketplace-light .ta-agstar-header-button small{font-size:10px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card:hover{transform:none!important}
}
/* Phone layout keeps desktop grouping without shrinking the entire document. */
@media(max-width:700px){
body.ta-marketplace-light.ta-preview-light .altivo-header.ta-header-market:has(.ta-account-entrypoints){grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:auto auto auto!important;gap:6px!important;padding:8px 10px!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market .altivo-brand{grid-column:1!important;grid-row:1!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market .ta-header-search{grid-column:2/7!important;grid-row:1!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:0 16px!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#b6caa9 transparent;scroll-padding-inline:8px;grid-row:2!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav>a{flex:0 0 auto!important;white-space:nowrap!important;font-size:13px!important;min-height:48px!important;padding:4px 2px!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market:has(.ta-account-entrypoints) #taAgstar{grid-column:1/3!important;grid-row:3!important;justify-self:stretch!important;align-self:center!important;margin:0!important;min-width:0!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market:has(.ta-account-entrypoints)>.altivo-header-actions.ta-account-entrypoints{grid-column:3/7!important;grid-row:3!important;gap:6px!important;max-width:none!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market .altivo-header-actions.ta-account-entrypoints :is(#altivoAccountButton,#taCreateAccount){font-size:12px!important;white-space:normal!important;line-height:1.25!important;padding:6px 4px!important;gap:4px!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market .ta-account-entrypoints #altivoAccountLabel{font-size:12px!important}
body.ta-marketplace-light .ta-agstar-header-button{width:100%!important;min-height:48px!important;padding:4px!important;gap:4px!important}
body.ta-marketplace-light .ta-agstar-header-button img{width:18px!important;height:24px!important}
body.ta-marketplace-light .ta-agstar-header-button strong{font-size:10px!important;white-space:nowrap}
body.ta-marketplace-light .ta-agstar-header-button small{font-size:9px!important;white-space:nowrap}
body.ta-marketplace-light .ta-account-entrypoints .farmer-avatar{width:22px!important;height:22px!important;min-width:22px!important}
body.ta-marketplace-light #planes-altivo.ta-plans-section{padding:22px 10px!important}
body.ta-marketplace-light #planes-altivo .ta-plans-header{padding-bottom:14px!important}
body.ta-marketplace-light #planes-altivo .ta-plans-header h2{font-size:24px!important}
body.ta-marketplace-light #planes-altivo .ta-plans-header p{font-size:14px!important;line-height:1.5!important}
body.ta-marketplace-light #planes-altivo .ta-plans-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 10px!important;align-items:stretch!important}
body.ta-marketplace-light #planes-altivo .ta-plans-grid .ta-plan-card{padding:12px!important;min-width:0!important;animation:none!important;transform:none!important;box-shadow:0 4px 12px #17221b24!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card h3{font-size:16px!important;margin:10px 0 6px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card .ta-plan-price{display:flex!important;flex-wrap:wrap!important;gap:2px 5px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card .ta-plan-price strong{font-size:22px!important;line-height:1.3!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card-empresarial .ta-plan-price strong{font-size:18px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card .ta-plan-price span{font-size:11px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card :is(li,.ta-plan-short,.ta-plan-capacity-note){font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card ul{gap:8px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card li{gap:5px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card li svg{width:13px!important;height:16px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-card .ta-plan-choose{font-size:12px!important;padding:9px 5px!important;min-height:48px!important}
body.ta-marketplace-light #planes-altivo .ta-plan-ribbon{font-size:9px!important;padding:4px!important}
body.ta-marketplace-light #planes-altivo .ta-badge-plate{width:48px!important;height:48px!important}
body.ta-marketplace-light #planes-altivo .ta-badge-preview{min-height:48px!important}
}
@media(max-width:350px){body.ta-marketplace-light #planes-altivo .ta-plans-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:700px){body.ta-marketplace-light #planes-altivo .ta-plan-card :is(li,.ta-plan-short,.ta-plan-capacity-note){letter-spacing:normal!important}body.ta-marketplace-light #planes-altivo .ta-plan-card h3,body.ta-marketplace-light #planes-altivo .ta-plans-header h2{font-weight:700!important}}
@media(max-width:700px){body.ta-marketplace-light.ta-preview-light .ta-header-market .ta-header-search{grid-column:2/5!important}body.ta-marketplace-light.ta-preview-light .ta-header-market:has(.ta-account-entrypoints) #taAgstar{grid-column:5/7!important;grid-row:1!important;justify-self:end!important;width:100%!important}body.ta-marketplace-light.ta-preview-light .ta-header-market:has(.ta-account-entrypoints)>.altivo-header-actions.ta-account-entrypoints{grid-column:1/7!important;grid-row:3!important;width:min(100%,290px)!important;justify-self:end!important}body.ta-marketplace-light.ta-preview-light .ta-header-market .ta-header-search input{padding:8px!important}body.ta-marketplace-light.ta-preview-light .ta-header-market .ta-header-search button{width:48px!important;min-width:48px!important}}
/* Phone-only ordering: search, account access, then section navigation. */
@media(max-width:700px){
body.ta-marketplace-light.ta-preview-light .ta-header-market .ta-header-search{grid-column:2/7!important;grid-row:1!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market:has(.ta-account-entrypoints) #taAgstar{grid-column:1/3!important;grid-row:2!important;justify-self:stretch!important;align-self:center!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market:has(.ta-account-entrypoints)>.altivo-header-actions.ta-account-entrypoints{grid-column:3/7!important;grid-row:2!important;width:100%!important;max-width:none!important}
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav{grid-column:1/7!important;grid-row:3!important}
}
/* Safari: keep navigation swipeable without the persistent horizontal rail. */
@media(max-width:700px){
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav{scrollbar-width:none!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav::-webkit-scrollbar{display:none;width:0;height:0}
body.ta-marketplace-light.ta-preview-light .ta-header-market>nav>a{scroll-snap-align:start}
body.ta-marketplace-light #taEmpleosView :is(.ta-classified-heading,.ta-jobs-publish,.ta-classified-empty){min-width:0!important;overflow-wrap:anywhere}
body.ta-marketplace-light #taEmpleosView .ta-classified-heading{column-gap:10px!important;row-gap:6px!important;margin-bottom:20px!important}
body.ta-marketplace-light #taEmpleosView .ta-classified-heading h1{margin:0!important;line-height:1.2!important}
body.ta-marketplace-light #taEmpleosView .ta-jobs-publish h2{font-size:20px!important;line-height:1.35!important}
body.ta-marketplace-light #taEmpleosView .ta-jobs-publish p{font-size:14px!important;line-height:1.6!important}
}
