/* v2.4.84 — Mobile UX v2: app shell, Today, quick create, search, contextual actions */
@media (max-width:800px){
  :root{--mobile-nav-h:72px;--mobile-safe-bottom:env(safe-area-inset-bottom);--mobile-blue:#2457c5;--mobile-ink:#152238;--mobile-muted:#77849a;--mobile-card:#fff;--mobile-line:#e5eaf1}
  html{scroll-padding-bottom:calc(var(--mobile-nav-h) + 18px + var(--mobile-safe-bottom))}
  body{padding-bottom:calc(var(--mobile-nav-h) + var(--mobile-safe-bottom) + 8px);background:#f4f6f9}
  main{padding-top:10px}.wrap{padding-left:10px;padding-right:10px}
  .app-header{position:sticky;top:0;z-index:42}.app-topbar{min-height:52px;padding-top:6px;padding-bottom:6px;flex-wrap:nowrap}.app-brand{font-size:18px}.app-global-search{display:none}.app-system-actions{margin-left:auto}.background-job-indicator.app-icon-action{display:none}

  /* App-like bottom navigation. */
  .mobile-bottom-nav.mobile-app-nav{z-index:900;grid-template-columns:repeat(5,1fr);padding:4px max(6px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border-top-color:#dfe4eb;box-shadow:0 -8px 28px rgba(19,33,55,.11)}
  .mobile-app-nav a,.mobile-app-nav button{min-height:56px;gap:3px;color:#6e7b8f;font-size:inherit;font-weight:700}
  .mobile-app-nav .mobile-nav-icon{display:grid;place-items:center;height:24px;min-width:28px;font-size:21px;line-height:1;font-weight:780}
  .mobile-app-nav>*>span:last-child{font-size:9.5px;line-height:1.05;font-weight:760}
  .mobile-app-nav a.active,.mobile-app-nav button.active{color:var(--mobile-blue)}
  .mobile-app-nav a.active::before,.mobile-app-nav button.active::before{top:0;width:24px;height:3px;background:var(--mobile-blue)}
  .mobile-app-nav .mobile-nav-create{overflow:visible;color:#29456f}
  .mobile-nav-plus{display:grid;place-items:center;width:44px;height:44px;margin-top:-15px;border:4px solid #fff;border-radius:50%;background:var(--mobile-blue);color:#fff;font-size:27px;font-weight:400;line-height:1;box-shadow:0 6px 18px rgba(36,87,197,.28)}
  .mobile-app-nav .mobile-nav-create>span:last-child{margin-top:-1px;color:#4d5d73}

  /* More sheet. */
  .mobile-menu-sheet.mobile-app-more{left:8px;right:8px;bottom:calc(var(--mobile-nav-h) + 6px + env(safe-area-inset-bottom));z-index:880;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;max-height:min(70vh,620px);padding:10px;border-radius:20px;box-shadow:0 24px 70px rgba(16,24,40,.28)}
  .mobile-app-more .app-mobile-menu-title{grid-column:1/-1;padding:12px 10px 4px}.mobile-app-more .app-mobile-menu-title:first-child{padding-top:4px}
  .mobile-app-more>a{display:flex;align-items:center;min-height:46px;padding:9px 10px;border-radius:11px;background:#f8fafc;font-size:12px}.mobile-app-more>a:active{background:#edf2f8}.mobile-app-more .app-mobile-logout{grid-column:1/-1}

  /* Quick create bottom sheet. */
  html.mobile-sheet-open,html.mobile-sheet-open body{overflow:hidden}.mobile-create-sheet[hidden]{display:none!important}.mobile-create-sheet{position:fixed;inset:0;z-index:1180}.mobile-sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(18,28,45,.28);backdrop-filter:blur(2px)}.mobile-create-panel{position:absolute;left:0;right:0;bottom:0;padding:8px 12px calc(20px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -20px 55px rgba(18,37,63,.22);animation:mobile-sheet-up .18s ease-out}.mobile-sheet-handle{width:38px;height:4px;margin:2px auto 10px;border-radius:999px;background:#d6dce5}.mobile-create-head{display:flex;align-items:center;justify-content:space-between;padding:3px 4px 12px}.mobile-create-head>div{display:flex;flex-direction:column}.mobile-create-head small{color:#8a96a8;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.mobile-create-head strong{margin-top:2px;color:var(--mobile-ink);font-size:21px}.mobile-create-head>button{width:38px;height:38px;border:0;border-radius:11px;background:#f1f4f8;color:#5e6b7e;font-size:24px}.mobile-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-create-grid>a,.mobile-create-grid>button{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;align-items:center;min-height:70px;padding:10px;border:1px solid #e4e9f0;border-radius:14px;background:#fff;color:#1d2c41;text-align:left;text-decoration:none;font:inherit}.mobile-create-grid>a>span,.mobile-create-grid>button>span{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eef3fb;color:#315caa;font-size:19px;font-weight:850}.mobile-create-grid strong{font-size:13px}.mobile-create-grid small{margin-top:2px;color:#7d899a;font-size:10px}.mobile-create-grid>button{cursor:pointer}@keyframes mobile-sheet-up{from{transform:translateY(18px);opacity:.75}to{transform:translateY(0);opacity:1}}

  /* Mobile home = workday, not a shrunk BI dashboard. */
  .mobile-today{display:block!important;padding:2px 0 18px}.mobile-today-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:7px 4px 12px}.mobile-today-date{color:#7f8b9d;font-size:11px;font-weight:760;text-transform:uppercase;letter-spacing:.055em}.mobile-today-hero h1{margin:2px 0 2px;color:var(--mobile-ink);font-size:31px;line-height:1.05;letter-spacing:-.035em}.mobile-today-hero p{margin:0;color:#6e7b8d;font-size:12px}.mobile-today-avatar{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#1d3151;color:#fff;text-decoration:none;font-weight:850}.mobile-today-avatar i{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid #f4f6f9;border-radius:999px;background:#d92d20;color:#fff;font:800 9px/1 system-ui}
  .mobile-today-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:9px}.mobile-today-summary a{display:flex;min-width:0;flex-direction:column;gap:3px;padding:10px 8px;border:1px solid var(--mobile-line);border-radius:13px;background:#fff;color:#657389;text-decoration:none}.mobile-today-summary span{overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:760;white-space:nowrap}.mobile-today-summary strong{color:#1e2c41;font-size:21px;line-height:1}.mobile-today-summary a.is-critical strong{color:#c9362b}.mobile-today-card{margin-bottom:9px;padding:13px;border:1px solid var(--mobile-line);border-radius:17px;background:#fff;box-shadow:0 3px 14px rgba(20,38,70,.035)}.mobile-today-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.mobile-today-card-head>div{display:flex;min-width:0;flex-direction:column}.mobile-today-card-head span{color:#8995a6;font-size:9px;font-weight:830;text-transform:uppercase;letter-spacing:.06em}.mobile-today-card-head h2{margin:1px 0 0;color:#1b293c;font-size:18px;line-height:1.2}.mobile-today-card-head>a,.mobile-today-card-head>button{padding:7px 8px;border:0;border-radius:9px;background:#f2f5f9;color:#315c9c;text-decoration:none;font:760 10px/1 system-ui;white-space:nowrap}
  .mobile-action-list,.mobile-task-list,.mobile-recent-list{display:grid}.mobile-action-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:58px;padding:8px 1px;border-bottom:1px solid #edf0f4;color:#1b283b;text-decoration:none}.mobile-action-row:last-child{border-bottom:0}.mobile-action-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#f0f4f9;color:#52657e;font-size:16px;font-weight:850}.mobile-action-row.tone-danger .mobile-action-icon{background:#fff0ee;color:#c0392f}.mobile-action-row.tone-warn .mobile-action-icon{background:#fff6df;color:#9a6a08}.mobile-action-row.tone-info .mobile-action-icon{background:#eef4ff;color:#315da5}.mobile-action-copy{display:flex;min-width:0;flex-direction:column}.mobile-action-copy small{color:#8995a5;font-size:9px;font-weight:750}.mobile-action-copy strong{margin-top:1px;overflow:hidden;color:#243247;font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}.mobile-action-copy em{margin-top:2px;overflow:hidden;color:#758397;font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.mobile-action-arrow{color:#a4adba;font-size:23px;font-weight:400}.mobile-action-badge{display:grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:#eef2f7;color:#536278;font-size:10px}.mobile-today-empty{padding:17px 4px;text-align:center}.mobile-today-empty strong{display:block;color:#2f704d;font-size:13px}.mobile-today-empty span{display:block;margin-top:3px;color:#8490a0;font-size:10px}
  .mobile-task-list>a,.mobile-recent-list>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;min-height:50px;padding:8px 1px;border-bottom:1px solid #edf0f4;color:#1c2b40;text-decoration:none}.mobile-task-list>a:last-child,.mobile-recent-list>a:last-child{border-bottom:0}.mobile-task-state{width:8px;height:8px;border-radius:50%;background:#7f8da0}.mobile-task-state.tone-danger{background:#d7483c}.mobile-task-state.tone-warn{background:#d69a22}.mobile-task-state.tone-info{background:#4b78c7}.mobile-task-list>a>span:nth-child(2),.mobile-recent-list>a>span{display:flex;min-width:0;flex-direction:column}.mobile-task-list strong,.mobile-recent-list strong{overflow:hidden;font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}.mobile-task-list small,.mobile-recent-list small,.mobile-recent-list em{margin-top:2px;overflow:hidden;color:#7c899b;font-size:9.5px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.mobile-task-list>a>b,.mobile-recent-list>a>b{color:#a4adba;font-size:20px;font-weight:400}.mobile-recent-list>a{grid-template-columns:minmax(0,1fr) auto}.mobile-recent-list small{margin-top:0;color:#8995a6;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
  .mobile-money-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.mobile-money-grid a{display:flex;min-width:0;flex-direction:column;padding:10px 8px;border-radius:12px;background:#f7f9fc;color:#203047;text-decoration:none}.mobile-money-grid span{color:#7d899b;font-size:9px}.mobile-money-grid strong{margin-top:5px;overflow:hidden;font-size:16px;line-height:1;text-overflow:ellipsis;white-space:nowrap}.mobile-money-grid small{margin-top:4px;color:#909bad;font-size:8px;font-weight:750}
  .mobile-desktop-analytics.mobile-has-today{display:none}.mobile-desktop-analytics.mobile-has-today.mobile-analytics-open{display:block}.mobile-today.analytics-hidden{display:none!important}.mobile-analytics-close{margin-bottom:8px}.mobile-analytics-close button{width:100%;min-height:42px;border:1px solid #dfe5ee;border-radius:12px;background:#fff;color:#315c9c;font-weight:760}

  /* Search becomes a real mobile screen. */
  .app-command-palette{z-index:1250;padding:0 0 calc(var(--mobile-nav-h) + env(safe-area-inset-bottom))}.app-command-palette-backdrop{display:none}.app-command-palette-dialog{width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none}.app-command-palette-search{position:sticky;top:0;z-index:2;grid-template-columns:28px minmax(0,1fr) 36px;min-height:58px;padding:calc(7px + env(safe-area-inset-top)) 12px 9px;background:#fff}.app-command-palette-search input{font-size:16px}.app-command-palette-search>kbd{font-size:0;width:34px;height:34px;border:0;background:#eff2f6}.app-command-palette-search>kbd:after{content:'×';font-size:22px}.app-command-palette-body{padding:9px 10px 22px;background:#f7f8fa}.app-command-palette-actions>a{min-height:56px;background:#fff;border-color:#e6ebf2}.app-command-palette-footer{display:none}.app-command-palette-nav-section{padding:8px;border:1px solid #e6eaf0;border-radius:14px;background:#fff}.app-command-palette-nav-link{grid-template-columns:68px minmax(0,1fr) 18px}.app-command-palette-nav-meta{display:none}.app-command-palette-result{min-height:56px;background:#fff;margin-bottom:3px}.app-command-palette-all{min-height:48px;background:#fff}

  /* Better touch and mobile cards. */
  main a,main button,main summary{touch-action:manipulation}.btn,.icon-btn{min-height:44px}.btn.small{min-height:40px}.actions>a,.actions>button,.ss-inline-actions>a,.ss-inline-actions>button{min-height:42px}.org-tabs a,.org-tabs button,.item-tabs a,.item-tabs button{min-height:44px;display:inline-flex;align-items:center}.mobile-card-table tbody>tr{padding:6px 12px;border-radius:16px!important}.mobile-card-table td{min-height:39px}.mobile-card-table td.mobile-primary-cell{border-bottom:1px solid #e8edf3!important}.mobile-card-table td.mobile-primary-cell a.title{font-size:15px!important}.mobile-card-table td[data-mobile-empty='1']{display:none!important}

  /* Detail-page contextual action dock. */
  body.has-mobile-context-dock{padding-bottom:calc(var(--mobile-nav-h) + 64px + env(safe-area-inset-bottom))}.mobile-context-dock{position:fixed;left:8px;right:8px;bottom:calc(var(--mobile-nav-h) + 6px + env(safe-area-inset-bottom));z-index:840;display:flex;align-items:center;gap:6px;padding:6px;border:1px solid #dfe5ec;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 10px 32px rgba(20,34,56,.16);backdrop-filter:blur(14px)}.mobile-context-dock>a,.mobile-context-dock>button{display:flex;min-width:0;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:46px;padding:4px 6px;border:0;border-radius:11px;background:transparent;color:#536278;text-decoration:none;font:740 9.5px/1.1 system-ui}.mobile-context-dock>a>span,.mobile-context-dock>button>span{font-size:17px;line-height:1}.mobile-context-dock>a.primary{background:#edf3ff;color:#2457b8}.mobile-context-dock>a:active,.mobile-context-dock>button:active{background:#eef2f7}

  /* Quick Preview = full, deliberate bottom sheet. */
  .quick-preview-shell{z-index:1220}.quick-preview-drawer{height:min(92vh,820px)!important;border-radius:22px 22px 0 0!important}.quick-preview-head{position:relative;padding-top:17px!important}.quick-preview-head:before{content:'';position:absolute;top:7px;left:50%;width:38px;height:4px;border-radius:999px;background:#d6dce5;transform:translateX(-50%)}.quick-preview-close,.quick-preview-back{width:40px!important;height:40px!important}.quick-preview-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}.quick-preview-footer .btn{flex:1;justify-content:center}
}

@media(max-width:390px){
  .mobile-today-summary{gap:4px}.mobile-today-summary a{padding:9px 6px}.mobile-today-summary span{font-size:8px}.mobile-today-summary strong{font-size:19px}.mobile-money-grid{grid-template-columns:1fr}.mobile-money-grid a{display:grid;grid-template-columns:1fr auto auto;align-items:end;gap:7px}.mobile-money-grid strong{margin-top:0}.mobile-money-grid small{margin-top:0}.mobile-create-grid{grid-template-columns:1fr 1fr}.mobile-context-dock{left:5px;right:5px;gap:2px}.mobile-context-dock>a,.mobile-context-dock>button{font-size:8.5px;padding-left:3px;padding-right:3px}}
.app-command-palette-mobile-close{display:none}
@media(max-width:800px){.app-command-palette-search{grid-template-columns:28px minmax(0,1fr) 38px}.app-command-palette-search>kbd{display:none}.app-command-palette-mobile-close{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:11px;background:#eff2f6;color:#5f6d80;font:400 24px/1 system-ui;cursor:pointer}}
