:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --muted-surface: #eef2f8;
  --primary: #061c5e;
  --primary-soft: #e8eef8;
  --accent: #fe6805;
  --text: #1f2430;
  --muted: #6a7280;
  --border: #e5e8f0;
  --danger: #c62828;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Material Symbols Outlined — arquivo local (offline); origem: Google Fonts */
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/MaterialSymbolsOutlined.ttf") format("truetype");
}

/* Material Symbols Outlined — icones estilo apps Material / fintech */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", system-ui, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.nav-ico {
  flex-shrink: 0;
  vertical-align: middle;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #121622;
  color: #d5d9e6;
  padding: 18px 14px;
  border-right: 1px solid #242b3a;
  overflow-y: auto;
}

.brand { margin-bottom: 16px; }
.brand-home {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.brand-home:hover .brand-name,
.brand-home:focus .brand-name {
  color: #fff;
}
.brand-home:hover .brand-logo-plate {
  box-shadow: 0 0 0 1px rgba(254, 104, 5, 0.55), 0 4px 12px rgba(0, 0, 0, 0.28);
}
.brand-home:focus {
  outline: 2px solid #8b93a7;
  outline-offset: 3px;
  border-radius: 8px;
}
.brand-logo-plate {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 3px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(254, 104, 5, 0.28), 0 3px 10px rgba(0, 0, 0, 0.22);
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #f4f6fb;
  line-height: 1.2;
}
.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}
.topbar-brand {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}
.topbar-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.marca-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.marca-presets__label {
  font-weight: 600;
  margin-right: 2px;
  font-size: 13px;
}
.marca-presets .btn-link {
  margin: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav__group {
  margin: 12px 4px 2px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b93a7;
}
.side-nav__group--staff {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #2a3145;
  color: #b7c4ff;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d5d9e6;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.side-nav a .nav-ico { font-size: 22px; opacity: 0.92; }
.side-nav a .nav-label { min-width: 0; }
.side-nav a:hover { background: #2a3145; }
.side-nav a.active { background: #36405a; }
.side-nav a.danger { color: #ffb3b3; }
.side-nav a.side-nav-unlink {
  font-size: 12px;
  opacity: 0.88;
  border: 1px dashed #4a5568;
  margin-top: 4px;
}
.side-nav a.side-nav-unlink:hover { opacity: 1; }
.side-nav a.side-nav-unlink .nav-ico { font-size: 18px; }
.panic-unlink { margin-top: 14px; }
.panic-unlink p {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.panic-unlink .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
}
.panic-unlink .btn-link .nav-ico {
  font-size: 22px;
  color: var(--primary);
}

.main-area { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}
.topbar-meta {
  min-width: 0;
  flex: 1 1 auto;
}
.topbar-title {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.topbar-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
}
.muted { color: var(--muted); font-size: 12px; margin-top: 2px; }
.auth-chip {
  display: inline-block;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.auth-chip--guest {
  background: #fff6d8;
  color: #7a5b00;
  border: 1px solid #f0d67b;
}
.auth-chip--staff,
.auth-chip--linked {
  background: #e9f8ef;
  color: #1f6b3a;
  border: 1px solid #84d5a0;
}
.auth-chip--companion {
  background: var(--primary-soft);
  color: #5a1a66;
  border: 1px solid #ddcae4;
}
.tenant-chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #5a1a66;
  border: 1px solid #ddcae4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.tenant-chip-all {
  margin-left: 6px;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
.btn-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 8px 12px;
}
.topbar-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.topbar-auth-link .nav-ico { font-size: 20px; color: var(--primary); flex-shrink: 0; }
.topbar-auth-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-auth-short { display: none; }
.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.top-actions-staff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-bell {
  position: relative;
  z-index: 1200;
}
.admin-bell__btn {
  position: relative;
  z-index: 1220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}
.admin-bell__btn .nav-ico { font-size: 22px; color: var(--primary); }
.admin-bell__btn:hover { background: var(--primary-soft); }
.admin-bell__btn.is-open { background: var(--primary-soft); border-color: #ddcae4; }
.admin-bell__btn.has-unread .nav-ico {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  color: var(--danger);
}
.admin-bell__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.admin-bell__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(18, 22, 34, 0.35);
}
.admin-bell__backdrop[hidden],
.admin-bell__panel[hidden] {
  display: none !important;
}
.admin-bell__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1210;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 460px);
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(31, 36, 48, 0.16);
}
.admin-bell__panel:not([hidden]) {
  display: flex;
}
.admin-bell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 4px;
}
.admin-bell__head strong { font-size: 14px; }
.admin-bell__head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.admin-bell__hint {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.admin-bell__mark {
  margin: 0;
  width: auto;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.admin-bell__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.admin-bell__close .nav-ico { font-size: 22px; }
.admin-bell__close:hover { background: var(--muted-surface); }
.admin-bell__list {
  overflow-y: auto;
  padding: 0 8px 10px;
}
.admin-bell__foot {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 10px;
  border-top: 1px solid var(--border);
}
.admin-bell__clear {
  margin: 8px 0 0;
  width: auto;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.admin-bell__clear:hover { color: var(--danger); }
.admin-bell__empty {
  margin: 8px 6px 12px;
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.admin-bell__item {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 10px 10px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.admin-bell__item:hover { background: var(--muted-surface); }
.admin-bell__item.is-unread {
  background: #fde8ea;
  border-color: #f2a8b0;
}
.admin-bell__item.is-unread.is-media,
.admin-bell__item.is-unread.is-log {
  background: #fff4e5;
  border-color: #f0b96a;
}
.admin-bell__item.is-unread.is-sos {
  background: #fde8ea;
  border-color: #e0707c;
}
.admin-bell__item-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.admin-bell__kind {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #5a1a66;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}
.admin-bell__item.is-sos .admin-bell__kind {
  background: #f2a8b0;
  color: #7a1020;
}
.admin-bell__item.is-log .admin-bell__kind {
  background: #f8d9a8;
  color: #6a4308;
}
.admin-bell__item-resumo {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #4a5160;
  line-height: 1.4;
}
.admin-bell__item-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.panic-reconnect {
  margin: 12px 0 10px;
  font-size: 14px;
  line-height: 1.45;
}
.panic-reconnect .btn-link {
  display: inline-block;
  margin-top: 6px;
}

.panic-gate {
  margin: 8px 0 0;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf4fb 0%, #fff 72%);
  border: 1px solid #e4d4ea;
  box-shadow: 0 2px 10px rgba(109, 31, 122, 0.08);
}
.panic-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}
.panic-gate-actions .btn-link {
  display: block;
  text-align: center;
  min-height: 48px;
  padding: 14px 16px;
  font-size: 1.05rem;
}
.panic-gate-primary.btn-link {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(109, 31, 122, 0.28);
}
.panic-gate > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #3d4553;
}
.panic-gate-alt {
  margin: 12px 0 0;
  text-align: center;
}
.panic-gate-alt a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.panic-gate-confianca {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e4d4ea;
}
.panic-gate-confianca > p:first-child {
  margin: 0 0 8px;
  font-weight: 700;
}
.panic-gate-confianca .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}
.panic-linked-hello {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
}
.panic-linked-risk {
  margin: 0 0 8px;
}
.panic-linked-confianca {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid #ddcae4;
}
.panic-linked-confianca p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.panic-linked-confianca .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  font-size: 15px;
}
.panic-linked-confianca .btn-link .nav-ico {
  font-size: 20px;
  color: var(--primary);
}
.panic-action--ready .panic-submit-btn {
  margin-top: 0;
}
.panic-action--ready textarea {
  min-height: 72px;
}

.panic-pos-acionamento {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--muted-surface);
  border: 1px solid var(--border);
}
.panic-pos-acionamento p { margin: 0 0 10px; }
.panic-pos-acionamento p:last-child { margin-bottom: 0; }
.panic-pos-acionamento-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.panic-action {
  margin: 8px 0 0;
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf4fb 0%, #fff 72%);
  border: 1px solid #e4d4ea;
  box-shadow: 0 2px 10px rgba(109, 31, 122, 0.08);
}
.panic-action label { margin-top: 0; }
.panic-action textarea {
  width: 100%;
  max-width: none;
  min-height: 120px;
  resize: vertical;
}
.panic-action .panic-submit-btn,
#panic-submit-btn.panic-submit-btn {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 14px;
  min-height: 54px;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  padding: 16px 16px;
  box-shadow: 0 6px 16px rgba(109, 31, 122, 0.28);
  position: relative;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
#panic-submit-btn.panic-submit-btn:disabled,
#panic-submit-btn.is-busy {
  cursor: wait;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(109, 31, 122, 0.16);
}
#panic-submit-btn.is-busy {
  padding-left: 44px;
}
#panic-submit-btn.is-busy::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: panic-spin 0.7s linear infinite;
}
#panic-submit-btn.is-recording,
#panic-submit-btn.is-sending {
  background: #5c1868;
}
#panic-submit-btn.is-done {
  background: #1f7a4d;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
#panic-record-status {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  min-height: 1.2em;
}
@keyframes panic-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #panic-submit-btn.is-busy::before {
    animation: none;
    opacity: 0.85;
  }
}
.panic-action-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4d4ea;
}
.panic-action-access {
  margin: 12px 0 0;
  color: var(--text);
}
.panic-action-access p {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.panic-action-access .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
}
.panic-action-access .btn-link .nav-ico {
  font-size: 22px;
  color: var(--primary);
}
.panic-action-hint {
  margin: 12px 0 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.5;
}

.sos-stage {
  max-width: 28rem;
  margin: 0 auto;
  padding: 4px 0 8px;
}
.sos-head { margin: 0 0 16px; }
.sos-hello {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.sos-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.sos-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #3d4553;
}
.sos-lead a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sos-ready {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 12px 0 0;
}
.sos-ready-note {
  font-size: 13px;
  color: var(--muted);
}
.sos-result:empty { display: none; }
.sos-result { margin: 0 0 12px; }
.panic-action--sos {
  padding: 16px 16px 14px;
  border-color: #f0c4c8;
  background: linear-gradient(180deg, #fdecee 0%, #fff 58%);
}
.panic-action--sos .panic-submit-btn,
.panic-action--sos #panic-submit-btn.panic-submit-btn {
  margin: 0;
  min-height: 64px;
  font-size: 1.2rem;
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.28);
}
.panic-action--sos #panic-submit-btn.is-recording,
.panic-action--sos #panic-submit-btn.is-sending {
  background: #8e1d1d;
}
.sos-obs {
  margin: 12px 0 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.sos-obs summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sos-obs summary::-webkit-details-marker { display: none; }
.sos-obs textarea {
  display: block;
  margin: 0 12px 12px;
  width: calc(100% - 24px);
  min-height: 72px;
  max-width: none;
}
.panic-action--sos .panic-action-hint {
  margin-top: 10px;
  font-size: 13px;
}
.sos-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sos-tools a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.sos-tools a:hover { text-decoration: underline; }
.sos-tools a.sos-tools-quiet { color: #5b6472; font-weight: 600; }
.sos-tools .nav-ico { font-size: 20px; }
.sos-tools--classic { max-width: 36rem; }
@media (max-width: 720px) {
  .sos-stage { padding-top: 0; }
  .sos-title { font-size: 1.25rem; }
  .panic-action--sos {
    padding: 14px 12px 12px;
  }
  .panic-action--sos #panic-submit-btn.panic-submit-btn {
    min-height: 72px;
    font-size: 1.28rem;
  }
  .panic-gate-primary.btn-link {
    min-height: 56px;
    font-size: 1.12rem;
  }
  .panic-feed-sep { margin-top: 18px; }
}
.panic-feed-sep {
  margin: 20px -16px 0;
  height: 12px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-hero h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.panic-feed-sep + .home-hero {
  padding-top: 18px;
}

.content-card {
  margin: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  min-width: 0;
  overflow-wrap: anywhere;
}
.content-card h1 {
  margin-top: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-hero h1 { margin-top: 0; font-size: 1.35rem; }
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.home-hero-sos {
  background: #fde8ea;
  color: var(--danger);
  border: 1px solid #f2a8b0;
}
.home-dicas {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.home-dicas.dash-axis,
.home-hero.dash-axis {
  border-top: 0;
  padding-top: 0;
}
.home-dicas h2 { font-size: 1.1rem; margin: 0 0 8px; }
.home-dicas-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.home-dicas-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
}
.home-dicas-list li:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 720px) {
  .home-dicas-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-dicas-titulo { font-weight: 600; }
.home-dicas-alvo { font-size: 12px; }
.home-dicas-more { margin-top: 14px; }

.preventivo-filtros {
  margin: 8px 0 16px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.preventivo-filtro-ativo {
  font-weight: 700;
  text-decoration: underline;
}
.preventivo-artigo {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.preventivo-artigo.admin-form {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.preventivo-artigo.admin-form .preventivo-artigo-titulo { margin: 0; }
.preventivo-artigo.admin-form .preventivo-corpo { max-width: none; }
.preventivo-artigo.admin-form:first-of-type {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.preventivo-artigo-titulo {
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.preventivo-artigo-meta {
  font-size: 13px;
  margin: 0 0 12px;
}
.preventivo-corpo {
  font-size: 15px;
  line-height: 1.55;
  max-width: 40em;
}
.preventivo-corpo br {
  line-height: 1.6;
}
.preventivo-fonte {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.preventivo-admin-form textarea#d-corpo {
  font-family: inherit;
  min-height: 200px;
  max-width: none;
  width: 100%;
}

.admin-form {
  margin-top: 22px;
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}
.admin-form h2 { margin: 0; }
.admin-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.admin-form__wide { grid-column: 1 / -1; }
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="url"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  max-width: none;
}
.admin-form .muted { margin: 4px 0 0; }
.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.admin-form__actions button { margin: 0; width: auto; }

.pc-page { max-width: 1100px; }
.pc-intro {
  margin: 0 0 12px;
  max-width: 40rem;
  line-height: 1.5;
  color: #3d4553;
}
.pc-help {
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfafc;
}
.pc-help summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.pc-help summary::-webkit-details-marker { display: none; }
.pc-help summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 22px;
  margin-left: auto;
  color: var(--muted);
}
.pc-help[open] summary::after { content: "expand_less"; }
.pc-help__body {
  padding: 0 14px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #3d4553;
}
.pc-help__body p { margin: 0 0 8px; }
.pc-help__body p:last-child { margin-bottom: 0; }
.pc-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #e8f6ee;
  border: 1px solid #cdebd8;
  border-radius: 12px;
}
.pc-who__end { margin: 0; }
button.pc-end-session {
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  width: auto;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.pc-kpis { margin: 0; }
.pc-kpis .kpi { min-width: 7rem; }
.pc-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pc-list h2,
.pc-add h2 { font-size: 1.05rem; }
.pc-list-jump {
  margin: -4px 0 12px;
  font-size: 14px;
}
.pc-list-jump a { font-weight: 600; }
.pc-add.admin-form { margin-top: 0; }
.pc-id-form { max-width: 28rem; }
.pc-checks {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}
label.pc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
  min-height: 44px;
}
label.pc-check input { margin: 3px 0 0; flex-shrink: 0; }
label.pc-check span { display: flex; flex-direction: column; gap: 2px; }
label.pc-check small { color: var(--muted); font-size: 13px; }
.pc-portal { margin-top: 8px; }
.pc-contact {
  margin: 0 0 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.pc-contact:last-child { margin-bottom: 0; }
.pc-contact summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 52px;
}
.pc-contact summary::-webkit-details-marker { display: none; }
.pc-contact__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pc-contact__name { font-weight: 700; }
.pc-contact__wa { color: var(--muted); font-size: 14px; }
.pc-contact__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-contact__edit {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.pc-contact__form.admin-form {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
}
@media (min-width: 900px) {
  .pc-layout:not(.pc-layout--empty) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: start;
  }
  .pc-add.admin-form { position: sticky; top: 76px; }
  .pc-list-jump { display: none; }
}

.dicas-table { min-width: 760px; }
.pos-table { min-width: 780px; }
.dicas-ordem {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}
.dica-row--editing { background: #eef4fc; }
.dica-row--editing:hover { background: #e4edf8; }

.home-partners {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.home-partners.dash-axis,
#sec-beneficios-perto.home-partners {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}
.home-partners h3 { font-size: 1rem; margin: 0 0 8px; }
.home-partners-strip {
  min-height: 56px;
  margin-top: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fafbff;
}
.home-partners-hint { margin: 6px 0 10px; font-size: 13px; line-height: 1.4; }
.home-partners-lead { margin: 0 0 10px; font-size: 13px; }
.partners-geo-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.partners-geo-prompt > p:first-child {
  flex: 1 1 200px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.partners-geo-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.partners-geo-yes {
  margin: 0;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.partners-geo-no {
  margin: 0;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  border: 1px solid #e4d4ea;
  font-weight: 600;
}
.partners-geo-toggle {
  margin: 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}
.partners-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.partners-toolbar .dash-field {
  margin: 0;
  min-width: 180px;
}
.partners-toolbar label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.partners-toolbar select {
  width: auto;
  min-width: 180px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
}
.home-partners-list { margin-top: 10px; }
/* Lista de parceiros: evita marcadores do `ul` global e mantém só os cards */
.home-partners-list ul.partner-cards {
  list-style: none;
  padding: 0;
  margin: 0;
}
.partner-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .partner-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .partner-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.partner-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 36, 48, 0.06);
  min-width: 0;
}
.partner-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.partner-card-head .partner-logo-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #f3eaf7 0%, #eef1f8 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.08);
}
.partner-card-head .partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}
.partner-card-head .partner-logo.is-broken { display: none; }
.partner-logo-fallback {
  font-size: 32px;
  color: var(--primary);
  line-height: 1;
}
.partner-card-head .partner-logo:not(.is-broken) + .partner-logo-fallback {
  display: none;
}
.partner-card-main {
  flex: 1;
  min-width: 0;
}
.partner-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.partner-card-main .partner-title {
  margin-bottom: 8px;
}
.partner-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 28, 94, 0.35);
}
.partner-title-link:hover {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.partner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.partner-pill-ico {
  font-size: 16px !important;
  flex-shrink: 0;
  opacity: 0.9;
}
.partner-pill-text {
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}
.partner-pill--cat {
  color: #5a1a66;
  background: rgba(109, 31, 122, 0.1);
  border: 1px solid rgba(109, 31, 122, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.partner-pill--dist {
  color: #4a5568;
  background: #eef1f6;
  border: 1px solid #dbe1eb;
  margin-left: 0;
}
.partner-pill--dist .partner-pill-text {
  font-variant-numeric: tabular-nums;
}
.partner-exclusivo {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #5a3d00;
  background: #fff8e6;
  border: 1px solid #f0d899;
}
.partner-exclusivo-ico {
  font-size: 18px !important;
  flex-shrink: 0;
  color: #b8860b;
}
.parceiro-vis-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0 8px;
  max-width: 520px;
  background: #fafbff;
}
.parceiro-vis-fieldset legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
}
.parceiro-vis-label {
  display: block;
  font-weight: 400;
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
}
.parceiro-vis-label input {
  margin-right: 8px;
  vertical-align: middle;
}
.partner-benefit {
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: 600;
  color: #1b5e20;
  font-size: 14px;
  line-height: 1.35;
}
.partner-benefit-ico {
  font-size: 18px !important;
  flex-shrink: 0;
  color: #2e7d32;
}
.partner-desc { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.partner-address {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--text);
}
.partner-address > span:last-child {
  min-width: 0;
  flex: 1;
}
.partner-address-ico {
  font-size: 18px !important;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 1px;
}
.partner-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.partner-tel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 40px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #c5b8d4;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.partner-tel-btn:active,
.partner-tel-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}
.partner-tel-ico { font-size: 20px !important; }
.partner-map-btn,
.partner-site-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  flex: 1 1 auto;
  min-height: 40px;
  min-width: 0;
  padding: 8px 12px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  box-sizing: border-box;
}
.partner-map-ico,
.partner-site-ico { font-size: 18px !important; }
@media (max-width: 560px) {
  .partner-cards { grid-template-columns: 1fr; }
  .partner-actions { flex-direction: column; }
  .partner-map-btn,
  .partner-site-btn,
  .partner-tel-btn { width: 100%; }
}
.dash-filters select {
  width: auto;
  max-width: none;
  min-width: 160px;
  padding: 8px 10px;
}
.parceiros-table { min-width: 860px; }
.parceiros-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.parceiros-row-actions form { margin: 0; }
.parceiros-row-actions .danger-link {
  margin: 0;
  padding: 6px 8px;
  width: auto;
}
.admin-form .parceiro-vis-fieldset {
  max-width: none;
  margin: 12px 0 0;
}
.danger-link {
  color: #b00020;
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.danger-zone {
  margin-top: 28px;
  padding: 16px 16px 18px;
  border: 1px solid #f2a8b0;
  border-radius: 14px;
  background: #fde8ea;
}
.danger-zone h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: #7a1020;
}
.danger-zone p { margin: 0 0 8px; }
.danger-zone .muted { color: #6a3a42; }
button.btn-danger {
  margin-top: 8px;
  background: var(--danger);
  color: #fff;
}
button.btn-danger:hover { filter: brightness(1.05); }
label.danger-ack {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-weight: 600;
  line-height: 1.4;
}
label.danger-ack input { margin-top: 3px; width: auto; }
.sm-modal__btn-danger {
  color: #fff;
  background: var(--danger);
}
.sm-modal__btn-danger:hover { filter: brightness(1.05); }
.sm-modal__btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

ul { padding-left: 18px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; background: #fff; }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 10px 8px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
select, textarea, input[type="password"], input[type="text"], input[type="date"], input[type="search"],
input[type="email"], input[type="tel"], input[type="url"], input[type="number"] {
  width: 100%;
  max-width: 480px;
  border: 1px solid #cfd5e3;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
textarea { min-height: 88px; }
label { display: block; margin: 12px 0 6px; font-weight: 600; }
button {
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
}
.warn { background: #fff6d8; border: 1px solid #f0d67b; padding: 10px; border-radius: 10px; }
.warn-stack { padding: 12px 14px; }
.warn-stack p {
  margin: 0 0 10px;
  line-height: 1.55;
}
.warn-stack p:last-child { margin-bottom: 0; }
.warn-stack .btn-link {
  display: inline-block;
  vertical-align: middle;
  margin: 2px 0;
  padding: 6px 11px;
}
.ok { background: #e9f8ef; border: 1px solid #84d5a0; padding: 10px; border-radius: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.kpi { background: #f8f7ff; border: 1px solid #e7e1ff; border-radius: 12px; padding: 12px; }
.kpi b { font-size: 20px; display: block; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.panel-tools label { margin: 0; font-weight: normal; }
.inline-status { margin: 6px 0; font-size: 12px; color: #5f4a66; }
.alert-box { border-radius: 10px; padding: 10px; margin: 10px 0; border: 1px solid var(--border); background: #fff; }
.alert-high { background: #fde8ea; border: 1px solid #f2a8b0; }
.alert-ok { background: #e9f8ef; border: 1px solid #84d5a0; }
.alert-stale { background: #fff4e5; border: 1px solid #f0b96a; }
.wa-setup {
  margin: 16px 0 18px;
  padding: 16px 18px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}
.wa-setup .dash-axis__head { margin-bottom: 8px; }
.wa-setup > h2,
.wa-setup .dash-axis__head h2 {
  margin: 0;
  font-size: 1.08rem;
}
.wa-setup > .muted { margin: 0 0 10px; }
.wa-setup .alert-box { margin: 8px 0; }
.wa-setup .admin-form__actions { margin-top: 8px; }
.wa-dest-box .dash-axis__head {
  margin: 2px 0 8px;
  justify-content: flex-start;
}
.wa-dest-box .dash-axis__head strong { font-size: 1rem; }
.wa-dest-form .admin-form__actions button { margin-top: 0; }
.marca-setup.admin-form { margin-top: 8px; }
.wa-role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b4d73;
  font-weight: 700;
  margin-bottom: 4px;
}
.btn-link.btn-quiet {
  background: #fff;
  border: 1px solid #d9cce0;
  color: #5b3a66;
}
.wa-dest-box { margin-top: 12px; }
.wa-dest-form input[name="whatsapp_policia"] {
  max-width: 18rem;
}
.wa-dest-form button { margin-top: 6px; }
.wa-tpl-box { margin-top: 12px; }
.wa-tpl-sync {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
}
.wa-tpl-sync button { margin: 0; }
.wa-tpl-pick button { margin-top: 8px; }
.wa-tpl-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px 12px;
  margin: 0 0 12px;
  background: #fff;
}
.wa-tpl-fieldset legend {
  font-weight: 700;
  padding: 0 6px;
}
.wa-tpl-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 0;
  background: #faf8fc;
  cursor: pointer;
}
.wa-tpl-card input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.wa-tpl-card span { min-width: 0; }
.wa-tpl-card.is-selected {
  border-color: #84d5a0;
  background: #f3fbf6;
}
.wa-tpl-card.is-pending {
  opacity: 0.78;
  cursor: default;
  background: #fff;
}
.wa-tpl-meta {
  display: block;
  font-size: 12px;
  color: #6b4d73;
  margin-top: 2px;
}
.wa-tpl-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}
.wa-tpl-status.is-ok { color: #1b7a3d; }
.wa-tpl-status.is-wait { color: #9a6b00; }
.wa-tpl-status.is-bad { color: #a12838; }
.wa-tpl-preview-wrap { margin-top: 8px; }
.wa-tpl-preview-wrap summary {
  cursor: pointer;
  font-size: 13px;
  color: #5b3a66;
}
.wa-tpl-preview {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.45;
  background: #f7f5f8;
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0 0;
  font-family: inherit;
}
.stale-list { margin: 8px 0 0; padding-left: 18px; }
.stale-list li { margin: 3px 0; }
.sm-modal-open { overflow: hidden; }
.sm-modal[hidden] { display: none !important; }
.sm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.sm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
}
.sm-modal__sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
}
.sm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.sm-modal__close {
  border: 0;
  background: transparent;
  color: #475467;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.sm-modal__close:hover { background: #f2f4f7; }
.sm-modal__body { padding: 12px 14px 14px; }
.sm-modal__sheet--confirm {
  width: min(440px, calc(100vw - 24px));
}
.sm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px 14px;
}
.sm-modal__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0;
}
.sm-modal__btn-secondary {
  color: var(--primary);
  background: var(--primary-soft);
}
.sm-modal__btn-primary {
  color: #fff;
  background: var(--primary);
}
.sm-modal__btn-primary:hover { filter: brightness(1.05); }
.sm-modal__btn-secondary:hover { background: #e6d6ee; }
.sm-modal__frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow-wrap: normal;
  letter-spacing: 0.01em;
}
.pill-high { background: #ffe2e5; color: #9d1528; }
.pill-medium { background: #fff2d9; color: #8a5b00; }
.pill-low { background: #e4f5ea; color: #166b3c; }
.pill-type { background: var(--muted-surface); color: #334155; }
.pill-status-aberto { background: #ffe2e5; color: #9d1528; }
.pill-status-atendimento { background: #dbeafe; color: #1e40af; }
.pill-status-concluido { background: #e4f5ea; color: #166b3c; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.queue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 4px;
}
.queue-head h1 { margin-bottom: 6px; }
.queue-lead {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.queue-head__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 4px;
}
.queue-head__map .nav-ico { font-size: 20px; }

a.kpi {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
a.kpi:hover { border-color: #c5c0e8; }
a.kpi.is-active {
  box-shadow: 0 0 0 2px var(--primary);
  border-color: transparent;
}
.kpi--open { background: #fdecee; border-color: #f5c2c7; }
.kpi--open b { color: #c62828; }
.kpi--attend { background: #eef4fc; border-color: #c5daf5; }
.kpi--attend b { color: #1565c0; }
.kpi--done { background: #e9f8ef; border-color: #b7e4c7; }
.kpi--done b { color: #166b3c; }

.queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 4px;
}
.queue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.queue-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #3d4553;
  background: #f4f6fb;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.queue-tab:hover { background: #eef2f8; }
.queue-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.queue-tab__count {
  min-width: 1.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  opacity: 0.85;
}
.queue-tab.is-active .queue-tab__count { opacity: 1; }

.queue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 16px;
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #fafbfd;
}
.queue-empty .nav-ico { font-size: 36px; color: #9aa3b5; }
.queue-empty p { margin: 0; font-size: 14px; }
.queue-empty[hidden] { display: none !important; }
.queue-empty--compact {
  padding: 22px 14px;
  margin-top: 8px;
}
.queue-empty--compact .nav-ico { font-size: 28px; }

.queue-table { font-size: 13px; min-width: 980px; }
.audit-table { min-width: 760px; }
.audit-ip {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.audit-resumo {
  max-width: 360px;
  line-height: 1.45;
}
.queue-table th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.queue-table td { vertical-align: middle; }
.queue-table tbody tr:hover { background: #f8fafc; }
.queue-row--aberto { background: #fff8f8; }
.queue-row--aberto.queue-row--alta { background: #fdecee; }
.queue-row--aberto:hover,
.queue-row--aberto.queue-row--alta:hover { background: #fce4e6; }
.queue-row--atendimento { background: #f7faff; }
.queue-row--atendimento:hover { background: #eef4fc; }
.queue-row--concluido { color: #3d4553; }

.queue-person {
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.queue-obs {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  max-width: 280px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.queue-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.queue-loc .nav-ico { font-size: 18px; }
.queue-loc:hover { text-decoration: underline; }
.queue-coords {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.queue-audio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 160px;
}
.queue-audio audio {
  height: 32px;
  max-width: 180px;
  width: 180px;
}
.queue-audio__dur {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.queue-update {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  max-width: 180px;
}
.queue-update select {
  width: 100%;
  max-width: none;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}
.queue-update__btn {
  margin: 0;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
}

.dash-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.dash-head__actions .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-head__actions .nav-ico { font-size: 20px; }

.dash-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 12px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.dash-filters__periods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.dash-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}
.dash-field label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.dash-filters input[type="date"] {
  width: auto;
  max-width: none;
  min-width: 150px;
  padding: 8px 10px;
}
.dash-apply-btn {
  margin: 0;
  width: auto;
  padding: 10px 16px;
}
.dash-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.dash-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 4px 0 12px;
}
.dash-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
  font-size: 13px;
}
.dash-period-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.dash-axis { margin: 22px 0 8px; }
.dash-axis__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.dash-axis__head h2 {
  margin: 0;
  font-size: 1.08rem;
}
.dash-axis__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dash-queue-table { min-width: 720px; }
.queue-empty--table {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 28px 12px;
}
.queue-empty-row td { border-bottom: 0; }
.queue-audio-link {
  display: inline-flex;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.queue-audio-link:hover { text-decoration: underline; }

.kpi--stale { background: #fff4e5; border-color: #f0b96a; }
.kpi--stale b { color: #9a5b00; }

.config-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}
.config-kpis { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
.config-kpis .kpi b {
  font-size: 15px;
  line-height: 1.3;
  word-break: break-word;
}
.conta-form { max-width: 40rem; }

.map-kpis { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4553;
}
.map-legend__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,0.08);
}
.map-legend__dot--open { background: #c62828; }
.map-legend__dot--attend { background: #1976d2; }
.map-legend__dot--stale { background: #ef6c00; }

.map-stage {
  position: relative;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #dfe7ef;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.operacao-mapa {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  min-height: 560px;
  height: min(68vh, 740px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  margin-top: 0;
}
.map-empty {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  color: var(--muted);
  font-size: 13px;
}
.map-empty .nav-ico { font-size: 22px; color: #9aa3b5; }
.map-empty p { margin: 0; }

.map-popup { min-width: 220px; max-width: 280px; }
.map-popup__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.map-popup__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
}
.map-popup__meta dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.map-popup__meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.map-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.map-popup__actions .btn-link {
  padding: 6px 10px;
  font-size: 12px;
}
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.leaflet-popup-content { margin: 12px 14px; }

body.admin-bell-open .operacao-mapa,
body.sm-modal-open .operacao-mapa {
  pointer-events: none;
}
.operacao-map-pin {
  background: transparent;
  border: 0;
}

.bottom-nav { display: none; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content-card { margin: 12px; padding: 14px; }
  .panic-feed-sep { margin-left: -14px; margin-right: -14px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  button { width: 100%; }
  button.saas-hub-uf { width: auto; }
  button.admin-bell__btn,
  button.admin-bell__mark,
  button.admin-bell__close,
  button.admin-bell__clear { width: auto; }
  button.sm-modal__close { width: 32px; }
  button.sm-modal__btn { width: auto; }
  button.btn-danger { width: auto; }
  button.queue-update__btn { width: 100%; }
  button.dash-apply-btn { width: auto; }
  button.partners-geo-yes,
  button.partners-geo-no,
  button.partners-geo-toggle { width: auto; }
  button.marca-preset { width: auto; }
  button.danger-link { width: auto; }
  button.solicitacao-recusar { width: auto; }
  .solicitacao-actions button { width: auto; }
  .admin-form__grid { grid-template-columns: 1fr; }
  .admin-form__actions button { width: auto; }
  button.pc-end-session { width: auto; }
  .pc-add.admin-form { position: static; }
  .dash-head__actions { width: 100%; }
  .dash-head__actions .btn-link { flex: 1 1 auto; justify-content: center; }
  .dash-period-hint { margin-left: 0; }
  .queue-head__map { width: 100%; justify-content: center; }
  .queue-obs { max-width: 220px; }
  .admin-bell__panel {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .topbar-brand { display: flex; }
  .topbar-meta { min-width: 0; }
  .topbar-title { font-size: 14px; }
  .top-actions {
    grid-column: 1 / -1;
    flex-shrink: 1;
    align-items: stretch;
    width: 100%;
  }
  .guest-tenant .auth-chip--guest,
  .guest-tenant .tenant-chip-all,
  .guest-tenant .top-actions {
    display: none;
  }
  .topbar-auth-link {
    flex: 1 1 8rem;
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
    text-align: center;
  }
  .topbar-auth-link .topbar-auth-full { display: none; }
  .topbar-auth-link .topbar-auth-short { display: inline; }
  .topbar-auth-link span {
    overflow: visible;
    text-overflow: unset;
  }
  .admin-bell { flex: 0 0 auto; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    background: #fff;
  }
  .bottom-nav.bottom-nav--three {
    grid-template-columns: repeat(3, 1fr);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    text-decoration: none;
    color: #5c6377;
    text-align: center;
    padding: 8px 4px 10px;
    font-size: 11px;
    line-height: 1.15;
  }
  .bottom-nav a .nav-ico { font-size: 26px; }
  .bottom-nav a .nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .bottom-nav a.active { color: var(--primary); font-weight: 700; }
  .bottom-nav a.active .nav-ico { font-weight: 400; color: var(--primary); }
  .bottom-nav a.danger { color: var(--danger); }
  .bottom-nav a.danger .nav-ico { color: var(--danger); }
  .main-area { padding-bottom: 72px; }
  .sm-modal__sheet {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }
  .sm-modal__frame { min-height: 56vh; }
}

/* Pré-SOS: permissões pedidas ao entrar no app (usuária pública) */
.preflight-hint {
  margin: 0 20px 14px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
@media (max-width: 960px) {
  .preflight-hint {
    margin: 0 12px 10px;
  }
}

/* Hub SaaS: lista de municípios instalados */
/* Hub: sidebar no desktop; no mobile usa o bottom nav institucional */
@media (min-width: 981px) {
  body.hub-mode .bottom-nav { display: none !important; }
}
.saas-hub-hero h1 { margin: 4px 0 8px; font-size: 1.45rem; }
.saas-hub-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.saas-hub-lead {
  margin: 0 0 8px;
  max-width: 40em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.saas-hub-links { margin-top: 12px; }
.saas-hub-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0 0;
  max-width: 720px;
}
@media (min-width: 560px) {
  .saas-hub-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .saas-hub-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
a.saas-hub-shortcut {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(31, 36, 48, 0.05);
  min-height: 64px;
}
a.saas-hub-shortcut:hover {
  border-color: var(--primary);
  background: var(--muted-surface);
}
a.saas-hub-shortcut .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  color: var(--primary);
  margin-top: 1px;
}
a.saas-hub-shortcut--sos {
  background: #fde8ea;
  border-color: #f2a8b0;
}
a.saas-hub-shortcut--sos .material-symbols-outlined { color: var(--danger); }
a.saas-hub-shortcut--sos:hover { background: #fbd4d8; }
a.saas-hub-shortcut.is-active {
  box-shadow: 0 0 0 2px var(--primary);
  border-color: var(--primary);
}
a.saas-hub-shortcut--sos.is-active {
  box-shadow: 0 0 0 2px var(--danger);
  border-color: var(--danger);
}
.saas-hub-shortcut-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.saas-hub-shortcut-text strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.saas-hub-shortcut-text span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.saas-hub-shortcut-hint {
  margin: 10px 0 0;
  max-width: 40em;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.saas-hub-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
a.saas-hub-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
a.saas-hub-action .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
}
a.saas-hub-action:hover { background: var(--muted-surface); border-color: var(--primary); }
a.saas-hub-action--sos {
  background: #fde8ea;
  color: var(--danger);
  border-color: #f2a8b0;
}
a.saas-hub-action--sos .material-symbols-outlined { color: var(--danger); }
a.saas-hub-action--sos:hover { background: #fbd4d8; }
a.saas-hub-action.is-active {
  box-shadow: 0 0 0 2px var(--primary);
  border-color: var(--primary);
}
a.saas-hub-action--sos.is-active {
  box-shadow: 0 0 0 2px var(--danger);
  border-color: var(--danger);
}
.saas-hub-toolbar { margin: 18px 0 12px; scroll-margin-top: 12px; }
.saas-hub-search-label { margin-top: 0; }
.saas-hub-search-wrap {
  position: relative;
  max-width: 560px;
}
.saas-hub-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
  pointer-events: none;
  z-index: 1;
}
input.saas-hub-search[type="search"] {
  width: 100%;
  max-width: none;
  padding: 10px 14px 10px 44px;
}
.saas-hub-count { margin: 8px 0 0; }
.saas-hub-ufs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
button.saas-hub-uf {
  margin: 0;
  width: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
button.saas-hub-uf:hover { background: var(--muted-surface); }
button.saas-hub-uf.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.saas-hub-uf-group { margin: 0 0 8px; }
.saas-hub-uf-title {
  margin: 4px 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
ul.saas-hub-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul.saas-hub-grid > li.saas-hub-card {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 16px 16px 18px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 36, 48, 0.06);
  overflow: hidden;
}
.saas-hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}
.saas-hub-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e4f5ea;
  color: #166b3c;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.saas-hub-uf-pill {
  font-size: 12px;
  font-weight: 700;
  color: #5a1a66;
  white-space: nowrap;
}
.saas-hub-card h3 {
  margin: 2px 0 0;
  font-size: 1.08rem;
  line-height: 1.35;
}
.saas-hub-slug {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  line-height: 1.4;
}
.saas-hub-card[hidden],
.saas-hub-uf-group[hidden] { display: none !important; }

/* Landing institucional e Ajuda (hub) — mesma largura do painel (Municípios) */
.lp {
  max-width: none;
  width: 100%;
  color: var(--text);
}
.lp-hero { margin: 0 0 28px; }
.lp-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 240px;
  height: auto;
  margin: 0 0 18px;
}
.lp-logo--compact {
  max-width: 88px;
  max-height: 88px;
  margin-bottom: 14px;
}
.auth-brand {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 16px;
}
.auth-brand-logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 200px;
  height: auto;
}
.saas-hub-logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 0 12px;
}
.lp-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}
.lp-hero h1 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lp-lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #3d4553;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  align-items: center;
}
.lp-role-shortcuts {
  margin-top: 16px;
  max-width: none;
}
a.btn-link.lp-cta {
  background: var(--primary);
  color: #fff;
  padding: 11px 16px;
  border: 1px solid var(--primary);
}
a.btn-link.lp-cta:hover { filter: brightness(1.06); }
a.btn-link.lp-cta-quiet {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 16px;
}
a.btn-link.lp-cta-quiet:hover { background: var(--muted-surface); }
.lp-section {
  margin: 0 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.lp-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.lp-section > p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #3d4553;
}
.lp-axes,
.lp-who-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.lp-axes li,
.lp-who-grid > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfafc;
}
.lp-who-grid > div {
  grid-template-columns: 1fr;
}
.lp-axis-ico {
  font-size: 22px;
  color: var(--primary);
  margin-top: 2px;
}
.lp-axes h3,
.lp-who-grid h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.lp-axes p,
.lp-who-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.lp-steps {
  margin: 0;
  padding: 0 0 0 1.15rem;
}
.lp-steps li {
  margin: 0 0 12px;
  padding-left: 4px;
  line-height: 1.55;
  color: #3d4553;
}
.lp-steps li:last-child { margin-bottom: 0; }
.lp-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #3d4553;
  background: var(--primary-soft);
  border-radius: 10px;
  border: 1px solid #e4d4ef;
}
.lp-trust {
  background: linear-gradient(180deg, #f7f3f9 0%, #fff 48%);
  margin-left: -8px;
  margin-right: -8px;
  padding: 22px 14px 20px;
  border-radius: 14px;
  border-top: 1px solid var(--border);
}
.lp-trust-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}
.lp-trust-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.lp-trust-list .material-symbols-outlined {
  font-size: 22px;
  color: #5a1a66;
  margin-top: 1px;
}
.lp-trust-list strong { display: inline; }
.lp-trust-list div {
  font-size: 14px;
  line-height: 1.5;
  color: #3d4553;
}
.lp-limits {
  margin: 0;
  padding: 0 0 0 1.15rem;
}
.lp-limits li {
  margin: 0 0 8px;
  line-height: 1.55;
  color: #3d4553;
}
.lp-who-grid {
  grid-template-columns: 1fr;
}
.lp-close {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.lp-close > p { margin: 0; line-height: 1.55; color: #3d4553; }
.lp-190 {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #3d4553;
  background: #fff6f0;
  border: 1px solid #f3d4c4;
  border-radius: 10px;
  max-width: 40rem;
}
.lp-mods {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
a.lp-mod {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.lp-mod:hover,
a.lp-mod:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(6, 28, 94, 0.08);
  outline: none;
}
a.lp-mod:focus-visible {
  box-shadow: 0 0 0 3px rgba(6, 28, 94, 0.22);
}
a.lp-mod .material-symbols-outlined {
  font-size: 26px;
  color: var(--primary);
  margin-top: 2px;
}
.lp-mod__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.lp-mod__body strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.lp-mod__body span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
a.lp-mod--sos {
  background: #fdecee;
  border-color: #f2a8b0;
}
a.lp-mod--sos .material-symbols-outlined { color: var(--danger); }
a.lp-mod--sos:hover,
a.lp-mod--sos:focus-visible {
  border-color: var(--danger);
  background: #fbd4d8;
}
a.lp-mod--full {
  background: #f8fafc;
}
.lp-steps--num {
  padding-left: 1.35rem;
}
.lp-section--mods > p { max-width: 40rem; }
.servicos-hub-grid {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
a.servicos-hub-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fbfafc;
}
a.servicos-hub-card:hover,
a.servicos-hub-card:focus-visible {
  border-color: var(--primary);
  outline: none;
}
a.servicos-hub-card .material-symbols-outlined {
  color: var(--primary);
  font-size: 26px;
}
a.servicos-hub-card strong { display: block; margin-bottom: 4px; }
a.servicos-hub-card span { font-size: 14px; color: var(--muted); line-height: 1.45; }
a.servicos-hub-card--sos {
  background: #fdecee;
  border-color: #f2a8b0;
}
a.servicos-hub-card--sos .material-symbols-outlined { color: var(--danger); }
.lp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: -8px 0 24px;
  font-size: 13px;
}
.lp-toc a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.lp-toc a:hover { text-decoration: underline; }
.lp-ajuda .lp-toc {
  margin: 8px 0 16px;
  gap: 6px;
}
.lp-ajuda .lp-toc a.queue-tab {
  color: #3d4553;
  text-decoration: none;
}
.lp-ajuda .lp-toc a.queue-tab:hover {
  text-decoration: none;
  background: #eef2f8;
}
.lp-ajuda .lp-toc a.queue-tab.is-active { color: #fff; }
.lp-ajuda .lp-section {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}
.lp-ajuda .lp-section.lp-trust {
  margin-left: 0;
  margin-right: 0;
  padding-left: 18px;
  padding-right: 18px;
}
span.queue-tab { cursor: default; }
@media (min-width: 720px) {
  .lp-hero h1 { font-size: 1.85rem; }
  .lp-who-grid { grid-template-columns: 1fr 1fr 1fr; }
  .lp-axes { grid-template-columns: 1fr 1fr 1fr; }
  .lp-trust-list { grid-template-columns: 1fr 1fr; }
  .lp-trust { margin-left: 0; margin-right: 0; padding-left: 18px; padding-right: 14px; }
  .lp-mods { grid-template-columns: 1fr 1fr; }
  .lp-product .lp-hero h1 { font-size: 2rem; }
  .servicos-hub-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .lp-hero h1 { font-size: 1.4rem; }
  .lp-product .lp-hero h1 { font-size: 1.45rem; }
}
@media (max-width: 720px) {
  a.lp-mod:hover { transform: none; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03); }
}
@media (prefers-reduced-motion: reduce) {
  a.btn-link.lp-cta:hover { filter: none; }
}

.acesso-form fieldset {
  margin: 16px 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.acesso-form legend {
  font-weight: 700;
  padding: 0 6px;
}
.acesso-form fieldset label { display: block; margin-top: 10px; }
.acesso-form .acesso-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  margin-top: 8px;
  font-weight: 600;
}
.acesso-form .acesso-radio input { margin: 0; }
.solicitacao-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.solicitacao-card {
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.solicitacao-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.solicitacao-where {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.solicitacao-just {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 14px;
}
.solicitacao-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.solicitacao-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.solicitacao-actions button { margin: 0; width: auto; }
.solicitacao-recusa {
  flex: 1 1 180px;
  margin: 0;
}
.solicitacao-recusa input {
  width: 100%;
  max-width: none;
  margin-top: 4px;
}
.solicitacao-recusar {
  background: #fff;
  color: var(--danger, #9d1528);
  border: 1px solid #f0b8c0;
}
.equipe-table { min-width: 560px; }

.dispatch-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 12000;
  background: #8b1118;
  color: #fff;
  box-shadow: 0 8px 24px rgba(80, 0, 10, 0.35);
}
.dispatch-banner[hidden] { display: none !important; }
.dispatch-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.dispatch-banner__pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd54f;
  box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.7);
  animation: dispatchPulse 1.1s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes dispatchPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(255, 213, 79, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 213, 79, 0); }
}
.dispatch-banner__copy { flex: 1 1 auto; min-width: 0; }
.dispatch-banner__title {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.dispatch-banner__text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.35;
}
.dispatch-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.dispatch-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: #8b1118;
}
.dispatch-banner__btn--primary { background: #ffd54f; color: #4a0b10; }
.dispatch-banner__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
body.dispatch-sos-open { padding-top: 72px; }
.dispatch-arm,
.dispatch-push-prompt {
  position: fixed;
  z-index: 12001;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.dispatch-arm {
  bottom: 88px;
  background: #4a0b10;
  color: #fff;
  cursor: pointer;
}
.dispatch-arm[hidden],
.dispatch-push-prompt[hidden] { display: none !important; }
.dispatch-push-prompt {
  bottom: 88px;
  background: #fff;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.dispatch-push-prompt p { margin: 0; font-size: 14px; font-weight: 600; }
.dispatch-push-prompt button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.dispatch-push-status {
  position: fixed;
  z-index: 11990;
  left: 12px;
  right: 12px;
  bottom: 128px;
  border-radius: 12px;
  padding: 10px 36px 10px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.dispatch-push-status[hidden] { display: none !important; }
.dispatch-push-status strong { display: block; font-size: 13px; padding-right: 8px; }
.dispatch-push-status p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.dispatch-push-status__close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.dispatch-push-status--ok { display: none !important; }
.dispatch-push-status--warn { background: #fff8e1; color: #6d4c00; border: 1px solid #ffe082; }
@media (min-width: 961px) {
  .dispatch-push-status { bottom: 16px; left: auto; right: 16px; width: 360px; }
}
@media (max-width: 720px) {
  .dispatch-banner__inner { flex-wrap: wrap; }
  .dispatch-banner__actions { width: 100%; }
  body.dispatch-sos-open { padding-top: 118px; }
}

.pwa-install-bar {
  position: fixed;
  z-index: 11000;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(109, 31, 122, 0.35);
  cursor: pointer;
}
.pwa-install-bar .material-symbols-outlined { font-size: 22px; }
.pwa-install-bar[hidden] { display: none !important; }
@media (max-width: 960px) {
  .pwa-install-bar { bottom: 70px; }
}
body.pwa-install-bar-on .dispatch-push-prompt,
body.pwa-install-bar-on .dispatch-arm {
  bottom: 132px;
}
.pwa-install-sheet[hidden] { display: none !important; }
.pwa-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 13000;
}
.pwa-install-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 24, 0.45);
}
.pwa-install-sheet__card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 24px;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.2);
}
.pwa-install-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pwa-install-sheet__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pwa-install-sheet__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}
.pwa-install-sheet__head strong { font-size: 18px; }
.pwa-install-sheet__x {
  border: 0;
  background: var(--muted-surface);
  width: 36px;
  height: 36px;
  border-radius: 18px;
  font-size: 22px;
  cursor: pointer;
}
.pwa-install-sheet__why { margin: 0 0 12px; line-height: 1.45; }
.pwa-install-sheet__warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e5;
  border: 1px solid #f0d59a;
}
.pwa-install-sheet__steps {
  margin: 0 0 12px;
  padding-left: 20px;
  line-height: 1.55;
}
.pwa-install-sheet__steps li { margin: 0 0 8px; }
.pwa-install-sheet__ico {
  font-size: 20px;
  vertical-align: middle;
  color: var(--primary);
}
.pwa-install-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pwa-install-sheet__btn {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.pwa-install-sheet__btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pwa-install-sheet__btn--primary[hidden] { display: none !important; }
body.pwa-install-open { overflow: hidden; }



