/* Avoid stale transformed compositor tiles when switching long pages in Android WebView. */
html{background:#fff9f0;min-height:100%}body{min-height:100vh}.page-screen,.outing-results{animation:none!important;transform:none!important}

/* Android touch targets, readable tablet layout and keyboard-safe forms. */
.nav-item,.calendar-arrow,.calendar-grid button,.small-ghost,.icon-button,.avatar-button,.modal-close,.text-button{min-height:44px;min-width:44px}
.mobile-nav button{min-height:52px}
.modal-sheet{max-height:calc(100dvh - 24px)}
.modal-header,.modal-footer{flex-shrink:0}
.modal-scroll,.reminder-scroll{min-height:0}
.modal-sheet input:not([type=checkbox]):not([type=radio]),.modal-sheet textarea{font-size:16px;min-height:46px}
.modal-sheet button:not(.reminder-toggle){min-height:44px}
.reminder-delete{width:44px;height:44px}
.reminder-toggle{height:32px}.reminder-toggle span{top:6px}
@media(min-width:700px) and (min-height:600px){
 .topbar{height:90px;padding:0 24px;gap:14px}.nav-item{font-size:15px;padding:8px 12px}
 .page-wrap{padding:28px 24px 56px}.intro-row{margin-bottom:22px}.intro-row h1{font-size:36px}
 .intro-row>div>p:last-child{font-size:18px}.primary-cta{min-height:58px;font-size:19px}
 .walk-signal-card{padding:22px 26px}.walk-weather-button,.walk-reminder-button{font-size:16px;min-height:48px}
 .profile-photo-wrap,.profile-photo{min-height:240px;height:240px}
 .profile-copy{padding:22px}.profile-title-row h2{font-size:32px}.pet-meta{font-size:17px}
 .pet-stats span,.weekday-row{font-size:14px}.pet-stats strong{font-size:18px}
 .photo-record-card{padding:24px}.card-heading h2{font-size:29px}
 .photo-grid{height:auto;grid-auto-rows:minmax(220px,1fr)}.photo-slot,.photo-slot>img{min-height:220px}
 .calendar-grid button{font-size:16px;min-height:46px}
 .detail-button,.report-button,.save-button{font-size:17px;min-height:52px}
 .summary-card{padding:24px}.condition-panel{font-size:17px}
 .modal-sheet{width:min(1040px,calc(100vw - 48px));max-height:calc(100dvh - 48px)}
 .modal-sheet.compact-modal{width:min(720px,calc(100vw - 48px))}
 .modal-header h2{font-size:30px}.modal-scroll{padding:24px;gap:18px}
 .form-title h3{font-size:21px}.form-title p{font-size:15px}
 .form-section{padding:22px}.form-section label{font-size:17px}
 .modal-save,.secondary-button{font-size:18px;min-height:54px}
 .modal-footer>p{font-size:13px}.reminder-scroll{font-size:17px}
 .reminder-heading strong,.reminder-empty strong{font-size:19px}.reminder-heading span,.reminder-empty p{font-size:15px}
 .reminder-heading>button,.reminder-empty button,.calendar-alert-box>button{font-size:16px;min-height:48px}
}
@media(min-width:700px) and (max-width:1100px) and (min-height:600px){
 .topbar{grid-template-columns:1fr auto;height:142px;padding:12px 24px;row-gap:8px}
 .desktop-nav{grid-row:2;grid-column:1/-1;justify-self:stretch;justify-content:center}
 .topbar>div:last-child{grid-column:2;grid-row:1}
 .dashboard-grid{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:18px}
}
@media(orientation:landscape) and (max-height:600px){
 .topbar{height:60px;position:relative;padding:0 16px}
 .page-wrap{padding-top:18px}.intro-row{margin-bottom:18px}.intro-row h1{font-size:28px}
 .modal-backdrop{padding:8px;align-items:center}
 .modal-sheet,.modal-sheet.compact-modal{max-height:calc(100dvh - 16px);border-radius:18px}
 .modal-header{padding:8px 16px;gap:10px}.modal-header h2{font-size:22px}.modal-header .section-kicker{display:none}
 .modal-footer{padding:7px 14px;flex-direction:row;gap:8px}.modal-footer>p{display:none}
 .modal-scroll{padding:12px;gap:10px}.form-section{padding:14px}
}
@media(max-height:300px){
 .modal-header{padding:4px 12px}.modal-header h2{font-size:18px}
 .modal-footer{padding:4px 12px}.modal-footer>p{display:none}
 .modal-sheet{max-height:calc(100dvh - 8px)}
}
