.inbox-filter-options>summary{display:none}
.mobile-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.mobile-app-icon{border-radius:16px;margin-bottom:16px}.mobile-install-steps{padding-left:22px;line-height:1.8;margin:18px 0}.mobile-install-steps li{padding:5px 0}.mobile-bottom-nav,.mobile-offline-banner,.pwa-install-help{display:none}.auth-mode .pwa-install-help{display:block;position:fixed;right:20px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:45}.offline-return{display:inline-block;background:var(--accent);color:white;border-radius:8px;padding:12px 20px}.is-offline .mobile-offline-banner{display:block;position:fixed;left:50%;top:calc(8px + env(safe-area-inset-top));transform:translateX(-50%);padding:8px 16px;border-radius:12px;background:#fff2cc;color:#685225;z-index:60;max-width:calc(100% - 24px);text-align:center;box-shadow:0 3px 16px #0001}.mobile-setup-grid .actions button{min-height:44px}
@media(max-width:700px){
 html{-webkit-text-size-adjust:100%;scroll-padding-bottom:90px}body{padding:0;overscroll-behavior-y:none}input,select,textarea{font-size:16px}button{min-height:44px}header{padding-top:env(safe-area-inset-top);height:calc(66px + env(safe-area-inset-top))}.workspace{margin-left:0}main{padding:22px 16px calc(90px + env(safe-area-inset-bottom))}#sidebar{padding-top:calc(24px + env(safe-area-inset-top));padding-bottom:calc(18px + env(safe-area-inset-bottom))}.mobile-setup-grid{grid-template-columns:1fr;gap:18px}.mobile-bottom-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,1fr);height:calc(64px + env(safe-area-inset-bottom));padding:5px 6px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:white;z-index:40;overflow:visible;flex:initial}.mobile-bottom-nav a{margin:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:3px;border-radius:9px;color:var(--muted);font-size:11px;min-height:44px}.mobile-bottom-nav a.active{background:var(--soft);color:var(--accent)}.mobile-bottom-nav svg{width:22px;height:22px}.mobile-bottom-nav b{position:absolute;right:calc(50% - 27px);top:0;background:var(--accent);color:white;border-radius:10px;padding:0 5px;font-size:10px;line-height:17px;min-width:17px;text-align:center}.mobile-bottom-nav b[hidden]{display:none}.auth-mode .mobile-bottom-nav,.chat-open .mobile-bottom-nav{display:none}.auth-mode main{min-height:100dvh;padding-bottom:90px}.page-head{align-items:flex-start}.page-head h1{font-size:24px}.inbox{border-radius:12px;overflow:visible}.conversation-list{width:100%;max-height:none;min-height:0}.inbox-tools{padding:14px}.inbox-tools input,.inbox-tools select{width:100%;min-height:44px;margin:4px 0}.conversation-list .conv{min-height:88px}.conversation-list .conv .conv-body{min-width:0}.conv-body strong,.conv-body p{overflow:hidden;text-overflow:ellipsis}.conv-line>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-open{overflow:hidden}.chat-open .workspace{position:fixed;inset:0 0 auto;height:var(--app-viewport,100dvh);overflow:hidden;background:white}.chat-open header,.chat-open main>.page-head,.chat-open .bottom-note{display:none}.chat-open main{padding:0;height:100%;max-width:none}.chat-open .inbox{height:100%;margin:0;border:0;border-radius:0;overflow:hidden}.chat-open .chat{height:100%;display:flex;min-height:0;overflow:hidden}.chat-open .chat-head{flex-shrink:0;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;gap:8px;flex-wrap:wrap;background:white}.chat-open .chat-head>.person{flex:1;min-width:0}.chat-open .chat-head .person>div:last-child{min-width:0}.chat-open .chat-head h3{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-open .chat-head .actions{gap:6px}.chat-open .chat-head .actions button{font-size:11px;padding:6px 10px;min-height:36px}.chat-open .chat .messages{flex:1;min-height:0!important;max-height:none!important;overflow-y:auto;padding:14px;gap:14px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.chat-open .bubble{max-width:88%;overflow-wrap:anywhere}.chat-open .composer{flex-shrink:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:white}.keyboard-open.chat-open .composer{padding-bottom:10px}.chat-open .composer textarea{font-size:16px;min-height:52px;max-height:110px;line-height:1.4;padding:10px;resize:none}.chat-open .compose-tools{gap:6px;flex-wrap:wrap;margin-bottom:8px}.chat-open .compose-tools select{min-width:0;max-width:58%;font-size:14px;min-height:38px;padding:6px}.chat-open .compose-tools button{font-size:11px;padding:6px 8px;min-height:38px}.chat-open .composer>.actions{justify-content:space-between;margin-top:7px}.chat-open .composer>.actions button{min-width:88px}.chat-open .composer input[type=checkbox]{width:18px;height:18px}.chat-open .contact-panel{display:none}.chat-open .pwa-install-help{display:none}dialog{max-width:calc(100vw - 20px);max-height:calc(var(--app-viewport,100dvh) - 24px);margin:auto}.modal-body{max-height:calc(var(--app-viewport,100dvh) - 150px);overflow:auto}.intake-message-fields textarea{font-size:16px}.integration-grid{grid-template-columns:1fr}.mobile-setup-grid .card-body{padding:20px}
}
@media(display-mode:standalone){body{min-height:100dvh}.pwa-install-help{display:none!important}}

@media(max-width:700px){.inbox-filter-options>summary{display:list-item;cursor:pointer;padding:10px 4px;min-height:44px;color:var(--accent);font-weight:600}.inbox-filter-options .actions{gap:5px}.inbox-filter-options .actions button{font-size:12px;padding:7px}.chat-open .chat-head>.person{flex-basis:100%}.chat-open .chat-head .person>div:last-child{flex:1;overflow:hidden}.chat-open .chat-head .person .muted{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-open .chat-head h3{max-width:none}.chat-open .contact-profile-link{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-open .chat-head>.actions{margin-left:auto}.mobile-bottom-nav a{flex:none;width:auto}}
.inbox-filter-options:not([open])>summary{display:list-item;cursor:pointer}
