/* Optional, device-local reading mode. Layout and data remain the same. */
.care-entry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #9aaeb9;border-radius:4px;color:#193b53;background:#fff;font-size:.875rem;white-space:nowrap}
.care-entry .care-aa{font-size:1.3rem;font-weight:600;letter-spacing:-1px}
.care-entry[aria-pressed="true"]{background:#e6eff3;border-color:#193b53}
.care-settings{margin:24px 0;padding:24px;border:1px solid var(--line);background:#fff}
.care-settings h2{font-size:1.2rem;margin-bottom:10px}.care-settings p{font-size:.9rem;color:#405768;margin:10px 0 16px}
.care-settings [role="switch"]{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:10px 18px;border:1px solid #8aa3b3;border-radius:4px;color:#193b53;background:#fff;font-size:1rem}
.care-settings [aria-checked="true"]{background:#193b53;color:#fff}
html.care-mode{font-size:1.125rem;--muted:#405768;--gold:#765726;--line:#9aaeb9;--body:#203d50;color:#203d50}
html.care-mode body{line-height:1.85}
html.care-mode :where(p,li,dd,dt,label,input,textarea,select,button,summary,a,small,.small,.muted,.pill,.source,.source-link,.eyebrow,.preview-bar,.footer,.edition,.detail-note,.translation-note,.record-hours,.stop-chinese,.post-topic,.author-name,.author-major,.operating-evidence,.nav-subtitle,.photo-unavailable){font-size:1rem!important;line-height:1.85!important}
html.care-mode :where(.muted,.source,.source-link,.detail-note,.translation-note,.record-hours,.author-major,.operating-evidence,.preview-bar,.footer,.small,.integration-note,.source-missing,.venue-views,.post-topic){color:#405768!important}
html.care-mode h1,html.care-mode .page-heading h1{font-size:2rem!important;line-height:1.5;letter-spacing:0}
html.care-mode h2{font-size:1.6rem!important;line-height:1.6}html.care-mode h3{font-size:1.25rem!important;line-height:1.7}
html.care-mode h4{font-size:1.1rem!important;line-height:1.7}
html.care-mode :where(button,input,select,.button){min-height:54px!important;white-space:normal!important}
html.care-mode :where(input,select,textarea){padding:14px!important;border-color:#849eae}
html.care-mode :where(input,textarea)::placeholder{color:#526a78;opacity:1}
html.care-mode :where(button,a,input,select,textarea):focus-visible{outline:3px solid #193b53!important;outline-offset:4px}
html.care-mode input[type="checkbox"]{min-height:28px!important;width:28px;height:28px;vertical-align:middle;accent-color:#193b53}
html.care-mode .header{height:auto;min-height:112px}html.care-mode .header-inner{padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
html.care-mode .header-right{flex-wrap:wrap;gap:12px}html.care-mode .care-entry{flex-shrink:0}
html.care-mode .navigation{height:auto;min-height:80px;gap:14px;flex-wrap:wrap}
html.care-mode .navigation button{padding:12px 6px}.care-mode .navigation .edition{display:none}
html.care-mode .content-tabs{flex-wrap:wrap;gap:16px}html.care-mode .content-tabs button{padding:12px 6px}
html.care-mode .content-tabs .secondary-community{max-width:100%}
html.care-mode .content-card{gap:20px;padding:24px}
html.care-mode .facility-grid,html.care-mode .form-row{gap:18px}
html.care-mode .academic-options{max-height:50vh}.care-mode .academic-options button{padding:16px}
html.care-mode .author-avatar{min-height:48px!important;width:48px;height:48px;padding:0}
html.care-mode .author-avatar .photo-unavailable{font-size:0!important}
html.care-mode .search-box,html.care-mode .global-search{height:auto;min-height:64px;flex-wrap:nowrap;min-width:0;max-width:100%;align-items:stretch}
html.care-mode .search-box input,html.care-mode .global-search input{flex:1 1 0%;width:0;min-width:0;align-self:center}
html.care-mode .search-box>button,html.care-mode .global-search>button{flex:0 0 auto;width:auto;max-width:45%;justify-content:center;align-self:stretch;padding:12px 16px;overflow-wrap:anywhere}
html.care-mode .search-box>.icon,html.care-mode .global-search>.icon{align-self:center}
html.care-mode .dialog-close{min-width:54px;min-height:54px}
html.care-mode dialog{max-width:min(980px,95vw);max-height:90vh;overflow:auto;padding:32px}
html.care-mode #toast{font-size:1rem;line-height:1.8;max-width:90vw}
html.care-mode :where(button,a,.button){transition:none!important}
@media(max-width:900px){
 .header-right{gap:12px;flex-wrap:wrap}.header{height:auto;min-height:90px}.header-inner{flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
 html.care-mode .header-inner{padding-left:18px;padding-right:18px}.care-mode .campus-label{display:none}
 html.care-mode .navigation{height:auto;min-height:88px;display:flex;flex-wrap:nowrap;gap:2px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));align-items:stretch}
 html.care-mode .navigation button{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:6px 2px;font-size:.88rem!important;line-height:1.5!important}
 html.care-mode .navigation .nav-subtitle{font-size:.75rem!important;line-height:1.4!important;white-space:normal}
 html.care-mode .navigation .icon{width:26px;height:26px}
 html.care-mode .main{padding-left:18px;padding-right:18px;padding-bottom:190px}
 html.care-mode .preview-bar{padding:12px 18px;flex-wrap:wrap}.care-mode .preview-bar>span{margin-left:0}
 html.care-mode .page-heading{flex-direction:column;align-items:flex-start;gap:14px}
 html.care-mode .form-row,html.care-mode .facility-grid{grid-template-columns:1fr}
 html.care-mode .care-settings{padding:20px}.care-mode .care-settings button{width:100%}
 html.care-mode .content-card{padding:20px 16px}.care-mode .content-thumb{display:none}
 html.care-mode .nearby-search-row,html.care-mode .nearby-browse-tabs{flex-wrap:wrap}
 html.care-mode dialog{padding:24px 18px}.care-mode .footer{flex-wrap:wrap;padding-bottom:160px}
}

/* Text with a component-specific size must not remain at the standard small size. */
html.care-mode :where(.place-category,.map-caption,.map-hint,.map-credit,.map-load-status,.hero-context,.home-context,.location-control,.list-heading,.active-filter,.campus-position-summary,.campus-coverage,.campus-radius,.place-chinese,.facility-level-title>span,.facility-level-fields>div,.facility-level-fields strong,.directory-result-heading,.facilities-role-note,.place-map-reference,.bilingual-stops b,.bilingual-stops em,.stop-strip b,.stop-strip small,.transport-audience-note,.community-role-note,.campus-translation-note,.floor-access,.review-context,.operational-facts,.reviewed-time,.review-caption,.floor-evidence,.venue-metrics,.venue-metrics strong,.venue-tags>span,.venue-cover>span,.campus-distance,.decision-summary>span,.housing-summary>span,.floor-head>span,.access-record>span,.profile-fact,.resource-meta span,.resource-form-fields>legend,.revision-note,.form-error,.owner-kind,.owner-settings dl>div,.owner-metrics span,.audit-log span,.hero-assistant-top,.ai-label,.assistant-rule,.message,.message-name,.answer-sources>span,.answer-sources>div,.section-title>span,.section-title>small,.role-task-grid>button>span,.category-menu span,.category-menu strong,.continue-explore button>span,.filters>button span,.universal-results strong,.daily-tools strong,.academic-options>button strong,.guest-role-note,.academic-source,.academic-privacy,.author-row>strong,.post-academic-tags,.arrival-tools span,.arrival-checklist strong,.seated-filter){font-size:1rem!important;line-height:1.85!important}
html.care-mode :where(.place-category,.map-caption,.map-hint,.map-credit,.map-load-status,.location-control,.campus-position-summary,.campus-coverage,.place-chinese,.floor-evidence,.reviewed-time,.review-caption,.community-role-note,.campus-translation-note,.venue-metrics,.venue-tags>span,.academic-source,.post-academic-tags,.campus-radius,.section-title>span,.guest-role-note){color:#405768!important}
html.care-mode .decision-summary>span{color:#405768;background:#edf2f4}
html.care-mode .role-task-grid,html.care-mode .facility-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
html.care-mode .route-time{flex-wrap:wrap}
@media(max-width:600px){html.care-mode .role-task-grid,html.care-mode .facility-menu{grid-template-columns:1fr}html.care-mode .nav-label{overflow-wrap:anywhere}}
html.care-mode .schedule-times{grid-template-columns:repeat(3,minmax(0,1fr))}html.care-mode :where(.schedule-gap,.bus-timetable .schedule-note,.route-time>span){font-size:1rem!important;line-height:1.85!important;color:#405768!important}
@media(max-width:780px){html.care-mode .schedule-times{grid-template-columns:repeat(2,minmax(0,1fr))}}

html.care-mode .persona-policy{background:#f4f7f8;border-color:#b4c3cc;color:#405768}html.care-mode .persona-policy-title{font-size:1.15rem!important;color:#304f62}html.care-mode .persona-policy-rule{font-size:1rem!important}html.care-mode .persona-policy-info{width:23px;height:23px;font-size:16px}

.care-mode .academic-profile .academic-stage select{min-height:64px;padding:16px;font-size:1.125rem}
.care-mode .author-row .author-region{font-size:1rem;color:#4e626f}

/* Large text must reflow its component instead of escaping a fixed box. */
html.care-mode :where(.main,.onboarding,.setup-card,.login-panel,.profile-card,.profile-content,.chat-panel,.chat-input,.content-copy,.venue-card-copy,.route-detail,.owner-settings){min-width:0;overflow-wrap:anywhere}
html.care-mode :where(.search-section,.section-title,.route-head,.route-time,.nearby-search-row,.map-toolbar,.list-heading,.venue-metrics,.venue-tags,.dialog-actions){flex-wrap:wrap;gap:12px}
html.care-mode :where(.search-section,.nearby-search-row)>.search-box{flex:1 1 18rem}
html.care-mode :where(.resource-types,.housing-tabs,.post-filters,.owner-tabs,.filters){display:flex;flex-wrap:wrap;gap:10px;overflow:visible}
html.care-mode :where(.resource-types,.housing-tabs,.post-filters,.owner-tabs,.filters)>button{flex:0 1 auto;max-width:100%;text-align:center;justify-content:center;padding:10px 14px;overflow-wrap:anywhere}
html.care-mode :where(.resource-types,.housing-tabs,.post-filters,.agent-mode-tabs)>button.active{color:#fff!important;background:#193b53;border-color:#193b53}
html.care-mode :where(.resource-types,.housing-tabs)>button.active span{color:inherit!important}
html.care-mode :where(input[type="checkbox"],input[type="radio"]){flex:0 0 28px;min-width:28px;max-width:28px;width:28px;height:28px;min-height:28px!important;padding:0!important;margin:4px 0 0;line-height:normal!important}
html.care-mode :where(.checkbox-label,.region-privacy){display:flex;align-items:flex-start;gap:12px;text-align:left;justify-content:flex-start}
html.care-mode input[type="file"]{max-width:100%;padding:10px!important}
html.care-mode .profile-identity{grid-template-columns:72px minmax(0,1fr);gap:18px}
html.care-mode .profile-identity .avatar{width:72px;height:72px;min-width:72px;min-height:72px!important;padding:0}
html.care-mode .profile-name h2{font-size:1.4rem!important;line-height:1.55}
html.care-mode .profile-card{display:block;text-align:left}
html.care-mode .profile-actions{margin-top:20px}.care-mode .profile-actions>.button{width:100%;max-width:none}
html.care-mode .profile-fact{margin:24px 0 16px}
html.care-mode .chat-input textarea{flex:1 1 0%;width:0;min-width:0;min-height:72px;max-height:240px}
html.care-mode .chat-input>.button{width:54px;min-width:54px;flex:0 0 54px}
html.care-mode .map-caption{height:auto;min-height:54px;flex-wrap:wrap;gap:12px;padding:12px}
html.care-mode .map-controls>button{width:54px;height:54px;min-width:54px;font-size:1.4rem!important}
html.care-mode .map-controls{gap:8px}
html.care-mode .map-hint{max-width:calc(100% - 96px);white-space:normal;overflow-wrap:anywhere}
html.care-mode .map-credit{max-width:100%;position:relative;white-space:normal}
html.care-mode .nearby-browse-tabs>label{white-space:normal;flex-wrap:wrap;max-width:100%}
html.care-mode .nearby-browse-tabs select{width:auto;max-width:100%;min-width:150px}
html.care-mode .dialog-actions>.button{flex:1 1 12rem;max-width:100%}
html.care-mode dialog{width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overscroll-behavior:contain;overflow-wrap:anywhere}
html.care-mode .dialog-close{top:8px;right:8px;padding:14px}
html.care-mode dialog h2{padding-right:46px;margin-right:0}
html.care-mode :where(.academic-profile,.owner-settings) dl>div{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
html.care-mode :where(dd,dt){min-width:0;overflow-wrap:anywhere}
@media(max-width:1400px){html.care-mode .profile-layout{grid-template-columns:minmax(0,1fr)}html.care-mode .profile-card{margin-bottom:24px}html.care-mode .profile-actions>.button{width:auto;flex:1 1 12rem}}
@media(min-width:781px) and (max-width:900px){html.care-mode .navigation{position:static;min-height:0;flex-wrap:wrap;padding:12px;gap:12px}html.care-mode .navigation button{flex:1 1 9rem;height:auto}html.care-mode .main{padding-bottom:60px}}
@media(max-width:780px){html.care-mode .navigation{min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:8px 6px calc(8px + env(safe-area-inset-bottom));height:auto}html.care-mode .navigation button{font-size:.82rem!important;line-height:1.4!important;padding:4px 1px;min-height:72px!important;overflow-wrap:anywhere}html.care-mode .navigation .nav-subtitle{font-size:.65rem!important;line-height:1.35!important}html.care-mode .navigation .icon{width:24px;height:24px}html.care-mode .header-inner{padding:12px 18px;gap:12px}html.care-mode .header-right{width:100%;justify-content:flex-start}html.care-mode .brand{max-width:100%}html.care-mode .bus-selector{flex-wrap:wrap}html.care-mode .bus-card{flex:1 1 100%}html.care-mode .venue-card{flex-direction:column}html.care-mode .venue-cover{width:100%;height:180px;max-width:100%}html.care-mode .venue-cover img{height:100%;width:100%;object-fit:cover}html.care-mode .form-row{display:grid;grid-template-columns:minmax(0,1fr)}html.care-mode .nearby-search-row>.search-box{flex-basis:100%}}
@media(max-width:480px){html.care-mode .search-box,html.care-mode .global-search{padding-left:8px;gap:4px}html.care-mode :where(.search-box,.global-search)>input{padding:12px 6px!important}html.care-mode :where(.search-box,.global-search)>button{padding:10px;max-width:40%}html.care-mode .global-search>.icon{display:none}html.care-mode .login-story>p{max-width:100%}html.care-mode .login-panel{padding:28px 18px}html.care-mode .setup-card{padding:24px 18px}html.care-mode .profile-identity{grid-template-columns:60px minmax(0,1fr);gap:12px}html.care-mode .profile-identity .avatar{width:60px;height:60px;min-width:60px;min-height:60px!important}html.care-mode .academic-profile dl>div{grid-template-columns:minmax(0,1fr);gap:4px}}
@media(prefers-reduced-motion:reduce){html.care-mode :where(*,*::before,*::after){scroll-behavior:auto!important;animation:none!important}}

/* The standard mobile header uses an icon-only 38px service shortcut.
   Care mode restores its label, so it must also restore intrinsic width. */
html.care-mode .header-right>.service-entry{width:auto;min-width:min-content;flex:0 0 auto;white-space:nowrap;padding:10px 8px;gap:8px}

/* Follow-up large-text audit: preserve space for close controls and long labels. */
html.care-mode dialog h2{padding-right:72px}
html.care-mode .map-caption>span{max-width:100%;flex:1 1 14rem;min-width:0}
html.care-mode .detail-category{font-size:1rem!important;letter-spacing:0;color:#655334!important}
html.care-mode .profile-card>.button{max-width:none;width:100%;margin-bottom:12px}
html.care-mode .agent-mode-tabs>button,html.care-mode .agent-mode-tabs>button.text-button{font-size:1.125rem!important;font-weight:600!important;line-height:1.6;min-height:56px}
html.care-mode .planner-form :where(input,textarea,button){font-size:1.125rem!important;min-height:56px}html.care-mode .planner-form .form-row{grid-template-columns:minmax(0,1fr)}html.care-mode .planner-form{min-width:0}html.care-mode .planner-results .message{max-width:100%}
@media(max-width:780px){html.care-mode .structured-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){html.care-mode .category-menu{grid-template-columns:minmax(0,1fr)}}
html.care-mode body{background-image:none}html.care-mode .home-intro:after{display:none}html.care-mode .auth-tabs>button{font-size:1.125rem;min-height:56px}html.care-mode .desk-links>a,html.care-mode .official-news-card p{font-size:1.125rem;color:#354f60}html.care-mode .official-news-card h3{font-size:1.375rem}html.care-mode .official-news-card time,html.care-mode .navigation-picker>small{font-size:1rem;color:#4f6370}@media(max-width:650px){html.care-mode .desk-links{grid-template-columns:1fr}html.care-mode .auth-tabs>button{flex:1 1 30%;font-size:1rem}}

html.care-mode .auth-choices .auth-choice{font-size:1.15rem;min-height:72px;line-height:1.6;height:auto}html.care-mode .auth-choices{gap:20px}

/* Preserve a clear title → explanation → action hierarchy with larger reading text. */
html.care-mode .login-panel:has(.auth-choices) h2{font-size:2.25rem!important;line-height:1.5}
html.care-mode .login-panel:has(.auth-choices)>.muted{font-size:1.15rem!important;line-height:1.8!important}
html.care-mode .auth-choices{gap:14px}
html.care-mode .auth-choices .auth-choice{font-size:1rem!important;min-height:56px;padding:12px 18px;line-height:1.6!important}
@media(max-width:480px){html.care-mode .login-panel:has(.auth-choices) h2{font-size:1.9rem!important}}
