/* Puppy Day One v12 — mobile QA fixes */
html,body{width:100%;max-width:100%;overflow-x:hidden}

/* Access: mobile should be a simple sign-in screen, not a desktop marketing page squeezed into a phone. */
@media (max-width:700px){
  .accessPage{background:#fbf5eb!important}
  .accessPage .wrap{width:100%!important;max-width:100%!important;padding:0 16px!important}
  .accessPage .nav{min-height:64px!important;height:auto!important;padding:10px 0!important}
  .accessPage .brand{font-family:"DM Serif Display",Georgia,serif!important;font-size:20px!important;min-width:0}
  .accessPage .brandMark{width:38px!important;height:38px!important;flex:0 0 38px!important}
  .accessPage .navLinks{display:flex!important;gap:4px!important}
  .accessPage .navLinks a{font-size:10px!important;padding:8px 9px!important;white-space:nowrap}
  .accessPage .navLinks a:first-child{display:none!important}
  .accessPage .shell{display:block!important;min-height:auto!important;padding:24px 0 28px!important;margin:0!important}
  .accessPage .copy{display:none!important}
  .accessPage .card{width:100%!important;max-width:520px!important;margin:0 auto!important;padding:24px 20px 22px!important;border-radius:22px!important;overflow:hidden!important;box-shadow:0 12px 38px rgba(67,47,31,.06)!important}
  .accessPage .card:before{width:120px!important;height:120px!important;right:-55px!important;top:-55px!important}
  .accessPage .mailIcon{width:42px!important;height:42px!important;margin:0 0 14px!important;font-size:10px!important}
  .accessPage .eyebrow{font-size:9px!important}
  .accessPage .card h2{font-family:"DM Serif Display",Georgia,serif!important;font-size:36px!important;line-height:1.02!important;letter-spacing:-.025em!important;margin:6px 0 7px!important;overflow-wrap:normal!important;word-break:normal!important}
  .accessPage .card p{font-size:13px!important;margin:0 0 8px!important}
  .accessPage .label{font-size:12px!important;margin-top:18px!important}
  .accessPage .field{font-size:16px!important;width:100%!important;padding:14px!important;border-radius:14px!important}
  .accessPage .btn{font-size:13px!important;padding:14px!important;border-radius:999px!important;margin-top:12px!important}
  .accessPage .security{display:block!important;padding:12px!important;border-radius:14px!important;margin-top:14px!important;font-size:10px!important}
  .accessPage .security span{display:block!important}
  .accessPage .security span:first-child{font-weight:800!important;color:#173937!important;margin-bottom:3px!important}
  .accessPage .fine{font-size:9px!important;margin-top:10px!important}
  .accessPage .footer{display:flex!important;flex-direction:column!important;gap:3px!important;text-align:center!important;border-top:0!important;padding:14px 0 calc(22px + env(safe-area-inset-bottom))!important;font-size:9px!important}
  .accessPage .footer span{display:block!important}
}

/* Dashboard: keep the bottom navigation from sitting on top of cards, and compact the rail on phones. */
@media (max-width:880px){
  .dashboardPage .content{padding-bottom:calc(132px + env(safe-area-inset-bottom))!important}
  .dashboardPage .mobileNav{bottom:max(10px,env(safe-area-inset-bottom))!important}
}
@media (max-width:620px){
  .dashboardPage .railCard{padding:15px!important}
  .dashboardPage .railTitle{font-size:18px!important;margin-bottom:8px!important}
  .dashboardPage .progressRing{width:82px!important;height:82px!important}
  .dashboardPage .progressRing:before{width:60px!important;height:60px!important}
  .dashboardPage .progressRing strong{font-size:22px!important}
  .dashboardPage .stat{padding:9px 6px!important}
  .dashboardPage .moods{gap:6px!important}
  .dashboardPage .mood{min-width:0!important}
  .dashboardPage .checkinNote{font-size:8px!important;padding:8px 9px!important}
  .dashboardPage .guideIllustration{height:160px!important;min-height:160px!important}
  .dashboardPage .guideIllustration img{max-height:138px!important;width:auto!important}
  .dashboardPage .goodBanner{margin-bottom:4px!important}
}

/* Full plan: reserve room for fixed mobile nav and Safari safe areas. */
@media (max-width:820px){
  .planPage .contentWrap{padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}
  .planPage .mobileNav{bottom:max(10px,env(safe-area-inset-bottom))!important}
}

/* Landing: preserve the earlier mobile hardening after v11 visual overrides. */
@media (max-width:560px){
  .landingPage .wrap{width:100%!important;padding-left:14px!important;padding-right:14px!important}
  .landingPage .heroVisual,.landingPage .quiz-shell{max-width:100%!important}
  .landingPage input,.landingPage select,.landingPage textarea{font-size:16px!important}
}
