/* Keep mobile page controls within the visible width and bring content up. */
.compact439-event-month {display:grid;text-align:center;gap:2px}
.compact439-target {display:flex;justify-content:flex-end;margin:0 0 4px}
@media screen and (max-width:700px) {
 #app#app#app#app .main {padding-top:6px!important}
 #app#app#app#app .main :is(.page-heading,.integrated-page-heading,.oto-page-heading,.mf-heading,.team-hub-heading,.menu261-heading,.mgr245-heading,.calendar262-heading) {
  gap:6px!important;min-height:0!important;margin-block:0 5px!important;padding-block:0!important;
 }
 #app#app#app#app .main :is(.page-heading,.integrated-page-heading,.oto-page-heading,.mf-heading,.team-hub-heading,.menu261-heading,.mgr245-heading,.calendar262-heading) h1 {
  font-size:21px!important;line-height:1.2!important;
 }
 #app#app#app#app .main :is(.calendar262-controls,.oto-controls,.ss-controls-compact,.team-work-tabs,.team-primary-actions,.ff-main-query-row) {
  gap:4px!important;margin-block:0 5px!important;
 }
 #app#app#app#app .main :is(.oto-controls,.ss-controls-compact) {display:flex!important;flex-wrap:nowrap!important;align-items:center!important}
 #app#app#app#app .main :is(.oto-scope263,.ss-scope-switch) {min-width:0!important;margin-right:auto!important;padding:0!important}
 #app#app#app#app .main :is(.oto-scope263,.ss-scope-switch)>button {padding:3px clamp(3px,1.5vw,8px)!important;min-height:40px!important;font-size:11px!important;white-space:nowrap}
 #app#app#app#app .main .compact439-export {display:flex;flex:0 0 auto}
 #app#app#app#app .main .compact439-export .screen-excel {margin:0!important;min-width:38px!important;min-height:40px!important}
 #app#app#app#app .main :is(.oto-filter-panel,.ss-filter-panel)>summary {gap:2px!important;padding:4px!important;white-space:nowrap;font-size:11px!important}
 #app#app#app#app .ss-primary-actions {flex-wrap:nowrap!important;gap:4px!important;margin-bottom:4px!important}
 #app#app#app#app .ss-primary-actions>div {flex:0 0 auto!important;min-width:0!important;margin:0 2px 0 0!important}
 #app#app#app#app .ss-primary-actions>div>strong {font-size:12px!important}
 #app#app#app#app .ss-primary-actions>.btn {min-height:40px!important;padding:3px 1px!important;font-size:clamp(9px,2.8vw,12px)!important}
 #app#app#app#app .oto-shortcuts291 {margin-block:2px 5px!important;gap:4px!important}
 #app#app#app#app .oto-shortcuts291>button {min-height:40px!important;padding:4px 8px!important}
 #app#app#app#app .oto-month-controls {padding:3px 10px 0!important}
 #app#app#app#app .oto-month-controls h2 {font-size:17px!important}
 #app#app#app#app :is(.event-picker-tabs,.event-view-tabs) {margin-block:0 4px!important;padding:2px!important;gap:2px!important}
 #app#app#app#app :is(.event-picker-tabs,.event-view-tabs)>button {min-height:38px!important;padding:3px 4px!important;font-size:12px!important;white-space:nowrap}
 #app#app#app#app .event-controls {gap:3px!important;margin:0 0 4px!important;flex-wrap:nowrap!important}
 #app#app#app#app .event-month {gap:1px!important}
 #app#app#app#app .event-month strong {min-width:0!important;font-size:12px!important}
 #app#app#app#app .event-period {font-size:10px!important}
 #app#app#app#app .event-actions {gap:2px!important}
 #app#app#app#app .event-actions .btn {min-height:40px!important;padding:3px 4px!important;font-size:11px!important}
 #app#app#app#app .event-month .btn {width:33px!important;min-width:33px!important;min-height:40px!important}
 #app#app#app#app .event-actions :is(.event-refresh,.event-report-download) {display:inline-grid!important;place-items:center;width:35px!important;min-width:35px!important}
 #app#app#app#app .event-report-download svg {width:16px;height:16px}
 #app#app#app#app .compact439-report-text {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #app#app#app#app .catalog424-summary {margin-block:3px!important;padding:5px 8px 2px!important}
 #app#app#app#app .catalog425-filters {margin-bottom:2px!important;padding-block:2px!important}
 #app#app#app#app .team-hub-heading h1 {margin:0!important;font-size:21px!important}
 #app#app#app#app .team-hub-heading {margin:0 0 5px!important}
 #app#app#app#app .team-bundle-button {min-height:40px!important;padding:4px 8px!important}
 #app#app#app#app :is(.team-work-tabs,.team-primary-actions) button {min-height:38px!important;padding:4px!important;font-size:12px!important}
 #app#app#app#app .ts-calendar-card {padding:4px 8px 8px!important}
 #app#app#app#app .ts-toolbar {margin:0 0 3px!important;gap:2px!important}
 #app#app#app#app .ts-toolbar .ts-month263 {font-size:clamp(12px,3.5vw,17px)!important;white-space:nowrap}
 #app#app#app#app .ts-toolbar>label:has([data-ts-owner]) {flex:0 1 30%;min-width:0}
 #app#app#app#app .ts-toolbar [data-ts-owner] {min-height:40px!important;width:100%;min-width:0;font-size:12px;padding-inline:4px}
 #app#app#app#app .ts-toolbar>button[data-ts="today"] {min-width:38px!important;padding-inline:4px!important}
 #app#app#app#app .ts-view-row {flex-wrap:nowrap!important;gap:3px!important;margin-block:0 4px!important}
 #app#app#app#app .ts-view-row :is(button,[data-ts="export"]) {padding-inline:4px!important;white-space:nowrap;font-size:11px!important}
}

@media screen and (max-width:700px) {
 #app#app#app#app .compact439-team-nav {display:flex;align-items:stretch;gap:4px;margin-bottom:5px}
 #app#app#app#app .compact439-team-nav .team-work-tabs {flex:none;margin:0!important;padding:2px!important}
 #app#app#app#app .compact439-team-nav .team-work-tabs svg {display:none!important}
 #app#app#app#app .compact439-team-nav .team-work-tabs button {font-size:11px!important;padding:2px 4px!important}
 #app#app#app#app .compact439-team-nav .team-primary-actions {flex:1;min-width:0;margin:0!important}
 #app#app#app#app .compact439-team-nav .team-primary-actions>.btn {min-width:0!important;padding:2px 3px!important;font-size:clamp(10px,2.9vw,12px)!important;white-space:nowrap}
}

@media screen and (max-width:700px) {
 #app#app#app#app .main :is(.lh-heading,.deposit-toolbar,.docs420-heading,.rw-page-title,.fr-section-heading) {
  gap:5px!important;margin-block:0 6px!important;padding-block:0!important;
 }
 #app#app#app#app .main :is(.lh-heading,.deposit-toolbar,.docs420-heading,.rw-page-title) h1 {
  margin:0!important;font-size:21px!important;line-height:1.2!important;
 }
 #app#app#app#app .main .lh-heading>div>p {display:none!important}
 #app#app#app#app .main :is(.rw-detail-tabs,.deposit-state-tabs) {
  display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:3px!important;margin-block:3px!important;
 }
 #app#app#app#app .main :is(.rw-detail-tabs,.deposit-state-tabs)>button {
  flex:1 0 auto;white-space:nowrap;min-height:40px!important;padding:3px 5px!important;font-size:11px!important;
 }
 #app#app#app#app .event-actions .event-report-ready {white-space:nowrap}
 #app#app#app#app .compact439-target .event-target-button {min-height:40px;padding:4px 8px;font-size:11px}
}

/* Single-line work summary and compact task metadata. */
#app#app#app#app[data-screen="today"] .work-overview277 {
 display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;
 gap:3px 12px!important;margin:0 0 5px!important;padding:6px 9px!important;border-radius:9px!important;
}
#app#app#app#app[data-screen="today"] .work-overview277 :is(p,strong,span) {
 font-size:12px!important;line-height:1.4!important;letter-spacing:normal!important;white-space:nowrap;
}
#app#app#app#app[data-screen="today"] .work-overview277 p {margin-inline-end:auto!important}
#app#app#app#app[data-screen="today"] #today-list .task {
 grid-template-columns:34px minmax(0,1fr) minmax(0,clamp(110px,38%,180px))!important;
 align-items:center!important;
}
#app#app#app#app[data-screen="today"] #today-list .task .task-owner440 {
 display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:0 5px;min-width:0;
}
#app#app#app#app[data-screen="today"] #today-list .task :is(.task-time440,.task-estimate440) {white-space:nowrap}
@media screen and (max-width:700px) {
 #app#app#app#app[data-screen="today"] .page-heading {margin-bottom:5px!important}
 #app#app#app#app[data-screen="today"] .heading-actions .btn.primary {font-size:12px!important;min-height:40px!important;padding:4px 9px!important}
 #app#app#app#app[data-screen="today"] :is(.daily-scope-switch,.daily-task-tabs,.daily-controls-fold) {margin-block:0 4px!important}
 #app#app#app#app[data-screen="today"] .daily-scope-switch {padding:2px!important;gap:2px!important}
 #app#app#app#app[data-screen="today"] :is(.daily-scope-switch,.daily-task-tabs)>button {
  min-height:38px!important;padding:3px 4px!important;font-size:12px!important;
 }
 #app#app#app#app[data-screen="today"] .daily-controls-fold>summary {
  min-height:38px!important;padding:3px 8px!important;font-size:12px!important;
 }
 #app#app#app#app[data-screen="today"] #today-list .task-list {gap:4px!important}
 #app#app#app#app[data-screen="today"] #today-list .list-caption {padding:2px 3px!important}
 #app#app#app#app[data-screen="today"] #today-list .task {
  grid-template-columns:34px minmax(0,1fr) minmax(0,38%)!important;align-items:center!important;
  gap:4px!important;padding:4px 7px!important;border-radius:9px!important;min-height:0!important;
 }
 #app#app#app#app[data-screen="today"] #today-list .task .task-main {align-content:center!important;gap:2px!important;min-height:44px!important}
 #app#app#app#app[data-screen="today"] #today-list .task .task-title {font-size:14px!important;line-height:1.25!important}
 #app#app#app#app[data-screen="today"] #today-list .task .task-meta {gap:2px 4px!important;line-height:1.3!important}
 #app#app#app#app[data-screen="today"] #today-list .task .badge:not(.quadrant-tag):not(.warn) {padding:1px 4px!important}
 #app#app#app#app[data-screen="today"] #today-list .task .task-end {width:auto!important;max-width:none!important;gap:0!important;font-size:11px!important;line-height:1.25!important}
 #app#app#app#app[data-screen="today"] #today-list .task .task-estimate440 {font-size:11px!important;line-height:1.25!important}
 #app#app#app#app[data-screen="today"] #today-list .task .task-owner-name {font-size:11px!important;line-height:1.3!important}
 #app#app#app#app[data-screen="today"] #today-list .task .task-action278 {min-height:24px!important;height:24px!important;padding:0 1px!important}
}

/* Let each calendar week retain its own tap target in narrow toolbars. */
#app#app#app#app .week-nav263 {
 display:grid!important;grid-template-columns:max-content repeat(var(--week-count),minmax(32px,1fr))!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 flex:1 0 100%!important;overflow-x:auto;gap:2px!important;
}
#app#app#app#app .week-nav263>button {
 min-width:32px!important;width:100%!important;justify-self:stretch;
}
#app#app#app#app .calendar441-heading-actions {display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0}
#app#app#app#app .calendar441-heading-actions>button {white-space:nowrap}

@media screen and (max-width:700px) {
 #app#app#app#app .main {padding-top:4px!important}
 #app#app#app#app .growth-page-sales .ss-primary-actions {
  display:grid!important;grid-template-columns:max-content repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;gap:4px!important;width:100%!important;min-width:0!important;
  padding:0 0 3px!important;margin:0 0 4px!important;
 }
 #app#app#app#app .growth-page-sales .ss-primary-actions>div {
  display:flex!important;align-items:center!important;width:auto!important;min-width:0!important;
  margin:0!important;padding-inline:1px!important;
 }
 #app#app#app#app .growth-page-sales .ss-primary-actions>.btn {
  display:grid!important;place-items:center!important;width:100%!important;
  min-width:0!important;min-height:40px!important;height:auto!important;
  padding:3px 2px!important;font-size:12px!important;white-space:normal!important;
  word-break:keep-all;overflow-wrap:anywhere;text-align:center;line-height:1.2!important;
 }
 #app#app#app#app .ss-scope-switch {flex:0 1 auto!important}
 #app#app#app#app .ss-scope-switch>button {white-space:nowrap!important}
 #app#app#app#app .ss-controls-compact>:is(.compact439-export,.ss-filter-panel) {flex:none!important}
 #app#app#app#app :is(.calendar262-heading,.calendar262-toolbar,.calendar262-controls,.calendar263-context) {
  margin-block:0 3px!important;gap:4px!important;
 }
 #app#app#app#app .calendar441-heading-actions>button {min-height:40px!important;margin:0!important;padding:4px 7px!important;font-size:12px!important}
 #app#app#app#app .calendar441-heading-actions>button svg {width:14px!important;height:14px!important}
 #app#app#app#app .calendar262-main {padding:4px 8px 8px!important;border-radius:11px!important;min-width:0!important}
 #app#app#app#app .calendar262-toolbar h2 {font-size:17px!important}
 #app#app#app#app .calendar262-month-move>button {width:36px!important;min-width:36px!important}
 #app#app#app#app .calendar262-controls :is(.calendar262-layout,.calendar262-scope)>button {padding:3px 6px!important}
 #app#app#app#app .calendar262-controls :is(button,summary),#app#app#app#app .calendar262-month-move>button {
  min-height:38px!important;height:38px!important;
 }
 #app#app#app#app .calendar263-context {flex-wrap:wrap!important}
 #app#app#app#app .week-nav263 {margin-block:0 3px!important;padding-block:0 2px!important}
 #app#app#app#app .week-nav263>button {min-height:36px!important;padding-inline:0!important}
 #app#app#app#app .calendar262-grid>.weekday {min-height:25px!important;padding-block:3px!important}
 #app#app#app#app :is(.mgr245-tabs,.closing-section-tabs) {
  display:flex!important;align-items:stretch;overflow-x:auto;gap:3px!important;
  margin-block:0 5px!important;padding:2px!important;
 }
 #app#app#app#app :is(.mgr245-tabs,.closing-section-tabs)>button {
  flex:1 0 auto;white-space:nowrap;min-height:40px!important;
  padding:3px 6px!important;font-size:12px!important;
 }
 #app#app#app#app :is(.mgr400>header,.journal-hub>h2,.overview405-section-head) {
  margin-block:0 5px!important;padding-block:0!important;gap:5px!important;
 }
 #app#app#app#app :is(.mgr400,.overview405,.journal-hub) {min-width:0!important}
}
