/* Mobile order: keep the people, navigation and next actions visible and usable. */
@media (max-width:600px) {
 .ow-workspace .ow-header {
  grid-template-columns:44px minmax(0,1fr) 44px 44px;
  grid-template-areas:'back title more chat' 'people people people people';
  gap:6px 6px; padding:8px 12px 10px; align-items:start;
 }
 .ow-workspace .ow-header h1 {font-size:21px;line-height:1.18;letter-spacing:-.025em;overflow-wrap:break-word;hyphens:auto}
 .ow-workspace .ow-header .pc-workspace-title {min-width:0;padding-top:2px}
 .ow-heading-meta {margin-top:3px;gap:3px 8px}
 .ow-workspace .ow-status>select {min-height:44px;font-size:16px}
 .ow-people {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
 .ow-people:has(.ow-roster>.ow-quiet-note) {grid-template-columns:repeat(2,minmax(0,1fr))}
 .ow-people-label,.ow-crew-summary>.ow-people-label {margin-bottom:3px;text-align:left}
 .ow-client-summary .ow-person,.ow-roster>.ow-person:only-child {flex-direction:row;align-items:center;text-align:left;justify-content:flex-start;gap:8px}
 .ow-roster:has(>.ow-person:only-child) {justify-content:flex-start}
 .ow-roster>.ow-person:only-child {flex:0 1 auto;max-width:100%}
 .ow-client-summary .ow-avatar,.ow-roster .ow-avatar {width:34px;height:34px;font-size:14px}
 .ow-person-text strong,.ow-person-text small {line-height:1.3}
 .ow-roster>.ow-person .ow-person-text :is(strong,small),.ow-client-summary .ow-person-text strong {overflow-wrap:break-word;hyphens:auto}
 .ow-main-scroll {padding:12px 12px 18px}
 .ow-work-stack,.ow-chapter,.ow-diary-grid {gap:10px}
 .ow-work-focus,.ow-meeting,.ow-work-card.ow-diary-shoot {padding:12px 14px;gap:8px}
 .ow-work-focus h2,.ow-meeting h2,.ow-shoot-heading h2 {font-size:16px;line-height:1.3}
 .ow-work-focus p,.ow-meeting p,.ow-shoot-heading p {line-height:1.45}
 .ow-diary-tasks .ow-section-heading h2 {font-size:19px}
 .ow-diary-tasks .ow-all-tasks-link {min-height:44px}
}
/* In landscape, keep the customer and team available too. */
@media (orientation:landscape) and (max-height:540px) and (max-width:600px) {
 .ow-workspace .ow-header {grid-template-columns:44px minmax(0,1fr) 44px 44px;grid-template-areas:'back title more chat' 'people people people people'}
 .ow-people {display:grid;grid-area:people;align-items:start;padding:0;border:0}
 .ow-client-summary,.ow-people-label,.ow-roster>.ow-person .ow-person-text {display:block}
 .ow-crew-summary {width:auto}
}

.ow-head-toggle {display:none}
@media (max-width:767px), (max-width:960px) and (max-height:500px) and (pointer:coarse) {
 .ow-workspace .ow-header {
  display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;
  grid-template-areas:'back title more chat';min-height:0;align-items:center;
  padding:4px 10px;gap:0 4px;
 }
 .ow-workspace .ow-header .pc-workspace-title {display:block;grid-area:title;padding:0}
 .ow-header .ow-back {grid-area:back}
 .ow-workspace .ow-header>.ow-more {grid-area:more}
 .ow-header .ow-chat-button {grid-area:chat}
 .ow-header .ow-desktop-title {display:none}
 .ow-workspace .ow-header h1 {display:block;margin:0;line-height:1;overflow:visible}
 .ow-header .ow-head-toggle {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;
  width:100%;min-width:0;min-height:44px;padding:2px 4px;border:0;border-radius:6px;
  background:transparent;color:var(--txt-hi);font-family:inherit;text-align:start;cursor:pointer;
 }
 .ow-head-toggle:focus-visible {outline:2px solid var(--gold);outline-offset:-2px}
 .ow-head-name {max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:18px;font-weight:700;line-height:1.2}
 .ow-head-phase {display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;line-height:1.2;color:var(--txt-lo)}
 .ow-head-phase::before {content:'';width:6px;height:6px;flex:none;border-radius:50%;background:var(--ow-phase)}
 .ow-head-phase i {width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-1px) rotate(45deg)}
 .ow-head-toggle[aria-expanded=true] i {transform:translateY(2px) rotate(225deg)}
 .ow-head-toggle[aria-expanded=true] .ow-head-name {white-space:normal;overflow-wrap:anywhere}
 .ow-workspace .ow-header[data-expanded=false] :is(.ow-heading-meta,.ow-people) {display:none}
 .ow-workspace .ow-header[data-expanded=true] {
  grid-template-areas:'back title more chat' 'meta meta meta meta' 'people people people people';row-gap:6px;padding-bottom:10px;
 }
 .ow-workspace .ow-header[data-expanded=true] .pc-workspace-title {display:contents}
 .ow-workspace .ow-header[data-expanded=true] h1 {grid-area:title}
 .ow-workspace .ow-header[data-expanded=true] .ow-heading-meta {display:flex;grid-area:meta;align-items:center;margin:0;padding-inline:4px}
 .ow-workspace .ow-header[data-expanded=true] .ow-people {display:grid;grid-area:people;padding:0 4px;border:0;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
 .ow-header[data-expanded=true] :is(.ow-client-summary,.ow-people-label,.ow-person-text) {display:block}
 .ow-header[data-expanded=true] .ow-status>select {min-height:44px}
 .ow-workspace .ow-chapter-nav.page-tabs {
  grid-template-columns:repeat(var(--page-tabs-wide-columns),minmax(0,1fr));
 }
}

@media (min-width:600px) and (max-width:960px) and (max-height:500px) and (pointer:coarse) {
 .ow-workspace .ow-chapter-nav.page-tabs {grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none}
}
