body .altivo-header-actions.ta-account-entrypoints{gap:12px!important}
body.ta-preview-light .altivo-header-actions.ta-account-entrypoints :is(#altivoAccountButton,#taCreateAccount){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;padding:10px 12px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#dbe8d7!important;box-shadow:none!important;text-decoration:none!important;font:600 14px/1.3 'DM Sans',Arial,sans-serif!important;white-space:nowrap!important}
body.ta-preview-light .altivo-header-actions.ta-account-entrypoints #taCreateAccount[hidden]{display:none!important}
body.ta-preview-light .altivo-header-actions.ta-account-entrypoints :is(#altivoAccountButton,#taCreateAccount):hover{background:#24362d!important;color:#f0f3e5!important}
body.ta-preview-light .altivo-header-actions.ta-account-entrypoints :is(#altivoAccountButton,#taCreateAccount):focus-visible{outline:3px solid #e1cd96!important;outline-offset:3px}
body #altivoAccountDialog.ta-account-single-mode :is(.altivo-account-tabs,#altivoAccountSwitch){display:none!important}
body #altivoAccountDialog.ta-account-single-mode.ta-account-publish-access #altivoAccountSwitch:not([hidden]){
 display:flex!important;flex-wrap:wrap;align-items:center;gap:4px 8px;
}
#altivoAccountDialog.ta-account-publish-access #altivoAccountSwitch button{
 min-height:44px;padding:6px 10px;border:1px solid #a4b49c;border-radius:8px;background:#fff;color:#24452d;font-weight:700;
}
/* Keep both account actions in their own row before the header becomes crowded. */
@media(max-width:1150px){
 body.ta-preview-light .altivo-header.ta-header-market{position:relative!important;display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:8px 12px!important;padding:12px 16px!important}
 body.ta-preview-light .ta-header-market .altivo-brand{grid-column:1!important;grid-row:1!important}
 body.ta-preview-light .ta-header-market .ta-header-search{grid-column:2/-1!important;grid-row:1!important;width:100%!important;max-width:100%!important;min-width:0!important}
 body.ta-preview-light .ta-header-market>nav{grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:0 12px!important;min-width:0!important;width:100%!important}
 body.ta-preview-light .ta-header-market>nav>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;font-size:13px!important;white-space:normal!important;text-align:center!important}
 body.ta-preview-light .ta-header-market>.altivo-header-actions.ta-account-entrypoints{grid-column:1/-1!important;grid-row:3!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:480px!important;justify-self:center!important;gap:12px!important;min-width:0!important}
 body.ta-preview-light .altivo-header-actions.ta-account-entrypoints :is(#altivoAccountButton,#taCreateAccount){width:100%!important;min-width:0!important;border:1px solid #729c7980!important;font-size:13px!important;padding:8px!important}
 body.ta-preview-light .ta-account-entrypoints #altivoAccountLabel{display:inline!important;max-width:none!important;overflow:visible!important;font-size:13px!important}
 body.ta-preview-light .ta-header-market #taAgstar{grid-column:1/-1!important;grid-row:4!important;justify-self:center!important}
 body.ta-preview-light .ta-header-market>.ta-account-signed-in{grid-template-columns:minmax(0,1fr)!important}
}
/* The complete form remains reachable in portrait, landscape and with a keyboard. */
@media(max-width:1100px),(max-height:650px){
 body #altivoAccountDialog{box-sizing:border-box!important;width:min(560px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;border-radius:16px!important}
 body #altivoAccountDialog[open]{grid-template-rows:60px minmax(0,1fr)!important}
 body #altivoAccountDialog>.altivo-account-layout{display:block!important;min-height:0!important;height:100%!important;overflow:hidden!important}
 body #altivoAccountDialog .altivo-account-welcome{display:none!important}
 body #altivoAccountDialog .altivo-account-form{box-sizing:border-box!important;width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;padding:16px 20px 28px!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
 body #altivoAccountDialog .altivo-account-form input{font-size:16px!important;min-height:48px!important}
 body #altivoAccountDialog .altivo-account-intro{margin-bottom:18px!important}
 body #altivoAccountDialog .altivo-account-form :is(button,select){min-height:48px}
}
@media(max-width:800px){
  body.ta-preview-light .altivo-header.ta-header-market:has(.ta-account-entrypoints:not(.ta-account-signed-in)){grid-template-rows:auto auto auto auto!important}
  body.ta-preview-light .ta-header-market>.ta-account-entrypoints:not(.ta-account-signed-in){grid-column:1/-1!important;grid-row:3!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;width:100%!important;justify-self:stretch!important}
  body.ta-preview-light .ta-header-market:has(.ta-account-entrypoints:not(.ta-account-signed-in)) #taAgstar{grid-column:1/-1!important;grid-row:4!important;justify-self:center!important}
  body.ta-preview-light .altivo-header-actions.ta-account-entrypoints:not(.ta-account-signed-in) :is(#altivoAccountButton,#taCreateAccount){width:100%!important;min-width:0!important;border:1px solid #729c7980!important;font-size:13px!important;padding:8px!important}
  body.ta-preview-light .ta-account-entrypoints #altivoAccountLabel{font-size:13px!important;max-width:none!important}
  body .ta-create-account{font-size:13px;padding:10px 8px;min-width:0}
}
/* Fit account panels to their content; keep long forms scrollable on phones. */
@media(max-width:1100px),(max-height:650px){
body #altivoAccountDialog{height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;padding:56px 0 0!important;overflow:hidden!important}
body #altivoAccountDialog[open]{display:block!important}
body #altivoAccountDialog>[data-altivo-account-close]{position:absolute!important;top:6px!important;right:8px!important;margin:0!important}
body #altivoAccountDialog>.altivo-account-layout{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body #altivoAccountDialog .altivo-account-form{height:auto!important;min-height:0!important;max-height:calc(100dvh - 88px)!important;padding:12px 18px 22px!important;overflow-y:auto!important;overscroll-behavior:contain}
body #altivoAccountDialog .altivo-account-intro{margin-bottom:16px!important}
}
@media(max-width:1100px),(max-height:650px){body #altivoAccountDialog{height:fit-content!important;inset:0!important;margin:auto!important}}
