.pwa-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.pwa-tools.is-empty { display:none; }
.pwa-tools button { font:inherit; font-size:11px; line-height:1.4; min-height:40px; border-radius:8px; padding:9px 12px; cursor:pointer; white-space:normal; }
.pwa-tools .pwa-install { background:transparent; border:1px solid #cddfe5; color:#356475; }
.pwa-tools .pwa-install:hover { background:#eff7f7; }
.pwa-tools .pwa-update { border:1px solid #badfd6; background:#edf7f3; color:#226653; }
.pwa-tools button:disabled { opacity:.65; cursor:wait; }
.pwa-tools button:focus-visible,.pwa-guide button:focus-visible { outline:3px solid #25a89f; outline-offset:3px; }
.pwa-login-tools { justify-content:flex-start; margin-top:24px; }
.pwa-header-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:9px; flex-shrink:0; max-width:65%; }
.ops-shell .ops-topbar:has(.pwa-header-actions) { min-height:86px; height:auto; padding-top:12px; padding-bottom:12px; }
.pwa-guide { font-family:var(--font-sans,'H24 Manrope',sans-serif); width:min(500px,calc(100% - 32px)); max-height:calc(100dvh - 32px); box-sizing:border-box; padding:0; border:1px solid #d9e5ea; border-radius:16px; background:#fff; color:#173d51; box-shadow:0 24px 90px #08203338; }
.pwa-guide::backdrop { background:#061e35a8; backdrop-filter:blur(3px); }
.pwa-guide header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:23px 24px 18px; border-bottom:1px solid #e1eaf0; }
.pwa-guide header span { display:block; color:#5d8997; font-size:9px; letter-spacing:.14em; margin-bottom:7px; }
.pwa-guide h2 { font-size:23px; letter-spacing:-.035em; font-weight:650; margin:0; }
.pwa-guide button { font:inherit; cursor:pointer; }
.pwa-guide-close { border:0; min-width:44px; min-height:44px; border-radius:9px; background:#f0f5f7; color:#597886; font-size:24px!important; }
.pwa-guide-body { padding:20px 24px 24px; font-size:13px; line-height:1.8; }
.pwa-guide-body p { margin:0; }
.pwa-guide ol { padding-left:22px; margin:16px 0; }
.pwa-guide li { padding-left:4px; margin:10px 0; }
.pwa-guide-note { padding:13px 15px; background:#eef7f4; border:1px solid #d2e8df; border-radius:9px; color:#446e65; font-size:11px; }
.pwa-guide footer { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; padding:16px 24px; border-top:1px solid #e1eaf0; }
.pwa-guide-done { min-height:44px; padding:10px 20px; border:0; border-radius:8px; background:#0c726d; color:#fff; font-size:12px!important; font-weight:650!important; }
.pwa-guide-back { min-height:44px; padding:10px 15px; border:1px solid #cfdee5; border-radius:8px; background:#fff; color:#356475; font-size:12px!important; }
.pwa-guide button:disabled { opacity:.5; cursor:not-allowed; }
.pwa-discard-confirm { display:flex; align-items:flex-start; gap:10px; font-size:12px; margin:20px 0 0; }
.pwa-discard-confirm input { width:20px; height:20px; min-width:20px; margin:1px 0 0; }
.pwa-discard-error { color:#9d443a; font-size:12px; margin-top:14px!important; }
.pwa-feedback,.pwa-connection { position:fixed; z-index:2000; left:50%; transform:translateX(-50%); bottom:max(20px,env(safe-area-inset-bottom)); width:max-content; max-width:calc(100% - 32px); box-sizing:border-box; padding:13px 17px; border:1px solid #c8e3dc; border-radius:10px; background:#edf8f4; color:#225e55; font:12px/1.6 var(--font-sans,'H24 Manrope',sans-serif); box-shadow:0 5px 24px #123d4b17; }
.pwa-connection { background:#fff6e7; border-color:#ecd4a6; color:#815d2c; }
.pwa-feedback[hidden],.pwa-connection[hidden],.pwa-tools button[hidden] { display:none; }
.h24-pwa-offline .pwa-feedback { bottom:max(96px,calc(env(safe-area-inset-bottom) + 76px)); }
@media(max-width:760px) {
  .pwa-header-actions { max-width:100%; gap:7px; }
  .ops-shell .ops-topbar:has(.pwa-header-actions) { flex-wrap:wrap; padding-top:13px; padding-bottom:13px; gap:9px; }
  .pwa-tools button { min-height:44px; padding:10px 12px; font-size:11px; }
  .pwa-header-actions #logout { min-height:44px; }
  .pwa-guide header { padding:20px; }
  .pwa-guide-body { padding:18px 20px 22px; }
  .pwa-guide footer { padding:14px 20px max(14px,env(safe-area-inset-bottom)); }
  .pwa-feedback,.pwa-connection { font-size:12px; bottom:max(14px,env(safe-area-inset-bottom)); }
}

/* Instalação no local que toda a equipe encontra em Configurações. */
.pwa-settings-body { display:flex; align-items:center; gap:18px; padding:24px; }
.pwa-settings-body > img { flex:0 0 64px; border-radius:13px; }
.pwa-settings-body > div { min-width:0; }
.pwa-settings-body p { margin:0; font-size:12px; line-height:1.8; color:var(--muted); }
.pwa-settings-tools { justify-content:flex-start; margin-top:14px; }
.pwa-settings-tools .pwa-install { min-height:44px; padding:11px 18px; border-color:#0c726d; background:#0c726d; color:#fff; font-size:12px; font-weight:650; }
.pwa-settings-tools .pwa-install:hover { background:#095b58; }
@media(max-width:760px) {
  .pwa-settings-body { align-items:flex-start; padding:18px; gap:14px; }
  .pwa-settings-body > img { width:52px; height:52px; flex-basis:52px; }
  .pwa-settings-tools .pwa-install { width:100%; }
}
