/* Senior readability layer — loaded last.
   app.css and friends were rescaled so no app text is smaller than 14px and muted grey text
   meets WCAG AA contrast; this file holds the few fixes a rescale can't express. */

/* White on brand red was 4.0:1. The darker red keeps the brand and passes AA (5:1). */
.app-button.primary,.setup-banner .app-button.primary{background:var(--red-dark)}
.app-button.primary:hover{background:#b3132a}

/* Kickers that sit on the navy hero cards need a light tint, not the darkened red. */
.privacy-center-hero .app-kicker,.export-intro .app-kicker,.activation-panel .app-kicker,.review-summary .app-kicker{color:#ff9aa6}

/* Easier reading for longer copy. */
.app-main p,.onboarding-main p{line-height:1.6}

/* A clear focus ring for keyboard and switch users. */
.app-shell a:focus-visible,.app-shell button:focus-visible,.app-shell input:focus-visible,.app-shell select:focus-visible,.app-shell textarea:focus-visible,
.onboarding-shell a:focus-visible,.onboarding-shell button:focus-visible,.onboarding-shell input:focus-visible,.onboarding-shell select:focus-visible,.onboarding-shell textarea:focus-visible{outline:3px solid #1d5fa8;outline-offset:2px}

/* Wider sidebar so labels like "Emergency Contacts" stay on one line at the larger text size. */
@media(min-width:821px){.app-shell{grid-template-columns:300px minmax(0,1fr)}.app-sidebar{width:300px}}

/* Dashboard: let cards reflow instead of squeezing the larger text into narrow columns. */
.dashboard-quick-grid{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}
.overview-grid{grid-template-columns:repeat(auto-fit,minmax(min(400px,100%),1fr))}
.panel-heading{flex-wrap:wrap;gap:8px 16px}
.panel-heading>a{white-space:nowrap}

/* Phones: one metric card per row, and bottom-tab labels on a single line. */
@media(max-width:640px){.overview-metrics{grid-template-columns:1fr}}
@media(max-width:820px){.app-bottom-nav a{font-size:13px;white-space:nowrap;letter-spacing:0}}

/* Scanner view: the 911 button keeps its urgency with a deeper red that passes AA. */
.ev-call-911{background:#c8102e;border-color:#a50d26}

/* Account block at the foot of the navy sidebars: it used navy text on navy (name and
   "My profile" were close to invisible). Give it light text that matches the sidebar. */
.app-sidebar .sidebar-account-actions,.admin-sidebar .sidebar-account-actions{border-top-color:rgba(255,255,255,.12)}
.app-sidebar .sidebar-account-identity b,.admin-sidebar .sidebar-account-identity b{color:#fff;font-size:16px}
.app-sidebar .sidebar-account-identity small,.admin-sidebar .sidebar-account-identity small{color:#b7c5d5;font-size:14px}
.app-sidebar .sidebar-account-actions>button,.admin-sidebar .sidebar-account-actions>button{color:#d5dfea;font-size:16px}
.app-sidebar .sidebar-account-actions>button:hover,.admin-sidebar .sidebar-account-actions>button:hover{background:rgba(255,255,255,.1);color:#fff}
.app-sidebar .sidebar-account-actions>button:last-of-type,.admin-sidebar .sidebar-account-actions>button:last-of-type,
.app-sidebar .sidebar-account-actions p,.admin-sidebar .sidebar-account-actions p{color:#ff9aa6}
.app-sidebar .sidebar-account-actions>button:last-of-type:hover,.admin-sidebar .sidebar-account-actions>button:last-of-type:hover{background:rgba(255,120,140,.14)}

/* Home-screen app on iPhone: keep top bars clear of the clock and battery. env() is 0 everywhere else. */
.ev-page{padding-top:env(safe-area-inset-top)}
@media(max-width:820px){
.app-topbar{padding-top:calc(12px + env(safe-area-inset-top))}
.app-sidebar{padding-top:calc(20px + env(safe-area-inset-top))}
.onboarding-topbar{height:auto;min-height:60px;padding-top:env(safe-area-inset-top)}
.admin-topbar,.admin-sidebar{padding-top:calc(16px + env(safe-area-inset-top))}
.auth-mobile-logo{top:calc(25px + env(safe-area-inset-top))}
.site-header,.site-header.is-scrolled{padding-top:calc(10px + env(safe-area-inset-top))}
}
