/* HookCloud Suporte PWA M4.29 */
:root{
  --support-bottom-nav-height:72px;
  --support-topbar-height:66px;
}
html,body{overscroll-behavior-y:none}
body{min-height:100dvh}
body.support-settings-open{overflow:hidden}
.support-pwa-topbar{
  min-height:var(--support-topbar-height);padding:9px max(14px,env(safe-area-inset-right)) 9px max(14px,env(safe-area-inset-left));
  position:sticky;top:0;z-index:80;
}
.support-pwa-brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;min-width:0}
.support-pwa-brand img{width:43px;height:43px;object-fit:contain;flex:0 0 auto}
.support-pwa-brand span{display:grid;line-height:1.05;min-width:0}
.support-pwa-brand small{color:var(--primary);font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.support-pwa-brand strong{font-size:18px;letter-spacing:-.025em}
.support-pwa-top-actions{display:flex;align-items:center;gap:7px}
.support-icon-button{width:40px;height:40px;min-height:40px;padding:0;border-radius:13px;font-size:18px;background:var(--surface-strong)}
.support-push-mini-status{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-strong);color:var(--muted);font-size:10px;font-weight:850}
.support-push-mini-status i{width:8px;height:8px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px color-mix(in srgb,#94a3b8 15%,transparent)}
.support-push-mini-status.enabled i{background:var(--success);box-shadow:0 0 0 3px color-mix(in srgb,var(--success) 16%,transparent)}
.support-push-mini-status.denied i{background:var(--danger);box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 16%,transparent)}
.support-push-mini-status.pending i{background:var(--warning);box-shadow:0 0 0 3px color-mix(in srgb,var(--warning) 16%,transparent)}
.community-admin-main{width:min(100%,1600px);margin:0 auto;padding:10px 10px calc(var(--support-bottom-nav-height) + 18px);flex:1;min-height:0}
.community-admin-login{width:min(500px,calc(100% - 8px));margin:7vh auto 0;text-align:center}
.community-admin-login .login-icon{width:70px;height:70px}.community-admin-login p{max-width:430px;margin-inline:auto;color:var(--muted)}
.support-login-note{display:block;margin-top:5px;color:var(--muted);text-align:center}
.community-admin-layout{height:calc(100dvh - var(--support-topbar-height) - var(--support-bottom-nav-height) - 22px);min-height:560px;max-height:none;border-radius:20px;overflow:hidden}
.community-admin-sidebar{min-width:0}
.community-admin-sidebar-head h1{font-size:22px}.community-admin-sidebar-head p{font-size:11px}
.support-mobile-back{display:none;width:38px;height:38px;min-height:38px;padding:0;border-radius:12px;font-size:18px;flex:0 0 auto}
.support-bottom-nav{
  position:fixed;z-index:75;left:50%;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%);
  display:flex;align-items:center;justify-content:space-around;width:min(520px,calc(100% - 20px));height:var(--support-bottom-nav-height);
  padding:7px 8px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);border-radius:22px;
  background:color-mix(in srgb,var(--surface-strong) 92%,transparent);box-shadow:0 18px 55px rgba(15,42,72,.22);backdrop-filter:blur(20px) saturate(145%)
}
.support-bottom-nav button{position:relative;display:grid;place-items:center;gap:1px;flex:1;min-height:54px;padding:5px;border:0;background:transparent;box-shadow:none;color:var(--muted);font-size:16px}
.support-bottom-nav button:hover{transform:none;box-shadow:none}.support-bottom-nav button strong{font-size:10px}.support-bottom-nav button.active{color:var(--primary);background:var(--primary-soft);border-radius:16px}
.support-bottom-nav button b{position:absolute;top:2px;right:calc(50% - 25px);display:none;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--danger);color:#fff;font-size:9px;line-height:17px}
.support-bottom-nav button b.has-count{display:block}
.support-install-banner{position:fixed;z-index:110;left:50%;bottom:calc(var(--support-bottom-nav-height) + max(18px,env(safe-area-inset-bottom)));transform:translateX(-50%);display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;width:min(650px,calc(100% - 20px));padding:14px;border:1px solid color-mix(in srgb,var(--primary) 30%,var(--line));border-radius:18px;background:var(--surface-strong);box-shadow:0 22px 70px rgba(15,42,72,.25)}
.support-install-banner strong{display:block}.support-install-banner p{margin:2px 0 0;color:var(--muted);font-size:11px}.support-install-dismiss{width:34px;height:34px;min-height:34px;padding:0;border:0;background:transparent;font-size:20px}
.support-settings-modal{position:fixed;z-index:160;inset:0;display:grid;place-items:end center;padding:20px;background:rgba(5,17,34,.58);backdrop-filter:blur(9px)}
.support-settings-card{width:min(620px,100%);max-height:min(88dvh,780px);overflow:auto;padding:22px;border:1px solid var(--line);border-radius:25px;background:var(--surface-strong);box-shadow:0 30px 100px rgba(4,16,34,.35)}
.support-settings-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.support-settings-card h2{margin:2px 0}.support-settings-card>header button{width:38px;height:38px;min-height:38px;padding:0;font-size:21px}
.support-device-status{margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);color:var(--muted);font-size:12px}.support-device-status strong{color:var(--text)}
#supportEnablePush,#supportTestPush{margin:0 7px 12px 0}
.support-setting-list{display:grid;border-top:1px solid var(--line)}
.support-setting-list>label{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 2px;border-bottom:1px solid var(--line);cursor:pointer}
.support-setting-list>label span{display:grid;min-width:0}.support-setting-list>label small{color:var(--muted);font-size:10px;line-height:1.4}.support-setting-list input[type="checkbox"]{appearance:none;width:46px;height:26px;min-height:26px;padding:0;border:1px solid var(--line-strong);border-radius:999px;background:#cbd5e1;position:relative;flex:0 0 auto;transition:.18s}.support-setting-list input[type="checkbox"]::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 2px 6px rgba(0,0,0,.18);transition:.18s}.support-setting-list input[type="checkbox"]:checked{background:var(--primary);border-color:var(--primary)}.support-setting-list input[type="checkbox"]:checked::after{transform:translateX(20px)}
.support-quiet-times{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 0}.support-quiet-times label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:850}.support-quiet-times input{width:100%}
.support-settings-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.support-settings-actions .button{flex:1}.support-security-note{margin-top:16px;padding:13px 14px;border:1px solid color-mix(in srgb,var(--primary) 27%,var(--line));border-radius:14px;background:var(--primary-soft)}.support-security-note p{margin:4px 0 0;color:var(--muted);font-size:11px}.support-settings-card>.muted{display:block;min-height:18px;margin-top:10px}
.site-footer{display:none}

@media (display-mode:standalone){.support-install-banner,#supportInstallButton{display:none!important}}
@media(max-width:900px){
  :root{--support-bottom-nav-height:70px;--support-topbar-height:61px}
  body{background:var(--bg-a);padding-top:env(safe-area-inset-top)}
  .support-pwa-topbar{min-height:var(--support-topbar-height);padding-top:8px}.support-pwa-brand img{width:39px;height:39px}.support-pwa-brand strong{font-size:16px}.support-push-mini-status span{display:none}.support-push-mini-status{width:34px;padding:0;justify-content:center}
  .community-admin-main{width:100%;padding:7px 7px calc(var(--support-bottom-nav-height) + 12px)}
  .community-admin-layout{height:calc(100dvh - var(--support-topbar-height) - var(--support-bottom-nav-height) - 13px);min-height:0;border-radius:17px;display:block!important;overflow:hidden}
  .community-admin-sidebar{display:block;width:100%;height:100%;max-height:none!important;border:0!important;overflow:auto;padding-bottom:12px}
  .community-admin-sidebar-head{display:none}.admin-profile-card{margin-top:0}
  .community-admin-chat{display:none;width:100%;height:100%!important;min-height:0!important;border:0;overflow:hidden}
  .community-admin-context{display:none!important}
  body.pwa-chat-open .community-admin-sidebar{display:none}
  body.pwa-chat-open .community-admin-chat{display:grid}
  body.pwa-chat-open .support-bottom-nav{display:none}
  body.pwa-chat-open .community-admin-main{padding-bottom:7px}
  body.pwa-chat-open .community-admin-layout{height:calc(100dvh - var(--support-topbar-height) - 14px)}
  body.pwa-chat-open .support-mobile-back{display:inline-flex}
  .community-admin-chat-head{padding:9px 8px;gap:7px;align-items:center!important}.admin-room-title{min-width:0;flex:1}.admin-room-title>div{min-width:0}.admin-room-title strong,.admin-room-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-room-controls{gap:4px!important}.admin-room-controls #adminMaximizeChat,.admin-room-controls #adminToggleContext,.admin-room-controls #adminEditChannelButton{display:none!important}.admin-room-controls select,.admin-room-controls button{min-height:34px;padding:6px 8px;font-size:9px}.admin-realtime-status{font-size:0;min-width:16px;padding:0;border:0}.admin-realtime-status i{margin:0}
  .admin-pinned-messages{padding:7px 9px}.admin-origin-message{padding-inline:9px}
  .admin-community-messages{padding:8px 7px 12px!important}.admin-message{padding-left:0!important;padding-right:0!important}
  .admin-community-composer{padding:7px 7px calc(7px + env(safe-area-inset-bottom));position:relative}.admin-composer-row{gap:5px}.admin-composer-row textarea{min-height:43px;max-height:120px}.admin-composer-row button{min-width:42px;padding:7px 10px}
  .admin-private-filters,.admin-private-view-controls{padding-inline:2px}.admin-private-room{min-height:64px}.admin-private-pagination{padding-bottom:6px}
  .admin-start-support{margin-bottom:14px}
  .support-install-banner{grid-template-columns:minmax(0,1fr) auto;bottom:calc(var(--support-bottom-nav-height) + max(13px,env(safe-area-inset-bottom)))}.support-install-banner .support-install-dismiss{position:absolute;right:5px;top:4px}.support-install-banner>div{padding-right:18px}.support-install-banner .button{grid-column:2;grid-row:1}
  .support-settings-modal{padding:0;align-items:end}.support-settings-card{width:100%;max-height:92dvh;border-radius:25px 25px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}
  .community-admin-login{margin-top:3vh;padding:23px 18px}.community-admin-login h1{font-size:25px}
}
@media(max-width:440px){
  .support-pwa-top-actions{gap:4px}.support-icon-button{width:37px;height:37px;min-height:37px}.support-pwa-brand small{font-size:8px}.support-pwa-brand strong{font-size:15px}
  .admin-community-tabs{grid-template-columns:1fr 1fr}.admin-community-tab{padding:9px 7px}.admin-private-pane-heading{align-items:flex-start}.admin-private-pane-heading>div small{display:none}
  .support-quiet-times{grid-template-columns:1fr}.support-settings-actions{display:grid}.support-settings-actions .button{width:100%}
}
.support-otp-panel{margin-top:16px;padding:16px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line));border-radius:17px;background:var(--primary-soft);text-align:left}
.support-otp-panel>strong{display:block;font-size:15px}.support-otp-panel p{margin:4px 0 12px!important;font-size:11px!important}.support-otp-input{width:100%;text-align:center;font-size:22px;font-weight:900;letter-spacing:.28em;background:var(--surface-strong)}
.support-otp-actions{display:flex;gap:8px;margin-top:10px}.support-otp-actions .button{flex:1}
