/* Shared mobile presentation. Desktop and the administrator portal keep their own layouts. */
@media (max-width:760px){
 body:not(.is-admin){font-family:-apple-system,BlinkMacSystemFont,system-ui,'Apple SD Gothic Neo',Pretendard,sans-serif;font-size:16px;line-height:1.65;letter-spacing:-.015em;-webkit-text-size-adjust:100%}
 body:not(.is-admin) :is(button,input,select,textarea){font-family:inherit}
 body:not(.is-admin) .page{padding-left:20px;padding-right:20px;padding-top:24px}
 body:not(.is-admin) :is(.card,.comm-compose-card){box-shadow:none;border-color:#e7ecf3;border-radius:14px}
 body:not(.is-admin) .demo-footer{display:none}
 body:not(.is-admin) .page-header{align-items:flex-start;gap:16px;margin-bottom:24px}
 body:not(.is-admin) .page-header .eyebrow{display:none}
 body:not(.is-admin) .page-header h1{font-size:25px;line-height:1.4;font-weight:700;letter-spacing:-.035em;color:#273b57}
 body:not(.is-admin) .page-header p{font-size:16px;line-height:1.7;color:#65748b;margin-top:8px}
 body:not(.is-admin) .page-header .header-actions{gap:8px;max-width:100%}
 body:not(.is-admin) :is(.btn,.icon-button){min-height:44px}
 body:not(.is-admin) .btn{font-size:14px;line-height:1.5}
 body:not(.is-admin) .icon-button{min-width:44px}
 body:not(.is-admin) :is(button,a,input,select,textarea):focus-visible{outline-offset:3px}

 /* A compact app header with one brand, search, and profile. */
 body:not(.is-admin) .topbar{height:64px;min-height:64px;padding:0 16px 0 20px;gap:8px;border-bottom-color:#edf0f5;background:#fff}
 body:not(.is-admin) .topbar :is(.mobile-menu,.breadcrumb,.topbar-search,.help-button,[data-action="notifications"]){display:none}
 body:not(.is-admin) .mobile-brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1;min-height:44px;color:#263d5b;text-decoration:none;font-size:19px;font-weight:700;line-height:1.35;letter-spacing:-.035em}
 body:not(.is-admin) .mobile-brand img{display:block;object-fit:contain;flex:none;width:28px;height:28px}
 body:not(.is-admin) .mobile-brand :is(span,strong){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:inherit;font-weight:inherit}
 body:not(.is-admin) .topbar-actions{display:flex;align-items:center;gap:0;margin-left:0;flex:none}
 body:not(.is-admin) .topbar .mobile-search-trigger{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;flex:none;border:0;border-radius:12px;background:transparent;color:#576d8b;padding:0}
 body:not(.is-admin) .mobile-search-trigger .icon{width:22px;height:22px;stroke-width:1.8}
 body:not(.is-admin) .topbar .profile-button{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:12px;flex:none}
 body:not(.is-admin) .topbar .profile-button .name{display:none}
 body:not(.is-admin) .topbar .profile-button .avatar{width:32px;height:32px;border-radius:11px;font-size:13px;font-weight:600;background:#edf3ff;color:#4e6c99}
 body:not(.is-admin) .topbar :is(.profile-button,.mobile-search-trigger):active{background:#f1f5fc}

 /* Only the confirmed native handshake replaces the web navigation. */
 body.has-native-tabs:not(.is-admin){--mobile-nav-height:0px}
 body.has-native-tabs:not(.is-admin) .mobile-nav{display:none}
 body.has-native-tabs:not(.is-admin) #main.page{padding-bottom:24px}
 body.has-native-tabs:not(.is-admin).is-chat-route #main.page{padding-bottom:0}
 body.has-native-tabs:not(.is-admin) #toast{bottom:20px}
 .all-menu{max-width:640px;margin:auto}
 .all-account{display:flex;align-items:center;gap:14px;width:100%;padding:18px 0 22px;border:0;border-bottom:1px solid #edf0f5;background:#fff;text-align:left;color:#263d59}
 .all-account>.avatar{width:46px;height:46px;border-radius:15px}
 .all-account>span:nth-child(2){display:grid;gap:3px;flex:1}
 .all-account strong{font-size:17px;font-weight:650}
 .all-account small{font-size:13px;color:#65748b}
 .all-menu-group{margin-top:24px}
 .all-menu-group h2{font-size:13px;font-weight:600;color:#65748b;margin:0 0 8px}
 .all-menu-group>a{display:flex;align-items:center;gap:14px;min-height:56px;color:#334b6c;text-decoration:none;border-radius:10px;padding:10px 4px;font-size:16px}
 .all-menu-group>a>span{flex:1}
 .all-menu-group>a>small{font-size:11px;color:#65748b;background:#f2f5f9;border-radius:5px;padding:2px 5px}
 .all-menu-group>a>.icon:last-child{width:16px;color:#96a3b5}
 .all-menu-group>a:active{background:#f2f6ff}
 /* Equal tab targets; viewport and safe-area height remain owned by the shell. */
 body:not(.is-admin) .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;background:#edf2fa;border-top:1px solid #d7e1ef;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 body:not(.is-admin) .mobile-nav>a,body:not(.is-admin) .mobile-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;height:58px;min-height:44px;padding:5px 2px;margin:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#606f7e;font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;white-space:nowrap}
 body:not(.is-admin) .mobile-nav .icon{width:24px;height:24px;flex:none;stroke-width:1.75}
 body:not(.is-admin) .mobile-nav :is(a.active,button.active,[aria-current="page"]){background:transparent;color:#365fc9;font-weight:650}
 body:not(.is-admin) .mobile-nav>button[aria-expanded="true"]{color:#365fc9;background:#e2eaf7}
 body:not(.is-admin) .mobile-nav :is(a,button):active{background:#e2eaf7;transform:none}
 body:not(.is-admin).keyboard-is-open .mobile-nav{display:none}
 body:not(.is-admin).is-chat-route .topbar{display:none}
 body:not(.is-admin).is-chat-route #main.page{padding:0}

 /* Home: actual daily information, with four equally weighted shortcuts. */
 body:not(.is-admin) .workspace-home{display:grid;gap:24px;min-width:0}
 body:not(.is-admin) .workspace-home>*{min-width:0;margin-top:0;margin-bottom:0}
 body:not(.is-admin) .home-heading .eyebrow{font-size:13px;line-height:1.6;letter-spacing:0;font-weight:500;color:#65748b;margin-bottom:5px}
 body:not(.is-admin) .home-heading h1{margin:0;font-size:26px;line-height:1.4;font-weight:700;letter-spacing:-.04em;color:#263d59;overflow-wrap:anywhere}
 body:not(.is-admin) .home-heading p{font-size:16px;line-height:1.7;margin:8px 0 0;color:#65748b;word-break:keep-all}
 body:not(.is-admin) .home-overview{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
 body:not(.is-admin) .home-overview>.card{margin:0;padding:20px;border-radius:14px;border:1px solid #e5ebf4;background:#fff;min-width:0}
 body:not(.is-admin) .home-overview .att-card-head{gap:10px;flex-wrap:nowrap}
 body:not(.is-admin) .home-overview .att-card-head h2{font-size:17px;font-weight:650;line-height:1.5;color:#334b6c}
 body:not(.is-admin) .home-overview .att-card-head .settings-text-link{display:inline-flex;align-items:center;min-height:44px;padding:0;font-size:14px;font-weight:550;white-space:nowrap;color:#4e6c99}
 body:not(.is-admin) .home-overview .att-times{gap:20px;margin:12px 0 14px}
 body:not(.is-admin) .home-overview .att-times>div{gap:7px}
 body:not(.is-admin) .home-overview .att-times span{font-size:14px;color:#65748b}
 body:not(.is-admin) .home-overview .att-times strong{font-size:32px;line-height:1.25;font-weight:650;letter-spacing:-.04em;color:#304d73;font-variant-numeric:tabular-nums}
 body:not(.is-admin) .home-overview .att-times small{font-size:13px;line-height:1.6;min-height:20px;color:#65748b}
 body:not(.is-admin) .home-overview .att-times small:empty{display:none;min-height:0}
 body:not(.is-admin) .home-overview .att-note{font-size:14px;line-height:1.7;color:#65748b;margin:0;padding-top:12px;border-top:1px solid #edf1f6;word-break:keep-all}
 body:not(.is-admin) .home-team-card h2{font-size:17px;font-weight:650;line-height:1.5;color:#334b6c;margin:0}
 body:not(.is-admin) .home-team-card .card-header{padding:0;margin:0 0 8px}
 body:not(.is-admin) .home-team-summary{display:flex;align-items:baseline;gap:7px;margin:0 0 6px;color:#65748b}
 body:not(.is-admin) .home-team-summary strong{font-size:28px;line-height:1.25;font-weight:650;letter-spacing:-.04em;color:#304d73;font-variant-numeric:tabular-nums}
 body:not(.is-admin) .home-team-summary span{font-size:14px}
 body:not(.is-admin) .home-team-card>p{font-size:14px;line-height:1.7;color:#65748b;margin:0;word-break:keep-all}
 body:not(.is-admin) .home-team-card>a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.5;font-weight:550;color:#4e6c99;padding:8px 0;margin-top:12px;text-decoration:none}
 body:not(.is-admin) .home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
 body:not(.is-admin) .home-section-heading h2{font-size:18px;line-height:1.5;font-weight:650;color:#324b6b;margin:0;letter-spacing:-.025em}
 body:not(.is-admin) .home-shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 body:not(.is-admin) a.home-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;min-width:0;min-height:80px;padding:10px 4px;border:1px solid #edf1f7;border-radius:13px;background:#fff;color:#536881;text-align:center;text-decoration:none;box-shadow:none}
 body:not(.is-admin) .home-shortcut .icon{width:26px;height:26px;flex:none;stroke-width:1.6;color:#7996c2}
 body:not(.is-admin) .home-shortcut>span{font-size:14px;font-weight:500;line-height:1.45;color:#536881;white-space:nowrap}
 body:not(.is-admin) a.home-shortcut:active{background:#f1f6ff;border-color:#dce7f9}
 body:not(.is-admin) .home-news{overflow:hidden}
 body:not(.is-admin) .home-news .card-header{padding:17px 20px 9px;gap:12px}
 body:not(.is-admin) .home-news .card-header h2{font-size:18px;line-height:1.5;font-weight:650;color:#324b6b;letter-spacing:-.025em}
 body:not(.is-admin) .home-news .card-header :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;color:#4e6c99;padding:8px 0}
 body:not(.is-admin) .home-news .notice-list{padding:0 20px 8px}
 body:not(.is-admin) .home-news .notice-row{min-height:64px;padding:15px 0;gap:10px}
 body:not(.is-admin) .home-news .notice-title{font-size:16px;line-height:1.6;font-weight:500;color:#4c6485;min-width:0;flex:1}
 body:not(.is-admin) .home-news .notice-type{font-size:13px;line-height:1.5;padding:4px 7px;color:#5d6d84;background:#f3f6fa}
 body:not(.is-admin) .home-news .notice-row .date{font-size:13px;line-height:1.5;color:#65748b}
 body:not(.is-admin) .home-news :is(.comm-empty,.notice-empty){padding:27px 20px 30px}
 body:not(.is-admin) .home-news :is(.comm-empty p,.notice-empty p){font-size:14px;line-height:1.7}

 /* The complete menu remains the same accessible drawer. */
 body:not(.is-admin) .sidebar{font-size:16px;border-right-color:#e6ecf5}
 body:not(.is-admin) .sidebar .nav-label{font-size:13px;line-height:1.6;color:#65748b;margin-bottom:8px}
 body:not(.is-admin) .sidebar .nav-group{gap:5px;margin-bottom:22px}
 body:not(.is-admin) .sidebar .nav-link{min-height:48px;height:auto;font-size:16px;line-height:1.5;padding-top:11px;padding-bottom:11px;border-radius:9px}
 body:not(.is-admin) .sidebar .nav-link .icon{width:22px;height:22px}
 body:not(.is-admin) .sidebar .nav-link .count{font-size:13px;line-height:1.5}
 body:not(.is-admin) .sidebar .company-switch{min-height:64px;margin-bottom:22px}
 body:not(.is-admin) .sidebar .company-switch strong{font-size:16px}
 body:not(.is-admin) .sidebar .company-switch .subtext{font-size:13px;line-height:1.6}
 body:not(.is-admin) .sidebar-account{min-height:60px;padding-top:10px;padding-bottom:10px}
 body:not(.is-admin) .sidebar-account-text strong{font-size:15px}
 body:not(.is-admin) .sidebar-account-text small{font-size:13px;line-height:1.6}
 body:not(.is-admin) .workspace-caption{font-size:13px;line-height:1.6}

 /* Form readability without changing control behavior or custom select arrows. */
 body:not(.is-admin) .modal-header h2{font-size:20px;line-height:1.5;letter-spacing:-.025em}
 body:not(.is-admin) .modal-header p{font-size:14px;line-height:1.7}
 body:not(.is-admin) .modal .field label{font-size:14px;line-height:1.6}
 body:not(.is-admin) .modal .field :is(input,select){min-height:46px;font-size:16px}
 body:not(.is-admin) .modal .field textarea{font-size:16px;line-height:1.7}
 body:not(.is-admin) .field small{font-size:13px;line-height:1.65}
 body:not(.is-admin) .modal-tabs button{min-height:44px;height:auto;font-size:14px;padding:10px 8px}
 body:not(.is-admin) .modal :is(.note,.source-caption,.subtext){font-size:14px;line-height:1.75}
 body:not(.is-admin) .modal-footer .btn{min-height:44px;font-size:14px}
 body:not(.is-admin) .profile-field-hint,body:not(.is-admin) .profile-session p{font-size:13px;line-height:1.7}
 body:not(.is-admin) .profile-intro{font-size:16px;line-height:1.7}

 /* Mail and notices retain the editor's selection and layout model. */
 body:not(.is-admin) .comm-tab{font-size:14px;min-height:44px}
 body:not(.is-admin) .comm-document-title{font-size:16px;line-height:1.6}
 body:not(.is-admin) :is(.comm-document-excerpt,.comm-mobile-meta,.comm-save-state,.comm-compose-note,.comm-list-foot,.comm-envelope-row label){font-size:13px;line-height:1.65}
 body:not(.is-admin) .comm-envelope-row label{font-size:14px}
 body:not(.is-admin) .comm-envelope-row input{font-size:16px;min-height:44px}
 body:not(.is-admin) .comm-envelope-row{padding:10px 0}
 body:not(.is-admin) .comm-editor-toolbar{gap:4px;padding:8px;align-items:center}
 body:not(.is-admin) .comm-tool{width:44px;min-width:44px;height:44px;min-height:44px}
 body:not(.is-admin) .comm-type-tool{font-size:14px;padding:0 5px}
 body:not(.is-admin) .comm-tool-group{gap:0;padding-right:4px}
 body:not(.is-admin) :is(.comm-editor-body,.comm-rich-content){font-size:16px;line-height:1.85}
 body:not(.is-admin) .comm-editor-bottom{font-size:13px;line-height:1.6;gap:10px}
 body:not(.is-admin) .comm-reading-card{padding:24px 20px}
 body:not(.is-admin) .comm-reading-card h1{font-size:24px;line-height:1.5}
 body:not(.is-admin) .comm-reading-meta{font-size:13px;line-height:1.65}
 body:not(.is-admin) .comm-back{min-height:44px;font-size:14px}

 /* Calendar markers keep their compact grid; explanatory text stays readable. */
 body:not(.is-admin) .company-cal-month-actions .btn{min-height:44px;min-width:44px;font-size:14px}
 body:not(.is-admin) .company-cal-toolbar h3{font-size:18px;line-height:1.5}
 body:not(.is-admin) .company-cal-full-heading .company-cal-toolbar{gap:6px}
 body:not(.is-admin) .company-cal-day-number{font-size:14px}
 body:not(.is-admin) .company-cal-weekdays{font-size:13px}
 body:not(.is-admin) :is(.company-cal-notice,.company-cal-footnote,.company-cal-legend,.company-cal-coverage,.company-cal-agenda-heading>span,.company-cal-holiday-row span,.company-cal-away-row>div>span){font-size:13px;line-height:1.7}
 body:not(.is-admin) :is(.company-cal-agenda-heading strong,.company-cal-holiday-row strong,.company-cal-away-row strong){font-size:16px;line-height:1.6}
 body:not(.is-admin) :is(.company-cal-form-note,.company-cal-empty){font-size:14px;line-height:1.75}
 body:not(.is-admin) .company-cal-away-row .btn{min-height:44px;font-size:14px}

 /* Attendance and settings use the same readable labels and rhythm. */
 body:not(.is-admin) :is(.att-primary,.att-secondary){gap:20px}
 body:not(.is-admin) :is(.att-today,.att-location,.att-history,.att-settings){padding:20px}
 body:not(.is-admin) :is(.att-card-head h2,.att-settings h2,.section-heading h2){font-size:18px;line-height:1.5;font-weight:650}
 body:not(.is-admin) :is(.att-times span,.att-today-date,.att-card-head small,.att-note,.att-schedule,.att-settings>summary span){font-size:13px;line-height:1.7}
 body:not(.is-admin) .att-times small{font-size:13px;line-height:1.6}
 body:not(.is-admin) .att-table-wrap table{font-size:14px}
 body:not(.is-admin) .att-table-wrap :is(th,td:last-child){font-size:13px;line-height:1.6}
 body:not(.is-admin) .att-settings>summary{font-size:16px;line-height:1.6;min-height:44px}
 body:not(.is-admin) .att-consent>summary{min-height:44px;display:list-item;font-size:14px;line-height:1.8;padding-top:8px;padding-bottom:8px}
 body:not(.is-admin) :is(.att-location>p,.att-location .att-note,.att-location .att-callout,.att-location .att-consent,.att-native-hint,.att-native-status){font-size:16px;line-height:1.75}
 body:not(.is-admin) :is(.att-request-list>div,.att-review,.att-events p){font-size:14px;line-height:1.75}
 body:not(.is-admin) .section-heading p{font-size:16px;line-height:1.7}
 body:not(.is-admin) :is(.settings-scope,.settings-row>.tag,.scope-item p,.logo-controls p){font-size:14px;line-height:1.7}
 body:not(.is-admin) .settings-row>span:first-child{font-size:16px;line-height:1.65}
 body:not(.is-admin) .settings-text-link{min-height:44px;font-size:14px;line-height:1.6}
}
@media (max-width:359px){
 body:not(.is-admin) .home-shortcut-grid{gap:7px}
 body:not(.is-admin) .home-shortcut>span{font-size:13px}
 body:not(.is-admin) .company-cal-full-heading .company-cal-toolbar{flex-wrap:wrap;gap:10px}
 body:not(.is-admin) .company-cal-month-actions{margin-left:auto}
}


/* Give content and actions a clear order while keeping the workspace white. */
body:not(.is-admin) .btn.primary{background:#365fc9;border-color:#365fc9;color:#fff;font-weight:650}
body:not(.is-admin) .btn.primary:hover{background:#2e54b4;border-color:#2e54b4}
@media (max-width:760px){
 body:not(.is-admin) .page-header h1{color:#213853;font-weight:750}
 body:not(.is-admin) .home-heading .eyebrow{color:#365fc9;font-weight:600}
 body:not(.is-admin) .home-heading h1{color:#213853;font-size:28px;font-weight:750}
 body:not(.is-admin) .home-heading p{color:#5f6f83}
 body:not(.is-admin) .home-overview :is(.att-card-head h2,.home-team-card h2),body:not(.is-admin) :is(.home-section-heading h2,.home-news .card-header h2){color:#233c59;font-size:18px;font-weight:700}
 body:not(.is-admin) .home-overview .att-times{padding:14px 16px;border-radius:12px;background:#f5f7fb}
 body:not(.is-admin) .home-overview .att-times strong{color:#213b5d;font-weight:700}
 body:not(.is-admin) .workspace-home :is(.text-button,.settings-text-link){color:#365fc9;font-weight:650}
 body:not(.is-admin) .home-shortcut .icon{color:#4269b2;stroke-width:1.9}
 body:not(.is-admin) .home-shortcut>span{color:#344d6c;font-weight:600}
 body:not(.is-admin) .home-news .notice-title{color:#304764;font-weight:600}
 body:not(.is-admin) .home-news .notice-type{color:#365fc9;background:#edf2fc;font-weight:600}
 body:not(.is-admin) :is(.comm-document-excerpt,.comm-mobile-meta,.comm-list-foot){color:#5f6f83}
}
