/* Mobile keeps Upulse's blue pulse identity; forms and touch navigation lead. */
.mobile-menu-bar { display:none; }
.mobile-install-entry { display:flex; align-items:center; justify-content:center; gap:8px; border:0; background:transparent; color:#345cff; font:inherit; font-size:13px; padding:12px 8px; cursor:pointer; }
.login .mobile-install-entry { width:100%; margin-top:15px; }
.is-standalone [data-mobile-install] { display:none!important; }
.mobile-install-dialog { border:1px solid #e4e9f2; border-radius:16px; padding:0; color:#263751; width:560px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); overflow:auto; box-shadow:0 20px 60px #17233b33; }
.mobile-install-dialog::backdrop { background:#17233b66; }
.mobile-install-dialog .modal-head { background:#fff; position:sticky; top:0; z-index:1; }
.mobile-install-dialog .modal-head p { line-height:1.7; }
.mobile-install-dialog .icon-btn { font-size:28px; min-width:44px; min-height:44px; }
.install-app-preview { display:flex; gap:14px; align-items:center; margin-bottom:24px; }
.install-app-preview img { width:64px; height:64px; border-radius:15px; }
.install-app-preview strong { font-size:22px; display:block; }.install-app-preview span { font-size:12px; display:block; color:#64738a; margin-top:5px; }
.install-steps+.install-steps { margin-top:24px; padding-top:22px; border-top:1px solid #e4e9f2; }
.install-steps h3 { font-size:16px; margin:0 0 12px; }.install-steps ol { padding-left:21px; margin:0 0 10px; }.install-steps li { padding-left:4px; margin:8px 0; font-size:14px; line-height:1.8; }
.install-steps a { font-size:12px; color:#345cff; display:inline-block; padding:9px 0; }.install-steps p,.install-footnote { color:#627087; font-size:12px; line-height:1.8; }.install-footnote { margin:24px 0 0; }
.install-footer { padding:0 26px 24px; }.install-footer .btn { width:100%; min-height:44px; }.install-native { width:100%; margin-bottom:20px; }.install-native[hidden],.install-status[hidden],.mobile-network-note[hidden] { display:none; }
.install-status { color:#17876e; background:#e9f8f2; padding:12px; border-radius:6px; font-size:13px; }
.mobile-network-note { position:fixed; bottom:0; left:0; right:0; z-index:120; padding:10px 14px max(10px,env(safe-area-inset-bottom)); text-align:center; font-size:13px; line-height:1.6; color:#713a08; background:#fff0d9; border-top:1px solid #ead6b9; }
@media(max-width:700px) {
 body { padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
 button,input,textarea,select { touch-action:manipulation; }
 .field input,.field textarea,.field select,.search-box input,.table-tools select,.employment-control select,.employee-history-filters input,.employee-history-filters select { font-size:16px; min-height:44px; }
 .btn,.btn.small,.icon-btn { min-height:44px; }.icon-btn { min-width:44px; }.text-link { min-height:32px; }
 .login { min-height:100dvh; padding:24px 18px max(24px,env(safe-area-inset-bottom)); }.login .setting-card { width:390px; padding:26px 24px; }.login .brand strong { display:block; }.login .brand { justify-content:flex-start; }
 .sidebar,.employee-sidebar { position:sticky; top:0; z-index:30; display:block; width:100%; height:auto; min-height:0; padding:env(safe-area-inset-top) 0 0; overflow:visible; background:#fff; border:0; border-bottom:1px solid #e4e9f2; }
 .sidebar>.brand,.sidebar>.brand-caption,.sidebar>.sidebar-bottom,.employee-sidebar>.employee-brand,.employee-sidebar>.employee-identity { display:none; }
 .mobile-menu-bar { display:flex; justify-content:space-between; align-items:center; min-height:58px; padding:6px 14px; gap:12px; }
 .mobile-wordmark { display:flex; align-items:center; gap:8px; color:#345cff; }.mobile-wordmark img { width:29px; height:29px; }.mobile-wordmark strong { font-size:23px; letter-spacing:-.7px; }
 .mobile-menu-bar .btn { font-size:13px; padding:8px 12px; }
 .sidebar>.nav,.employee-sidebar>.employee-menu { display:none; }
 .sidebar.mobile-menu-open>.nav,.employee-sidebar.mobile-menu-open>.employee-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:0; padding:12px; position:absolute; top:100%; left:0; right:0; width:100%; height:auto; max-height:calc(100dvh - 100px - env(safe-area-inset-top)); overflow:auto; background:#fff; border-bottom:1px solid #e4e9f2; box-shadow:0 15px 25px #26375115; }
 .mobile-menu-open .nav-label,.mobile-menu-open .employee-menu-group>p { display:none; }.mobile-menu-open .employee-menu-group { display:contents; }
 .mobile-menu-open .nav button,.mobile-menu-open .employee-menu button { display:flex; min-width:0; width:100%; height:auto; min-height:48px; justify-content:flex-start; gap:8px; padding:12px; margin:0; border-radius:7px; font-size:13px; white-space:normal; text-align:left; }
 .mobile-menu-open .nav button>span { display:inline; }.mobile-menu-open button.active { background:#edf2ff; box-shadow:inset 3px 0 #345cff; }
 .mobile-menu-open .employee-manage-entry { border-top:0; }.mobile-menu-open [data-mobile-install] { grid-column:1/-1; border-top:1px solid #e4e9f2; border-radius:0; margin-top:3px; }
 .main,.employee-main { margin:0; width:100%; }.shell { display:block; }
 .topbar,.employee-toolbar { top:calc(58px + env(safe-area-inset-top)); min-height:55px; height:auto; padding:6px 14px; gap:8px; }
 .employee-toolbar>.inline-gap,.top-right { gap:7px; }.topbar .connection,.topbar .top-right>[data-nav="alerts"] { display:none; }
 .topbar .breadcrumb,.employee-toolbar .breadcrumb { font-size:11px; }.topbar .top-right .btn.small,.employee-toolbar .btn.small { min-height:40px; }
 .main-inner,.main-inner.sheet-main,.employee-page { padding:22px 14px max(28px,calc(env(safe-area-inset-bottom) + 20px)); }
 .employee-history-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 14px 12px; }.employee-history-filters .field { width:auto; min-width:0; margin:0; }.employee-history-filters .field:first-child { grid-column:1/-1; }
 .employee-history-filters .btn { align-self:end; }.employee-links-table { display:block; width:100%; min-width:0!important; }
 .employee-links-table thead { display:none; }.employee-links-table tbody { display:grid; gap:12px; padding:12px; background:#f5f7fb; }
 .employee-links-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 12px; background:#fff; border:1px solid #e4e9f2; border-radius:10px; padding:16px; }
 .employee-links-table td { display:block; width:auto!important; max-width:none!important; min-width:0!important; border:0; padding:0!important; font-size:13px; white-space:normal; }
 .employee-links-table td::before { content:attr(data-label); display:block; color:#627087; font-size:11px; margin-bottom:8px; }
 .employee-links-table td:nth-child(2),.employee-links-table td:last-child { grid-column:1/-1; }.employee-links-table td:nth-child(2) { grid-row:1; }.employee-links-table td:last-child::before { display:none; }
 .employee-links-table .submitted-url { width:auto; max-width:none; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }.employee-links-table .employment-control { flex-wrap:wrap; }.employee-links-table .employment-control select { width:100%; min-width:0; }.employee-links-table td:last-child .btn { width:100%; color:#345cff; background:#f4f7ff; }
 .employee-links-table .contributor-line { flex-wrap:wrap; }.employee-history .table-foot { flex-wrap:wrap; gap:12px; }.employee-history .table-foot .inline-gap { margin-left:auto; }
 .scrim { padding:12px; padding-top:max(12px,env(safe-area-inset-top)); padding-bottom:max(12px,env(safe-area-inset-bottom)); }.modal,.mobile-install-dialog { max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }.modal-head { padding:18px; }.modal-head h2 { font-size:20px; }.modal-body { padding:18px; }.modal-body .form-grid { grid-template-columns:1fr; }.form-actions .btn { flex:1; }.mobile-install-dialog { margin:auto; }.install-footer { padding:0 18px 18px; }
 #toast { bottom:max(20px,calc(env(safe-area-inset-bottom) + 12px)); }
}

/* Visual-system touch layout; the topbar is also the mobile alert entry. */
@media(max-width:700px) {
 .sidebar,.employee-sidebar { background:#fff; }
 .mobile-menu-bar { padding-inline:16px; }
 .mobile-menu-open .nav button,.mobile-menu-open .employee-menu button { border-radius:8px; font-size:14px; }
 .mobile-menu-open button.active { background:#e5ecff; box-shadow:none; }
 .topbar,.employee-toolbar { padding:8px 12px; min-height:60px; }
 .topbar .top-right { gap:6px; }
 .topbar .top-right>[data-nav="alerts"] { display:grid; width:44px; height:44px; min-width:44px; place-items:center; }
 .topbar .top-right .btn.small { min-height:44px; padding:8px; font-size:12px; }
 .topbar .breadcrumb { flex-wrap:wrap; gap:4px; font-size:11px; }
 .main-inner,.main-inner.sheet-main,.employee-page { padding:22px 14px max(28px,calc(env(safe-area-inset-bottom) + 20px)); }
 .page-heading h1,.sheet-main .page-heading h1 { font-size:24px; }
 .page-heading p { font-size:12px; line-height:1.7; }
 .page-heading { gap:12px; margin-bottom:20px; }
 .heading-actions .btn { min-height:44px; font-size:12px; padding:9px 11px; }
 .panel,.sheet-panel,.setting-card { border-radius:12px; }
 .panel-head { padding:16px; gap:12px; }
 .panel-head h2,.sheet-view-title h2 { font-size:15px; }
 .btn,.btn.small,.icon-btn { min-height:44px; }
 .field input,.field textarea,.field select,.employee-entry .field input,.employee-entry .field select,.employee-entry .employee-form textarea,
 .table-tools input,.table-tools select,.sheet-search input,.sheet-filters select,.sheet-density select,.sheet-pagination select,
 .ops-filters input,.ops-filters select,.employee-history-filters input,.employee-history-filters select { font-size:16px; min-height:44px; }
 .table-tools,.sheet-filters { padding:12px; gap:10px; }
 .table-tools .search-box,.sheet-search { height:46px; }
 .sheet-filters select { flex:1 1 40%; max-width:none; min-width:0; padding-inline:10px; }
 .sheet-clear { min-height:44px; }
 .sheet-toolbar { padding:14px 12px; align-items:center; gap:8px; flex-wrap:wrap; }
 .sheet-view-tools { gap:8px; }
 .sheet-density { font-size:0; }
 .sheet-fields summary { min-height:44px; padding:9px; font-size:12px; }
 .sheet-tabs { padding-inline:6px; gap:2px; }
 .sheet-tabs button { min-height:44px; padding-inline:9px; }
 .sheet-context { gap:12px; }
 .sheet-summary { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:12px; }
 .sheet-summary b { font-size:18px; }
 .sheet-panel { min-width:0; }
 .sheet-scroll { max-height:60dvh; min-height:250px; }
 .sheet-footer { padding:12px; gap:14px; }
 .sheet-pagination { gap:8px; width:100%; flex-wrap:wrap; }
 .sheet-pagination .btn { min-height:44px; font-size:12px; }
 .sheet-legend { font-size:11px; padding:10px 12px; }
 .daily-board .panel-head { padding:16px 14px 12px; align-items:flex-start; }
 .daily-board h2 { font-size:15px; gap:8px; }
 .daily-board h2 small { font-size:11px; }
 .daily-board .panel-head>.inline-gap { width:100%; justify-content:space-between; }
 .daily-overview { grid-template-columns:1fr; gap:16px; padding:0 14px 16px; }
 .daily-totals { display:block; padding:0 0 14px; border-right:0; border-bottom:1px solid var(--line); }
 .daily-totals>div { grid-template-columns:62px 1fr 1fr; gap:10px; padding:10px 0; }
 .daily-totals b { font-size:26px; }
 .daily-totals .daily-yesterday-count { font-size:12px; }
 .daily-people { display:grid; grid-template-columns:1fr; padding:0; gap:12px; }
 .daily-people>div { grid-template-columns:72px minmax(0,1fr); gap:10px; }
 .daily-person { min-height:36px; padding:6px 10px; }
 .daily-board-note { padding:10px 14px; line-height:1.8; }
 .library-overview>div { padding:14px 12px; gap:5px; }
 .library-overview span { font-size:12px; }.library-overview small { font-size:11px; }.library-overview strong { font-size:25px; }
 .account-category { padding:16px 14px; gap:10px; border-radius:12px; }
 .account-category strong { font-size:16px; }.account-category small { font-size:12px; }.account-category b { font-size:26px; }
 .account-category .account-platform-counts { padding-top:10px; gap:6px; }
 .account-platform-count,.library-overview .account-platform-count { font-size:11px; padding:4px 6px; }
 .account-categories { gap:10px; }
 .account-schedule { padding:14px; }
 .account-schedule .badge { grid-column:2; margin-left:0; }
 .employee-page .employee-entry,.employee-page .daily-single>.setting-card { padding:20px 18px; }
 .employee-entry-meta { gap:7px; margin-bottom:20px; }
 .employee-entry-meta>span { margin-left:0; width:100%; }
 .employee-page .daily-input-grid { gap:16px; }
 .employee-page .daily-input-grid input { font-size:23px; min-height:54px; }
 .employee-submit { align-items:stretch; gap:12px; }
 .employee-submit .btn { width:100%; }
 .employee-submit>span { font-size:12px; }
 .employee-history-filters { padding:0 14px 14px; }
 .employee-toolbar-context { gap:8px; }
 .employee-toolbar .workspace-return { font-size:12px; min-height:44px; }
 .employee-toolbar .breadcrumb { display:none; }
 .modal-head,.modal-body { padding:20px 18px; }
 .login .auth-card { max-width:100%; padding:30px 24px; }
 .login .field input { font-size:16px; }
}
@media(max-width:380px) {
 .topbar .breadcrumb { max-width:64px; }
 .topbar .top-right { gap:4px; }
 .notice-entry { gap:4px; }
 .topbar .top-right .btn.small { font-size:11px; padding-inline:7px; }
 .account-category { grid-template-columns:1fr; gap:8px; }
 .account-category b { grid-row:2; }
 .sheet-view-tools { flex-wrap:wrap; }
}
@media(max-width:700px) {
 .page-alerts>.notice-list { padding-inline:0; }
 .notice { padding:18px 16px; }
 .notice h3 { font-size:14px; }.notice p { font-size:13px; }
 .notice-footer { gap:14px; }
 .notice-footer .notice-actions { justify-content:flex-start; }
 .source-tools { flex-wrap:wrap; gap:10px; }
 .source-tools select { font-size:16px; min-height:44px; }
}

/* Match the compact header to the same vector wordmark used on desktop. */
.mobile-wordmark>strong { line-height:0; }
.mobile-wordmark img.brand-wordmark { display:block; width:96px; height:auto; max-width:none; }
.mobile-wordmark { gap:9px; }
