/* Mobile-specific controls; shell/composer sizing stays with their owners. */
.wt-mobile-attachment-sheet{display:none}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
  .wt-mobile-ready #photo,.wt-mobile-ready #emoji-toggle,.wt-mobile-ready #send,
  .wt-mobile-ready #mention-person,.wt-mobile-ready .mobile-bottom-nav button,
  .wt-mobile-ready .wt-mobile-dialog button,.wt-mobile-ready .wt-mobile-dialog summary,
  .wt-mobile-ready .attachment-draft>button{min-height:44px!important;min-width:44px;touch-action:manipulation}
  .wt-mobile-ready .wt-mobile-dialog{max-height:calc(var(--worktalk-viewport-height,100dvh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-width:calc(100vw - 20px);overscroll-behavior:contain;scroll-padding-block:68px 24px}
  .wt-mobile-ready .wt-mobile-dialog .dialog-body{padding-bottom:calc(18px + env(safe-area-inset-bottom));overflow-wrap:anywhere}
  .wt-mobile-ready .wt-mobile-dialog .dialog-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.wt-mobile-ready .wt-mobile-dialog .dialog-body select,.wt-mobile-ready .wt-mobile-dialog .dialog-body textarea{min-height:44px;font-size:16px!important;scroll-margin-block:80px 100px}
  .wt-mobile-ready .wt-mobile-dialog .dialog-head{padding-top:calc(14px + env(safe-area-inset-top));gap:10px}
  .wt-mobile-ready .wt-mobile-dialog .dialog-head h2{min-width:0;overflow-wrap:anywhere}
  .wt-mobile-more{display:grid;gap:4px}
  .wt-mobile-more>button{width:100%;text-align:left;border-color:transparent!important;padding:12px!important}
  .wt-mobile-more>button:active{background:#eef4ff}
  .wt-mobile-shortcut-section{padding-bottom:14px;margin-bottom:8px;border-bottom:1px solid #e5eaf2}
  .wt-mobile-shortcut-section h3{font-size:12px;color:#708099;font-weight:500;margin:0 0 10px}
  .wt-mobile-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .wt-mobile-shortcuts button{min-width:0;text-align:left!important;padding:14px 11px!important;font-size:13px!important;font-weight:600;background:#f1f5ff;border-color:#dfe8ff;color:#2452a2;white-space:normal;line-height:1.5}
  .wt-mobile-more>.wt-mobile-install{border-top:1px solid #e5eaf2!important;margin-top:8px;padding-top:16px!important;color:#2458b8;font-weight:600}
  .wt-mobile-install-help{font-size:14px;line-height:1.8;color:#41516b}
  .wt-mobile-install-help ol{padding-left:22px;margin:14px 0}
  .wt-mobile-install-help li{padding-block:6px}
  .wt-mobile-install-help .wt-mobile-install-note{font-size:12px;color:#718099;margin-top:16px}
  .wt-mobile-attachment-sheet[open]{display:block;position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:560px;max-height:calc(var(--worktalk-viewport-height,100dvh) - 20px - env(safe-area-inset-top));padding:0 0 env(safe-area-inset-bottom);border-radius:22px 22px 0 0;background:#fff;overflow:auto;overscroll-behavior:contain;box-shadow:0 -12px 40px #15223825;touch-action:pan-y}
  .wt-mobile-attachment-sheet::backdrop{background:#14233c66;backdrop-filter:none}
  .wt-mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 18px 14px;border-bottom:1px solid #edf0f5}
  .wt-mobile-sheet-head h2{font-size:19px;font-weight:700;color:#24334a}
  .wt-mobile-sheet-head p{font-size:12px;line-height:1.5;color:#738199;margin-top:5px}
  .wt-mobile-close{font-size:26px!important;line-height:1;min-width:44px;min-height:44px;padding:4px;border:0;background:#f3f5f8;border-radius:50%;color:#63718a;flex:none}
  .wt-mobile-file-options{display:grid;gap:3px;padding:10px}
  .wt-mobile-file-options>button{display:grid;grid-template-columns:42px minmax(0,1fr) 14px;align-items:center;gap:12px;min-height:76px;text-align:left;border:0;border-radius:12px;padding:10px 12px;background:#fff;touch-action:manipulation}
  .wt-mobile-file-options>button:active,.wt-mobile-file-options>button:hover{background:#f1f5ff}
  .wt-mobile-file-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef3ff;color:#2865d7;font-size:25px}
  .wt-mobile-file-options b{display:block;font-size:15px;color:#283a54;line-height:1.5}
  .wt-mobile-file-options small{display:block;font-size:12px;color:#7b8799;line-height:1.5;margin-top:2px}
  .wt-mobile-file-options>button>span:last-child{font-size:25px;color:#9aa7b8}
  .wt-mobile-file-note{padding:0 22px 18px;font-size:11px;line-height:1.7;color:#8190a5}
}
@media(max-height:500px) and (pointer:coarse){
  .wt-mobile-attachment-sheet[open]{max-width:700px}
  .wt-mobile-file-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .wt-mobile-file-options>button{grid-template-columns:1fr;gap:7px;min-height:125px;align-content:start;justify-items:start;padding:12px}
  .wt-mobile-file-options>button>span:last-child{display:none}
  .wt-mobile-file-note{padding-bottom:10px}
}
