/* Compact mobile page chrome shared by public and service screens. */
.auth-page #account-login-form>button[type=submit]{background:#00747a;color:#fff;-webkit-text-fill-color:#fff;font-weight:700;opacity:1}
.auth-page #account-login-form>button[type=submit]:hover{background:#005e64}
.auth-page #account-login-form>button[type=submit]:focus-visible{outline:3px solid #15354c;outline-offset:3px}
@media(max-width:800px){
 body:not(.map-catalog-page)>.system-header{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:6px 12px}
 body:not(.map-catalog-page)>.system-header .brand{min-width:0;gap:8px;margin:0}
 body:not(.map-catalog-page)>.system-header .brand img{width:30px;height:34px}
 body:not(.map-catalog-page)>.system-header .brand strong{font-size:16px;line-height:1.2}
 body:not(.map-catalog-page)>.system-header .brand small{display:none}
 body:not(.map-catalog-page)>.system-header .header-right{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;width:100%;min-width:0;margin:0}
 .system-header .header-right .profile-menu{order:-1;min-width:0;max-width:100%;color:#fff}
 .system-header .profile-menu>summary{min-height:44px;padding:4px 6px;color:#fff;gap:6px}
 .system-header .profile-menu>summary small{color:#d7e9ed;font-size:11px;line-height:1.2}
 .system-header .profile-menu>summary strong{color:#fff;font-size:14px;line-height:1.2;overflow-wrap:anywhere}
 .system-header .profile-menu-panel{left:0;right:auto}
 .system-header .language-switch{padding:0;gap:0;margin:0}
 .system-header .language-switch button{min-height:44px;min-width:40px;padding:4px;font-size:12px}
 body:not(.map-catalog-page)>.system-header .interface-switch{order:3;grid-column:1/-1;width:100%;margin:0;padding:0;gap:4px}
 .system-header .interface-switch a{min-height:44px;padding:5px 8px;font-size:13px}
 .system-header .header-auth{gap:4px;flex-wrap:wrap}
 .system-header .header-auth a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
 body:not(.map-catalog-page)>.app-layout>#content{padding:8px 12px 16px!important}
 #content .mobile-page-nav{gap:6px;margin-bottom:6px}
 #content .mobile-page-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px;font-size:13px}
 #content .mobile-incident-menu{margin-bottom:8px}
 #content .mobile-incident-menu>summary{min-height:44px;padding:5px 10px;gap:8px}
 #content .mobile-incident-caption{font-size:11px;line-height:1.2}
 #content .mobile-incident-menu strong{font-size:13px;line-height:1.25}
 #content h1{font-size:22px!important;line-height:1.25;margin-bottom:10px}
 #content .screen-heading,#content .workspace-heading,#content .registry-heading{gap:8px;margin-bottom:8px}
 #content .context-note,#content .report-operation{margin-bottom:10px}
 #content .workspace-profile{padding:0 0 10px!important;margin-bottom:8px!important;gap:6px!important}
 #content .workspace-profile h1{margin:0 0 6px}
 #content .workspace-guide{margin-bottom:10px;padding:8px 10px}
 #content .notice{padding:8px 10px;margin-bottom:8px}
 #content .material-tabs{gap:4px;margin-bottom:8px}
 #content .material-tabs a{display:flex;align-items:center;min-height:44px;padding:5px 8px;font-size:12px;line-height:1.3}
 #content .archive-list-heading{background:transparent;color:var(--ink);padding:0;gap:4px 8px;margin:0 0 6px;align-items:center}
 #content .archive-list-heading h1{font-size:22px!important;margin:0}
 #content .archive-more summary{min-height:44px;display:flex;align-items:center;padding:4px}
 #content .archive-list-heading+p{font-size:13px;margin-bottom:8px}
 #content .event-heading{padding:0;gap:6px;margin-bottom:10px}
 #content .event-breadcrumb{margin-bottom:6px}
 #content .event-meta{gap:4px 8px}
 #content .auth-card{padding:16px!important}
 .auth-page #content .auth-card>p{margin-bottom:14px}
 .auth-page #content .auth-field{margin-bottom:12px}
 .auth-page #content .auth-links{gap:10px;margin-top:14px}
 #content .archive-filter-disclosure{margin:0 0 8px;border:1px solid var(--line);border-radius:8px;background:#fff}
 #content .archive-filter-disclosure>summary{cursor:pointer;min-height:44px;padding:10px 12px;font-size:14px;font-weight:600;color:#17616b}
 #content .archive-filter-disclosure:not([open])>form{display:none}
 #content .archive-filter-disclosure .archive-filters{padding:8px 10px;margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:end}
 #content .archive-filter-disclosure .archive-search{flex:1 1 100%;margin:0}
 #content .archive-filter-disclosure fieldset{flex:1 1 100%;min-width:0;margin:0;padding:0;border:0}
 #content .archive-filter-disclosure .archive-dates{display:flex;gap:8px}
 #content .archive-filter-disclosure .archive-dates>div{flex:1;min-width:0}
 #content .archive-filter-disclosure input{margin:0;width:100%;min-width:0;min-height:44px}
 #content .archive-filter-disclosure label,#content .archive-filter-disclosure legend{font-size:12px;margin:0 0 3px}
 #content .archive-filter-disclosure button,#content .archive-filter-disclosure form>a{min-height:44px}
 #content .archive-filter-disclosure form>a{display:inline-flex;align-items:center;margin:0;padding:0 8px}
 .panel-profile-menu{padding:0 12px}
 .panel-breadcrumbs{padding-top:4px;padding-bottom:4px;margin:0;font-size:12px}
 .dss-panel .screen-heading,.dss-panel .workspace-heading{gap:8px;margin-bottom:8px}
 .dss-panel h1{font-size:22px!important;margin-bottom:10px}
 .dss-panel header.archive-list-heading{background:transparent;color:var(--ink);padding:0;margin-bottom:8px}
}
@media(min-width:601px) and (max-width:800px){
 body:not(.map-catalog-page)>.system-header{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}
 body:not(.map-catalog-page)>.system-header .header-right{width:auto;flex-wrap:nowrap;gap:8px}
 .system-header .profile-menu-panel{left:auto;right:0}
}
@media(min-width:801px){
 .archive-filter-disclosure>summary{display:none}
 .archive-filter-disclosure::details-content{content-visibility:visible;display:block}
 .archive-filter-disclosure:not([open])>form{display:flex}
}

/* Site-wide density: keep touch controls at least 44px on phones. */
body:not(.map-catalog-page)>.system-header{min-height:0;padding:8px 18px;gap:8px 14px}
.system-header .brand img{width:40px;height:40px}
.system-header .brand small{margin-top:3px;font-size:12px}
.system-header .brand strong{font-size:21px}
body>.system-footer .footer-inner{padding:6px 14px!important}
body>.system-footer .footer-connect{gap:0 16px!important}
body>.system-footer nav{gap:0 16px!important}
.panel-service-footer{padding:8px 16px}
.panel-service-footer>div{gap:4px 16px}
.panel-service-footer nav{gap:0 16px}
.panel-service-footer a{display:inline-flex;align-items:center;min-height:44px}
.panel-bottom,.panel-breadcrumbs{gap:4px 8px;padding-top:4px;padding-bottom:4px}
.panel-bottom a,.panel-breadcrumbs a{display:inline-flex;align-items:center;min-height:36px}
.panel-event-navigation{padding:6px 16px}
.panel-event-navigation strong{margin-bottom:4px}
.panel-event-navigation>div{gap:4px}
.panel-event-navigation a{display:inline-flex;align-items:center;min-height:44px;padding:5px 8px}
.panel-session-actions{padding:4px 16px;gap:4px 8px}
.panel-session-actions a,.panel-session-actions button{min-height:44px;padding:5px 10px}
@media(min-width:801px){
 body:not(.map-catalog-page)>.system-header .brand img{width:40px;height:40px}
 body:not(.map-catalog-page)>.system-header .brand strong{font-size:21px}
 body:not(.map-catalog-page)>.system-header .brand small{font-size:12px}
 body:not(.map-catalog-page)>.app-layout>#content{padding-top:16px;padding-bottom:18px}
 .side .side-content{gap:6px}
 .side .system-menu .menu-action,.side .system-menu .menu-action-disabled{min-height:54px;padding:8px 10px;margin-bottom:4px;gap:8px}
 .side .system-menu .reference-nav>a.reference-link{min-height:44px;padding:6px 10px}
 .side .system-menu a{padding-top:7px;padding-bottom:7px}
}
@media(max-width:800px){
 /* Account and brand share the first row; mode and languages share the second. */
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch){grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 6px;padding:4px 10px}
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .brand{grid-column:1;grid-row:1;min-width:0}
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .header-right{display:contents}
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .profile-menu,
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .header-auth{grid-column:2;grid-row:1;max-width:150px;margin:0;min-width:0}
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .language-switch{grid-column:2;grid-row:2;justify-self:end}
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .interface-switch{grid-column:1;grid-row:2;display:flex;min-width:0;width:100%;gap:3px}
 body:not(.map-catalog-page)>.system-header .brand strong{font-size:15px;line-height:1.2}
 body:not(.map-catalog-page)>.system-header .brand img{width:26px;height:30px}
 body:not(.map-catalog-page)>.system-header .brand{gap:6px}
 body:not(.map-catalog-page)>.system-header .interface-switch a{flex:1;min-width:0;min-height:44px;padding:4px 6px;font-size:12px;line-height:1.2;white-space:normal;text-align:center}
 body:not(.map-catalog-page)>.system-header .profile-menu>summary{padding:2px 0 2px 4px;gap:4px}
 body:not(.map-catalog-page)>.system-header .profile-menu>summary strong{font-size:12px;line-height:1.2}
 body:not(.map-catalog-page)>.system-header .profile-menu>summary small{font-size:10px;line-height:1.2}
 body:not(.map-catalog-page)>.system-header .profile-menu-panel{left:auto;right:0}
 body:not(.map-catalog-page)>.system-header .language-switch button{min-width:32px;min-height:44px;padding:3px;font-size:11px}
 body:not(.map-catalog-page)>.system-header .header-auth{gap:0 5px;justify-content:flex-end}
 body:not(.map-catalog-page)>.system-header .header-auth a{font-size:12px;min-height:44px;white-space:normal;overflow-wrap:anywhere}
 body:not(.map-catalog-page)>.system-header .header-auth>span{display:none}
 body:not(.map-catalog-page)>.system-header .header-auth a:last-child{max-width:104px}
 body:not(.map-catalog-page)>.app-layout>#content{padding:6px 10px 12px!important}
 #content .mobile-homepage .current-incident-notice{margin:0 0 8px;padding:7px 10px;font-size:13px;gap:2px}
 #content .mobile-primary-actions{gap:6px;margin:0 0 10px}
 #content .mobile-primary-actions>a,#content .mobile-primary-actions>span{min-height:48px;padding:8px 10px;gap:9px}
 #content .mobile-primary-actions .menu-action-copy{gap:1px}
 #content .mobile-primary-actions .menu-action-copy strong{font-size:14px;line-height:1.3}
 #content .mobile-primary-actions .menu-action-copy small{font-size:11px}
 #content .mobile-primary-actions .menu-action-icon{width:20px;height:20px;flex-basis:20px}
 #content .mobile-homepage h2{font-size:16px;line-height:1.25;margin:10px 0 6px}
 #content .mobile-tiles{gap:6px}
 #content .mobile-tiles>a,#content .mobile-work-tile{min-height:48px;padding:7px 9px;font-size:13px;line-height:1.3;overflow-wrap:break-word}
 #content .mobile-reference-menu{margin:8px 0}
 #content .mobile-reference-menu .reference-nav{margin:0;gap:4px}
 #content .mobile-reference-menu .reference-nav>a.reference-link{min-height:44px;padding:6px 10px;font-size:14px;gap:8px}
 #content .mobile-reference-menu .reference-icon{width:20px;height:20px;flex-basis:20px}
 #content .mobile-map-preview{margin:8px 0 12px}
 #content .mobile-map-preview .mobile-map-preview-heading{flex-direction:row;justify-content:space-between;gap:4px 8px;padding:4px 10px!important}
 #content .mobile-map-preview .mobile-map-preview-heading h2{font-size:16px!important}
 #content .mobile-map-preview .mobile-map-preview-heading a{min-height:44px;font-size:12px}
 #content .mobile-map-preview .preview-map-tabs{padding:0 8px 6px;gap:4px}
 #content .mobile-page-nav{gap:4px;margin-bottom:4px}
 #content .mobile-section-nav{gap:4px;margin-bottom:8px}
 #content .mobile-section-nav a{display:flex;align-items:center;min-height:44px;padding:5px 8px}
 #content .card,#content .workspace-card,#content .trip-card{padding:14px;margin-bottom:10px}
 #content .grid{gap:10px;margin-bottom:10px}
 #content .grid>.card{margin-bottom:0}
 #content .actions{gap:6px;margin:10px 0}
 #content .screen-pager{margin-top:12px;padding-top:6px;gap:8px}
 #content .screen-pager a{display:inline-flex;align-items:center;min-height:44px}
 .role-preview-banner{padding:4px 10px;gap:4px 8px;font-size:12px}
 .role-preview-banner button{min-height:44px;padding:5px 8px}
 body>.system-footer .footer-inner{padding:4px 10px max(4px,env(safe-area-inset-bottom))!important}
 body>.system-footer .footer-connect{gap:0 14px!important}
 body>.system-footer .footer-connect>a,body>.system-footer .footer-connect>button,
 body>.system-footer nav a{min-height:44px!important;line-height:1.3}
 body>.system-footer small{margin-top:0!important;line-height:1.3}
 .panel-profile-menu{padding:0 10px}
 .panel-profile-menu .profile-menu>summary{min-height:44px;padding:4px}
 .panel-profile-menu .profile-menu-panel{max-width:calc(100vw - 20px)}
 .panel-event-navigation{padding:4px 10px}
 .panel-event-navigation a{font-size:12px}
 .panel-bottom,.panel-service-footer{padding:4px 10px}
 .panel-bottom a,.panel-breadcrumbs a{min-height:44px}
 .panel-service-footer>div{gap:0 12px}
 .panel-service-footer nav{gap:0 14px}
 .panel-session-actions{padding:4px 10px}
 .dss-panel #content{padding-bottom:12px}
}

/* Keep desktop account controls in one compact, readable row. */
@media(min-width:801px){
 .system-header .header-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;width:auto;max-width:none;flex-basis:auto;margin:0}
 .system-header .header-right .profile-menu{color:#fff;max-width:180px;min-width:0}
 .system-header .profile-menu>summary{min-height:44px;padding:4px 6px;gap:6px}
 .system-header .profile-menu>summary strong{color:#fff;font-size:14px;line-height:1.2;overflow-wrap:anywhere}
 .system-header .profile-menu>summary small{color:#d7e9ed;font-size:11px;line-height:1.2}
 .system-header .language-switch{margin:0;padding:0}
 .system-header .language-switch button{min-height:44px}
}

/* Approved compact header and disclosure navigation. */
.language-picker{position:relative;flex-shrink:0;color:inherit}
.language-picker>summary{color:inherit;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:68px;padding:4px 8px;list-style:none;cursor:pointer;border-radius:6px;font-size:13px;font-weight:600;line-height:1.2}
.language-picker>summary::-webkit-details-marker{display:none}
.language-picker>summary:focus-visible{outline:2px solid currentColor;outline-offset:1px}
.language-picker[open]>summary{background:rgba(255,255,255,.12)}
.language-picker>.language-switch{position:absolute;top:100%;right:0;z-index:2100;display:flex!important;flex-direction:column;align-items:stretch;gap:2px!important;width:160px!important;max-width:calc(100vw - 20px);margin:0!important;padding:6px!important;border:1px solid #cbd9de;border-radius:8px;background:#fff;box-shadow:0 6px 18px #12304420}
.language-picker:not([open])>.language-switch{display:none!important}
.language-picker>.language-switch button{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px!important;padding:8px 12px!important;border:0;border-radius:5px;background:#fff;color:#193e50!important;font-size:14px!important;font-weight:400;text-align:left}
.language-picker>.language-switch button:hover,.language-picker>.language-switch button[aria-current]{background:#e6f3f2;color:#006d75!important}
.profile-menu-panel .profile-menu-identity{padding:8px 12px 10px;border-bottom:1px solid #dce5e5;margin-bottom:4px;text-align:left}
.profile-menu-panel .profile-menu-identity strong{display:block;color:#193e50;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.profile-menu-panel .profile-menu-identity small{display:block;color:#536e7a;font-size:12px;line-height:1.4;margin-top:3px}
.home-incident-menu{margin:8px 0;border:1px solid #d6e3e2;border-radius:8px;background:#fffdf8;overflow:hidden}
.home-incident-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 10px;color:#193e50;font-size:15px;font-weight:600;list-style:none;cursor:pointer}
.home-incident-menu>summary::-webkit-details-marker{display:none}
.home-incident-menu .section-chevron{flex:none;transition:transform .15s}
.home-incident-menu[open] .section-chevron{transform:rotate(180deg)}
.home-incident-menu nav{display:flex;flex-direction:column;margin:0;padding:0 10px;border-top:1px solid #d6e3e2}
.home-incident-menu nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;border:0;border-bottom:1px solid #e3eaea;border-radius:0;background:transparent;color:#17616b;font-size:14px;font-weight:500;line-height:1.35;text-decoration:none}
.home-incident-menu nav a:last-child{border-bottom:0}
.home-incident-menu .menu-section-icon{flex:none;width:20px;height:20px;color:#587581}
.home-incident-menu summary:focus-visible,.home-incident-menu nav a:focus-visible{outline:2px solid #17616b;outline-offset:-2px}
@media(max-width:800px){
 body:not(.map-catalog-page)>.system-header{grid-template-columns:minmax(0,1fr) 68px;align-items:center;gap:0 8px;padding:4px 10px}
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch){grid-template-columns:minmax(0,1fr) 68px;gap:0 8px;padding:4px 10px}
 body:not(.map-catalog-page)>.system-header .header-right{display:contents}
 body:not(.map-catalog-page)>.system-header .brand{grid-column:1;grid-row:1;min-height:44px}
 body:not(.map-catalog-page)>.system-header .brand strong{font-size:15px;line-height:1.2}
 body:not(.map-catalog-page)>.system-header .profile-menu,
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .profile-menu{grid-column:2;grid-row:1;justify-self:end;max-width:68px}
 .system-header .profile-menu>summary .profile-summary-identity{display:none}
 body:not(.map-catalog-page)>.system-header .profile-menu>summary{min-width:68px;min-height:44px;padding:6px 8px;justify-content:center;gap:6px}
 body:not(.map-catalog-page)>.system-header .profile-menu>summary>svg{width:21px;height:21px;flex:none}
 body:not(.map-catalog-page)>.system-header .language-picker{grid-column:2;grid-row:2;justify-self:end;width:68px;margin:0;color:#fff}
 body:not(.map-catalog-page)>.system-header .language-picker>summary{width:68px;min-height:44px;padding:4px 6px;font-size:12px}
 body:not(.map-catalog-page)>.system-header .interface-switch,
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .interface-switch{grid-column:1;grid-row:2;align-self:center;min-width:0;display:flex;width:100%;max-width:280px;padding:0;gap:4px;background:transparent;border-radius:0}
 body:not(.map-catalog-page)>.system-header .interface-switch a{position:relative;isolation:isolate;display:flex;flex:1;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:4px 8px;background:transparent;box-shadow:none;border:0;border-radius:6px;font-size:13px;font-weight:600;white-space:normal;text-align:center;color:#e4edf1;line-height:1.2}
 body:not(.map-catalog-page)>.system-header .interface-switch a::before{content:"";position:absolute;inset:5px 0;z-index:-1;border-radius:6px;background:rgba(255,255,255,.07)}
 body:not(.map-catalog-page)>.system-header .interface-switch a[aria-current=page]{background:transparent;color:#193e50}
 body:not(.map-catalog-page)>.system-header .interface-switch a[aria-current=page]::before{background:#e1efef}
 body:not(.map-catalog-page)>.system-header .interface-switch a:last-child[aria-current=page]::before{background:#ffddbd}
 body:not(.map-catalog-page)>.system-header .header-auth,
 body:not(.map-catalog-page)>.system-header:has(>.interface-switch) .header-auth{grid-column:2;grid-row:1;max-width:68px;justify-content:center}
 body:not(.map-catalog-page)>.system-header .header-auth a:last-child{display:none}
 body:not(.map-catalog-page)>.system-header .header-auth a{font-size:12px}
 body:not(.map-catalog-page)>.system-header:not(:has(>.interface-switch)) .language-picker{grid-column:1;grid-row:2;justify-self:start}
 .system-header .profile-menu-panel{right:0;left:auto;max-width:calc(100vw - 20px)}
 #content .mobile-incident-caption{display:none}
 #content .mobile-incident-menu>summary{min-height:44px;padding:8px 10px}
 #content .mobile-incident-menu strong{font-size:14px;font-weight:600}
 #content .mobile-incident-menu{border-color:#d6e3e2;background:#fffdf8}
 #content .mobile-incident-menu>summary{background:#fffdf8;color:#193e50}
}
