.mobile-appbar, .menu-close, .menu-backdrop { display: none; }
.offline-banner { flex-shrink: 0; padding: 10px 16px; background: #fff0cd; color: #725418; font-size: 12px; text-align: center; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 35px 35px; align-items: start; }
.device-grid .panel h2 { margin-bottom: 8px; }
.device-heading { display: flex; gap: 15px; align-items: center; }
.device-heading img { border-radius: 14px; }
.device-heading .muted { margin: 0; }
.device-status { background: #eff5e9; color: #35583a; border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.6; }
.device-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.install-instructions { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); }
.install-instructions h3 { font-size: 14px; margin: 20px 0 7px; }
.install-instructions p { font-size: 13px; color: #64765f; line-height: 1.8; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.message-list, .conversation-list { overscroll-behavior: contain; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
    .device-grid { grid-template-columns: 1fr; padding: 0 25px 25px; }
}
@media (max-width: 720px) {
    body { -webkit-text-size-adjust: 100%; }
    .app-shell { display: flex; flex-direction: column; }
    .mobile-appbar { display: flex; gap: 8px; align-items: center; flex-shrink: 0; min-height: 56px; padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); background: #192d3e; color: #f8fafc; }
    .mobile-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 25px; }
    .mobile-icon-button:hover { background: #ffffff15; }
    .mobile-brand { color: #f8fafc; font-size: 20px; font-weight: 650; letter-spacing: -.6px; flex: 1; min-width: 0; line-height: 1.1; }
    .mobile-brand span { color: #c5f3a8; }
    .mobile-brand small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .3px; color: #adc3b4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 3px; }
    .main-content, .inbox-page .main-content { margin-left: 0; width: 100%; }
    .inbox-page .main-content { height: auto; flex: 1; min-height: 0; }
    .inbox-page .app-shell { height: var(--app-height, 100dvh); }
    .inbox-page.keyboard-open .mobile-appbar, .inbox-page.keyboard-open .chat-toolbar, .inbox-page.keyboard-open .composer-hint { display: none; }
    .sidebar { width: min(320px, calc(100vw - 48px)); padding: max(25px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); z-index: 50; transform: translateX(-105%); visibility: hidden; height: 100dvh; overflow-y: auto; }
    .menu-open .sidebar { transform: translateX(0); visibility: visible; }
    .menu-open .menu-backdrop { display: block; position: fixed; inset: 0; border: 0; background: #0b201aa3; z-index: 49; }
    .menu-close { display: flex; position: absolute; top: max(10px, env(safe-area-inset-top)); right: 6px; color: #c5ddcf; }
    .sidebar .brand { font-size: 25px; justify-content: flex-start; margin-right: 24px; }
    .sidebar .brand-period, .workspace-label, .company-switch, .company-static, .nav-caption, .profile, .profile-actions a { display: revert; }
    .sidebar .brand-period { display: inline; }
    .sidebar-new-conversation span { display: inline; }
    .sidebar-new-conversation { margin-top: 28px; }
    .sidebar .company-switch select, .inbox-page .company-switch select { font-size: 16px; padding: 12px; }
    .sidebar .company-static, .sidebar .profile, .sidebar .profile-actions a { display: flex; }
    .sidebar .profile-actions { padding-left: 44px; justify-content: space-between; }
    .sidebar .profile-actions a { font-size: 13px; }
    .sidebar .profile-actions .link-button { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .sidebar .main-nav { margin-top: 12px; }
    .sidebar .main-nav a { font-size: 14px; gap: 12px; padding: 14px; }
    .sidebar .workspace-label { margin-top: 25px; }
    .sidebar-bottom { padding-top: 24px; }
    .topbar { display: none; }
    .mobile-company-switch { display: none; }
    .workspace-tabs { height: 58px; }
    .workspace-tab { font-size: 12px; }
    input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea,
    .list-filters select, .search-field input, .chat-toolbar select, .composer textarea { font-size: 16px; }
    select, input:not([type=checkbox]):not([type=radio]), .button, .button.compact, .text-button, .close-dialog { min-height: 44px; }
    .list-heading { padding: 14px 16px 8px; }
    .list-heading strong { font-size: 15px; }
    .list-filters { padding: 0 14px 6px; }
    .filter-bottom { margin-top: 4px; }
    .checkbox-label, .filter-bottom .text-button { font-size: 12px; }
    .checkbox-label { min-height: 44px; }
    .conversation-card { padding: 18px 16px; }
    .conversation-card strong { font-size: 15px; }
    .conversation-card p { font-size: 13px; }
    .conversation-card small, .conversation-card time { font-size: 11px; }
    .list-pagination { padding: 0 16px env(safe-area-inset-bottom, 0px); align-items: center; }
    .list-pagination button { font-size: 12px; }
    .chat-header { padding: 8px 10px; gap: 8px; }
    .mobile-back { min-width: 40px; }
    .contact-heading h2 { font-size: 15px; }
    .contact-heading p { font-size: 11px; }
    .chat-header .button { font-size: 11px; max-width: 92px; }
    .chat-header .avatar { display: none; }
    .chat-toolbar { gap: 8px; padding: 6px 10px; }
    .chat-toolbar label { min-width: 0; font-size: 10px; }
    .chat-toolbar .text-button { font-size: 11px; max-width: 57px; line-height: 1.5; }
    .chat-toolbar select { padding: 6px 3px; }
    .message-list { padding: 12px; }
    .message p { font-size: 15px; line-height: 1.6; }
    .message footer { font-size: 10px; }
    .message .media-link { font-size: 14px; min-height: 44px; display: flex; align-items: center; }
    .composer-wrapper { padding: 0 8px max(8px, env(safe-area-inset-bottom)); }
    .composer-hint { font-size: 10px; margin: 5px 2px; }
    .composer textarea { min-height: 52px; padding: 10px 12px; }
    .composer-actions { padding: 0 8px 5px; }
    .attachment-button { width: 44px; height: 44px; justify-content: center; }
    .composer-actions .button { font-size: 13px; }
    .page-heading p, .muted, .stack-form label { font-size: 14px; }
    .page-heading p { max-width: none; }
    .page-heading.horizontal { flex-wrap: wrap; }
    .page-heading.horizontal .button { font-size: 13px; gap: 8px; }
    .device-grid { padding: 0 16px max(20px, env(safe-area-inset-bottom)); gap: 16px; }
    .device-actions { flex-direction: column; align-items: stretch; }
    .device-heading { align-items: flex-start; }
    .device-heading h2 { font-size: 18px; }
    .management-grid { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .management-item summary { flex-wrap: wrap; }
    .management-item strong { overflow-wrap: anywhere; }
    .channel-title { flex-wrap: wrap; }
    .channel-title > div { min-width: 0; overflow-wrap: anywhere; }
    dialog { padding: 20px; width: calc(100vw - 24px); max-width: none; }
    .toast { bottom: max(16px, env(safe-area-inset-bottom)); width: max-content; }
    .login-story { min-height: 170px; padding: max(24px, env(safe-area-inset-top)) 24px 22px; }
    .login-form-area { padding: 30px 24px max(30px, env(safe-area-inset-bottom)); }
}
@media (max-height: 550px) and (max-width: 720px) {
    .inbox-page .mobile-appbar { display: none; }
    .workspace-tabs { height: 44px; }
    .workspace-tab { flex-wrap: nowrap; }
    .tab-label { width: auto; }
    .chat-toolbar, .composer-hint { display: none; }
    .chat-header { padding: 2px 10px; }
}
