/* Main Focus only. Desktop and normal task/calendar navigation are unchanged. */
#chat-list-exit{display:none}
@media(max-width:700px){
  body.chat-mode{overflow:hidden;overscroll-behavior:none}
  body.chat-mode .topbar{display:none!important}
  body.chat-mode .shell{padding:0;max-width:none;margin:0}
  body.chat-mode #chat-view{position:fixed;z-index:30;top:var(--focus-chat-top,0px);left:0;right:0;width:100%;height:var(--focus-chat-height,100dvh);min-height:0;margin:0;border:0;border-radius:0;grid-template-columns:minmax(0,1fr);background:var(--panel,#fff)}
  body.chat-mode #chat-conversation{height:100%;overflow:hidden}
  body.chat-mode .chat-room-heading{padding:calc(8px + env(safe-area-inset-top,0px)) 8px 8px;gap:8px;min-height:65px;background:var(--panel,#fff)}
  body.chat-mode #chat-back,body.chat-mode #chat-exit{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:7px;border:0;background:transparent;box-shadow:none;font-size:26px}
  body.chat-mode #chat-room-title{font-size:16px;line-height:1.3}
  body.chat-mode #chat-room-note{font-size:11px;line-height:1.35;margin:3px 0 0}
  body.chat-mode #chat-messages{padding:12px 10px;gap:10px;scrollbar-gutter:auto;-webkit-overflow-scrolling:touch}
  body.chat-mode #chat-messages .chat-message{min-width:100px;max-width:90%;padding:9px 12px 6px;border-color:transparent}
  body.chat-mode #chat-compose{padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));gap:4px;background:var(--panel,#fff);border-top:1px solid var(--line,#e2e4e7);align-items:flex-end}
  body.chat-mode #chat-compose textarea{resize:none;min-height:44px;max-height:120px;border-radius:20px;padding:11px 12px;font-size:16px;line-height:1.35}
  body.chat-mode #chat-compose button{min-width:42px;min-height:44px;padding:8px;border-radius:50%;box-shadow:none}
  body.chat-mode #chat-attach,body.chat-mode #chat-voice{background:transparent;border:0}
  body.chat-mode #chat-send{width:44px;height:44px;font-size:0;background:var(--soft,#f4f5f6);color:var(--ink,#34373b);border:1px solid var(--line,#e2e4e7)}
  body.chat-mode #chat-send::after{content:'➤';font-size:20px}
  body.chat-mode #chat-status:empty{display:none}
  body.chat-mode #chat-status{margin:0;padding:3px 12px;font-size:12px;flex-shrink:0}
  body.chat-mode .chat-retention{display:none}
  body.chat-mode #chat-sidebar{height:100%;padding:calc(8px + env(safe-area-inset-top,0px)) 14px calc(16px + env(safe-area-inset-bottom,0px));background:var(--panel,#fff);overscroll-behavior:contain}
  body.chat-mode #chat-list-exit{display:flex;align-items:center;gap:5px;min-width:70px;min-height:44px;border:0;padding:6px;background:transparent;box-shadow:none;font-size:14px}
  body.chat-mode .chat-sidebar-heading{gap:8px;min-height:52px}
  body.chat-mode .chat-sidebar-heading h2{flex:1;font-size:18px}
  body.chat-mode #chat-rooms button,body.chat-mode #chat-people button{min-height:64px;border-radius:0;border-bottom:1px solid var(--line,#e2e4e7);padding:14px 8px}
  body.chat-mode #chat-upload-preview{flex-shrink:0;margin:0;padding:4px 12px}
}
