:root {
  --navy: #0B2345;
  --navy-2: #123764;
  --blue: #184A8C;
  --orange: #F58220;
  --white: #FFFFFF;
  --paper: #F5F7FA;
  --line: #D8DEE8;
  --text: #16253D;
  --muted: #667085;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(11, 35, 69, .13);
  --shadow-soft: 0 12px 30px rgba(11, 35, 69, .08);
  --glass: rgba(255, 255, 255, .76);
}

* { box-sizing: border-box; }
html { background: #e8edf5; color-scheme: light; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 130, 32, .10), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(24, 74, 140, .13), transparent 30%),
    linear-gradient(180deg, #eef3f9 0%, #f8fafc 40%, #eef3f9 100%);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { min-height: 48px; }
.material-symbols-rounded { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }

.app-shell {
  min-height: 100dvh;
  max-width: 600px;
  margin: auto;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(24, 74, 140, .08), transparent 20%),
    linear-gradient(135deg, rgba(11, 35, 69, .035) 25%, transparent 25%) 0 0 / 26px 26px,
    var(--white);
  box-shadow: 0 0 80px rgba(11, 35, 69, .18);
}
.app-shell::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  max-width: 600px;
  margin: auto;
  background:
    repeating-radial-gradient(circle at 12% 18%, rgba(24,74,140,.10) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 94% 62%, rgba(245,130,32,.08), transparent 24%);
  opacity: .55;
}
.app-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  max-width: 600px;
  margin: auto;
  background-image:
    linear-gradient(115deg, transparent 0 84%, rgba(245,130,32,.06) 84% 86%, transparent 86%),
    repeating-linear-gradient(160deg, transparent 0 24px, rgba(11,35,69,.025) 25px, transparent 26px);
  pointer-events: none;
}

.topbar {
  min-height: 164px;
  padding: 18px 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 12;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11,35,69,.96), rgba(24,74,140,.88)),
    url("assets/background-app.png") center 72% / cover;
  box-shadow: 0 26px 46px rgba(11, 35, 69, .23);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,35,69,.60), rgba(11,35,69,.86)),
    radial-gradient(circle at 70% 18%, rgba(245,130,32,.18), transparent 28%);
  backdrop-filter: blur(1px);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
}
.topbar-atencao::before { background: linear-gradient(135deg, rgba(11,35,69,.78), rgba(245,158,11,.34)); }
.topbar-alerta::before { background: linear-gradient(135deg, rgba(11,35,69,.80), rgba(245,130,32,.38)); }
.topbar-emergencia::before { background: linear-gradient(135deg, rgba(11,35,69,.80), rgba(220,38,38,.42)); }
.radar-lines {
  position: absolute;
  inset: auto -80px -90px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.14) 0 1px, transparent 1px 28px);
  opacity: .7;
}
.radar-lines::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 50%;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(245,130,32,.85), transparent);
  transform-origin: left center;
  animation: radarSweep 5s linear infinite;
}
@keyframes radarSweep { to { transform: rotate(360deg); } }

.brand, .header-actions { position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 14px; max-width: 72%; }
.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  padding: 5px;
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.brand strong, .brand span, .brand small { display: block; }
.brand strong { font-size: 20px; letter-spacing: .055em; line-height: 1; font-weight: 800; }
.brand span { margin-top: 5px; color: rgba(255,255,255,.86); font-size: 16px; font-weight: 700; }
.brand small { margin-top: 10px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 500; }
.header-actions { display: flex; gap: 8px; }
.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform .2s ease, background .2s ease;
}
.icon-button:active { transform: scale(.94); background: rgba(255,255,255,.22); }
.icon-button i {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  position: absolute;
  top: -5px;
  right: -4px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  border: 2px solid rgba(255,255,255,.9);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.slogan-bar {
  margin: -64px 16px 0;
  height: 52px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.88);
  position: relative;
  z-index: 13;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}
.official-strip {
  margin: 12px 16px 0;
  min-height: 46px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid rgba(216,222,232,.75);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(18px);
}
.official-strip span { display: flex; align-items: center; gap: 8px; }
.official-strip i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px rgba(22,163,74,.12); }
.official-strip a { color: var(--blue); text-decoration: none; }
.official-strip strong { color: var(--orange); }

main { padding-bottom: 106px; }
.page { display: none; min-height: calc(100dvh - 250px); padding: 20px 16px 34px; animation: pageIn .28s cubic-bezier(.2,.8,.2,1); }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px) scale(.99); } }
.location-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 10px 2px 16px; }
.eyebrow { color: var(--orange); display: block; font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
.location-row h1 { margin: 2px 0 0; font-size: clamp(28px, 8vw, 40px); line-height: 1; letter-spacing: -.04em; }
.updated { color: var(--muted); font-size: 11px; padding-bottom: 5px; white-space: nowrap; }

.status-card, .weather-card, .list-card, .news-card, .contact-card, .official-note, .empty-state, .alert-detail-card, .related-guide-card, .app-status-card, .trust-card, .phase-overview-card {
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(216,222,232,.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}
.status-card {
  min-height: 170px;
  padding: 22px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  position: relative;
  border: 0;
}
.status-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,163,74,.08), transparent 55%);
  pointer-events: none;
}
.status-card.status-atencao::after { background: linear-gradient(135deg, rgba(245,158,11,.12), transparent 55%); }
.status-card.status-alerta::after { background: linear-gradient(135deg, rgba(245,130,32,.14), transparent 55%); }
.status-card.status-emergencia::after { background: linear-gradient(135deg, rgba(220,38,38,.14), transparent 55%); }
.status-orb {
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: conic-gradient(var(--success), rgba(22,163,74,.20));
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.95), 0 16px 32px rgba(22,163,74,.20);
}
.status-orb span { width: 42px; height: 42px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 10px rgba(22,163,74,.14); }
.status-card.status-atencao .status-orb { background: conic-gradient(var(--warning), rgba(245,158,11,.20)); box-shadow: inset 0 0 0 12px #fff, 0 16px 32px rgba(245,158,11,.20); }
.status-card.status-atencao .status-orb span { background: var(--warning); box-shadow: 0 0 0 10px rgba(245,158,11,.14); }
.status-card.status-alerta .status-orb { background: conic-gradient(var(--orange), rgba(245,130,32,.20)); box-shadow: inset 0 0 0 12px #fff, 0 16px 32px rgba(245,130,32,.22); animation: pulseAlert 1.7s ease-in-out infinite; }
.status-card.status-alerta .status-orb span { background: var(--orange); box-shadow: 0 0 0 10px rgba(245,130,32,.16); }
.status-card.status-emergencia .status-orb { background: conic-gradient(var(--danger), rgba(220,38,38,.20)); box-shadow: inset 0 0 0 12px #fff, 0 16px 32px rgba(220,38,38,.22); animation: pulseAlert 1.25s ease-in-out infinite; }
.status-card.status-emergencia .status-orb span { background: var(--danger); box-shadow: 0 0 0 10px rgba(220,38,38,.16); }
@keyframes pulseAlert { 50% { transform: scale(1.045); filter: saturate(1.2); } }
.status-heading, .status-card p { position: relative; z-index: 1; }
.status-heading { display: flex; align-items: center; gap: 10px; }
.status-dot { display: none; }
.status-heading span:not(.status-dot) { color: var(--muted); display: block; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.status-heading strong { display: block; margin-top: 7px; color: var(--success); font-size: clamp(24px, 7vw, 34px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.status-card.status-atencao .status-heading strong { color: #B77900; }
.status-card.status-alerta .status-heading strong { color: #C15C00; }
.status-card.status-emergencia .status-heading strong { color: var(--danger); }
.status-card p { grid-column: 2; color: var(--muted); margin: -34px 0 0; font-size: 13px; line-height: 1.45; }

.priority-alert-card {
  margin-bottom: 14px;
  padding: 21px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #b4460c);
  box-shadow: 0 24px 52px rgba(245,130,32,.22);
  overflow: hidden;
  position: relative;
}
.priority-alert-card::after { content: ""; position: absolute; width: 180px; height: 180px; border: 32px solid rgba(255,255,255,.08); border-radius: 50%; right: -70px; top: -80px; }
.priority-alert-card.priority-atencao { background: linear-gradient(135deg, var(--warning), #8a5d00); }
.priority-alert-card.priority-emergencia { background: linear-gradient(135deg, var(--danger), #7f1111); }
.priority-kicker { display: block; color: rgba(255,255,255,.80); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.priority-alert-card h2 { margin: 9px 0; font-size: 24px; line-height: 1.13; letter-spacing: -.03em; }
.priority-alert-card p { margin: 0; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.45; }
.priority-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.priority-actions button, .featured-message button, .primary-button, .alert-card-actions button, .back-button, .detail-actions button, .detail-actions a {
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.priority-actions button { color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); font-size: 11px; }
button:active, .contact-card:active { transform: scale(.97); }

.weather-card {
  color: #fff;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(245,130,32,.26), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(145deg, #184A8C 0%, #0B2345 78%);
  box-shadow: 0 28px 56px rgba(11,35,69,.24);
}
.weather-card::before, .weather-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.weather-card::before { width: 210px; height: 210px; right: -86px; top: -82px; border: 34px solid rgba(255,255,255,.055); }
.weather-card::after { width: 150px; height: 150px; left: -74px; bottom: -72px; background: rgba(255,255,255,.07); }
.weather-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.weather-icon { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 28px; background: rgba(255,255,255,.14); font-size: 44px; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.weather-main span { display: block; color: rgba(255,255,255,.78); font-size: 15px; font-weight: 600; }
.weather-main strong { display: block; font-size: clamp(58px, 18vw, 82px); line-height: .9; letter-spacing: -.08em; font-weight: 800; }
.weather-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 22px; position: relative; z-index: 1; }
.weather-details div { min-width: 0; padding: 12px 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.10); border-radius: 18px; backdrop-filter: blur(16px); }
.weather-details span, .weather-details strong { display: block; }
.weather-details i { display: block; min-height: 18px; color: rgba(255,255,255,.72); font-size: 16px; font-style: normal; }
.weather-details i.material-symbols-rounded { font-size: 18px; }
.weather-details span { margin-top: 4px; color: rgba(255,255,255,.68); font-size: 9px; text-transform: uppercase; white-space: nowrap; font-weight: 700; }
.weather-details strong { margin-top: 4px; font-size: 14px; letter-spacing: -.02em; }
.source-note { position: relative; z-index: 1; color: rgba(255,255,255,.62); font-size: 10px; margin: 14px 0 0; line-height: 1.4; }

.live-monitor-card {
  display: grid;
  gap: 12px;
  margin: -6px 0 22px;
  padding: 15px;
  border: 1px solid rgba(216,222,232,.82);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,247,250,.88));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}
.live-monitor-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-monitor-card > div:first-child span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: #EAF1FB;
}
.live-monitor-card strong { font-size: 14px; letter-spacing: -.02em; }
.live-monitor-card small {
  display: block;
  max-width: 560px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.live-monitor-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.live-monitor-chips::-webkit-scrollbar { display: none; }
.live-monitor-chips span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid rgba(216,222,232,.8);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.live-monitor-chips i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,.13);
}

.app-status-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; padding: 15px 16px; border-radius: 20px; }
.app-status-card strong, .app-status-card span { display: block; }
.app-status-card strong { font-size: 13px; }
.app-status-card span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.app-status-card button { padding: 8px 12px; color: #fff; background: var(--orange); border: 0; border-radius: 14px; font-weight: 800; font-size: 11px; }
.trust-card {
  margin: -10px 0 22px;
  padding: 20px;
  border: 1px solid rgba(24,74,140,.12);
  background:
    radial-gradient(circle at 88% 12%, rgba(245,130,32,.12), transparent 28%),
    linear-gradient(145deg, #FFFFFF, #F6F9FD);
}
.trust-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.trust-card-heading > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  color: #fff;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  box-shadow: 0 12px 24px rgba(24,74,140,.18);
}
.trust-card h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -.045em;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.trust-grid div {
  min-height: 74px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid #E4EAF2;
}
.trust-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.trust-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.28;
}
.trust-card p {
  margin: 14px 0 0;
  color: #42526A;
  font-size: 12px;
  line-height: 1.55;
}

.section-title { display: flex; align-items: end; justify-content: space-between; margin: 24px 2px 14px; }
.section-title h2 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.04em; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.quick-card {
  min-height: 150px;
  padding: 18px;
  border: 0;
  border-radius: 26px;
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-card::before { content: ""; position: absolute; inset: 0; opacity: .24; background: url("assets/background-app.png") center / cover; mix-blend-mode: screen; }
.quick-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -42px; bottom: -46px; border-radius: 50%; border: 20px solid rgba(255,255,255,.10); }
.quick-card span, .quick-card strong, .quick-card small, .quick-card b { position: relative; z-index: 1; }
.quick-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.16); font-size: 29px; margin-bottom: 14px; }
.quick-card strong { display: block; font-size: 16px; line-height: 1.2; }
.quick-card.call-defense-button strong { max-width: 142px; font-size: 12px; letter-spacing: .03em; }
.quick-card small { display: block; color: rgba(255,255,255,.76); margin-top: 6px; font-size: 11px; }
.quick-card b { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); font-size: 18px; }
.quick-card.orange { background: linear-gradient(145deg, #F58220, #C25708); }
.quick-card.blue { background: linear-gradient(145deg, #2D6EC2, #184A8C); }
.quick-card.red { background: linear-gradient(145deg, #DC2626, #941515); }
.quick-card.navy { background: linear-gradient(145deg, #184A8C, #0B2345); }
.quick-card.green { background: linear-gradient(145deg, #16A34A, #0F6B33); }

.featured-message {
  margin-top: 24px;
  padding: 24px;
  border: 0;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(100deg, rgba(11,35,69,.94), rgba(11,35,69,.65)),
    url("assets/background-app.png") center 72% / cover;
  box-shadow: var(--shadow);
}
.featured-message span { color: #ffbe83; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; font-weight: 800; }
.featured-message h3 { margin: 10px 0; font-size: 22px; letter-spacing: -.04em; }
.featured-message p { color: rgba(255,255,255,.78); line-height: 1.5; font-size: 13px; }
.featured-message button, .primary-button { color: #fff; background: var(--orange); padding: 11px 16px; font-size: 12px; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.featured-actions button:last-child { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.20); }

.page-heading { margin: 6px 2px 18px; }
.page-heading h1 { font-size: clamp(36px, 11vw, 48px); line-height: .98; margin: 4px 0 8px; letter-spacing: -.07em; }
.page-heading p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.alert-filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; margin: -4px 0 10px; scrollbar-width: none; }
.alert-filters::-webkit-scrollbar { display: none; }
.alert-filters button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.alert-filters button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.empty-state { text-align: center; padding: 32px 22px; }
.empty-icon { width: 70px; height: 70px; margin: 0 auto 15px; display: grid; place-items: center; color: var(--success); background: #dcfce7; border-radius: 24px; font-size: 31px; font-weight: 800; }
.empty-state h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -.04em; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.monitoring-empty-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(216,222,232,.8);
  border-radius: 20px;
  text-align: left;
  background:
    repeating-radial-gradient(circle at 18% 20%, rgba(24,74,140,.10) 0 1px, transparent 1px 15px),
    #F8FAFC;
}
.monitoring-empty-panel > span {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #EAF1FB;
  border-radius: 17px;
}
.monitoring-empty-panel strong,
.monitoring-empty-panel small { display: block; }
.monitoring-empty-panel strong { font-size: 13px; }
.monitoring-empty-panel small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.list-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.list-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.list-icon { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 19px; font-size: 26px; }
.list-icon.yellow { background: #FEF3C7; color: #B77900; }
.list-icon.blue { background: #DBEAFE; color: var(--blue); }
.list-icon.purple { background: #EDE9FE; color: #6D28D9; }
.list-icon.red { background: #FEE2E2; color: var(--danger); }
.list-icon.orange { background: #FFEDD5; color: #C25708; }
.list-icon.green { background: #DCFCE7; color: var(--success); }
.list-content { flex: 1; min-width: 0; }
.list-content h3 { font-size: 17px; margin: 5px 0 5px; letter-spacing: -.035em; }
.list-content p { color: var(--muted); font-size: 12px; line-height: 1.45; margin-bottom: 5px; }
.list-content small { color: #8490a3; font-size: 10px; }

.active-alert {
  position: relative;
  align-items: flex-start;
  border-left: 0;
  padding-left: 25px;
}
.active-alert::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: var(--orange);
}
.active-alert.emergencia::before { background: var(--danger); }
.active-alert.atencao::before { background: var(--warning); }
.active-alert .list-icon { border-radius: 50%; width: 42px; height: 42px; flex-basis: 42px; }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 9px; color: #9A5A00; background: #FEF3C7; border-radius: 999px; font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.auto-alert-source { display: block; width: max-content; max-width: 100%; margin-top: 7px; padding: 5px 8px; border-radius: 999px; color: #075985; background: #E0F2FE; font-size: 8px; line-height: 1.2; text-transform: uppercase; font-weight: 900; letter-spacing: .055em; }
.alert-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.alert-meta-grid small {
  display: block;
  padding: 9px 10px;
  color: var(--text);
  background: #F5F7FA;
  border: 1px solid #E4EAF2;
  border-radius: 14px;
  font-size: 10px;
  line-height: 1.25;
}
.alert-meta-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.alert-card-actions { display: flex; gap: 8px; margin-top: 11px; }
.alert-card-actions button { padding: 0 12px; font-size: 11px; }
.alert-card-actions button:first-child, .detail-actions button { color: #fff; background: var(--orange); }
.alert-card-actions button:last-child { color: var(--blue); background: #EAF1FB; }
.back-button { margin-bottom: 14px; padding: 0 14px; color: var(--blue); background: #fff; box-shadow: var(--shadow-soft); }
.alert-detail-card, .related-guide-card { padding: 22px; }
.alert-detail-card h1 { margin: 10px 0 12px; font-size: 30px; line-height: 1.08; letter-spacing: -.06em; }
.alert-detail-card p { color: #42526a; font-size: 14px; line-height: 1.6; }
.phase-overview-card { padding: 20px; margin-bottom: 16px; }
.phase-overview-card h2 { margin: 6px 0 14px; color: var(--text); font-size: 22px; letter-spacing: -.04em; }
.phase-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.phase-guide-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #fff, #f7faff); }
.phase-guide-grid strong { display: block; color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.phase-guide-grid p { margin: 7px 0 0; color: #59677a; font-size: 12px; line-height: 1.45; }
.detail-meta { display: grid; gap: 6px; margin: 15px 0; color: var(--muted); font-size: 11px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-actions a, .detail-actions .open-sos-button { display: grid; place-items: center; color: #fff; background: var(--navy); text-decoration: none; }
.detail-actions .open-sos-button { border: 0; border-radius: 15px; font-weight: 800; }
.related-guide-card { margin-top: 13px; }
.related-guide-card h2 { margin: 6px 0 12px; font-size: 22px; letter-spacing: -.04em; }
.related-guide-card ul { margin: 0; padding: 0; list-style: none; }
.related-guide-card li { position: relative; padding: 10px 0 10px 25px; color: #42526a; font-size: 13px; line-height: 1.48; border-bottom: 1px solid rgba(216,222,232,.75); }
.related-guide-card li:last-child { border-bottom: 0; }
.related-guide-card li::before { content: "!"; position: absolute; left: 0; top: 10px; width: 17px; height: 17px; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 50%; font-size: 10px; font-weight: 900; }

.guide { display: grid; grid-template-columns: 1fr auto; padding: 0; overflow: hidden; }
.guide-summary { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 17px 8px 17px 17px; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.guide-category { display: inline-block; color: var(--orange); text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 900; }
.guide-summary .list-content small { display: block; margin-top: 7px; color: var(--blue); font-size: 10px; font-weight: 800; }
.expand-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: var(--blue); background: #EEF4FB; border-radius: 50%; transition: transform .22s ease, background .22s ease, color .22s ease; }
.guide.open .expand-icon { transform: rotate(180deg); color: #fff; background: var(--orange); }
.guide .favorite-button { align-self: center; margin-right: 12px; }
.guide-details { display: none; grid-column: 1 / -1; padding: 2px 18px 18px; border-top: 1px solid rgba(216,222,232,.7); background: linear-gradient(180deg, rgba(245,247,250,.55), #fff); }
.guide.open .guide-details { display: block; animation: accordion .22s ease; }
@keyframes accordion { from { opacity: 0; transform: translateY(-6px); } }
.guide-details h4 { margin: 15px 0 10px; color: var(--orange); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.guide-details ul { margin: 0; padding: 0; list-style: none; }
.guide-details li { position: relative; padding: 10px 5px 10px 25px; color: #42526a; border-bottom: 1px solid rgba(216,222,232,.70); font-size: 13px; line-height: 1.48; }
.guide-details li:last-child { border-bottom: 0; }
.guide-details li::before { content: "check"; font-family: "Material Symbols Rounded"; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: 13px; }
.share-button, .favorite-button { width: 44px; height: 44px; border: 0; border-radius: 16px; color: var(--blue); background: #EAF1FB; font-size: 20px; cursor: pointer; }
.favorite-button.active { color: var(--orange); background: #FFF0DF; }
.search-box { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); padding: 14px 15px; border-radius: 19px; box-shadow: var(--shadow-soft); }
.search-box input { width: 100%; min-height: 28px; border: 0; outline: none; color: var(--text); background: transparent; font-size: 15px; }
.search-box span { color: var(--muted); }

.risk-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 28px;
  color: #fff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(245,130,32,.34), transparent 34%),
    linear-gradient(135deg, #DC2626, #6F1010);
  box-shadow: var(--shadow);
}
.risk-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(255,255,255,.10);
  border-radius: 50%;
}
.risk-hero .eyebrow { color: #FFD6B0; }
.risk-hero h1 { margin: 8px 0 10px; font-size: clamp(38px, 12vw, 54px); line-height: .95; letter-spacing: -.07em; }
.risk-hero p { max-width: 520px; margin: 0; color: rgba(255,255,255,.84); font-size: 14px; line-height: 1.6; }
.risk-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.risk-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(216,222,232,.85);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-soft);
}
.risk-action-card.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--danger), #991B1B);
}
.risk-action-card > span {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--orange);
  font-size: 27px;
}
.risk-action-card.primary > span { background: rgba(255,255,255,.16); }
.risk-action-card strong,
.risk-action-card small { display: block; }
.risk-action-card strong { font-size: 16px; letter-spacing: -.025em; }
.risk-action-card small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.risk-action-card.primary small { color: rgba(255,255,255,.76); }
.risk-note {
  display: flex;
  gap: 13px;
  padding: 18px;
  border-radius: 24px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
}
.risk-note > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 15px;
}
.risk-note strong { font-size: 14px; }
.risk-note p { margin: 6px 0 0; color: #7C4A03; font-size: 12px; line-height: 1.5; }

.tourist-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 28px;
  color: #fff;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(11,35,69,.96), rgba(24,74,140,.88)),
    url("assets/background-app.png") center / cover;
  box-shadow: var(--shadow);
}
.tourist-hero::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  border: 28px solid rgba(245,130,32,.22);
}
.tourist-hero .eyebrow { color: #FFD6B0; }
.tourist-hero h1 { margin: 8px 0 10px; font-size: clamp(38px, 12vw, 54px); line-height: .95; letter-spacing: -.07em; }
.tourist-hero p { position: relative; z-index: 1; max-width: 560px; margin: 0; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.6; }
.tourist-grid { display: grid; gap: 12px; }
.tourist-card {
  padding: 18px;
  border: 1px solid rgba(216,222,232,.85);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.tourist-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--blue);
  background: #EAF1FB;
  border-radius: 18px;
  font-size: 29px;
}
.tourist-card h2 { margin: 0 0 7px; color: var(--text); font-size: 18px; letter-spacing: -.035em; }
.tourist-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.tourist-card button,
.tourist-card a {
  min-height: 46px;
  width: 100%;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}
.tourist-card.emergency {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #DC2626, #991B1B);
}
.tourist-card.emergency > span { color: #fff; background: rgba(255,255,255,.16); }
.tourist-card.emergency h2 { color: #fff; }
.tourist-card.emergency p { color: rgba(255,255,255,.82); }
.tourist-card.emergency a { background: rgba(255,255,255,.16); }
.tourist-note {
  display: flex;
  gap: 13px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #BFDBFE;
  border-radius: 24px;
  background: #EFF6FF;
}
.tourist-note > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 15px;
}
.tourist-note strong { color: var(--text); font-size: 14px; }
.tourist-note p { margin: 6px 0 0; color: #36516F; font-size: 12px; line-height: 1.5; }

.situation-grid {
  display: grid;
  gap: 12px;
}
.situation-card {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(216,222,232,.78);
  box-shadow: var(--shadow-soft);
}
.situation-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #EAF1FB;
  border-radius: 18px;
  font-size: 28px;
  margin-bottom: 12px;
}
.situation-card h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.18; letter-spacing: -.04em; }
.situation-card p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.situation-card button {
  min-height: 40px;
  padding: 0 13px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
}

.steps-card {
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.step-row {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(216,222,232,.78);
}
.step-row:first-child { padding-top: 0; }
.step-row:last-child { padding-bottom: 0; border-bottom: 0; }
.step-row b {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-size: 13px;
}
.step-row strong,
.step-row small { display: block; }
.step-row strong { font-size: 14px; }
.step-row small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.receive-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}
.receive-actions a {
  min-height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #EAF1FB;
  border-radius: 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.faq-list { display: grid; gap: 12px; }
.faq-card {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(216,222,232,.78);
  box-shadow: var(--shadow-soft);
}
.faq-card h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.22; letter-spacing: -.035em; }
.faq-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.accessibility-grid { display: grid; gap: 12px; }
.accessibility-option {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216,222,232,.85);
  border-radius: 24px;
  color: var(--text);
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow-soft);
}
.accessibility-option > span { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; color: var(--blue); background: #EAF1FB; border-radius: 18px; font-size: 28px; }
.accessibility-option strong, .accessibility-option small { display: block; }
.accessibility-option strong { font-size: 16px; }
.accessibility-option small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.accessibility-option.active { border-color: rgba(22,163,74,.42); background: #F0FDF4; }
.accessibility-option.active > span { color: #fff; background: var(--success); }

.whatsapp-form { display: grid; gap: 13px; padding: 20px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.whatsapp-form label { color: #42526A; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.whatsapp-form input[type="text"], .whatsapp-form input[type="tel"], .whatsapp-form input:not([type]) { width: 100%; margin-top: 7px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; outline: none; color: var(--text); background: #F8FAFC; }
.whatsapp-form .uppercase-input { text-transform: uppercase; }
.whatsapp-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24,74,140,.10); }
.whatsapp-form .field-tip { margin-top: -7px; color: #667085; }
.consent-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 13px; border-radius: 18px; background: #F8FAFC; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; line-height: 1.45; }
.consent-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); }
.whatsapp-form small { color: var(--muted); font-size: 11px; line-height: 1.4; }

body.font-large { font-size: 18px; }
body.font-large .page p,
body.font-large .list-content p,
body.font-large .guide-details li,
body.font-large .faq-card p { font-size: 16px; }
body.font-large .bottom-nav small { font-size: 11px; }
body.font-large button,
body.font-large .contact-card,
body.font-large .risk-action-card { min-height: 56px; }
body.high-contrast .app-shell::before,
body.high-contrast .app-shell::after { opacity: .08; }
body.high-contrast .status-card,
body.high-contrast .list-card,
body.high-contrast .news-card,
body.high-contrast .contact-card,
body.high-contrast .official-note,
body.high-contrast .faq-card,
body.high-contrast .whatsapp-form { border-color: #0B2345; box-shadow: none; }
body.high-contrast .page-heading p,
body.high-contrast .list-content p,
body.high-contrast .faq-card p { color: #24364F; }
body.simple-mode .quick-card:not(.red):not(.orange),
body.simple-mode .featured-message,
body.simple-mode .trust-card { filter: saturate(.75); }

.news-card { overflow: hidden; margin-bottom: 14px; border-radius: 26px; box-shadow: var(--shadow-soft); }
.news-image { min-height: 172px; padding: 16px; display: flex; align-items: end; background: linear-gradient(180deg, transparent, rgba(11,35,69,.58)), url("assets/background-app.png") center 82% / cover; }
.news-image span { padding: 7px 11px; border-radius: 999px; background: var(--orange); color: #fff; text-transform: uppercase; font-weight: 800; font-size: 10px; letter-spacing: .08em; }
.news-visual {
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 17px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(135deg, var(--blue), var(--navy));
}
.news-visual span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,255,255,.16);
  font-size: 31px;
}
.news-visual b {
  max-width: 150px;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}
.news-visual-alerta { background: linear-gradient(135deg, #F58220, #B94804); }
.news-visual-campanha { background: linear-gradient(135deg, #184A8C, #0B2345); }
.news-visual-clima { background: linear-gradient(135deg, #2D6EC2, #0EA5E9); }
.news-visual-prevencao { background: linear-gradient(135deg, #16A34A, #0F6B33); }
.news-visual-informativo { background: linear-gradient(135deg, #334155, #0B2345); }
.news-body { padding: 18px; }
.news-body small { color: #8490a3; display: block; font-size: 11px; margin-bottom: 8px; }
.news-body h2 { font-size: 20px; line-height: 1.22; margin: 6px 0 8px; letter-spacing: -.04em; }
.news-body p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.news-body .tag { float: right; }

.contact-card { display: flex; align-items: center; gap: 13px; padding: 17px; margin-bottom: 12px; color: var(--text); text-decoration: none; border-radius: 24px; box-shadow: var(--shadow-soft); }
.contact-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 18px; display: grid; place-items: center; background: #EAF1FB; font-size: 22px; }
.contact-icon.agency-logo { width: 58px; height: 58px; flex-basis: 58px; padding: 4px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.contact-icon.agency-logo img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 14px; }
.contact-card div:nth-child(2) { flex: 1; min-width: 0; }
.contact-card span, .contact-card strong, .contact-card small { display: block; }
.contact-card span { color: var(--muted); font-size: 11px; }
.contact-card strong { font-size: 19px; margin-top: 3px; letter-spacing: -.03em; }
.contact-card small { color: #8490a3; font-size: 10px; margin-top: 5px; }
.contact-card b { color: var(--blue); background: #EAF1FB; border-radius: 14px; padding: 9px 11px; font-size: 11px; }
.primary-contact { color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); border: 0; }
.primary-contact span, .primary-contact small { color: rgba(255,255,255,.72); }
.primary-contact b { color: #fff; background: var(--orange); }
.official-note { margin-top: 20px; padding: 18px; border-left: 5px solid var(--orange); }
.official-note strong { font-size: 14px; }
.official-note p { color: var(--muted); margin: 6px 0 0; font-size: 12px; line-height: 1.55; }
.app-footer { margin: 8px 16px 12px; padding: 20px 12px 28px; color: #7a8798; border-top: 1px solid rgba(216,222,232,.8); text-align: center; }
.app-footer span, .app-footer strong { display: block; }
.app-footer span { text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.app-footer strong { margin-top: 7px; color: var(--navy); font-size: 11px; }

.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(568px, calc(100% - 24px));
  height: 82px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(216,222,232,.74);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(11,35,69,.16);
  backdrop-filter: blur(24px);
}
.bottom-nav button { border: 0; background: transparent; color: #7c899b; border-radius: 22px; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.bottom-nav span, .bottom-nav small { display: block; margin: auto; }
.bottom-nav span { font-size: 25px; line-height: 1.15; transition: transform .2s ease; }
.bottom-nav small { font-size: 9px; margin-top: 5px; font-weight: 700; }
.bottom-nav button.active { color: var(--orange); background: linear-gradient(180deg, #FFF4EA, #FFE7CF); font-weight: 800; }
.bottom-nav button.active span { transform: translateY(-2px) scale(1.14); }
.bottom-nav button.active::after {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  margin: 3px auto 0;
  border-radius: 999px;
  background: var(--orange);
  animation: navMarker .22s ease;
}
@keyframes navMarker { from { width: 4px; opacity: .3; } }
.floating-emergency {
  position: fixed;
  right: max(18px, calc(50% - 280px));
  bottom: 112px;
  z-index: 19;
  min-height: 44px;
  min-width: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--danger), #991B1B);
  box-shadow: 0 14px 28px rgba(220,38,38,.24);
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-emergency:active { transform: scale(.96); box-shadow: 0 8px 18px rgba(220,38,38,.20); }
.floating-emergency span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 20px;
}
.floating-emergency strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sos-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11,35,69,.44);
  backdrop-filter: blur(5px);
}
.sos-sheet {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 41;
  width: min(560px, calc(100% - 24px));
  max-height: min(84dvh, 680px);
  overflow-y: auto;
  padding: 12px 16px 18px;
  color: var(--text);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(216,222,232,.88);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(11,35,69,.26);
  transform: translate(-50%, calc(100% + 34px));
  transition: transform .24s ease;
}
.sos-sheet[aria-hidden="false"] { transform: translate(-50%, 0); }
.sos-handle { width: 44px; height: 5px; margin: 0 auto 13px; border-radius: 999px; background: #D8DEE8; }
.sos-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sos-heading h2 { margin: 3px 0 5px; font-size: 23px; letter-spacing: -.045em; }
.sos-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sos-close { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border: 0; border-radius: 15px; color: var(--text); background: #F1F5F9; }
.sos-options { display: grid; gap: 9px; }
.sos-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 11px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid #E4EAF2;
  border-radius: 20px;
  background: #fff;
}
.sos-option.primary { border-color: rgba(220,38,38,.24); background: linear-gradient(135deg, #FFF5F5, #fff); }
.sos-option > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #fff;
  background: var(--blue);
  border-radius: 15px;
}
.sos-option.primary > span { background: var(--danger); }
.sos-option div { flex: 1; min-width: 0; }
.sos-option strong, .sos-option small { display: block; }
.sos-option strong { font-size: 14px; }
.sos-option small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.sos-option b { color: var(--blue); background: #EAF1FB; border-radius: 13px; padding: 8px 10px; font-size: 10px; }
.sos-option.primary b { color: #fff; background: var(--danger); }
.sos-note { margin: 13px 3px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sos-open { overflow: hidden; }
.install-backdrop {
  position: fixed;
  inset: 0;
  z-index: 42;
  background: rgba(11,35,69,.38);
  backdrop-filter: blur(5px);
}
.install-sheet {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 43;
  width: min(520px, calc(100% - 26px));
  padding: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 0%, rgba(245,130,32,.16), transparent 28%),
    rgba(255,255,255,.97);
  border: 1px solid rgba(216,222,232,.90);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(11,35,69,.26);
  transform: translate(-50%, calc(100% + 34px));
  transition: transform .25s ease;
}
.install-sheet[aria-hidden="false"] { transform: translate(-50%, 0); }
.install-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.install-icon img { width: 54px; height: 54px; object-fit: contain; border-radius: 14px; }
.install-sheet h2 { margin: 4px 0 8px; font-size: 24px; letter-spacing: -.045em; }
.install-sheet p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.install-ios-help {
  margin-top: 13px;
  padding: 12px;
  color: #16406f;
  background: #EAF1FB;
  border: 1px solid #D5E3F5;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.45;
}
.install-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 16px;
}
.install-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  font-weight: 900;
}
#confirmInstallApp { color: #fff; background: linear-gradient(135deg, var(--orange), #C25708); }
#dismissInstallApp { padding: 0 14px; color: var(--muted); background: #F1F5F9; }
.install-open { overflow: hidden; }
.registration-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(11,35,69,.42);
  backdrop-filter: blur(6px);
}
.registration-sheet {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 45;
  width: min(540px, calc(100% - 26px));
  padding: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 4%, rgba(22,163,74,.14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(245,130,32,.15), transparent 34%),
    rgba(255,255,255,.98);
  border: 1px solid rgba(216,222,232,.92);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(11,35,69,.28);
  transform: translate(-50%, calc(100% + 34px));
  transition: transform .25s ease;
}
.registration-sheet[aria-hidden="false"] { transform: translate(-50%, 0); }
.registration-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--success), #0F6B33);
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(22,163,74,.25);
}
.registration-icon span { font-size: 34px; }
.registration-sheet h2 { margin: 4px 0 8px; font-size: 24px; letter-spacing: -.045em; }
.registration-sheet p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.registration-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 16px;
}
.registration-actions button {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  font-weight: 900;
}
#goRegistrationNow { color: #fff; background: linear-gradient(135deg, var(--orange), #C25708); }
#skipRegistrationNow { color: var(--muted); background: #F1F5F9; }
.registration-open { overflow: hidden; }
.settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(11,35,69,.40);
  backdrop-filter: blur(5px);
}
.settings-sheet {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 45;
  width: min(540px, calc(100% - 26px));
  max-height: calc(100dvh - 34px);
  overflow: auto;
  padding: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(24,74,140,.12), transparent 30%),
    rgba(255,255,255,.98);
  border: 1px solid rgba(216,222,232,.92);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(11,35,69,.28);
  transform: translate(-50%, calc(100% + 34px));
  transition: transform .25s ease;
}
.settings-sheet[aria-hidden="false"] { transform: translate(-50%, 0); }
.settings-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.push-personal-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245,130,32,.32);
  border-radius: 22px;
  background: linear-gradient(135deg, #FFF7ED, #fff);
  box-shadow: 0 12px 28px rgba(245,130,32,.12);
}
.push-personal-warning[hidden] { display: none; }
.push-personal-warning > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #C25708);
  border-radius: 16px;
}
.push-personal-warning strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}
.push-personal-warning p {
  margin: 6px 0 0;
  color: #5E6B7D;
  font-size: 12px;
  line-height: 1.45;
}
.settings-sheet.notification-only #settingsTitle::before {
  content: "Ativar notificações de alertas";
  display: block;
}
.settings-sheet.notification-only #settingsTitle {
  font-size: 0;
}
.settings-sheet.notification-only .sos-heading .eyebrow::before {
  content: "Alertas oficiais";
}
.settings-sheet.notification-only .sos-heading .eyebrow {
  font-size: 0;
}
.settings-sheet.notification-only .sos-heading p {
  font-size: 0;
}
.settings-sheet.notification-only .sos-heading p::before {
  content: "Ative os alertas para receber avisos oficiais da Defesa Civil de Cardoso em situações de chuva intensa, tempestades, baixa umidade, queimadas e outros riscos. Essa permissão é essencial para que o aplicativo avise você mesmo fechado.";
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.settings-sheet.notification-only .settings-option:not(#settingsNotifications) {
  display: none;
}
.settings-sheet.notification-only #settingsNotifications {
  min-height: 76px;
  border-color: rgba(245,130,32,.35);
  background: linear-gradient(135deg, #fff, #FFF7ED);
}
.settings-sheet.notification-only #settingsNotifications strong {
  font-size: 0;
}
.settings-sheet.notification-only #settingsNotifications strong::before {
  content: "Ativar alertas oficiais";
  font-size: 16px;
}
.settings-sheet.notification-only #settingsNotifications small {
  font-size: 0;
}
.settings-sheet.notification-only #settingsNotifications small::before {
  content: "Primeiro passo obrigatório para receber alertas no celular.";
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.settings-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 12px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #fff;
  border: 1px solid #E4EAF2;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  font: inherit;
}
.settings-option > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: 16px;
}
.settings-option strong,
.settings-option small {
  display: block;
}
.settings-option strong {
  color: var(--text);
  font-size: 14px;
}
.settings-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.settings-open { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 108px; transform: translate(-50%, 20px); z-index: 30; width: max-content; max-width: calc(100% - 32px); padding: 13px 17px; color: #fff; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 601px) {
  body { padding: 18px 0; }
  .app-shell { min-height: calc(100dvh - 36px); border-radius: 32px; overflow: hidden; }
  .topbar { border-radius: 32px 32px 0 0; }
}
@media (max-width: 420px) {
  .topbar { min-height: 158px; padding-inline: 15px; }
  .brand img { width: 60px; height: 60px; border-radius: 18px; }
  .brand strong { font-size: 18px; }
  .brand span { font-size: 14px; }
  .brand small { font-size: 11px; }
  .icon-button { width: 44px; height: 44px; border-radius: 16px; }
  .status-card { grid-template-columns: 88px 1fr; min-height: 150px; padding: 18px; }
  .status-orb { width: 88px; height: 88px; }
  .status-card p { margin-top: -26px; }
  .weather-details { grid-template-columns: repeat(2, 1fr); }
  .floating-emergency { right: 16px; bottom: 104px; }
  .trust-grid { grid-template-columns: 1fr; }
  .alert-meta-grid { grid-template-columns: 1fr; }
  .phase-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .page { padding-inline: 13px; }
  .quick-grid { gap: 10px; }
  .quick-card { min-height: 140px; padding: 15px; border-radius: 22px; }
  .registration-actions { grid-template-columns: 1fr; }
  .detail-actions, .priority-actions { grid-template-columns: 1fr; }
  .bottom-nav { width: calc(100% - 14px); }
  .floating-emergency strong { display: none; }
  .floating-emergency { min-width: 0; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
