/* hyTeams Workspace V17 — page-scoped responsive/workflow polish. */
.hy-collab-v16{--ht-mobile-dock-h:calc(62px + env(safe-area-inset-bottom,0px))}
.hy-collab-v16 .ht-work-menu-sep{height:1px;margin:5px 7px;background:var(--border)}

/* Task workspace */
.hy-collab-v16 .ht-task-workspace-head{display:flex;align-items:center;gap:16px;padding:14px 16px 10px;border-bottom:1px solid var(--border);background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 6%,transparent),transparent)}
.hy-collab-v16 .ht-task-title-block{display:grid;grid-template-columns:auto 1fr;align-items:end;gap:1px 10px;min-width:0}
.hy-collab-v16 .ht-task-title-block strong{font-size:18px;letter-spacing:-.035em;color:var(--text)}
.hy-collab-v16 .ht-task-title-block>span:last-child{grid-column:2;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hy-collab-v16 .ht-task-kicker{grid-row:1 / span 2;align-self:center;font:800 9px/1 var(--font-mono,monospace);letter-spacing:.1em;text-transform:uppercase;color:var(--accent);padding:6px 8px;border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);border-radius:8px;background:color-mix(in srgb,var(--accent) 7%,transparent)}
.hy-collab-v16 .ht-task-create{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 13px;border:1px solid transparent;border-radius:10px;color:var(--text);background:linear-gradient(var(--cv16-panel),var(--cv16-panel)) padding-box,linear-gradient(110deg,var(--cv16-cyan),var(--cv16-violet),var(--cv16-pink)) border-box;cursor:pointer;font-weight:800;font-size:11px;box-shadow:0 0 18px rgba(36,233,255,.12)}
.hy-collab-v16 .ht-task-toolbar{display:flex;align-items:center;gap:12px;padding:8px 16px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg-surface) 90%,transparent)}
.hy-collab-v16 .ht-task-view-switch{display:flex;gap:4px;flex:0 0 auto}
.hy-collab-v16 .ht-task-view-switch .ht-ch-tab{height:34px;padding:0 11px;border:1px solid transparent;border-radius:9px}
.hy-collab-v16 .ht-task-view-switch .ht-ch-tab.active{border-color:color-mix(in srgb,var(--accent) 38%,transparent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.hy-collab-v16 .ht-task-filters{display:flex;gap:6px;align-items:center;min-width:0;margin-left:auto}
.hy-collab-v16 .ht-task-filter{height:34px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid var(--border);border-radius:9px;background:var(--bg-card);color:var(--muted)}
.hy-collab-v16 .ht-task-filter input{width:130px;border:0!important;outline:0!important;padding:0!important;background:transparent!important;font-size:11px!important}
.hy-collab-v16 .ht-task-filters select{height:34px;min-width:118px;padding:0 24px 0 9px;border-radius:9px;font-size:11px}
.hy-collab-v16 .ht-task-health{display:flex;gap:6px;padding:8px 16px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}
.hy-collab-v16 .ht-task-health::-webkit-scrollbar{display:none}
.hy-collab-v16 .ht-task-health span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:4px 8px;border:1px solid var(--border);border-radius:999px;background:var(--bg-card);color:var(--muted);font-size:10px}
.hy-collab-v16 .ht-task-health b{color:var(--text);font-size:11px}.hy-collab-v16 .ht-task-health .warn,.hy-collab-v16 .ht-task-health .warn b{color:var(--danger)}
.hy-collab-v16 .ht-task-focus-view{flex:1;overflow-y:auto;padding:12px 16px 40px;max-width:1040px;width:100%;margin:0 auto}
.hy-collab-v16 .ht-task-focus-view .ht-tier-section{margin-bottom:18px}
.hy-collab-v16 .ht-task-focus-view .ht-tier-hdr{cursor:default;padding:4px 2px 8px;gap:7px}
.hy-collab-v16 .ht-tier-dot{width:8px;height:8px;border-radius:99px;background:var(--tier);box-shadow:0 0 10px color-mix(in srgb,var(--tier) 55%,transparent)}
.hy-collab-v16 .ht-task-focus-view .ht-task-row{margin-top:7px;border-radius:12px}
.hy-collab-v16 .ht-task-focus-view .ht-task-row summary{min-height:62px;padding:10px 11px}
.hy-collab-v16 .ht-task-focus-view .tr-title{font-size:13px}
.hy-collab-v16 .ht-task-focus-view .tr-meta{gap:6px;flex-wrap:wrap;font-size:10px}
.hy-collab-v16 .ht-task-priority{font-size:9px;font-weight:800;text-transform:uppercase;padding:2px 6px;border:1px solid var(--border);border-radius:999px;color:var(--muted)}
.hy-collab-v16 .ht-task-priority.high{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 36%,transparent)}
.hy-collab-v16 .ht-task-priority.normal{color:var(--info);border-color:color-mix(in srgb,var(--info) 30%,transparent)}
.hy-collab-v16 .ht-task-due-chip,.hy-collab-v16 .ht-task-context-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid var(--border);border-radius:999px;background:var(--bg-card);color:var(--muted);font-size:9.5px;white-space:nowrap}
.hy-collab-v16 .ht-task-due-chip.overdue{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,transparent)}
.hy-collab-v16 .ht-task-context-chip{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 24%,transparent)}
.hy-collab-v16 .ht-task-description{font-size:12px;line-height:1.55;color:var(--text)}
.hy-collab-v16 .ht-task-detail-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}
.hy-collab-v16 .ht-task-empty-state{display:grid;place-items:center;text-align:center;gap:6px;padding:70px 24px;color:var(--muted)}
.hy-collab-v16 .ht-task-empty-state iconify-icon{font-size:40px;color:var(--accent)}.hy-collab-v16 .ht-task-empty-state strong{color:var(--text);font-size:14px}.hy-collab-v16 .ht-task-empty-state span{font-size:11px}

/* Slightly calmer desktop information hierarchy. */
.hy-collab-v16 .ht-chat-header{min-height:50px}
.hy-collab-v16 #integration-panel{width:300px!important}
.hy-collab-v16 #integration-panel .ht-mp-header{min-height:50px;padding:8px 12px}
.hy-collab-v16 .ht-integration-head-actions{display:flex;gap:4px;align-items:center}.hy-collab-v16 .ht-integration-close{display:none}

@media(max-width:768px){
  :root{--ht-tab-bar-h:var(--ht-mobile-dock-h)!important}
  .hy-collab-v16 .ht-nav{height:48px;padding:0 8px 0 10px}.hy-collab-v16 .ht-nav-brand{padding:0 4px;min-width:0;font-size:13px}.hy-collab-v16 .ht-nav-brand iconify-icon{font-size:18px}
  .hy-collab-v16 .ht-nav-right{margin-left:auto}.hy-collab-v16 .ht-nav-right>#members-toggle-btn{display:none}.hy-collab-v16 .ht-nav-avatar{width:32px;height:32px}
  .hy-collab-v16 .ht-chat-header{padding:8px 10px;gap:6px;min-height:52px}.hy-collab-v16 .ht-chat-header-left{min-width:0;gap:7px;flex:1}.hy-collab-v16 .ht-chat-title{font-size:14px;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hy-collab-v16 .ht-chat-desc{display:none}
  .hy-collab-v16 .ht-chat-header-right{gap:4px;flex:0 0 auto}.hy-collab-v16 #ch-member-count,.hy-collab-v16 .ht-chat-header-right>[onclick="togglePinnedPopover()"],.hy-collab-v16 #members-header-btn{display:none!important}
  .hy-collab-v16 .ht-chat-header-right .ht-header-btn{width:38px;height:38px;padding:0;display:grid;place-items:center;border-radius:10px}.hy-collab-v16 .ht-chat-header-right .ht-header-btn iconify-icon{font-size:16px!important}
  .hy-collab-v16 .mobile-menu-btn{width:38px;height:38px;margin:0;padding:0;display:grid!important;place-items:center;border-radius:10px}

  /* Bottom dock must remain tappable when the PWA install hint appears. */
  .hy-collab-v16 #ht-ios-tab-bar{z-index:9999;height:var(--ht-mobile-dock-h);padding:4px 6px env(safe-area-inset-bottom,0px);gap:2px;background:color-mix(in srgb,var(--bg-surface) 94%,transparent)}
  .hy-collab-v16 .ht-ios-tab{height:54px;min-height:54px;border-radius:12px;padding:6px 3px 4px;font-size:9px}.hy-collab-v16 .ht-ios-tab-icon{font-size:22px}.hy-collab-v16 .ht-ios-tab-label{font-size:9px;font-weight:800}
  .hy-collab-v16 #hyp-install-banner{bottom:calc(var(--ht-mobile-dock-h) + 18px)!important;z-index:9997!important;border-radius:14px 14px 0 0;padding-top:9px!important;padding-bottom:9px!important}

  /* Work becomes a touch-first sheet rather than a dropdown anchored to a hidden desktop button. */
  .hy-collab-v16 #ht-mobile-work-sheet{display:flex;position:fixed;left:0;right:0;bottom:var(--ht-mobile-dock-h);z-index:9998;max-height:min(70vh,610px);padding:8px 14px calc(18px + env(safe-area-inset-bottom,0px));border:1px solid transparent;border-bottom:0;border-radius:22px 22px 0 0;flex-direction:column;background:linear-gradient(rgba(3,9,20,.985),rgba(10,5,22,.99)) padding-box,linear-gradient(120deg,var(--cv16-cyan),var(--cv16-violet),var(--cv16-pink)) border-box;box-shadow:0 -24px 70px rgba(0,0,0,.65);transform:translateY(calc(100% + var(--ht-mobile-dock-h) + 20px));opacity:0;pointer-events:none;transition:transform .28s var(--sp-settle),opacity .2s}
  .hy-collab-v16 #ht-mobile-work-sheet.open{transform:translateY(0);opacity:1;pointer-events:auto}
  .hy-collab-v16 .ht-mobile-sheet-handle{width:40px;height:4px;border-radius:99px;background:color-mix(in srgb,var(--muted) 45%,transparent);margin:0 auto 10px}.hy-collab-v16 .ht-mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.hy-collab-v16 .ht-mobile-sheet-head>div{display:flex;flex-direction:column;gap:2px}.hy-collab-v16 .ht-mobile-sheet-head strong{font-size:18px}.hy-collab-v16 .ht-mobile-sheet-head span{font-size:10px;color:var(--muted)}.hy-collab-v16 .ht-mobile-sheet-close{width:40px;height:40px;border:1px solid var(--border);border-radius:12px;background:var(--bg-card);color:var(--text);display:grid;place-items:center}.hy-collab-v16 .ht-mobile-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow-y:auto}.hy-collab-v16 .ht-mobile-work-grid button{min-height:76px;padding:9px 6px;border:1px solid var(--border);border-radius:14px;background:var(--bg-card);color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font:800 10px var(--font-sans,inherit)}.hy-collab-v16 .ht-mobile-work-grid iconify-icon{font-size:22px;color:var(--accent)}

  /* Activity / Apps is a proper mobile sheet. */
  .hy-collab-v16 #integration-panel{display:none;position:fixed!important;inset:58px 8px calc(var(--ht-mobile-dock-h) + 8px) 8px!important;width:auto!important;max-width:none!important;height:auto!important;z-index:9996;border:1px solid transparent!important;border-radius:18px!important;box-shadow:0 22px 70px rgba(0,0,0,.62)!important}.hy-collab-v16 #integration-panel .ht-mp-header{min-height:52px;font-size:12px}.hy-collab-v16 #integration-panel .ht-mp-body{padding-bottom:20px}.hy-collab-v16 .ht-integration-close{display:grid;width:34px;height:34px;place-items:center;padding:0!important;font-size:16px!important}

  /* Tasks: Focus list is the phone default; Swimlane remains available. */
  .hy-collab-v16 .ht-task-workspace-head{padding:11px 12px 8px;gap:8px}.hy-collab-v16 .ht-task-kicker{display:none}.hy-collab-v16 .ht-task-title-block{grid-template-columns:1fr;gap:2px}.hy-collab-v16 .ht-task-title-block strong{font-size:17px}.hy-collab-v16 .ht-task-title-block>span:last-child{grid-column:1;font-size:9.5px}.hy-collab-v16 .ht-task-create{min-width:40px;height:40px;padding:0 10px}.hy-collab-v16 .ht-task-create span{display:none}.hy-collab-v16 .ht-task-create iconify-icon{font-size:18px}
  .hy-collab-v16 .ht-task-toolbar{display:block;padding:7px 10px 8px}.hy-collab-v16 .ht-task-view-switch{margin-bottom:7px}.hy-collab-v16 .ht-task-view-switch .ht-ch-tab{flex:1;justify-content:center;min-height:38px}.hy-collab-v16 .ht-task-filters{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:6px;margin:0}.hy-collab-v16 .ht-task-filter{height:40px}.hy-collab-v16 .ht-task-filter input{width:100%;font-size:16px!important}.hy-collab-v16 .ht-task-filters select{height:40px;min-width:0;width:100%;font-size:12px!important}.hy-collab-v16 #tasks-filter-priority{display:none}
  .hy-collab-v16 .ht-task-health{padding:7px 10px}.hy-collab-v16 .ht-task-focus-view{padding:10px 10px calc(var(--ht-mobile-dock-h) + 24px)}
  .hy-collab-v16 .ht-task-focus-view .ht-tier-section{margin-bottom:14px}.hy-collab-v16 .ht-task-focus-view .ht-task-row summary{min-height:68px;padding:10px;grid-template-columns:minmax(0,1fr) auto}.hy-collab-v16 .ht-task-focus-view .tr-title{font-size:13.5px;white-space:normal;line-height:1.3}.hy-collab-v16 .ht-task-focus-view .tr-meta{grid-column:1/-1;min-height:22px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:1px;scrollbar-width:none}.hy-collab-v16 .ht-task-focus-view .tr-meta::-webkit-scrollbar{display:none}
  .hy-collab-v16 .ht-task-row[open] .tr-details{position:static!important;left:auto!important;top:auto!important;width:auto!important;max-height:none!important;margin:0 8px 8px;padding:12px;border-radius:10px;box-shadow:none}.hy-collab-v16 .ht-task-detail-actions .ht-header-btn{min-height:38px}
  .hy-collab-v16 #kanban-board{padding-bottom:var(--ht-mobile-dock-h)}

  /* Schedule controls: horizontally scrollable lanes, agenda by default. */
  .hy-collab-v16 .ht-sched-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px 10px}.hy-collab-v16 #team-schedule-views,.hy-collab-v16 #team-schedule-types,.hy-collab-v16 .ht-sched-toolbar>div:last-child{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;min-width:0;width:100%}.hy-collab-v16 #team-schedule-views::-webkit-scrollbar,.hy-collab-v16 #team-schedule-types::-webkit-scrollbar,.hy-collab-v16 .ht-sched-toolbar>div:last-child::-webkit-scrollbar{display:none}.hy-collab-v16 .ht-sched-chip,.hy-collab-v16 .ht-sched-toolbar .ht-header-btn{min-height:38px;flex:0 0 auto}.hy-collab-v16 #meetings-list{padding:10px!important;padding-bottom:calc(var(--ht-mobile-dock-h) + 20px)!important}
}
@media(min-width:769px){.hy-collab-v16 #ht-mobile-work-sheet{display:none}.hy-collab-v16 .ht-task-focus-view .ht-task-row .tr-details{width:min(520px,calc(100vw - 90px))}}
@media(prefers-reduced-motion:reduce){.hy-collab-v16 #ht-mobile-work-sheet,.hy-collab-v16 .ht-task-row,.hy-collab-v16 .ht-task-active-badge{animation:none!important;transition:none!important}}

/* Cross-app work graph: references remain compact, touchable, and secondary to the task. */
.hy-collab-v16 .ht-task-context-tray{margin:2px 0 12px;padding:9px 10px;border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);border-radius:10px;background:color-mix(in srgb,var(--accent) 5%,transparent)}
.hy-collab-v16 .ht-task-context-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px}.hy-collab-v16 .ht-task-context-list>span{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:5px 7px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);font-size:10px;color:var(--text)}
.hy-collab-v16 .ht-task-context-list iconify-icon{color:var(--accent);font-size:13px}.hy-collab-v16 .ht-task-context-list small{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font:9px var(--font-mono,monospace)}
.hy-collab-v16 a.ht-task-context-chip{text-decoration:none}.hy-collab-v16 a.ht-task-context-chip:hover{border-color:color-mix(in srgb,var(--accent) 45%,transparent);background:color-mix(in srgb,var(--accent) 9%,transparent)}
.hy-collab-v16 .ht-card-task-btn,.hy-collab-v16 .ht-activity-task-btn{display:inline-flex;align-items:center;gap:4px;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:7px;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent);padding:4px 9px;font:700 10px var(--font-sans,inherit);cursor:pointer}
.hy-collab-v16 .ht-activity-subrow{display:flex;align-items:center;gap:6px;width:100%}.hy-collab-v16 .ht-activity-task-btn{margin-left:auto;flex:0 0 auto;min-height:30px}
@media(max-width:768px){.hy-collab-v16 .ht-task-context-list{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.hy-collab-v16 .ht-task-context-list::-webkit-scrollbar{display:none}.hy-collab-v16 .ht-task-context-list>span{flex:0 0 auto}.hy-collab-v16 .ht-activity-task-btn{min-height:34px}}
