/* Phone presentation of the existing workspaces. Desktop rules remain authoritative. */
.inhi-mobile-menu-toggle,.inhi-mobile-menu-close,.inhi-mobile-menu-backdrop{display:none}
@media(max-width:760px){
  html{scroll-padding-top:12px}
  html.inhi-global-sidebar-boot body .app-shell,html.inhi-global-sidebar-boot body .layout,
  body .app-shell.has-inhi-global-sidebar,body .layout.has-inhi-global-sidebar{grid-template-columns:minmax(0,1fr)!important}
  html.inhi-global-sidebar-boot .sidebar:not(.inhi-global-sidebar){display:none!important}
  html body .app-shell > .sidebar.inhi-global-sidebar,html body .layout > .sidebar.inhi-global-sidebar{
    position:fixed!important;inset:0 auto 0 0!important;z-index:10002!important;
    width:min(300px,86vw)!important;min-width:0!important;max-width:none!important;
    height:100vh!important;height:100dvh!important;grid-template-rows:48px 52px minmax(0,1fr)!important;
    padding:8px 12px calc(12px + env(safe-area-inset-bottom))!important;
    visibility:hidden!important;transform:translateX(-100%);overflow:auto!important;
  }
  html.inhi-mobile-menu-open body .sidebar.inhi-global-sidebar{visibility:visible!important;transform:none}
  html.inhi-mobile-menu-open,html.inhi-mobile-menu-open body{overflow:hidden!important}
  html body .inhi-global-sidebar .nav-list{padding:12px 0!important;gap:4px!important}
  html body .inhi-global-sidebar .nav-link{width:100%!important;min-height:48px!important;flex-direction:row!important;justify-content:flex-start!important;gap:16px!important;padding:10px 16px!important;text-align:left!important;font-size:15px!important}
  .inhi-mobile-menu-toggle,.inhi-mobile-menu-close{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #d6d6d2;border-radius:8px;background:#fafafa;color:#242622;font:500 14px system-ui;cursor:pointer;padding:8px 12px;flex-shrink:0}
  .inhi-mobile-menu-close{justify-self:end}
  .inhi-mobile-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:10001;border:0;background:rgb(28 30 27 / 35%)}
  .inhi-mobile-menu-toggle:focus-visible,.inhi-mobile-menu-close:focus-visible{outline:2px solid #577680;outline-offset:2px}
  html body .inhi-global-chrome{height:auto!important;min-height:0;display:flex!important;flex-direction:column;align-items:stretch!important;gap:8px!important;padding:10px 12px!important}
  html body .inhi-global-chrome-left,html body .inhi-global-chrome-right{width:100%;min-width:0;gap:8px!important;flex-wrap:wrap!important}
  html body .inhi-global-chrome-left .inhi-global-system{display:none}
  html body .inhi-global-chrome-project{flex:1;min-width:0;max-width:100%}
  html body .inhi-global-chrome-project .inhi-filter-menu{min-width:0!important;max-width:100%;width:100%}
  html body .inhi-global-chrome-project select{min-width:0!important;max-width:100%;width:100%}
  html body .inhi-global-chrome-project .inhi-filter-menu-trigger b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body .inhi-global-chrome-right{justify-content:flex-end!important}
  html body .inhi-global-feedback{margin-right:auto;height:auto;padding:0}
  html body .inhi-global-feedback-btn,html body .inhi-global-icon-btn,html body .inhi-global-account-btn{min-height:44px!important;min-width:44px}
  html body .inhi-global-status:empty,html body .inhi-global-divider{display:none}
  html body .inhi-global-account-menu{max-width:calc(100vw - 24px)}
  html body .inhi-global-account-menu a,html body .inhi-global-account-menu button{min-height:44px;display:flex;align-items:center}
  .main,main,.content,#brandCooperationWorkbench{min-width:0!important;max-width:100%;}
  body .content{padding:12px!important}
  #businessWorkspaceNavigation{gap:12px;margin-bottom:12px}
  #businessExecutionSurface{margin:8px 0;border-radius:8px}
  body.inhi-mobile-work-open{overflow:hidden!important}
  #businessExecutionSurface.is-work-modal{position:fixed!important;inset:0!important;z-index:10000!important;margin:0!important;border:0!important;border-radius:0!important;width:100%!important;height:100vh!important;height:100dvh!important;background:#f5f5f3}
  #businessExecutionSurface.is-work-modal > iframe{width:100%!important;height:100%!important}
  html[data-business-execution-embed] .content{padding:8px!important}
  body .roleboard .roleboard-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px!important}
  body .roleboard .roleboard-filters > *{min-width:0!important;max-width:100%!important}
  body .roleboard .roleboard-toolbar select,.roleboard .roleboard-toolbar button,.roleboard .roleboard-tabs button,.roleboard .roleboard-create button{min-height:44px!important;font-size:14px!important}
  body .roleboard .product-task-board{grid-template-columns:minmax(0,1fr)!important;overflow:visible!important}
  body .roleboard .product-task-lane{min-width:0!important;min-height:0!important}
  body .roleboard .product-task-lane-scroll{max-height:none!important;overflow:visible!important}
  body .roleboard .product-task-card{min-width:0!important}
  body .roleboard .roleboard-next{min-width:44px;min-height:44px}
  body .roleboard .product-task-list-head{display:none}
  body .roleboard .product-task-list-row{display:flex!important;flex-wrap:wrap;gap:12px}
  body .roleboard .product-task-list-main{flex-basis:100%;min-width:0}
  .workspace-detail-mask.show{padding:0!important;background:#f5f5f3}
  body .workspace-floating-detail.work-window:not(.tw-workspace-v2){width:100%!important;height:100vh!important;height:100dvh!important;max-height:none!important;max-width:none!important;border:0;border-radius:0!important;grid-template-rows:auto auto minmax(0,1fr) auto!important}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-header{padding:12px!important;gap:8px!important}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-title-editor{font-size:18px!important;line-height:1.5!important;min-height:38px;width:100%;min-width:0}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-header-actions{flex-shrink:0}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-header .btn{min-height:44px!important;min-width:44px!important}
  body .work-window:not(.tw-workspace-v2) .work-flow-nav{padding:4px 8px!important;gap:0!important;flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap}
  body .work-window:not(.tw-workspace-v2) .work-flow-nav button{min-height:44px!important;min-width:44px!important;flex-shrink:0;padding:8px 12px}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-edit-grid{display:block!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-main,body .work-window:not(.tw-workspace-v2) .workspace-detail-side,body .work-window:not(.tw-workspace-v2) .workspace-detail-side-scroll{display:block!important;overflow:visible!important;height:auto!important;max-height:none!important;min-height:0!important;padding:12px!important}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-side-scroll{padding:0!important}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-section{padding:12px!important;margin-bottom:12px}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-action-dock{position:static!important;padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-action-dock button,body .work-window:not(.tw-workspace-v2) .workspace-send-btn{min-height:44px!important}
  body .work-window:not(.tw-workspace-v2) .workspace-compact-meta{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important}
  body .work-window:not(.tw-workspace-v2) input,body .work-window:not(.tw-workspace-v2) select,body .work-window:not(.tw-workspace-v2) textarea{font-size:16px!important;max-width:100%;min-width:0}
  body .work-window:not(.tw-workspace-v2) .workspace-task-type-capsule{min-height:40px;padding:8px;font-size:14px}
  body .work-window:not(.tw-workspace-v2) .workspace-context-bind-row{grid-template-columns:minmax(0,1fr)!important}
  body .work-window:not(.tw-workspace-v2) .workspace-period-node{grid-template-columns:minmax(0,1fr) 100px}
  body .work-window:not(.tw-workspace-v2) .workspace-composer-history{max-height:none;overflow:visible}
  body .work-window:not(.tw-workspace-v2) .workspace-detail-section,body .work-window:not(.tw-workspace-v2) .work-ledger{overflow-wrap:anywhere}
  body .work-meeting{width:100%!important;max-width:100%!important;height:100dvh!important;max-height:none!important;border-radius:0!important}
  body .work-meeting .product-meeting-grid{grid-template-columns:minmax(0,1fr)!important;padding:12px!important}
  body .work-meeting .product-meeting-head,body .work-meeting .product-meeting-panel{padding:12px!important}
  body .work-meeting input,body .work-meeting textarea,body .work-meeting select{font-size:16px!important}
}

/* Keep the assistant reachable without covering a task window action dock. */
body.inhi-mobile-work-open > .as-launcher{bottom:80px;width:44px;min-width:44px;padding:8px;justify-content:center}
body.inhi-mobile-work-open > .as-launcher .as-launcher-label{display:none}
