/* Focused fixes from the October visual review. */
:root { --ui-ease-out: cubic-bezier(.23, 1, .32, 1); }
#authModal { padding: 16px; }
#authModal .modal { position: relative; width: min(500px, 100%); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border-radius: 12px; }
#authModal .close-button { position: absolute; z-index: 2; top: 12px; right: 12px; min-width: 40px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 6px; font-size: 24px; line-height: 1; }
#authModal .auth-form { display: flex; flex-direction: column; gap: 0; min-height: 0; max-height: calc(100dvh - 34px); }
#authModal .auth-scroll { padding: 24px 28px 18px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#authModal .modal-tabs { margin: 0 56px 18px 0; }
#authModal #authTitle { margin: 0 0 10px; font-size: 28px; }
#authModal .journey-note { margin: 0 0 4px; color: var(--muted); line-height: 1.5; }
#authModal .auth-role-switch { margin: 0 0 4px; color: #6e7178; font-size: 12px; }
#authModal .auth-legal-confirmations { margin: 0 0 14px; font-size: 12px; }
#authModal .check-row { font-weight: 400; line-height: 1.5; }
#authModal .oauth-stack { gap: 12px; margin-bottom: 16px; }
#authModal .auth-fields { display: grid; gap: 12px; }
#authModal .auth-fields > label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
#authModal .auth-fields input { min-height: 44px; padding: 10px 12px; font-size: 16px; font-weight: 400; }
#authModal .auth-password-input { position: relative; display: block; }
#authModal .auth-password-input input { width: 100%; padding-right: 72px; }
#authModal [data-password-visible] { position: absolute; top: 1px; right: 1px; bottom: 1px; min-height: 42px; min-width: 60px; padding: 8px; border: 0; background: transparent; color: #565b62; font: inherit; font-size: 12px; cursor: pointer; }
#authModal .password-rules { padding: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; }
#authModal .auth-actions { display: grid; gap: 4px; flex: none; padding: 16px 28px; border-top: 1px solid var(--border); background: var(--surface); }
#authModal .auth-actions > .button { min-height: 46px; box-shadow: none; }
#authModal .auth-recovery { justify-self: center; min-height: 44px; padding: 8px; background: transparent; border: 0; font: inherit; font-size: 13px; color: #565b62; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#authModal :focus-visible { outline: 2px solid #a63a24; outline-offset: 3px; }

.landing-search { align-items: start; }
.landing-city-field { position: relative; gap: 0; padding-bottom: 36px; }
.landing-city-field label { gap: 9px; }
.landing-city-field label > span { display: inline; }
.landing-city-field .button { position: absolute; left: 0; bottom: -4px; min-height: 40px; }
.landing-search .landing-search-button { margin-top: 28.5px; }

.button, .closer-primary, .closer-secondary, .closer-close, .billing-dialog-close { transition: transform 120ms var(--ui-ease-out), background-color 150ms ease, border-color 150ms ease; }
.button:focus-visible { transform: none; }
.button:active, .closer-primary:active, .closer-secondary:active, .closer-close:active, .billing-dialog-close:active { transform: scale(.98); }
@media (hover: none), (pointer: coarse) { .button:hover { transform: none; } }
@media (max-width: 850px) { .landing-search .landing-search-button { margin-top: 0; grid-column: 1 / -1; } }
@media (max-width: 600px) {
  #authModal .auth-scroll { padding: 20px 20px 16px; }
  #authModal .auth-actions { padding: 12px 20px; }
  #authModal #authTitle { font-size: 25px; }
  .landing-city-field { padding-bottom: 42px; }
  body:not(.dashboard-view) .site-header { gap: 8px; padding-inline: 14px; }
  body:not(.dashboard-view) .user-pill { gap: 7px; min-width: 0; justify-content: flex-end; }
  body:not(.dashboard-view) .user-pill > .button { padding-inline: 10px; font-size: 12px; }
  body:not(.dashboard-view) .user-pill .plan-badge { min-height: 36px; padding-inline: 9px; }
  body:not(.dashboard-view) .site-header .brand { font-size: 18px; }
  body:not(.dashboard-view) .session-actions { gap: 8px; min-width: 0; }
  body:not(.dashboard-view) .session-actions > .button { padding-inline: 10px; font-size: 12px; }
  .builder-search-form input:not([type="checkbox"]), .builder-search-form select { font-size: 16px; }
  .landing-plan { min-width: 0; }
  .landing-plan .button { white-space: normal; gap: 12px; }
}
@media (max-width: 380px) { body:not(.dashboard-view) .site-header .brand > span { display: none; } }
@media (prefers-reduced-motion: reduce) { .button, .closer-primary, .closer-secondary, .closer-close, .billing-dialog-close { transition: none; } }
