/* Locali identity: ink, paper and paths. Shared palette: docs/brand/locali.md. */
:root {
  --locali-ink: #073e43; --locali-green: #168b78; --locali-mint: #cdefe0;
  --locali-paper: #fff9f0;  --locali-muted: #526c69;
  --font-ui: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-ui);
  color: var(--locali-ink); background: var(--locali-paper);
}
a { color: var(--locali-ink); }
:focus-visible { outline-color: var(--locali-green); }
.brand { color: var(--locali-ink); font-weight: 800; }
.brand::before { content: none; }
.brand em { font-style: normal; color: #b84635; }
.brand .line-icon { width: 30px; height: 30px; margin-right: 8px; }
.line-icon { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.account-link { display: flex; align-items: center; gap: 7px; color: var(--locali-ink); border-color: #c9dcd5; }
.muted, .loader { color: var(--locali-muted); }
.title { font-weight: 800; letter-spacing: -.8px; }
.card, .map-sheet { border-color: #dde6de; border-radius: 22px; box-shadow: 0 6px 20px #073e4308; }
.pet-icon, .profile-icon { color: var(--locali-ink); background: var(--locali-mint); border-radius: 20px; }
.pet-icon .line-icon { width: 34px; height: 34px; }
.button, .login-screen:not(.approved-react) .button { background: var(--locali-ink); border-radius: 24px; font-weight: 800; transition: background .16s, transform .16s; }
.button:hover, .login-screen:not(.approved-react) .button:hover { background: #10585b; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.secondary { background: transparent; border: 1px solid #91b6ad; color: var(--locali-ink); }
.button.secondary:hover { background: #e9f6ee; }
.field { color: var(--locali-ink); border-color: #a6beb7; border-radius: 14px; }
.field::placeholder { color: #647873; }
.pill { color: #075447; background: var(--locali-mint); }
.pill.warn { background: #ffebcd; color: #775015; }
.nav { background: #fffdf9; border-color: #d8e4da; box-shadow: 0 -4px 20px #073e4307; }
.nav a { color: var(--locali-muted); }
.nav a.active { color: var(--locali-ink); background: var(--locali-mint); }
.nav .line-icon { display: block; margin: 0 auto 3px; }
.bar i { background: var(--locali-green); border-radius: 7px 7px 0 0; }
.bar { color: var(--locali-muted); }
.bars { gap: 5px; }
.notice { background: #e4f4eb; color: #315c51; }
.error { background: #ffe6df; color: #8c3027; }
.timeline { border-left: 2px dashed #168b78; }
.map { background: #e3ecdf; border: 1px solid #d8e4da; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.diary-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:19px; }
.diary-actions .button { min-height:44px; padding:10px 16px; font-size:13px; }
.diary-period { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.diary-period label { font-weight:900; font-size:17px; }
.diary-period .period-select { width:auto; min-width:100px; max-width:45%; margin:0; }
.diary-charts .chart-card { min-width:0; margin-bottom:0; }
.diary-charts .bars { overflow-x:auto; }
.diary-charts .bar { min-width:20px; }
@media (max-width: 690px) {
  .diary-overview { padding:20px; }
  .diary-copy { max-width:none; }
  .diary-copy h2 { font-size:25px; }
  .diary-charts { grid-template-columns:1fr; gap:0; }
}
@media (max-width: 899px) {
  .shell[data-locali-route] .top { position:relative; min-height:84px; padding:5px 0 12px; }
  .shell .top .brand { font-size:22px; }
  .shell .top .brand .line-icon { width:23px; height:23px; margin-right:4px; }
  .shell .top .account-link { position:relative; z-index:1; padding:9px; border-radius:50%; }
  .shell .top .account-link span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
@media (max-width: 359px) { }

/* Honest empty states for accounts without linked pets or recent telemetry. */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
  min-height: 220px;
  margin: 18px 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px dashed #abd5c2;
  border-radius: 26px;
  background: linear-gradient(130deg, #e9f7ed, #fffdf8 78%);
}
.empty-state-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #b5dfcc;
  border-radius: 19px;
  background: #d5f2e2;
  color: var(--locali-ink);
}
.empty-state-icon .line-icon { width: 32px; height: 32px; }
.empty-state h2 { margin: 0; font-size: clamp(18px, 2vw, 23px); font-weight: 800; }
.empty-state p { max-width: 58ch; margin: 0; }
.empty-state .button { min-height: 42px; margin-top: 5px; }
.shell[data-locali-route="painel"] > .empty-state {
  min-height: 145px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 16px;
}
.shell[data-locali-route="painel"] > .empty-state .empty-state-icon { grid-row: span 3; width: 50px; height: 50px; }
.shell[data-locali-route="painel"] > .empty-state .empty-state-icon .line-icon { width: 27px; height: 27px; }
.shell[data-locali-route="painel"] > .empty-state .button { justify-self: start; }
.shell[data-locali-route="mapa"] .map.map-empty {
  height: 340px;
  max-height: none;
  min-height: 340px;
  padding: 20px;
  background: radial-gradient(circle at 82% 12%, #ffeccc, transparent 34%), linear-gradient(150deg, #e4f5e7, #eff6e9);
}
.map-empty .empty-state {
  width: min(100%, 560px);
  min-height: 0;
  margin: 0;
  text-align: left;
  background: #fffdf9e8;
  border-style: solid;
}
.shell[data-locali-route="mapa"] .map-sheet.map-sheet-empty {
  width: min(100%, 560px);
  margin: 14px 0 20px;
}
@media (max-width: 520px) {
  .shell[data-locali-route="painel"] > .empty-state { display: flex; }
  .shell[data-locali-route="mapa"] .map.map-empty { min-height: 300px; height: 300px; }
  .map-empty .empty-state { padding: 18px; }
  .map-empty .empty-state-icon { display: none; }
}


/* Route-specific continuity: every LocaliPet destination uses the same
 * surface, type and interaction vocabulary. The map itself remains owned
 * by the mapping provider and is never replaced with a decorative drawing. */
.shell[data-locali-route] {
  color: var(--locali-ink);
}
.shell[data-locali-route] .top {
  border-bottom: 1px dashed #d5e6db;
  margin-bottom: 12px;
}
.shell[data-locali-route] .title {
  margin-top: 18px;
  font-weight: 800;
  max-width: 19ch;
}
.shell[data-locali-route] .section-title {
  color: var(--locali-ink);
  font-weight: 800;
}
.shell[data-locali-route] .card {
  background: #fffdfa;
  border-color: #d9e7dc;
  box-shadow: 0 7px 22px rgb(7 62 67 / 0.055);
}
.shell[data-locali-route] .pet-card {
  min-height: 106px;
  gap: 15px;
  border-radius: 22px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.shell[data-locali-route] .pet-card:hover {
  border-color: #86cbb5;
  box-shadow: 0 9px 28px rgb(7 62 67 / 0.12);
}
.shell[data-locali-route] .pet-card:focus-visible {
  outline: 3px solid #168b78;
  outline-offset: 3px;
}
.shell[data-locali-route] .pet-copy strong {
  font-weight: 800;
  color: var(--locali-ink);
}
.shell[data-locali-route] .card-arrow {
  color: var(--locali-green);
}
.shell[data-locali-route] .button {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}
.shell[data-locali-route] .button.secondary {
  background: #eff8f1;
  border: 1px solid #8bbeb0;
  color: var(--locali-ink);
}
.shell[data-locali-route] .field:focus-visible,
.shell[data-locali-route] .account-link:focus-visible,
.nav a:focus-visible {
  outline: 3px solid #168b78;
  outline-offset: 3px;
}
.shell[data-locali-route] .notice {
  border: 1px solid #cce4d3;
  border-radius: 18px;
  line-height: 1.5;
}
.shell[data-locali-route] .error {
  border: 1px solid #f1c7bc;
  border-radius: 18px;
}
/* Pets — welcoming intro that does not replace unavailable data with samples. */
.shell[data-locali-route="pets"] .intro-notice {
  background: #e9f7eb;
  border-style: dashed;
  padding: 17px 18px;
}
.shell[data-locali-route="pets"] .pet-icon {
  background: linear-gradient(145deg, #cdefe0, #e8f7e8);
  border: 1px solid #b6decd;
}
/* Painel — communications, not a fabricated live tracking signal. */
.shell[data-locali-route="painel"] .stats {
  gap: 12px;
}
.shell[data-locali-route="painel"] .stat {
  background: #e8f6ec;
  border: 1px solid #d3e7d9;
  border-radius: 21px;
}
.shell[data-locali-route="painel"] .stat:nth-child(2) {
  background: #fff1db;
  border-color: #f1dfc5;
}
.shell[data-locali-route="painel"] .stat:nth-child(4) {
  background: #fcece5;
  border-color: #f0dcd3;
}
.shell[data-locali-route="painel"] .stat strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.shell[data-locali-route="painel"] .chart-card {
  border-radius: 22px;
  overflow: visible;
}
.shell[data-locali-route="painel"] .bars {
  border-color: #d5e5dd;
}
.shell[data-locali-route="painel"] .bar i {
  background: linear-gradient(#48b49d, #168b78);
}
/* Map and lost-pet search — readability around the real, interactive map. */
.shell[data-locali-route="mapa"] .map,
.shell[data-locali-route="busca"] .map {
  border: 1px solid #cbded3;
  border-radius: 23px;
  background: #e4eee4;
  isolation: isolate;
}
.shell[data-locali-route="mapa"] .map-sheet {
  border-color: #d3e7db;
  background: #fffdfa;
}
.shell[data-locali-route="mapa"] .map-sheet h2 {
  font-weight: 800;
}
.shell[data-locali-route="busca"] .timeline {
  border-left: 2px dashed var(--locali-green);
}
.shell[data-locali-route="busca"] .notice {
  color: #7b3d31;
  background: #ffede5;
  border-color: #f1d1c5;
}
/* Protection and account — friendly but transparent security controls. */
.shell[data-locali-route="protecao"] .card,
.shell[data-locali-route="configuracoes"] .card,
.shell[data-locali-route="busca"] .card {
  padding: clamp(16px, 4vw, 22px);
}
.shell[data-locali-route="protecao"] .card strong,
.shell[data-locali-route="configuracoes"] .card strong {
  color: var(--locali-ink);
  font-weight: 800;
}
.shell[data-locali-route="configuracoes"] .profile-card {
  background: #e9f7ee;
  border-color: #cee8d9;
}
.shell[data-locali-route="configuracoes"] .access-card {
  border-style: dashed;
}
.nav a {
  border-radius: 16px;
  transition: background-color .15s ease, color .15s ease;
}
.nav a.active {
  background: #cdefe0;
  color: #073e43;
}
.nav a[aria-current="page"] .line-icon {
  stroke-width: 2;
}
@media (max-width: 420px) {
  .shell[data-locali-route] .title { max-width: none; }
  .shell[data-locali-route] .card { padding: 15px; }
  .shell[data-locali-route="painel"] .stat { padding: 12px; }
  .shell[data-locali-route] .pet-card { gap: 10px; }
  .shell[data-locali-route] .pet-icon { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell[data-locali-route] .pet-card,
  .nav a { transition: none; }
  .shell[data-locali-route] .pet-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .shell[data-locali-route] .card,
  .shell[data-locali-route] .notice,
  .shell[data-locali-route] .stat { border: 1px solid CanvasText; }
}

/* Locali PWA 2026 — unified iOS-inspired glass navigation.
   The frosted surface is navigational chrome, not an imitation of map data.
   Never modify map tiles, geolocation, operational positions, or auth. */
:root {
  --locali-glass-surface: rgb(253 255 250 / .54);
  --locali-glass-border: rgb(255 255 255 / .78);
  --locali-glass-shadow: 0 10px 36px rgb(7 62 67 / .14), inset 0 1px 0 rgb(255 255 255 / .76);
  --locali-glass-active: rgb(205 239 224 / .78);
}

/* Mobile PWA: floating pill, five working destinations, reduced icons. */
@media (max-width: 899px) {
  .shell {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
  .nav {
    position: fixed;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    height: 66px;
    max-width: 580px;
    margin-inline: auto;
    padding: 5px 6px;
    transform: none;
    border: 1px solid var(--locali-glass-border);
    border-radius: 999px;
    background: var(--locali-glass-surface);
    box-shadow: var(--locali-glass-shadow);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    isolation: isolate;
  }
  .nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 54px;
    padding: 5px 1px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #365c5b;
    font-size: 10px;
    line-height: 1.1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
  }
  .nav a .line-icon {
    display: block;
    width: 21px;
    height: 21px;
    margin: 0;
    stroke-width: 1.85;
  }
  .nav a strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav a.active,
  .nav a[aria-current="page"] {
    background: var(--locali-glass-active);
    border-color: rgb(255 255 255 / .65);
    color: #073e43;
    box-shadow: 0 2px 9px rgb(7 62 67 / .07), inset 0 1px rgb(255 255 255 / .7);
  }
  .nav a:focus-visible {
    outline: 3px solid #168b78;
    outline-offset: 2px;
  }
  .shell[data-locali-route="mapa"] .map {
    height: max(430px, calc(100dvh - 265px));
    max-height: 760px;
    min-height: 0;
  }
  .shell[data-locali-route="mapa"] .map-sheet {
    z-index: 2;
  }
  .shell[data-locali-route="mapa"] .title + .muted {
    max-width: 38ch;
  }
  .shell[data-locali-route="mapa"],
  .shell[data-locali-route="busca"] {
    background: linear-gradient(160deg, #fff9f0, #eff8f0 92%);
  }
}

/* The web version uses the same menu links in a sidebar.
   Companion artwork appears only at the top header, never repeated in nav. */
@media (min-width: 900px) {
  body:has(.shell) {
    background: linear-gradient(125deg, #f5faf4, #fff9f0 60%);
  }
  .shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 1420px;
    padding: 22px 30px 55px 266px;
  }
  .shell .top {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 104px;
    margin-bottom: 22px;
    padding: 14px 210px 14px 28px;
    overflow: hidden;
    border: 1px solid #deeee5;
    border-radius: 27px;
    background:
      radial-gradient(circle at 82% 6%, rgb(255 210 143 / .45), transparent 23%),
      linear-gradient(110deg, #fffdf8 35%, #e7f7ec);
    box-shadow: 0 9px 30px rgb(7 62 67 / .065);
    isolation: isolate;
  }
  .shell .top .brand {
    position: relative;
    z-index: 1;
    font-size: clamp(22px, 2.3vw, 29px);
  }
  .shell .top .account-link {
    position: relative;
    z-index: 1;
    margin-left: auto;
    white-space: nowrap;
    border-radius: 999px;
  }
  .nav {
    position: fixed;
    z-index: 15;
    top: 34px;
    bottom: auto;
    left: max(20px, calc((100vw - 1420px) / 2 + 25px));
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 208px;
    height: auto;
    padding: 14px 12px;
    transform: none;
    border: 1px solid #d8e7dc;
    border-radius: 23px;
    background: #fffdf9e8;
    box-shadow: 0 12px 38px rgb(7 62 67 / .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 48px;
    padding: 9px 12px;
    border: 0;
    border-radius: 14px;
    color: #345c59;
    font-size: 13px;
    text-align: left;
  }
  .nav a .line-icon {
    flex: none;
    width: 21px;
    height: 21px;
    margin: 0;
    stroke-width: 1.85;
  }
  .nav a strong { font-size: 13px; }
  .nav a.active, .nav a[aria-current="page"] {
    color: #fff;
    background: #073e43;
    box-shadow: 0 5px 14px rgb(7 62 67 / .14);
  }
  .nav a:focus-visible { outline: 3px solid #168b78; outline-offset: 2px; }
  .shell[data-locali-route="mapa"] .map,
  .shell[data-locali-route="busca"] .map {
    height: clamp(510px, 66vh, 830px);
    min-height: 450px;
  }
  .shell .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .shell .stat { min-width: 0; }
  .shell .chart-card,
  .shell .card { max-width: 1100px; }
  .shell .map-sheet {
    max-width: 620px;
    margin: -26px auto 24px;
  }
}
@media (min-width: 900px) and (max-width: 1090px) {
  .shell { padding-right: 18px; padding-left: 232px; }
  .nav { width: 192px; left: 16px; }
  .shell .top { padding-left: 20px; padding-right: 146px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (max-width: 899px) { .nav { background: #f6faf4f2; } }
}
@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: #f7faf5 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
@media (prefers-contrast: more) {
  .nav { border-color: #285450; }
  .nav a.active { outline: 2px solid #073e43; }
}
@media (prefers-reduced-motion: reduce) {
  .nav a { transition: none; }
}
@media print {
  .nav { display: none !important; }
  .shell { padding: 0 !important; }
}
/* ONE login layout for LocaliPet, mirroring the LocaliTracker design system.
   Mobile: art consumes the available space and form remains inside 100dvh.
   Only exceptional states (keyboard, MFA, recovery, zoom) may scroll the FORM. */
html:has(.login-screen:not(.approved-react)),
body:has(.login-screen:not(.approved-react)) {
  overflow: hidden;
}
#app:has(> .login-screen:not(.approved-react)) {
  height: 100dvh;
  overflow: hidden;
}
.login-screen:not(.approved-react) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1100px;
  min-height: 0;
  height: 100svh;
  height: 100dvh;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--locali-paper);
  font-family: var(--font-ui);
}
.login-screen:not(.approved-react) .login-art {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--locali-paper) url('/pettycare-login-family.avif') center center / min(94%, 560px) auto no-repeat;
}
.login-screen:not(.approved-react) .login-art::after {
  content: none;
}
.login-screen:not(.approved-react) .login-brand {
  position: absolute;
  z-index: 2;
  top: calc(24px + env(safe-area-inset-top));
  left: 28px;
  display: inline-flex;
  color: var(--locali-ink);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.7px;
}
.login-screen:not(.approved-react) .login-brand .line-icon {
  width: 27px;
  height: 27px;
}
.login-screen:not(.approved-react) .login {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  margin: 0 auto;
  padding: clamp(18px, 3.8vh, 40px) clamp(22px, 4vw, 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--locali-paper);
  scrollbar-width: none;
}
.login-screen:not(.approved-react) .login::-webkit-scrollbar { display: none; }
.login-screen:not(.approved-react) .title {
  margin: 0 0 3px;
  color: var(--locali-ink);
  font-size: clamp(27px, 2.7vw, 36px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.7px;
}
.login-screen:not(.approved-react) .title + .muted {
  margin: 0 0 16px;
  color: var(--locali-muted);
  font-size: 14px;
  line-height: 1.36;
}
.login-screen:not(.approved-react) .login-label {
  display: block;
  margin: 10px 0 5px;
  color: var(--locali-ink);
  font-size: 13px;
  font-weight: 800;
}
.login-screen:not(.approved-react) .field {
  display: block;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #b7cec7;
  border-radius: 13px;
  color: var(--locali-ink);
  background: #fff;
  font-size: 16px; /* avoid iPhone input zoom */
}
.login-screen:not(.approved-react) .field:focus {
  border-color: var(--locali-green);
  outline: 2px solid #168b7840;
  outline-offset: 0;
}
.login-screen:not(.approved-react) .password-box { position: relative; }
.login-screen:not(.approved-react) .password-box .field { padding-right: 54px; }
.login-screen:not(.approved-react) .password-toggle {
  position: absolute;
  inset: 1px 1px 1px auto;
  width: 48px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--locali-muted);
  font-size: 22px;
}
.login-screen:not(.approved-react) .forgot-link {
  display: block;
  min-height: 40px;
  margin: 0;
  padding: 11px 0 6px;
  color: var(--locali-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.login-screen:not(.approved-react) .button {
  min-height: 48px;
  margin: 3px 0 0;
  padding: 10px 16px;
  border-radius: 24px;
  background: var(--locali-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.login-screen:not(.approved-react) .button:disabled { opacity: 1; background: #466c6b; }
.login-screen:not(.approved-react) .login-preview {
  display: table;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 3px 11px;
  border-radius: 20px;
  background: #e6ede3;
  color: #52645c;
  font-size: 11px;
  text-align: center;
}
.login-screen:not(.approved-react) .login-feedback:empty { display: none; }
.login-screen:not(.approved-react) .error { margin: 0 0 7px; padding: 8px 10px; font-size: 13px; }
.login-screen:not(.approved-react) .mfa-box[hidden] { display: none; }
.login-screen:not(.approved-react).login-recovery .login .brand { display: none; }

@media (max-width: 759px) {
  .login-screen:not(.approved-react) {
    display: flex;
    flex-direction: column;
    max-width: none;
    min-height: 0;
    height: 100svh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }
  .login-screen:not(.approved-react) .login-brand {
    top: calc(12px + env(safe-area-inset-top));
    left: 20px;
    font-size: 25px;
  }
  .login-screen:not(.approved-react) .login-art {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    width: 100%;
    background-position: center 65%;
    background-size: auto min(95%, 320px);
  }
  .login-screen:not(.approved-react) .login {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: none;
    max-height: 100%;
    margin: 0;
    padding: 13px 21px calc(9px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 24px rgb(7 62 67 / .035);
    overflow-x: hidden;
    overflow-y: auto;
  }
  .login-screen:not(.approved-react) .title { font-size: clamp(24px, 6.7vw, 29px); line-height: 1.12; }
  .login-screen:not(.approved-react) .title + .muted { margin-bottom: 9px; font-size: 13px; line-height: 1.28; }
  .login-screen:not(.approved-react) .login-label { margin: 7px 0 3px; font-size: 12px; }
  .login-screen:not(.approved-react) .field { height: 43px; min-height: 43px; }
  .login-screen:not(.approved-react) .forgot-link { min-height: 33px; padding: 8px 0 4px; font-size: 12px; }
  .login-screen:not(.approved-react) .button { min-height: 45px; margin-top: 2px; font-size: 15px; }
  .login-screen:not(.approved-react) .login-preview { margin-top: 5px; font-size: 10px; }
  .login-screen:not(.approved-react).login-mfa .login-art,
  .login-screen:not(.approved-react).login-recovery .login-art { min-height: 0; }
  /* Focus + visual keyboard: keep every required action reachable in form. */
  .login-screen:not(.approved-react):focus-within .login-art { flex: 0 1 110px; }
  .login-screen:not(.approved-react):focus-within .login { flex: 1 1 auto; }
}

@media (max-width: 759px) and (max-height: 670px) {
  .login-screen:not(.approved-react) .login { padding-top: 10px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .login-screen:not(.approved-react) .title + .muted { margin-bottom: 5px; }
  .login-screen:not(.approved-react) .login-label { margin-top: 5px; }
}
@media (max-width: 759px) and (max-height: 540px) {
  .login-screen:not(.approved-react) .login-brand,
  .login-screen:not(.approved-react) .login-art { display: none; }
  .login-screen:not(.approved-react) .login {
    flex: 1 1 auto;
    margin: 0;
    border-radius: 0;
  }
}
@media (min-width: 760px) and (max-height: 580px) {
  .login-screen:not(.approved-react) .login { max-height: 100dvh; padding-block: 12px; }
}


/* Shared compact application composition: mobile and desktop use the same cards. */
.shell[data-locali-route] { background:var(--locali-paper); max-width:920px; }
.shell[data-locali-route] .top { min-height:58px; margin-bottom:8px; padding:0 0 12px; border-bottom:1px solid #d7e6dc; }
.shell[data-locali-route] .top::after { display:none; }
.shell[data-locali-route] .top .brand { font-size:24px; }
.shell[data-locali-route] .page-heading { position:relative; padding:8px 115px 18px 0; min-height:104px; margin-bottom:8px; }
.shell[data-locali-route] .title { margin:9px 0 6px; font-size:clamp(25px,5.7vw,32px); line-height:1.15; letter-spacing:-.6px; }
.shell[data-locali-route] .title + .muted { margin:0; font-size:14px; line-height:1.5; }
.shell[data-locali-route] .card { border-radius:20px; padding:16px; box-shadow:0 4px 16px #073e4306; }

.shell[data-locali-route] .pet-card { min-height:88px; margin:10px 0; gap:12px; }
.shell[data-locali-route] .pet-icon { width:56px; height:56px; border-radius:18px; overflow:hidden; flex-shrink:0; }
.pet-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.shell[data-locali-route] .pet-copy { min-width:0; gap:5px; }
.shell[data-locali-route] .pet-copy strong { overflow-wrap:anywhere; }
.shell[data-locali-route] .pet-copy small { display:block; margin:4px 0 6px; font-size:12px; color:var(--locali-muted); }
.shell[data-locali-route] .section-title { margin:14px 0 10px; font-size:18px; }
.shell[data-locali-route] .button { min-height:44px; padding:10px 15px; font-size:14px; }
.pill { display:inline-flex; width:fit-content; align-items:center; gap:6px; padding:4px 10px; font-size:11px; line-height:1.4; font-weight:800; border-radius:20px; }
.pill::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }
.pill.neutral { color:#536976; background:#ecf0f2; }
.text-link { display:inline-flex; align-items:center; min-height:44px; font-size:13px; font-weight:800; color:#126a5e; text-decoration:none; }
.shell[data-locali-route] .diary-overview { display:grid; grid-template-columns:56px minmax(0,1fr); gap:12px; padding:16px; margin:0 0 20px; border-radius:22px; background:#e9f5ed; }
.shell[data-locali-route] .diary-copy { max-width:none; }
.shell[data-locali-route] .diary-copy h2 { font-size:21px; margin:5px 0 8px; }
.shell[data-locali-route] .diary-copy p { font-size:13px; line-height:1.5; margin-bottom:10px; }
.shell[data-locali-route] .diary-actions { gap:8px; margin-top:12px; }
.shell[data-locali-route] .diary-actions .button { font-size:12px; padding:9px 12px; }
.shell[data-locali-route] .diary-period { gap:10px; margin-bottom:10px; }
.shell[data-locali-route] .diary-period label { font-size:15px; font-weight:800; }
.shell[data-locali-route] .diary-period .period-select { min-height:44px; padding:7px 12px; border:1px solid #b5cec5; border-radius:14px; background:#fffdfa; color:var(--locali-ink); font-size:13px; font-weight:800; }
.shell[data-locali-route="painel"] .stats { gap:10px; }
.shell[data-locali-route="painel"] .stat { min-height:90px; padding:12px; border-radius:17px; }
.shell[data-locali-route="painel"] .stat span { font-size:12px; }
.shell[data-locali-route="painel"] .stat strong { font-size:18px; line-height:1.3; margin-top:8px; overflow-wrap:anywhere; }
.shell[data-locali-route] .empty-state { min-height:0; margin:14px 0; padding:18px; gap:9px; border-radius:20px; background:#f0f7ed; }
.shell[data-locali-route] .empty-state h2 { font-size:18px; }
.shell[data-locali-route] .empty-state p { font-size:14px; line-height:1.5; }
.shell[data-locali-route] .empty-state-icon { width:42px; height:42px; border-radius:14px; }
.shell[data-locali-route] .empty-state-icon .line-icon { width:24px; height:24px; }
.diary-timeline h2 { margin:0; font-size:18px; }
.diary-timeline > .muted { font-size:12px; margin:5px 0 15px; }
.pet-clue-list { list-style:none; padding:0; margin:0; }
.pet-clue { position:relative; display:flex; gap:12px; padding-bottom:18px; }
.pet-clue:not(:last-child)::after { content:''; position:absolute; left:17px; top:34px; bottom:0; border-left:2px dashed #b4d5c5; }
.clue-dot { width:36px; height:36px; border-radius:50%; background:#d8f0e3; display:grid; place-items:center; flex:none; }
.clue-dot .line-icon { width:20px; height:20px; }
.pet-clue-stop .clue-dot { background:#fff0ce; }
.pet-clue time { display:block; font-size:11px; font-weight:800; color:#60786f; margin-bottom:3px; }
.pet-clue strong { display:block; font-size:14px; }
.pet-clue .muted { font-size:12px; }
/* Real map underneath its compact identity sheet and controls. */
.pet-map-stage { position:relative; isolation:isolate; margin:0 0 14px; }
.shell[data-locali-route="mapa"] .page-heading { min-height:84px; padding-bottom:10px; }
.shell[data-locali-route="mapa"] .map { height:clamp(390px,62dvh,620px); margin:0; border-radius:24px; }
.shell[data-locali-route="mapa"] .map-sheet { position:absolute; z-index:2; top:12px; left:12px; right:12px; margin:0; padding:12px; display:flex; align-items:center; gap:12px; border-radius:18px; background:#fffefaef; box-shadow:0 4px 18px #073e4314; }
.shell[data-locali-route="mapa"] .map-sheet::before { display:none; }
.shell[data-locali-route="mapa"] .map-sheet .pet-avatar { float:none; margin:0; }
.shell[data-locali-route="mapa"] .map-sheet h2 { margin:0 0 4px; font-size:19px; overflow-wrap:anywhere; }
.shell[data-locali-route="mapa"] .map-sheet .muted { margin:5px 0 0; font-size:11px; }
.pet-map-controls { position:absolute; z-index:2; right:12px; bottom:60px; display:grid; gap:9px; }
.shell[data-locali-route="mapa"] .map-trail { position:absolute; z-index:2; bottom:28px; left:12px; background:#fffefa; box-shadow:0 3px 10px #073e431a; font-size:12px; }
.map-page-actions .button { flex:1; text-align:center; }
.shell[data-locali-route="mapa"] .is-empty { display:flex; flex-direction:column; }
.shell[data-locali-route="mapa"] .is-empty .map-sheet { position:static; order:-1; margin:0 0 12px; }
.shell[data-locali-route="mapa"] .is-empty .map { height:auto; min-height:240px; padding:14px; background:#edf5e9; }
.shell[data-locali-route="mapa"] .map-empty .empty-state { margin:0; background:#fffdfa; border:0; }
.pet-identity { display:flex; align-items:center; gap:12px; }
.pet-identity h2 { font-size:20px; margin:0 0 6px; overflow-wrap:anywhere; }
.protection-card { text-align:center; }
.protection-emblem { display:grid; place-items:center; margin:0 auto 12px; width:56px; height:56px; border-radius:18px; background:#d8f0e3; }
.protection-emblem .line-icon { width:30px; height:30px; }
.protection-card > strong { display:block; font-size:19px; }
.protection-card > p { max-width:340px; margin:10px auto 18px; font-size:14px; }
.protection-card .actions { display:flex; gap:8px; margin-top:14px; }
.protection-card .actions .button { flex:1; }
.shell[data-locali-route="configuracoes"] .profile-card { padding:16px; min-height:92px; }
.profile-card strong,.profile-card span { overflow-wrap:anywhere; }
.account-password summary { cursor:pointer; min-height:44px; padding:10px 0; font-weight:800; }
.shell[data-locali-route] .account-password > form { box-shadow:none; border:0; padding:8px 0 0; margin:0; background:transparent; }
.account-password form h2 { display:none; }
.account-password label { font-size:13px; font-weight:700; }
@media (max-width:899px) {
  .shell[data-locali-route] { padding:calc(10px + env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom)); }
  .nav { height:66px; padding:5px; bottom:calc(10px + env(safe-area-inset-bottom)); border:1px solid #ffffffd9; background:#fffefaeb; box-shadow:0 5px 22px #073e4312; }
  @supports ((backdrop-filter:blur(16px)) or (-webkit-backdrop-filter:blur(16px))) { .nav { background:#fffefaad; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); } }
  .nav a { min-height:52px; padding:5px 2px; }
  .nav a .line-icon { width:22px; height:22px; }
  .nav a strong { font-size:10px; }
}
@media (max-width:359px) {
  .shell[data-locali-route] { padding-inline:12px; }
  .shell[data-locali-route] .page-heading { padding-right:85px; }
  .shell[data-locali-route] .page-heading::after { width:80px; height:70px; }
  .shell[data-locali-route] .diary-overview { grid-template-columns:44px minmax(0,1fr); gap:9px; padding:12px; }
  .shell[data-locali-route] .diary-overview .pet-avatar { width:44px; height:44px; }
  .shell[data-locali-route] .diary-actions { margin-left:-53px; padding-top:10px; }
}


/* Glass surfaces. Opaque fallback is the default; translucency is progressive. */
:root {
  --pet-card-surface: #f6faf7;
  --pet-card-border: rgb(255 255 255 / .92);
  --pet-card-shadow: 0 8px 28px rgb(7 62 67 / .07), inset 0 1px 0 rgb(255 255 255 / .96), inset 0 -1px 0 rgb(255 255 255 / .32);
  --pet-card-blur: none;
}
body:has(.shell[data-locali-route]) {
  background:
    radial-gradient(ellipse at 8% 18%, #c2e8dc 0, transparent 52%),
    radial-gradient(ellipse at 100% 55%, #f6ddd0 0, transparent 50%),
    radial-gradient(ellipse at 20% 95%, #d7e9f1 0, transparent 48%), #f7f8f2;
  background-attachment: fixed;
}
.shell[data-locali-route] { background: transparent; }
.brand { gap: 0; }
.brand::before { content: none; }
.shell[data-locali-route] .top { border-bottom-color: rgb(7 62 67 / .08); }
.shell[data-locali-route] .top .brand { font-size: 26px; letter-spacing: -.9px; }
.shell[data-locali-route] .account-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 8px; border-radius: 50%;
  background: var(--pet-card-surface); border: 1px solid var(--pet-card-border);
  box-shadow: var(--pet-card-shadow);
  backdrop-filter: var(--pet-card-blur); -webkit-backdrop-filter: var(--pet-card-blur);
}
.shell[data-locali-route] .account-link .line-icon { width: 28px; height: 28px; }
.shell[data-locali-route] .account-link span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
/* Match every production card, including the floating map identity. The report retains paper styling. */
.shell[data-locali-route] :is(.card, .diary-overview, .stat, .empty-state, .map-sheet),
.shell[data-locali-route="mapa"] .map-empty .empty-state,
.shell[data-locali-route="mapa"] .map-sheet {
  background: var(--pet-card-surface);
  border: 1px solid var(--pet-card-border);
  box-shadow: var(--pet-card-shadow);
  backdrop-filter: var(--pet-card-blur); -webkit-backdrop-filter: var(--pet-card-blur);
}
.shell[data-locali-route] :is(.card, .diary-overview, .stat, .empty-state, .map-sheet) { color: var(--locali-ink); }
.shell[data-locali-route] :is(.muted, .stat > span, .diary-copy p) { color: #425e5b; }
.shell[data-locali-route] :is(.pet-icon, .profile-icon, .protection-emblem) {
  background: rgb(205 239 224 / .48); border: 1px solid rgb(255 255 255 / .75);
  box-shadow: inset 0 1px 0 #ffffffb3;
}
.shell[data-locali-route] .profile-icon .line-icon { width: 32px; height: 32px; }
.shell[data-locali-route] .account-password > form {
  background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.shell[data-locali-route] .button.secondary { background: rgb(255 255 255 / .18); border-color: rgb(7 62 67 / .24); }
.shell[data-locali-route] .button.secondary:hover { background: rgb(255 255 255 / .5); }
.shell[data-locali-route] ~ .nav {
  background: var(--pet-card-surface); border-color: var(--pet-card-border);
  box-shadow: var(--pet-card-shadow);
  backdrop-filter: var(--pet-card-blur); -webkit-backdrop-filter: var(--pet-card-blur);
}
.shell[data-locali-route] ~ .nav a.active { background: rgb(183 226 208 / .55); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8); }
.shell[data-locali-route] ~ .nav .line-icon { stroke-width: 1.6; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --pet-card-surface: linear-gradient(135deg, rgb(255 255 255 / .55), rgb(255 255 255 / .2));
    --pet-card-blur: blur(20px) saturate(135%);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --pet-card-surface: #f8fbf8; --pet-card-border: #9ab2a9; --pet-card-blur: none; }
  body:has(.shell[data-locali-route]) { background: #f7f8f2; }
}
@media print {
  :root { --pet-card-surface: #fff; --pet-card-border: #b7c8c2; --pet-card-blur: none; --pet-card-shadow: none; }
  body:has(.shell[data-locali-route]) { background: #fff; }
}

 
/* LocaliPet 2026: transparent glass, viewport-fit map and animated story scenes. */
:root {
  --pet-card-surface: linear-gradient(135deg, rgb(255 255 255 / .33), rgb(255 255 255 / .10));
  --pet-card-border: rgb(255 255 255 / .70);
  --pet-card-shadow: 0 8px 26px rgb(7 62 67 / .065), inset 0 1px 0 rgb(255 255 255 / .68);
  --pet-card-blur: blur(20px) saturate(145%);
}
.shell[data-locali-route] :is(.card, .diary-overview, .stat, .empty-state, .map-sheet, .qr-validation, .qr-studio__preview, .qr-validation__check, .qr-validation__result),
.shell[data-locali-route="configuracoes"] .profile-card,
.shell[data-locali-route="mapa"] .map-sheet {
  background: var(--pet-card-surface);
  border-color: var(--pet-card-border);
  box-shadow: var(--pet-card-shadow);
  backdrop-filter: var(--pet-card-blur);
  -webkit-backdrop-filter: var(--pet-card-blur);
}
.shell[data-locali-route] :is(.account-link, .map-control, .qr-validation__metric) {
  background: rgb(255 255 255 / .24);
  border-color: var(--pet-card-border);
  backdrop-filter: var(--pet-card-blur);
  -webkit-backdrop-filter: var(--pet-card-blur);
}
.shell[data-locali-route] .stat:nth-child(2) { background: rgb(255 232 182 / .23); }
.shell[data-locali-route] .stat:nth-child(4) { background: rgb(255 214 201 / .23); }
.shell[data-locali-route] ~ .nav {
  background: var(--pet-card-surface);
  border-color: var(--pet-card-border);
  box-shadow: var(--pet-card-shadow);
  backdrop-filter: var(--pet-card-blur);
  -webkit-backdrop-filter: var(--pet-card-blur);
}
.shell[data-locali-route] ~ .nav a.active,
.shell[data-locali-route] ~ .nav a[aria-current="page"] {
  background: rgb(190 237 218 / .32);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55);
}
/* Route-specific original vignettes: same delicate character as the report,
   but new scenes, never its header or map. Tiny, compositor-only motion. */
.shell[data-locali-route] .page-heading::after {
  transform-origin: 50% 90%;
  animation: localipet-story-float 5.8s ease-in-out infinite;
}
@keyframes localipet-story-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -3px, 0) rotate(1deg); }
}
@media (max-width: 899px) {
  /* The page and the fixed floating dock fit in one dynamic viewport.
     Map gestures (pan/zoom) stay enabled; only document scrolling is locked. */
  html:has(.shell[data-locali-route="mapa"]),
  body:has(.shell[data-locali-route="mapa"]) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  .shell[data-locali-route="mapa"] {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .shell[data-locali-route="mapa"] :is(.top, .page-heading, .map-page-actions) {
    flex-shrink: 0;
  }
  .shell[data-locali-route="mapa"] .top { min-height: 52px; margin-bottom: 4px; padding-bottom: 7px; }
  .shell[data-locali-route="mapa"] .page-heading {
    min-height: 81px;
    margin: 0 0 4px;
    padding-top: 4px;
    padding-bottom: 6px;
  }
  .shell[data-locali-route="mapa"] .page-heading::after {
    width: 97px;
    height: 72px;
    bottom: 5px;
  }
  .shell[data-locali-route="mapa"] .pet-map-stage {
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
  }
  .shell[data-locali-route="mapa"] .pet-map-stage .map {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    border-radius: 20px;
  }
  .shell[data-locali-route="mapa"] .map-sheet {
    top: 10px;
    right: 10px;
    left: 10px;
    gap: 10px;
    padding: 9px;
  }
  .shell[data-locali-route="mapa"] .map-sheet .pet-avatar {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
  }
  .shell[data-locali-route="mapa"] .map-sheet h2 { font-size: 17px; }
  .shell[data-locali-route="mapa"] .map-sheet .muted { font-size: 10px; line-height: 1.3; }
  .shell[data-locali-route="mapa"] .pet-map-controls { right: 10px; bottom: 40px; }
  .shell[data-locali-route="mapa"] .map-page-actions {
    gap: 8px;
    margin: 9px 0 0;
  }
  .shell[data-locali-route="mapa"] .map-page-actions .button {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .shell[data-locali-route="mapa"] > :is(.footnote, .notice) {
    flex: 0 0 auto;
    max-height: 30px;
    overflow: hidden;
    margin: 3px 0 0;
    font-size: 10px;
    line-height: 1.3;
  }
  /* Missing location/error state remains visible instead of collapsing. */
  .shell[data-locali-route="mapa"] .pet-map-stage.is-empty { display: flex; flex-direction: column; }
  .shell[data-locali-route="mapa"] .pet-map-stage.is-empty > .map {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
  .shell[data-locali-route="mapa"] .pet-map-stage.is-empty .map-sheet {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 0 0 8px;
  }
}
@media (max-width: 899px) and (max-height: 680px) {
  .shell[data-locali-route="mapa"] {
    padding-top: calc(3px + env(safe-area-inset-top));
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .shell[data-locali-route="mapa"] .top { min-height: 43px; }
  .shell[data-locali-route="mapa"] .page-heading { min-height: 63px; }
  .shell[data-locali-route="mapa"] .page-heading::after { width: 76px; height: 54px; }
  .shell[data-locali-route="mapa"] .title { font-size: 23px; }
  .shell[data-locali-route="mapa"] .title + .muted { font-size: 12px; }
  .shell[data-locali-route="mapa"] .map-sheet .pet-avatar { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell[data-locali-route] .page-heading::after { animation: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --pet-card-surface: #f8fbf8; --pet-card-border: #9ab2a9; --pet-card-blur: none; }
}
@media print {
  .shell[data-locali-route] .page-heading::after { animation: none; }
  :root { --pet-card-surface: #fff; --pet-card-border: #c3d4cd; --pet-card-blur: none; }
}




/* LocaliPet — premium multipet UI. Replaces the previous storyboard-specific
   CSS rather than stacking another competing set of illustrative themes. */
:root {
  --pet-card-surface:linear-gradient(132deg, rgb(255 255 255 / .88), rgb(255 253 248 / .73) 65%, rgb(255 241 229 / .64));
  --pet-card-border:rgb(255 255 255 / .84);
  --pet-card-shadow:0 12px 35px rgb(12 70 69 / .075), inset 0 1px rgb(255 255 255 / .9);
  --pet-card-blur:blur(20px) saturate(135%);
  --pet-deep:#073e43;
  
  
  
}
body:has(.shell[data-locali-route]) {
  color:var(--pet-deep);
  background:radial-gradient(ellipse at 6% 13%,#e2f5ee 0,transparent 53%),radial-gradient(ellipse at 95% 65%,#fbede2 0,transparent 56%),#f8fbf5;
}
.shell[data-locali-route] {
  max-width:1100px;
  color:var(--pet-deep);
  background:transparent;
}
.shell[data-locali-route] .top {
  z-index:5;
  position:relative;
  min-height:55px;
  border:0;
  padding:3px 0 10px;
  margin-bottom:3px;
}
.shell[data-locali-route] .top::after {display:none}
.shell[data-locali-route] .top .brand {
  color:var(--pet-deep);
  font-family: var(--font-ui);
  font-size:25px;
  font-weight:900;
  letter-spacing:-1.2px;
}
.shell[data-locali-route] .top .brand::before {display:none;content:none}
.shell[data-locali-route] .top .brand em {color:#e65e58;font-style:normal}
.shell[data-locali-route] .account-link {
  display:grid;
  place-items:center;
  width:43px;
  min-width:43px;
  height:43px;
  padding:7px;
  border:1px solid rgb(255 255 255 / .85);
  border-radius:50%;
  background:rgb(255 255 255 / .64);
  box-shadow:0 4px 18px rgb(7 62 67 / .09);
  color:var(--pet-deep);
  backdrop-filter:blur(14px);
}
.shell[data-locali-route] .account-link .line-icon {width:26px;height:26px}
.shell[data-locali-route] .account-link span {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.shell[data-locali-route] .page-heading {
  isolation:isolate;
  position:relative;
  min-height:92px;
  padding:12px 0 15px;
  margin:0 0 12px;
  background:none;
}
.shell[data-locali-route] .page-heading::after {display:none}
.shell[data-locali-route] .page-heading .title {
  position:relative;
  z-index:1;
  font-size:clamp(26px,5.7vw,34px);
  font-weight:900;
  line-height:1.12;
  letter-spacing:-.95px;
  margin:0 0 7px;
  color:var(--pet-deep);
}
.shell[data-locali-route] .page-heading .muted {
  position:relative;
  z-index:1;
  max-width:390px;
  margin:0;
  color:#436462;
  font-size:14px;
  line-height:1.52;
}
.shell[data-locali-route] .section-title {
  margin:15px 0 11px;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.6px;
}
.shell[data-locali-route] :is(.card,.diary-overview,.stat,.empty-state,.map-sheet,.profile-card,.pet-visual-choice) {
  border:1px solid var(--pet-card-border);
  border-radius:22px;
  background:var(--pet-card-surface);
  box-shadow:var(--pet-card-shadow);
  backdrop-filter:var(--pet-card-blur);
  -webkit-backdrop-filter:var(--pet-card-blur);
  color:var(--pet-deep);
}
.shell[data-locali-route] :is(.card,.diary-overview,.stat,.map-sheet) {transition:box-shadow .18s ease,border-color .18s ease}
.shell[data-locali-route] .button {
  border-radius:999px;
  min-height:43px;
  background:linear-gradient(110deg,#036368,#034348);
  color:#fff;
  font-size:13px;
  font-weight:900;
  box-shadow:0 3px 8px rgb(5 70 71 / .07);
}
.shell[data-locali-route] .button.secondary {
  color:var(--pet-deep);
  background:rgb(255 255 255 / .59);
  border:1px solid rgb(7 62 67 / .15);
  box-shadow:none;
}
.shell[data-locali-route] :is(.button,.pet-card,.account-link,.pet-visual-option,.pet-chooser-item):focus-visible,
.nav a:focus-visible {outline:3px solid #168c86;outline-offset:2px}
.shell[data-locali-route] .pill {
  color:#075f52;
  background:#d8f2e6;
  border:1px solid #e9fff3;
  font-weight:800;
}
.shell[data-locali-route] .pill.warn {color:#81502a;background:#fff1dc}
.shell[data-locali-route] .pill.neutral {color:#49635d;background:#e4ece7}
.shell[data-locali-route] .muted {color:#496661}
.shell[data-locali-route] .version-stamp {
  font-size:10px;
  opacity:.65;
  margin-top:15px;
}
/* HOME: one inclusive hero and a real pet collection; never showcase invented animals. */
.shell[data-locali-route="pets"] .page-heading {
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:0;
  /* Reserve a separate art area below the copy: no words over animals. */
  padding:18px 16px calc(clamp(185px,51vw,300px) + 12px);
  overflow:hidden;
  border-radius:29px;
  background:linear-gradient(160deg,#f1fdf8,#eaf7f0 55%,#fdf6ea);
}
.shell[data-locali-route="pets"] .page-heading .title {max-width:100%;font-size:clamp(27px,6.6vw,36px)}
.shell[data-locali-route="pets"] .page-heading .muted {max-width:320px}
.shell[data-locali-route="pets"] .pet-home-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(185px,1fr));
  gap:12px;
}
.shell[data-locali-route="pets"] .pet-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  min-height:175px;
  margin:0;
  padding:13px;
  text-align:left;
  border-radius:23px;
  position:relative;
  overflow:hidden;
}
.shell[data-locali-route="pets"] .pet-card .pet-icon {
  width:100%;
  height:106px;
  border-radius:17px;
  background:#d7ebdd;
  font-size:43px;
}
.shell[data-locali-route="pets"] .pet-card .pet-copy {width:100%;gap:4px}
.shell[data-locali-route="pets"] .pet-card .pet-copy strong {font-size:16px;max-width:calc(100% - 22px)}
.shell[data-locali-route="pets"] .pet-card .pet-copy small {margin:0;font-size:11px;line-height:1.25}
.shell[data-locali-route="pets"] .pet-card .pill {font-size:10px;padding:3px 8px}
.shell[data-locali-route="pets"] .pet-card .card-arrow {position:absolute;right:13px;bottom:29px;font-size:23px;color:#307871}
.pet-home-footnote {padding:13px 15px;border-radius:18px;background:rgb(255 255 255 / .43);font-size:12px;color:#44615b}
.pet-visual-avatar {display:grid;place-items:center;font-size:27px;line-height:1}
.pet-avatar-img {object-fit:cover}
.pet-avatar.is-photo-loading {
  color:transparent;
  background:linear-gradient(105deg,#e4eee9 28%,#f2f7f4 42%,#e4eee9 58%);
  background-size:220% 100%;
  animation:pet-photo-loading 1.2s ease-in-out infinite;
}
@keyframes pet-photo-loading { to { background-position-x:-220%; } }
@media (prefers-reduced-motion:reduce) {
  .pet-avatar.is-photo-loading { animation:none; }
}
.pet-chooser {
  display:flex;
  gap:12px;
  align-items:center;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding:3px 3px 13px;
  margin:0 0 9px;
}
.pet-chooser::-webkit-scrollbar{display:none}
.pet-chooser-item {
  display:flex;
  flex:0 0 auto;
  flex-direction:column;
  gap:5px;
  align-items:center;
  min-width:62px;
  max-width:105px;
  padding:5px 7px 4px;
  border-radius:18px;
  color:#506c68;
  text-decoration:none;
  font-size:11px;
  font-weight:800;
  text-align:center;
}
.pet-chooser-item .pet-avatar {width:48px;height:48px;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 8px rgb(7 62 67 / .09);font-size:24px}
.pet-chooser-item span:last-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:88px}
.pet-chooser-item.selected {background:rgb(206 239 225 / .68);color:var(--pet-deep)}
.pet-chooser-item.selected .pet-avatar {border-color:#0a897d}
.pet-visual-choice {padding:15px 16px;margin:12px 0}
.pet-visual-choice h3 {font-size:15px;margin:0 0 3px}
.pet-visual-choice p {font-size:12px;margin:0 0 12px}
.pet-visual-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pet-visual-option {
  min-height:46px;
  padding:8px 4px;
  border:1px solid #cee6dd;
  border-radius:16px;
  background:#fffdf9cc;
  color:var(--pet-deep);
  font-weight:800;
  font-size:11px;
}
.pet-visual-option[aria-pressed="true"]{border-color:#0f8c7d;background:#d8f4e7}
/* DIARY: illustrated editorial header, real timeline and compact metrics. */
.shell[data-locali-route="painel"] .page-heading {
  min-height:172px;
  padding:16px 190px 24px 4px;
  margin-bottom:5px;
  background:url('/pet-scene-diary.webp') right 8px bottom / auto 155px no-repeat;
}
.shell[data-locali-route="painel"] .page-heading .muted {
  max-width:390px;
}
.shell[data-locali-route="painel"] .diary-overview {
  position:relative;
  display:grid;
  grid-template-columns:66px minmax(0,1fr);
  align-items:start;
  gap:13px;
  padding:15px;
  margin:6px 0 14px;
  background:var(--pet-card-surface);
}
.shell[data-locali-route="painel"] .diary-overview .pet-avatar {width:62px;height:62px;border-radius:17px}
.shell[data-locali-route="painel"] .diary-overview .diary-copy {max-width:none}
.shell[data-locali-route="painel"] .diary-eyebrow {font-size:10px;letter-spacing:.08em;font-weight:900;color:#65847e}
.shell[data-locali-route="painel"] .diary-copy h2 {font-size:clamp(18px,4.4vw,23px);margin:3px 0 5px}
.shell[data-locali-route="painel"] .diary-copy p {font-size:12px;margin:0 0 7px;line-height:1.4}
.shell[data-locali-route="painel"] .diary-actions {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.shell[data-locali-route="painel"] .diary-actions .button {flex:1 1 95px;min-height:40px;padding:8px 9px;font-size:11px}
.shell[data-locali-route="painel"] .diary-period {margin:12px 0 10px;align-items:center}
.shell[data-locali-route="painel"] .diary-period label {font-size:16px;font-weight:900}
.shell[data-locali-route="painel"] .diary-period .period-select {margin:0;min-height:39px;font-size:12px;border-radius:999px;padding:8px}
.shell[data-locali-route="painel"] .stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.shell[data-locali-route="painel"] .stat {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:108px;
  padding:14px;
  margin:0;
  border-radius:19px;
  background:linear-gradient(145deg,#effdf6e3,#ffffffa6);
}
.shell[data-locali-route="painel"] .stat:nth-child(2) {background:linear-gradient(145deg,#fff5dfda,#ffffffb0)}
.shell[data-locali-route="painel"] .stat:nth-child(4) {background:linear-gradient(145deg,#ffebdfb0,#ffffffb0)}
.shell[data-locali-route="painel"] .stat span {font-size:11px}
.shell[data-locali-route="painel"] .stat strong {font-size:17px;line-height:1.24;overflow-wrap:anywhere;font-weight:900;color:var(--pet-deep)}
.shell[data-locali-route="painel"] .diary-timeline {padding:17px}
.shell[data-locali-route="painel"] .pet-clue {gap:12px}
.shell[data-locali-route="painel"] .clue-dot {width:37px;height:37px;border-radius:50%;background:#d8f2e7}
.shell[data-locali-route="painel"] .pet-clue-stop .clue-dot {background:#fff1db}
.shell[data-locali-route="painel"] .pet-clue:not(:last-child)::after {border-left:2px dashed #afdbce}
.shell[data-locali-route="painel"] .pet-clue strong {font-size:13px}
.pet-recent-link {display:inline-block;margin:4px 0 12px}
/* MAP: the real MapLibre canvas fills the available viewport. */
.shell[data-locali-route="mapa"] .page-heading {
  min-height:86px;
  margin:0 0 1px;
  padding:11px 88px 9px 0;
  background:url('/pet-scene-bird.webp') right center / 100px 90px no-repeat;
}
.shell[data-locali-route="mapa"] .page-heading .title {font-size:clamp(25px,5.3vw,32px)}
.shell[data-locali-route="mapa"] .page-heading .muted {font-size:12px}
.shell[data-locali-route="mapa"] .pet-map-stage {isolation:isolate;position:relative;min-height:0;flex:1 1 0;margin:0}
.shell[data-locali-route="mapa"] .pet-map-stage .map {
  width:100%;height:100%;min-height:290px;max-height:none;
  margin:0;border-radius:24px;border:1px solid #eff8f1;box-shadow:0 10px 30px rgb(0 59 61 / .1);
}
.shell[data-locali-route="mapa"] .map-sheet {
  position:absolute;z-index:2;top:12px;right:12px;left:12px;
  display:flex;align-items:center;gap:10px;margin:0;padding:11px;
  border-radius:22px;background:rgb(255 255 255 / .83);
}
.shell[data-locali-route="mapa"] .map-sheet::before {display:none}
.shell[data-locali-route="mapa"] .map-sheet .pet-avatar {width:51px;height:51px;flex-shrink:0;border-radius:17px}
.shell[data-locali-route="mapa"] .map-sheet h2 {margin:0 0 4px;font-size:17px}
.shell[data-locali-route="mapa"] .map-sheet .muted {margin:4px 0 0;font-size:11px}
.shell[data-locali-route="mapa"] .pet-map-controls {position:absolute;z-index:3;right:12px;bottom:30px;display:grid;gap:8px}
.shell[data-locali-route="mapa"] .pet-map-controls .map-control {
  width:43px;height:43px;border-radius:50%;
  background:rgb(255 255 255 / .81);border:1px solid #fff;
  box-shadow:0 3px 14px rgb(7 62 67 / .14);backdrop-filter:blur(16px);
}
.shell[data-locali-route="mapa"] .map-page-actions {display:flex;gap:9px;margin:9px 0 0}
.shell[data-locali-route="mapa"] .map-page-actions .button {flex:1;min-width:0;padding:10px 6px;font-size:12px}
.shell[data-locali-route="mapa"] .pet-map-stage.is-empty {display:flex;flex-direction:column}
.shell[data-locali-route="mapa"] .pet-map-stage.is-empty .map {flex:1 1 auto;height:auto;min-height:235px}
.shell[data-locali-route="mapa"] .pet-map-stage.is-empty .map-sheet {position:relative;top:auto;right:auto;left:auto;margin:0 0 9px}
/* PROTECTION: real photo, real QR lifecycle, safe action hierarchy. */
.shell[data-locali-route="protecao"] .page-heading {
  min-height:168px;
  padding:16px 185px 26px 4px;
  background:url('/pet-scene-protection.webp') right 8px bottom / auto 152px no-repeat;
}
.shell[data-locali-route="protecao"] .page-heading .muted {
  max-width:390px;
}
.shell[data-locali-route="protecao"] .pet-identity {
  display:grid;
  grid-template-columns:75px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:15px;
  margin-bottom:9px;
}
.shell[data-locali-route="protecao"] .pet-identity .pet-avatar {width:75px;height:75px;border-radius:19px}
.shell[data-locali-route="protecao"] .pet-identity-copy h2 {font-size:20px}
.shell[data-locali-route="protecao"] .pet-identity-copy .muted {font-size:12px;line-height:1.35}
.shell[data-locali-route="protecao"] .pet-identity-photo {grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin:0}
.shell[data-locali-route="protecao"] .pet-identity-photo .button {flex:1;min-height:36px;padding:8px;font-size:12px}
.shell[data-locali-route="protecao"] .pet-identity-photo p {flex:1 1 100%;margin:0;font-size:11px}
.shell[data-locali-route="protecao"] .pet-rename {display:flex;gap:8px;align-items:center;margin:8px 0}
.shell[data-locali-route="protecao"] .pet-rename .field {min-width:0;margin:0;flex:1}
.shell[data-locali-route="protecao"] .pet-rename .button {flex:0 0 auto}
.shell[data-locali-route="protecao"] .protection-card {padding:19px}
.shell[data-locali-route="protecao"] .protection-card .protection-emblem {background:#daf1e6}
.shell[data-locali-route="protecao"] .protection-card > strong {font-size:17px}
.shell[data-locali-route="protecao"] .protection-card .actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.shell[data-locali-route="protecao"] .protection-card .button {font-size:10px;white-space:normal;min-width:0;line-height:1.2;padding:8px 4px;overflow-wrap:anywhere}
.pet-lost-mode-story {
  position:relative;isolation:isolate;display:grid;gap:11px;
  margin:13px 0;padding:184px 18px 18px;overflow:hidden;
  background:var(--pet-card-surface);
  border:1px solid var(--pet-card-border);border-radius:25px;
  box-shadow:var(--pet-card-shadow);backdrop-filter:var(--pet-card-blur);
}
.pet-lost-mode-illustration {
  position:absolute;z-index:-1;inset:0 0 auto;height:177px;
  background:url('/pet-scene-lost.webp') center center / cover no-repeat;
}
.pet-lost-mode-copy h2 {font-size:21px;margin:0 0 5px}
.pet-lost-mode-copy p {font-size:13px;margin:0}
.pet-lost-mode-story > .button {width:100%;font-size:13px}
.shell[data-locali-route="protecao"] .protection-history {padding:18px}
.shell[data-locali-route="protecao"] .protection-history .timeline {margin:10px 0 0;border-left:2px dashed #a9d9c9}
.shell[data-locali-route="protecao"] .encounter-item {padding:12px 0}
.shell[data-locali-route="protecao"] .encounter-item .pill {font-size:10px}
.shell[data-locali-route="historico"] .page-heading {
  min-height:140px;padding-right:130px;
  background:url('/pet-scene-history.webp') right bottom / 138px auto no-repeat;
}
.shell[data-locali-route="recentes"] .page-heading {
  min-height:115px;padding-right:100px;
  background:url('/pet-scene-garden.webp') right bottom / 110px auto no-repeat;
}
.pet-history-screen {padding:19px}
.pet-history-item {display:grid;grid-template-columns:39px minmax(0,1fr);column-gap:11px;row-gap:3px;padding:14px 0;border-bottom:1px solid #dbeee6}
.pet-history-item:last-child {border-bottom:0}
.pet-history-marker {display:grid;place-items:center;width:37px;height:37px;background:#dbf5e8;border-radius:50%}
.pet-history-marker .line-icon {width:21px;height:21px}
.pet-history-detail {display:grid;gap:3px}
.pet-history-detail strong {font-size:14px}
.pet-history-detail small {font-size:11px}
.pet-history-item > small {grid-column:2}
.pet-recent-screen .diary-timeline {margin:0;padding:19px}
.pet-back-action {display:inline-flex;margin:10px 0 15px}
/* Unified glass dock. */
.shell[data-locali-route] ~ .nav {
  border:1px solid rgb(255 255 255 / .86);
  border-radius:27px;
  background:linear-gradient(120deg,rgb(252 255 253 / .72),rgb(255 249 242 / .64));
  box-shadow:0 7px 26px rgb(7 62 67 / .09), inset 0 1px #fff;
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
}
.shell[data-locali-route] ~ .nav a {border:1px solid transparent;border-radius:19px;color:#4f6e69}
.shell[data-locali-route] ~ .nav a .line-icon {stroke-width:1.7}
.shell[data-locali-route] ~ .nav a.active,
.shell[data-locali-route] ~ .nav a[aria-current="page"] {
  background:rgb(206 239 225 / .83);
  border-color:rgb(255 255 255 / .66);
  color:var(--pet-deep);
}
@media (max-width:899px) {
  .shell[data-locali-route] {
    padding:calc(10px + env(safe-area-inset-top)) 16px calc(108px + env(safe-area-inset-bottom));
  }
  .shell[data-locali-route] ~ .nav {
    position:fixed;bottom:calc(10px + env(safe-area-inset-bottom));
    left:10px;right:10px;width:auto;height:67px;transform:none;padding:5px;
  }
  .shell[data-locali-route] ~ .nav a {min-height:54px;padding:5px 2px}
  .shell[data-locali-route] ~ .nav a .line-icon {width:22px;height:22px}
  .shell[data-locali-route] ~ .nav a strong {font-size:10px}
  .shell[data-locali-route="mapa"] {display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
  .shell[data-locali-route="mapa"] .top,
  .shell[data-locali-route="mapa"] .page-heading,
  .shell[data-locali-route="mapa"] .pet-chooser,
  .shell[data-locali-route="mapa"] .map-page-actions {flex-shrink:0}
  .shell[data-locali-route="mapa"] .pet-map-stage {flex:1 1 0;min-height:0}
  .shell[data-locali-route="mapa"] .pet-map-stage .map {min-height:0;height:100%}
  .shell[data-locali-route="mapa"] .pet-chooser {margin-bottom:3px;padding-bottom:6px}
  .shell[data-locali-route="mapa"] > :is(.footnote,.notice) {max-height:27px;overflow:auto;font-size:10px;margin:3px 0}
}
/* Narrow layouts stack illustrations below the heading instead of beside text. */
@media (max-width:599px) {
  .shell[data-locali-route="painel"] .page-heading,
  .shell[data-locali-route="protecao"] .page-heading {
    min-height:0;
    padding:15px 12px 156px;
    background:none;
  }
  .shell[data-locali-route="painel"] .page-heading::before,
  .shell[data-locali-route="protecao"] .page-heading::before {
    content:'';
    position:absolute;
    inset:auto 0 0;
    height:143px;
    pointer-events:none;
  }
  .shell[data-locali-route="painel"] .page-heading .muted,
  .shell[data-locali-route="protecao"] .page-heading .muted {
    max-width:100%;
  }
}
@media (max-width:440px) {
  .shell[data-locali-route="pets"] .pet-home-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .shell[data-locali-route="pets"] .pet-card {padding:7px;min-height:141px;border-radius:18px}
  .shell[data-locali-route="pets"] .pet-card .pet-icon {height:79px;border-radius:13px;font-size:32px}
  .shell[data-locali-route="pets"] .pet-card .pet-copy {gap:3px}
  .shell[data-locali-route="pets"] .pet-card .pet-copy strong {font-size:13px}
  .shell[data-locali-route="pets"] .pet-card .pet-copy small {font-size:9px}
  .shell[data-locali-route="pets"] .pet-card .pill {font-size:9px;padding:2px 5px}
  .shell[data-locali-route="pets"] .pet-card .card-arrow {bottom:13px;right:7px;font-size:18px}
  .shell[data-locali-route="mapa"] .map-sheet .pet-avatar {width:44px;height:44px}
  .shell[data-locali-route="mapa"] .map-sheet {padding:8px}
  .shell[data-locali-route="mapa"] .map-sheet h2 {font-size:15px}
  .shell[data-locali-route="painel"] .diary-overview {grid-template-columns:48px minmax(0,1fr);padding:11px;gap:8px}
  .shell[data-locali-route="painel"] .diary-overview .pet-avatar {width:48px;height:48px}
  /* Keep both diary action buttons inside the viewport on narrow phones. */
  .shell[data-locali-route="painel"] .diary-actions {margin-left:0}
  .shell[data-locali-route="protecao"] .pet-identity {grid-template-columns:65px minmax(0,1fr)}
  .shell[data-locali-route="protecao"] .pet-identity .pet-avatar {width:65px;height:65px}
}
@media (min-width:900px) {
  .shell[data-locali-route] {
    max-width:1290px;
    padding:20px 34px 70px 270px;
  }
  .shell[data-locali-route] .page-heading {max-width:none}
  .shell[data-locali-route="pets"] .page-heading {min-height:0;padding-bottom:300px}
  .shell[data-locali-route="pets"] .page-heading::before {height:288px}
  .shell[data-locali-route="pets"] .pet-home-grid {grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
  .shell[data-locali-route="mapa"] {display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
  .shell[data-locali-route="mapa"] .top,
  .shell[data-locali-route="mapa"] .page-heading,
  .shell[data-locali-route="mapa"] .pet-chooser,
  .shell[data-locali-route="mapa"] .map-page-actions {flex-shrink:0}
  .shell[data-locali-route="mapa"] .pet-map-stage {min-height:0;flex:1 1 0}
  .shell[data-locali-route="mapa"] .pet-map-stage .map {min-height:0;height:100%}
  .shell[data-locali-route] ~ .nav {
    position:fixed;
    top:22px;
    bottom:22px;
    left:max(20px, calc((100vw - 1290px)/2 + 20px));
    right:auto;
    width:218px;
    height:auto;
    transform:none;
    padding:19px 10px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    gap:7px;
  }
  .shell[data-locali-route] ~ .nav a {
    display:flex;align-items:center;gap:13px;flex:0 0 auto;
    max-width:none;min-height:51px;padding:10px 13px;text-align:left;
  }
  .shell[data-locali-route] ~ .nav a .line-icon {margin:0;width:23px;height:23px}
  .shell[data-locali-route] ~ .nav a strong {font-size:13px}
  .shell[data-locali-route="painel"] .stats {grid-template-columns:repeat(4,minmax(0,1fr))}
  .shell[data-locali-route="protecao"] .pet-lost-mode-story {
    grid-template-columns:minmax(0,1fr) minmax(145px,220px);
    align-items:end;min-height:192px;
    padding:26px 22px 26px 270px;
  }
  .shell[data-locali-route="protecao"] .pet-lost-mode-illustration {width:255px;height:100%;right:auto;bottom:0;background-position:center;background-size:cover}
  .shell[data-locali-route="protecao"] .pet-lost-mode-story > .button {grid-column:2}
}
@media (prefers-reduced-motion:reduce) {
  .shell[data-locali-route] :is(.card,.diary-overview,.stat,.map-sheet) {transition:none}
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  :root {--pet-card-surface:#f8faf5;--pet-card-border:#98b3a8;--pet-card-blur:none}
  .shell[data-locali-route] ~ .nav {background:#f8faf5;backdrop-filter:none;-webkit-backdrop-filter:none}
  .shell[data-locali-route] .map-sheet {background:#fff}
}
@media print {
  .shell[data-locali-route] :is(.card,.diary-overview,.stat,.map-sheet) {
    background:#fff;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none
  }
  .shell[data-locali-route] ~ .nav {display:none!important}
}

/* Last signal: photo when permitted, chosen pet icon otherwise. */
.shell[data-locali-route="mapa"] .pet-tracker-marker--pet {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:3px solid #fff;
  outline:3px solid #078f86;
  border-radius:22%;
  background:#d9f2e6;
  box-shadow:0 5px 22px rgb(7 62 67 / .25);
  font-size:26px;
  overflow:hidden;
}
.shell[data-locali-route="mapa"] .pet-tracker-marker--pet img {width:100%;height:100%;object-fit:cover;display:block;border-radius:22%}
.pet-tracker-marker--pet.is-photo-loading{background:linear-gradient(110deg,#e3eee8 10%,#f7faf5 42%,#e3eee8 75%);background-size:210% 100%;animation:pet-loading-shimmer 1.8s ease-in-out infinite}
.shell[data-locali-route="mapa"] .pet-tracker-marker--paw {font-size:12px;opacity:.82}

/* Pet identity and lost-mode finishing details shared by preview and PWA. */
.shell[data-locali-route] .pet-avatar > .pet-visual-fallback {
  display:grid;place-items:center;width:100%;height:100%;
  font-size:clamp(24px,5vw,34px);line-height:1;
}
.shell[data-locali-route] .pet-lost-benefits {padding:15px 17px;margin:14px 0}
.shell[data-locali-route] .pet-lost-benefits h2 {font-size:16px;font-weight:900;margin-bottom:8px}
.shell[data-locali-route] .pet-lost-benefit {
  display:grid;grid-template-columns:37px minmax(0,1fr);
  align-items:center;gap:12px;padding:9px 0;
  border-bottom:1px solid rgb(7 62 67 / .07);
}
.shell[data-locali-route] .pet-lost-benefit:last-child {border-bottom:0}
.shell[data-locali-route] .pet-lost-benefit-icon {
  display:grid;place-items:center;width:36px;height:36px;
  border-radius:50%;background:#d8f3e6;color:#07635c;
}
.shell[data-locali-route] .pet-lost-benefit-icon .line-icon {width:19px;height:19px}
.shell[data-locali-route] .pet-lost-benefit p {font-size:12px;line-height:1.45;color:#395d57;margin:0}
.shell[data-locali-route] .pet-lost-mode-teaser {padding:18px;overflow:hidden}
.shell[data-locali-route] .pet-lost-mode-teaser h2 {font-size:19px;font-weight:900}
.shell[data-locali-route] .pet-lost-mode-teaser p {font-size:13px;margin:0 0 13px}
.shell[data-locali-route] .pet-lost-mode-teaser .button {width:100%}
.shell[data-locali-route] .pet-recent-screen {margin-top:2px}

/* Additive multi-species profile fields; visual language mirrors Protection. */
.shell[data-locali-route="protecao"] .pet-profile-holder {margin:12px 0 16px}
.shell[data-locali-route="protecao"] .pet-profile-details {
  display:grid;gap:14px;padding:19px;
  background:linear-gradient(140deg,rgb(255 255 255 / .87),rgb(234 248 239 / .78));
}
.pet-details-heading h2 {font-size:20px;font-weight:900;letter-spacing:-.5px;margin:0 0 5px}
.pet-details-heading p {font-size:12px;line-height:1.5;margin:0}
.pet-details-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pet-details-row {min-width:0;display:grid;align-content:center;gap:4px;padding:12px 13px;border:1px solid #eff6ee;border-radius:17px;background:rgb(255 255 255 / .65)}
.pet-details-row span {font-size:11px;color:#628079}
.pet-details-row strong {font-size:13px;color:var(--pet-deep);font-weight:900;overflow-wrap:anywhere;line-height:1.45}
.pet-details-edit {justify-self:start;min-width:160px}
.pet-details-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.pet-details-label {display:grid;gap:7px;align-content:start;min-width:0;font-size:12px;font-weight:900;color:var(--pet-deep)}
.pet-details-label .field, .pet-breed-group .field {
  display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cee5d9;
  border-radius:13px;background:#fffffff0;box-shadow:0 2px 8px rgb(6 72 64 / .025);
  color:var(--pet-deep);font:inherit;font-size:14px;font-weight:600;outline-offset:2px
}
.pet-details-form .field:focus-visible {outline:2px solid #0b9482;border-color:#0b9482}
.pet-breed-group {position:relative;min-width:0}
.pet-weight-row {display:grid;grid-template-columns:minmax(0,1fr) 102px;gap:8px}
.pet-weight-unit {padding-inline:7px!important}
.pet-age-details {align-self:start}
.pet-age-estimate {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pet-age-note {font-size:11px;grid-column:1/-1;line-height:1.5;margin:4px 0 0}
.pet-details-actions {grid-column:1/-1;display:flex;gap:10px;align-items:center}
.pet-details-actions .button {flex:1 1 auto;min-height:44px}
.pet-details-feedback {grid-column:1/-1;font-size:12px;margin:0}
.pet-details-saved {margin:4px 0 0;font-size:12px}
.pet-breed-suggestions {
  display:grid;gap:4px;position:relative;margin-top:7px;
  max-height:250px;overflow:auto;overscroll-behavior:contain;
  background:#fffefcf2;border:1px solid #d6e9de;border-radius:15px;
  padding:5px;box-shadow:0 5px 18px rgb(3 73 65 / .07)
}
.pet-breed-suggestions:empty {display:none}
.pet-breed-suggestion {
  padding:10px 11px;text-align:left;border:0;border-radius:9px;
  background:transparent;color:#1b4e49;cursor:pointer;
  font-size:12px;line-height:1.35;font-weight:700
}
.pet-breed-suggestion:is(:focus-visible,:hover) {background:#dff4ea;outline:2px solid #0d827a;outline-offset:-2px}
.pet-breed-count {margin:4px 8px;font-size:11px;color:#627e78}
@media(max-width:599px) {
  .shell[data-locali-route="protecao"] .pet-profile-details {padding:15px}
  .pet-details-form {grid-template-columns:1fr}
  .pet-details-actions {grid-column:1}
}
@media(max-width:359px) {
  .pet-details-summary {grid-template-columns:1fr}
}


/* LocaliPet: enquadramento real de fotografias, sem alterar o tema aprovado. */
.pet-photo-editor-backdrop {
  position:fixed; inset:0; z-index:9999; display:grid; place-items:center;
  padding:calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom));
  background:rgb(7 62 67 / .76); overflow-y:auto;
}
.pet-photo-editor {
  width:min(100%,430px); display:grid; gap:13px;
  padding:19px; border-radius:26px; border:1px solid #fff;
  background:#fffdf8; box-shadow:0 18px 55px rgb(7 62 67 / .25);
  color:var(--locali-ink,#073e43);
}
.pet-photo-editor h2 {margin:0;font-size:19px}
.pet-photo-editor p {margin:0;font-size:12px;line-height:1.5;color:#58736a}
.pet-photo-editor-canvas {
  width:min(100%,320px);height:auto;aspect-ratio:1;justify-self:center;
  border-radius:21px; touch-action:none; cursor:grab;
  border:3px solid #d8e9de; background:#eff6ee;
}
.pet-photo-editor-canvas:active {cursor:grabbing}
.pet-photo-editor label {display:grid;gap:7px;font-size:13px;font-weight:700}
.pet-photo-editor input[type="range"] {width:100%; accent-color:#087970}
.pet-photo-editor-actions {display:flex;flex-wrap:wrap;gap:8px}
.pet-photo-editor-actions .button {flex:1 1 105px;min-height:43px;padding:8px 12px;font-size:12px}
.pet-tutor-avatar {display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-card .profile-icon {overflow:hidden;flex:none}
.profile-card .pet-tutor-photo-actions {display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1;width:100%;margin-top:12px}
.profile-card .pet-tutor-photo-actions .button {flex:1 1 130px;font-size:12px;min-height:42px}
.profile-card .pet-tutor-photo-actions p {flex-basis:100%;margin:0}
.account-link {overflow:hidden}
.account-link .pet-tutor-avatar {width:32px;height:32px;border-radius:50%;object-fit:cover}
.pet-hourly-card {grid-column:1/-1;min-width:0}
.pet-hourly-plot {width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.pet-hourly-svg {display:block;width:100%;min-width:530px;height:auto}
.pet-hourly-grid {stroke:#dfe8df;stroke-width:1}
.pet-hourly-label {font-size:12px;fill:#677e77}
.pet-hourly-bar {fill:#23947f;cursor:pointer;outline:none}
.pet-hourly-bar:is(:focus,.is-selected) {fill:#076c66;stroke:#073e43;stroke-width:1.5}
.pet-hourly-selection {margin:8px 0 0;font-size:12px;color:#52726a}
@media (max-width:450px) {
  .pet-photo-editor {padding:14px;gap:10px}
  .pet-photo-editor-canvas {width:min(100%,280px)}
}


/* LocaliPet approved map and diary refinements (2026-10-22). */
/* Center the existing identity overlay horizontally, keep its position near the
   top of the map. A translucent glass surface leaves the map visible below it. */
.shell[data-locali-route="mapa"] .pet-map-stage:not(.is-empty) > .map-sheet {
  left:50%;
  right:auto;
  width:min(88%,560px);
  max-width:calc(100% - 24px);
  transform:translateX(-50%);
  background:linear-gradient(116deg, rgb(255 255 255 / .76), rgb(255 250 245 / .57));
  border:1px solid rgb(255 255 255 / .85);
  box-shadow:0 8px 28px rgb(3 60 60 / .15), inset 0 1px rgb(255 255 255 / .8);
  backdrop-filter:blur(17px) saturate(145%);
  -webkit-backdrop-filter:blur(17px) saturate(145%);
}
.shell[data-locali-route="mapa"] .map-sheet .map-pet-copy {min-width:0}
.shell[data-locali-route="mapa"] .map-sheet :is(h2,p,small) {overflow-wrap:anywhere}

/* Share the same chronological chart: teal bars are counts, coral dots are
   NTC categorical bands. The two vertical scales are explicitly labeled. */
.shell[data-locali-route="painel"] .diary-combined-chart {
  padding:clamp(13px,3vw,23px);
  overflow:hidden;
  background:linear-gradient(140deg, rgb(255 255 255 / .92), rgb(237 250 244 / .79));
}
.diary-combined-chart h2 {font-size:clamp(18px,4vw,23px);font-weight:900;margin:0 0 12px}
.diary-combined-svg {display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}
.diary-grid {stroke:#d8e7df;stroke-width:.7}
.diary-axis-label {font-size:10px;fill:#58736b}
.diary-signal-bar {fill:#138779;opacity:.9;cursor:pointer}
.diary-signal-bar:is(:focus,.is-selected) {fill:#045a58;stroke:#073e43;stroke-width:1.5}
.diary-ntc-dot:is(:focus,.is-selected) {fill:#a93434;stroke:#073e43;stroke-width:2}
.diary-chart-reading {min-height:22px;margin:2px 0 0;font-size:12px;color:#175955;font-weight:800}

/* Three prominent real places; all remaining rows start collapsed. */
.shell[data-locali-route="painel"] .diary-top-places {padding:clamp(14px,3vw,22px)}
.diary-top-places h2 {font-size:clamp(18px,4vw,23px);margin-bottom:3px}
.diary-top-places .diary-place-list {padding:0;list-style:none;margin:0}
.diary-top-places .diary-top-list {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;
}
.diary-top-list > li {
  display:flex;flex-direction:column;min-width:0;gap:5px;
  border:1px solid rgb(11 102 97 / .13);border-radius:17px;
  padding:12px;background:rgb(255 255 255 / .74);
}
.diary-top-list > li > :is(strong,span,p,small) {margin:0;overflow-wrap:anywhere}
.diary-top-list > li strong {font-weight:900;font-size:13px;color:#073e43}
.diary-top-list > li span {font-size:13px;font-weight:850;color:#087d71}
.diary-top-list > li p,.diary-top-list > li small {font-size:11px;line-height:1.45;color:#496963}
.diary-more-places {margin-top:12px;border:1px solid #d1e4d8;border-radius:15px;overflow:hidden;background:rgb(251 255 253 / .76)}
.diary-more-places > summary {
  list-style:none;cursor:pointer;min-height:46px;display:flex;align-items:center;
  justify-content:space-between;padding:11px 14px;font-size:13px;font-weight:900;color:#075e59;
}
.diary-more-places > summary::-webkit-details-marker {display:none}
.diary-more-places > summary::after {content:'⌄';font-size:21px;line-height:1;transition:transform .18s}
.diary-more-places[open] > summary::after {transform:rotate(180deg)}
.diary-more-places .diary-all-places {padding:0 14px 9px!important}
.diary-all-places > li {padding:10px 0;border-top:1px solid #e1ebe3}
.diary-all-places > li > :is(strong,span,small,p) {display:block;margin:3px 0;font-size:12px;overflow-wrap:anywhere}

/* Fixed bottom navigation must never cover the last diary rows or controls.
   Extra scroll clearance is document padding; the dock remains fixed. */
@media(max-width:899px) {
  /* Diary scroll ends above the fixed 67px navigation instead of behind it. */
  html:has(.shell[data-locali-route="painel"]),
  body:has(.shell[data-locali-route="painel"]) {height:100%;overflow:hidden}
  .shell[data-locali-route="painel"] {
    height:calc(100dvh - 91px - env(safe-area-inset-bottom));
    max-height:calc(100dvh - 91px - env(safe-area-inset-bottom));
    min-height:0;
    overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    padding-bottom:30px;
    scroll-padding-bottom:30px;
  }
  .diary-top-places .diary-top-list {grid-template-columns:1fr}
  .diary-top-list > li {padding:12px 13px}
  .shell[data-locali-route="mapa"] {
    padding-bottom:calc(76px + env(safe-area-inset-bottom));
  }
  .shell[data-locali-route="mapa"] .map-page-actions {margin:4px 0 0;gap:7px}
  .shell[data-locali-route="mapa"] .map-page-actions .button {
    min-height:40px;padding:7px 6px;font-size:11px;
  }
  .shell[data-locali-route="mapa"] > :is(.footnote,.notice) {
    max-height:20px;margin:1px 0 0;font-size:10px;
  }
}
@media (max-width:360px) {
  .shell[data-locali-route="mapa"] .pet-map-stage:not(.is-empty) > .map-sheet {width:calc(100% - 18px)}
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  .shell[data-locali-route="mapa"] .pet-map-stage:not(.is-empty) > .map-sheet {
    background:#fffdfa;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#91b5a5;
  }
}
.shell.pet-approved[data-locali-route] {max-width:920px;color:#174f4b;font-family: var(--font-ui);min-height:0;margin:0;background:none}
.shell.pet-approved[data-locali-route] .page-heading::before,
.shell.pet-approved[data-locali-route] .page-heading::after {display:none}
.shell.pet-approved[data-locali-route] .title {font-size:clamp(30px,7vw,42px);font-weight:800;letter-spacing:-.7px;line-height:1.15;max-width:100%}
.shell.pet-approved[data-locali-route] .page-heading .muted {font-size:13px;margin-top:12px;max-width:100%}
.shell.pet-approved[data-locali-route] .top {margin-bottom:24px}
.shell.pet-approved[data-locali-route] .brand {font-size:28px}
.shell.pet-approved[data-locali-route] .brand em {color:#ee8573}
.shell.pet-approved[data-locali-route] .card {background:rgb(255 255 249 / .68);border:1px solid rgb(255 255 255 / .85);box-shadow:0 8px 22px #35544809;border-radius:28px}
.shell.pet-approved[data-locali-route="pets"] .pet-home-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.shell.pet-approved[data-locali-route="pets"] .pet-home-grid.single-pet {grid-template-columns:minmax(0,1fr);max-width:520px;margin:0 auto}
.shell.pet-approved[data-locali-route="pets"] .pet-card {display:grid;grid-template-columns:1fr;gap:16px;align-items:center;min-height:0;padding:25px 22px 28px;text-align:left}
.shell.pet-approved[data-locali-route="pets"] .pet-home-name {font-size:30px;font-weight:800;text-align:center;overflow-wrap:anywhere;line-height:1.2}
.shell.pet-approved[data-locali-route="pets"] .pet-card .pet-icon {width:100%;height:clamp(180px,45vw,310px);border-radius:22px;background:transparent;font-size:90px;overflow:hidden}
.shell.pet-approved[data-locali-route="pets"] .pet-card .pet-icon img {width:100%;height:100%;object-fit:contain;border-radius:18px}
.shell.pet-approved[data-locali-route="pets"] .pet-copy {display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px 10px;padding-right:20px;align-items:start}
.shell.pet-approved[data-locali-route="pets"] .pet-copy > .line-icon {grid-column:1;grid-row:1 / span 3;color:#16867d;margin-top:2px}
.shell.pet-approved[data-locali-route="pets"] .pet-copy > :not(svg) {grid-column:2;overflow-wrap:anywhere}
.shell.pet-approved[data-locali-route="pets"] .pet-home-place {font-size:16px;font-weight:800;line-height:1.4}
.shell.pet-approved[data-locali-route="pets"] .pet-home-address {font-size:13px;line-height:1.5;color:#47736c}
.shell.pet-approved[data-locali-route="pets"] .pet-home-time {font-size:12px;color:#617a70}
.shell.pet-approved[data-locali-route="pets"] .pet-card .card-arrow {right:18px;bottom:48px;font-size:30px}
.shell.pet-approved[data-locali-route="painel"] .page-heading {display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:8px 14px;align-items:center;padding:12px 0 20px}
.shell.pet-approved[data-locali-route="painel"] .page-heading .title {grid-column:1;grid-row:1;margin:0}
.shell.pet-approved[data-locali-route="painel"] .page-heading .muted {grid-column:1;grid-row:2;margin:0}
.shell.pet-approved[data-locali-route="painel"] .page-heading > .pet-avatar {grid-column:2;grid-row:1 / span 2;width:110px;height:110px;border-radius:26px;background:transparent;font-size:62px;overflow:hidden}
.shell.pet-approved[data-locali-route="painel"] .page-heading > .pet-avatar img {width:100%;height:100%;object-fit:contain;border-radius:22px}
.shell.pet-approved[data-locali-route="painel"] .diary-period {display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #d8e5d9;border-radius:22px;background:#fffffaad;margin:0 0 18px}
.pet-approved .diary-period .button {padding:7px 12px;min-height:40px;font-size:12px;border-color:transparent}
.pet-approved .diary-period .button[aria-pressed="true"] {background:#def0e6;color:#17685e}
.pet-approved .diary-custom {margin-left:auto;align-self:center;font-size:12px;font-weight:800}
.pet-approved .diary-custom summary {cursor:pointer;padding:12px 6px}
.pet-approved .diary-custom[open] {width:100%;margin:0}
.pet-approved .diary-date-form {display:flex;flex-wrap:wrap;gap:8px;padding:6px 0}
.pet-approved .diary-date-form input {min-width:0;flex:1 1 130px;border:1px solid #c4d9cd;border-radius:12px;padding:10px;background:#fffefa;color:#174f4b;font:inherit}
.pet-approved .diary-summary {display:grid;grid-template-columns:1fr 1fr;padding:20px 16px;gap:14px;background:#fffffaad;border:1px solid #d8e5d9;border-radius:26px;margin-bottom:18px}
.pet-approved .diary-summary-item {display:flex;flex-direction:column;gap:7px;min-width:0}
.pet-approved .diary-summary-item + .diary-summary-item {border-left:1px solid #d1e3d6;padding-left:14px}
.pet-approved .diary-summary-item > span {font-size:12px;color:#617a70}
.pet-approved .diary-summary-item > strong {font-size:36px;line-height:1.2;font-weight:800;overflow-wrap:anywhere}
.pet-approved .diary-summary-temperature > strong {font-size:23px;margin-top:6px}
.pet-approved .diary-summary-item > small {font-size:11px;color:#617a70;line-height:1.4}
.shell.pet-approved[data-locali-route="painel"] .diary-combined-chart {background:#fffffaad;border:1px solid #d8e5d9;padding:18px 12px;margin-bottom:18px;box-shadow:none}
.pet-approved .diary-combined-chart h2 {font-size:20px;margin:0 4px 16px}
.pet-approved .diary-chart-legend {font-size:11px;font-weight:600;justify-content:space-between;margin:0 4px 12px;gap:8px}
.pet-approved .diary-legend-signals {color:#117f78}
.pet-approved .diary-legend-ntc,.pet-approved .diary-ntc-axis-label {color:#ca7845;fill:#ca7845}
.diary-signal-point:is(:focus,.is-selected) {stroke:#174f4b;stroke-width:3;outline:none}
.pet-approved .diary-ntc-dot {fill:#ce7b45;stroke:#fffffa;stroke-width:1.5}
.pet-approved .diary-chart-reading {font-size:11px;font-weight:600;margin:8px 4px}
.pet-approved .diary-chart-caption {margin:8px 4px;font-size:11px}
.shell.pet-approved[data-locali-route="painel"] .diary-top-places {padding:18px;background:#fffffaad;border:1px solid #d8e5d9;box-shadow:none}
.pet-approved .diary-top-places h2 {font-size:21px;margin:0 0 12px}
.pet-approved .diary-top-places .diary-top-list {display:block}
.pet-approved .diary-top-list > li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;border:0;border-radius:0;border-top:1px solid #dce8df;background:transparent;padding:14px 0}
.pet-approved .diary-top-list > li:first-child {border-top:0}
.pet-approved .diary-top-list > li > strong {grid-column:1;font-size:14px}
.pet-approved .diary-top-list > li > p {grid-column:1;font-size:12px}
.pet-approved .diary-top-list > li > span {grid-column:2;grid-row:1 / span 2;align-self:center;white-space:nowrap}
.pet-approved .diary-top-list > li > small {grid-column:1 / -1;font-size:10px}
.pet-approved .diary-actions {display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.pet-approved .diary-actions .button {flex:1;min-height:44px;font-size:13px}
.pet-approved .diary-actions .text-link {flex-basis:100%;min-width:0;justify-content:center;text-align:center;padding:10px;font-size:13px}
/* One consistent dock across all pet routes. */
#app > .nav {border:1px solid #ffffffd9;background:rgb(255 255 249 / .80);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 7px 24px #3456470b;border-radius:25px;padding:5px 7px}
#app > .nav a {color:#78867e;border-radius:19px;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#app > .nav a.active {background:#dcefe5;color:#147a72;box-shadow:none}
#app > .nav a::after {display:none}
#app > .nav a .line-icon {width:27px;height:27px;margin:0}
#app > .nav a strong {font-size:11px;font-weight:600}
@media(max-width:599px) {
 .shell.pet-approved[data-locali-route="pets"] .pet-home-grid {grid-template-columns:1fr}
 .shell.pet-approved[data-locali-route="pets"] .pet-home-grid:not(.single-pet) .pet-card {grid-template-columns:105px minmax(0,1fr);padding:20px 16px;gap:12px}
 .shell.pet-approved[data-locali-route="pets"] .pet-home-grid:not(.single-pet) .pet-home-name {grid-column:2;text-align:left;font-size:24px;padding-right:12px}
 .shell.pet-approved[data-locali-route="pets"] .pet-home-grid:not(.single-pet) .pet-icon {grid-column:1;grid-row:1 / span 2;height:145px;font-size:60px}
 .shell.pet-approved[data-locali-route="pets"] .pet-home-grid:not(.single-pet) .pet-copy {grid-column:2;grid-template-columns:1fr;padding-right:9px}
 .shell.pet-approved[data-locali-route="pets"] .pet-home-grid:not(.single-pet) .pet-copy > .line-icon {display:none}
 .shell.pet-approved[data-locali-route="pets"] .pet-home-grid:not(.single-pet) .pet-copy > :not(svg) {grid-column:1}
 .shell.pet-approved[data-locali-route="pets"] .pet-home-place {font-size:14px}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 .shell.pet-approved[data-locali-route] .card,.pet-approved .diary-summary,#app > .nav {background:#fffdf5}
}


/* Saved locations: an editor that scrolls, NOT the fullscreen pet tracking map.
   Without this scope the inherited flex:1 1 0 collapses the tappable map on iOS. */
.shell.pet-saved-places-screen[data-locali-route="mapa"] {
  display:block;
  height:auto;
  min-height:100dvh;
  max-height:none;
  overflow:visible;
}
.shell.pet-saved-places-screen[data-locali-route="mapa"] .pet-map-stage {
  display:block;
  flex:none;
  height:clamp(300px,46dvh,440px);
  min-height:300px;
  margin:10px 0 16px;
}
.shell.pet-saved-places-screen[data-locali-route="mapa"] .pet-map-stage > .map {
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  padding:0;
  margin:0;
}
.shell.pet-saved-places-screen[data-locali-route="mapa"] .pet-place-search {
  display:grid;
  gap:8px;
  padding:14px;
  border-radius:22px;
  border:1px solid rgb(11 102 97 / .14);
  background:rgb(255 255 250 / .82);
}
.pet-place-search-form {display:grid;gap:8px}
.pet-place-search-form .login-label {display:block;margin:0;font-size:14px;font-weight:850}
.pet-place-search-row {display:flex;gap:8px;align-items:center;min-width:0}
.pet-place-search-row .pet-place-search-input {min-width:0;flex:1;margin:0}
.shell[data-locali-route="mapa"] .pet-place-search-row .button {flex:0 0 auto;min-height:47px;padding:10px 14px}
.pet-place-search-status {margin:0;font-size:12px;line-height:1.5}
.pet-place-search-results {display:grid;gap:5px;max-height:240px;overflow-y:auto;overscroll-behavior:contain}
.pet-place-search-results:empty {display:none}
.shell[data-locali-route="mapa"] .pet-place-search-result {
  width:100%;
  min-height:46px;
  border:1px solid #d3e6db;
  border-radius:12px;
  padding:11px 13px;
  background:rgb(245 253 248 / .94);
  color:var(--pet-deep);
  font:inherit;
  font-size:13px;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
}
.pet-place-search-result:is(:focus-visible,:hover) {outline:2px solid #1a837a;outline-offset:1px;background:#e0f5e9}
.shell.pet-saved-places-screen .saved-place-editor {margin-top:12px}
.shell.pet-saved-places-screen .saved-place-editor .saved-place-form {max-width:100%}
@media(max-width:899px) {
  html:has(.shell.pet-saved-places-screen[data-locali-route="mapa"]),
  body:has(.shell.pet-saved-places-screen[data-locali-route="mapa"]) {
    height:auto;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:auto;
  }
  .shell.pet-saved-places-screen[data-locali-route="mapa"] {
    height:auto;
    min-height:100dvh;
    max-height:none;
    overflow:visible;
    padding-bottom:calc(120px + env(safe-area-inset-bottom));
  }
  .shell.pet-saved-places-screen[data-locali-route="mapa"] .pet-map-stage {
    flex:none;
    height:clamp(300px,44dvh,390px);
    min-height:300px;
  }
}
@media(max-width:390px) {
  .pet-place-search-row {flex-wrap:wrap}
  .pet-place-search-row .pet-place-search-input {flex:1 1 100%}
  .shell[data-locali-route="mapa"] .pet-place-search-row .button {width:100%}
}


/* Pet: preserve zoom controls and avoid duplicate illustrations in search/recovery (2026-10-23). */
/* The tracking map's controls are at the top-right. Reserve an equal gutter on
   each side of the centered pet card so the +/- remain reachable. */
@media (max-width: 599px) {
  .shell[data-locali-route="mapa"]:not(.pet-saved-places-screen) .pet-map-stage:not(.is-empty) > .map-sheet {
    left:50%;
    right:auto;
    width:calc(100% - 116px);
    max-width:calc(100% - 116px);
    transform:translateX(-50%);
    gap:8px;
    padding:9px;
  }
  .shell[data-locali-route="mapa"]:not(.pet-saved-places-screen) .pet-map-stage:not(.is-empty) > .map-sheet .pet-avatar {
    width:40px;
    height:40px;
    flex:0 0 40px;
  }
  .shell[data-locali-route="mapa"]:not(.pet-saved-places-screen) .pet-map-stage:not(.is-empty) > .map-sheet .map-pet-copy {
    flex:1 1 0;
    min-width:0;
  }
  .shell[data-locali-route="mapa"]:not(.pet-saved-places-screen) .pet-map-stage:not(.is-empty) > .map-sheet .pill {
    white-space:normal;
    font-size:10px;
    line-height:1.25;
  }
  .shell[data-locali-route="mapa"]:not(.pet-saved-places-screen) .pet-map-stage:not(.is-empty) > .map-sheet .muted {
    font-size:10px;
    line-height:1.3;
  }
}
/* Recovery and lost-mode share some visual components with Protection, but
   their own page headings should stay textual: the body already has its
   illustration (lost mode) or operational map (recovery). */
.shell[data-locali-route="busca"] .page-heading,
.shell[data-locali-route="perdido"] .page-heading {
  min-height:0;
  padding:10px 0 16px;
  background:none;
  background-image:none;
}
.shell[data-locali-route="busca"] .page-heading :is(.title,.muted),
.shell[data-locali-route="perdido"] .page-heading :is(.title,.muted) {
  max-width:100%;
  position:relative;
}

/* Diário: última faixa da tag e posições por hora */
.pet-approved .diary-summary-temperature {display:flex;flex-direction:row;align-items:center;gap:14px}
.pet-approved .diary-temperature-copy {display:flex;flex-direction:column;gap:7px;min-width:0}
.pet-approved .diary-temperature-copy > span {font-size:12px;color:#617a70}
.pet-approved .diary-temperature-copy > strong {font-size:20px;line-height:1.2;color:#174f4b;overflow-wrap:anywhere}
.pet-approved .diary-temperature-copy > small {font-size:11px;color:#617a70;line-height:1.4}
.pet-approved .diary-signal-bar {fill:#77b7a5;opacity:.58}
.pet-approved .diary-signal-bar:is(:focus,.is-selected) {fill:#459888;opacity:.88}
.pet-approved .diary-signal-line {stroke:#174f4b;stroke-width:2.7}
.pet-approved .diary-signal-point-passive {fill:#174f4b;stroke:#fffdfa;stroke-width:1;pointer-events:none}
.pet-approved .diary-chart-intro {margin:0 4px 12px;font-size:12px}
@media(max-width:370px){.pet-approved .diary-summary-temperature{gap:8px}.pet-approved .diary-temperature-copy > strong{font-size:17px}}

/* Minimal daily overview: quiet surfaces and one visual per measurement. */
.shell.pet-daily.pet-approved[data-locali-route="painel"] .page-heading {
  grid-template-columns:minmax(0,1fr) 64px;min-height:0;padding:8px 0 22px;background:none;
}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .page-heading::before {display:none}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .page-heading .title {font-size:clamp(27px,6vw,38px);overflow-wrap:anywhere}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .page-heading > .pet-avatar {width:64px;height:64px;border-radius:50%;font-size:36px}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .page-heading > .pet-avatar img {border-radius:50%;object-fit:cover}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .diary-period {gap:4px;padding:5px;border-radius:24px;background:#fffdf9;margin-bottom:18px}
.pet-daily.pet-approved .diary-period > .button {flex:1;border:0;border-radius:20px;min-height:44px;background:transparent;box-shadow:none}
.pet-daily.pet-approved .diary-period > .button[aria-pressed="true"] {background:#d5eee0;color:#073e43}
.pet-daily.pet-approved .diary-custom {margin:0;min-width:52px}
.pet-daily.pet-approved .diary-custom summary {display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px 14px;list-style:none;border-radius:18px}
.pet-daily.pet-approved .diary-custom summary::-webkit-details-marker {display:none}
.pet-daily.pet-approved .diary-custom summary:focus-visible {outline:2px solid #168b78;outline-offset:2px}
.pet-daily.pet-approved .diary-custom[open] summary {justify-content:flex-end}
.pet-daily.pet-approved .diary-date-form {padding:8px}
.pet-daily.pet-approved .diary-summary {padding:0;border:0;background:transparent;gap:12px}
.pet-daily.pet-approved .diary-summary-item {position:relative;justify-content:center;padding:20px 17px;min-height:145px;border:0;border-radius:24px;background:#e4f2e9;gap:12px}
.pet-daily.pet-approved .diary-summary-item + .diary-summary-item {padding:20px 17px;border:0;background:#fff0e4}
.pet-daily.pet-approved .diary-summary-item > strong {font-size:48px;line-height:1;font-variant-numeric:tabular-nums;color:#073e43}
.pet-daily.pet-approved .diary-summary-item > .line-icon {position:absolute;bottom:20px;right:15px;width:32px;height:32px;color:#87c9af}
.pet-daily.pet-approved .diary-summary-temperature > .line-icon {width:22px;height:22px;top:16px;right:12px;color:#d88652}
.pet-daily.pet-approved .diary-temperature-copy {gap:10px;width:100%}
.pet-daily.pet-approved .diary-temperature-copy > span {padding-right:20px;font-size:12px}
.pet-daily.pet-approved .diary-temperature-copy > strong {font-size:clamp(18px,4.6vw,24px);line-height:1.25;color:#073e43;overflow-wrap:normal}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .diary-combined-chart {border:0;border-radius:24px;padding:22px 16px 16px;background:#fff;box-shadow:0 6px 24px rgb(7 62 67 / .025)}
.pet-daily.pet-approved .diary-combined-chart h2 {font-size:20px;margin:0 4px 24px}
.pet-daily.pet-approved .diary-signal-bar {fill:#b9dfcc;opacity:1}
.pet-daily.pet-approved .diary-signal-bar:is(.is-latest,.is-selected) {fill:#07565a}
.pet-daily.pet-approved .diary-bar-target {cursor:pointer;outline:none}
.pet-daily.pet-approved .diary-bar-target:focus-visible .diary-signal-bar {stroke:#073e43;stroke-width:2}
.pet-daily.pet-approved .diary-bar-target:focus-visible > rect:first-child {stroke:#168b78;stroke-width:1}
.pet-daily.pet-approved .diary-bar-count {fill:#073e43;font-size:13px;font-weight:600;pointer-events:none}
.pet-daily.pet-approved .diary-axis-label {fill:#647a7e;font-size:11px}
.pet-daily.pet-approved .diary-chart-reading {text-align:center;color:#647a7e;font-weight:400;min-height:1.5em;margin:8px 0 0}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .diary-last-position {display:flex;align-items:center;gap:16px;padding:20px;margin-bottom:16px;background:#fff;border:0;border-radius:24px;color:#073e43;text-decoration:none}
.pet-daily.pet-approved .diary-last-position > .line-icon {width:28px;height:28px;flex:none}
.pet-daily.pet-approved .diary-last-position > div {display:grid;gap:5px;min-width:0}
.pet-daily.pet-approved .diary-last-position strong {font-size:16px}
.pet-daily.pet-approved .diary-last-position small {font-size:12px;color:#647a7e}
.pet-daily.pet-approved .diary-last-arrow {margin-left:auto;font-size:28px}
.shell.pet-daily.pet-approved[data-locali-route="painel"] .diary-top-places {background:#fff;border:0;border-radius:24px;padding:18px 20px}
.pet-daily.pet-approved .diary-top-places > summary {cursor:pointer;font-size:15px;font-weight:700;min-height:28px}
@media(max-width:359px){
  .pet-daily.pet-approved .diary-summary {gap:8px}
  .pet-daily.pet-approved .diary-summary-item,.pet-daily.pet-approved .diary-summary-item + .diary-summary-item {padding:16px 12px}
  .pet-daily.pet-approved .diary-summary-item > strong {font-size:40px}
}

/* Profile: restrained frosted glass, scoped to preserve the other screens. */
.shell.pet-glass-profile[data-locali-route] {
  --profile-glass:rgb(255 255 255 / .64);
  --profile-ink:#123f45;
  --profile-muted:#4c666b;
  color:var(--profile-ink);
  font-family: var(--font-ui);
  background:radial-gradient(ellipse at 0% 12%,#dceee8 0,transparent 54%),radial-gradient(ellipse at 100% 70%,#f7e9de 0,transparent 52%),#f7f8f5;
  isolation:isolate;
}
.shell.pet-glass-profile[data-locali-route] .page-heading {
  min-height:0;padding:6px 0 22px;background:none;
}
.shell.pet-glass-profile[data-locali-route] .page-heading::before,
.shell.pet-glass-profile[data-locali-route] .page-heading::after,
.shell.pet-glass-profile[data-locali-route] .top::after {content:none;display:none}
.shell.pet-glass-profile[data-locali-route] .title {font-family:inherit;font-size:clamp(30px,7vw,40px);font-weight:750;letter-spacing:-1px;max-width:100%;line-height:1.12}
.shell.pet-glass-profile[data-locali-route] .page-heading .muted {font-size:15px;margin-top:8px;max-width:100%;color:var(--profile-muted)}
.shell.pet-glass-profile[data-locali-route] > .card,
.shell.pet-glass-profile[data-locali-route] .profile-card {
  background:linear-gradient(135deg,rgb(255 255 255 / .25),rgb(255 255 255 / .04)),var(--profile-glass);
  border:1px solid rgb(255 255 255 / .9);border-radius:26px;
  box-shadow:inset 0 1px 0 #fff,0 8px 24px rgb(24 65 58 / .055),0 1px 2px rgb(24 65 58 / .04);
  backdrop-filter:blur(20px) saturate(115%);-webkit-backdrop-filter:blur(20px) saturate(115%);
  padding:20px;margin:0 0 22px;
}
.shell.pet-glass-profile[data-locali-route] .profile-card {display:grid;grid-template-columns:68px minmax(0,1fr);gap:7px 16px;align-items:center}
.shell.pet-glass-profile[data-locali-route] .profile-photo-button {grid-row:1 / span 2;width:68px;height:68px;min-height:0;padding:0;border:2px solid #fff;border-radius:50%;cursor:pointer;background:#e1eee8;box-shadow:0 3px 10px #123f4510}
.shell.pet-glass-profile[data-locali-route] .profile-card > div {min-width:0;display:grid;gap:6px}
.shell.pet-glass-profile[data-locali-route] .profile-card strong {font-size:20px;line-height:1.2}
.shell.pet-glass-profile[data-locali-route] .profile-card .muted {font-size:13px;color:var(--profile-muted);line-height:1.5}
.shell.pet-glass-profile[data-locali-route] .profile-photo-details {grid-column:2;min-width:0}
.shell.pet-glass-profile[data-locali-route] .profile-photo-details[open] {grid-column:1 / -1}
.shell.pet-glass-profile[data-locali-route] summary {cursor:pointer;min-height:44px;align-content:center;line-height:1.4}
.shell.pet-glass-profile[data-locali-route] .profile-photo-details summary {color:#075f5a;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.shell.pet-glass-profile[data-locali-route] .pet-tutor-photo-actions {margin:8px 0 0;gap:8px}
.shell.pet-glass-profile[data-locali-route] .profile-group-title {font-family:inherit;font-size:17px;font-weight:650;letter-spacing:-.25px;margin:24px 6px 12px}
.shell.pet-glass-profile[data-locali-route] :is(.profile-preferences,.profile-account) > .card {
  background:transparent;box-shadow:none;border:0;border-radius:0;margin:0;padding:16px 0;backdrop-filter:none;-webkit-backdrop-filter:none;
}
.shell.pet-glass-profile[data-locali-route] :is(.profile-preferences,.profile-account) > .card:first-child {padding-top:0}
.shell.pet-glass-profile[data-locali-route] :is(.profile-preferences,.profile-account) > .card:last-child {padding-bottom:0}
.shell.pet-glass-profile[data-locali-route] :is(.profile-preferences,.profile-account) > .card + .card {border-top:1px solid rgb(40 80 72 / .12)}
.shell.pet-glass-profile[data-locali-route] :is(h3,.profile-push h2,.account-password summary) {font-family:inherit;font-size:16px;font-weight:650;margin:0 0 5px;line-height:1.4}
.shell.pet-glass-profile[data-locali-route] :is(.profile-preferences,.profile-account) p {font-size:13px;line-height:1.5;color:var(--profile-muted);margin:4px 0 12px}
.shell.pet-glass-profile[data-locali-route] .profile-preferences label {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.shell.pet-glass-profile[data-locali-route] :is(select,.field) {width:100%;min-height:46px;border:1px solid #b6cdc5;border-radius:14px;background:rgb(255 255 255 / .66);padding:11px 13px;color:var(--profile-ink);font:inherit;font-size:15px}
.shell.pet-glass-profile[data-locali-route] .button {min-height:44px;font-family:inherit;font-weight:600;font-size:14px;line-height:1.4}
.shell.pet-glass-profile[data-locali-route] .button.secondary {background:rgb(255 255 255 / .55);border:1px solid #b6cdc5;box-shadow:inset 0 1px 0 #fff;color:#174e4c}
.shell.pet-glass-profile[data-locali-route] .button.secondary:hover {background:#e0f0e8}
.shell.pet-glass-profile[data-locali-route] .account-password > form {background:transparent;border:0;box-shadow:none;padding:12px 0 0;margin:0;backdrop-filter:none}
.shell.pet-glass-profile[data-locali-route] .account-password > form > h2 {display:none}
.shell.pet-glass-profile[data-locali-route] .account-password label {display:block;margin:12px 0 6px}
.shell.pet-glass-profile[data-locali-route] .profile-push .button[hidden] {display:none}
.shell.pet-glass-profile[data-locali-route] :is(button,summary,select,input,a):focus-visible {outline:3px solid #13776d;outline-offset:3px}
.shell.pet-glass-profile[data-locali-route] ~ .nav {
  background:rgb(255 255 255 / .76);border:1px solid rgb(255 255 255 / .95);border-radius:28px;
  box-shadow:inset 0 1px 0 #fff,0 6px 24px #133e4512;
  backdrop-filter:blur(24px) saturate(115%);-webkit-backdrop-filter:blur(24px) saturate(115%);
}
.shell.pet-glass-profile[data-locali-route] ~ .nav a {color:#49635f}
.shell.pet-glass-profile[data-locali-route] ~ .nav a.active {color:#075b55;background:rgb(193 229 214 / .7);border-radius:20px;box-shadow:inset 0 1px 0 rgb(255 255 255 / .85);border-bottom:0}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .shell.pet-glass-profile[data-locali-route] {--profile-glass:#f9fbf8}
  .shell.pet-glass-profile[data-locali-route] ~ .nav {background:#f9fbf8}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  .shell.pet-glass-profile[data-locali-route] {--profile-glass:#fff;background:#f3f6f3}
  .shell.pet-glass-profile[data-locali-route] > .card {background:#fff;border-color:#8ca79d;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
  .shell.pet-glass-profile[data-locali-route] ~ .nav {background:#fff;border-color:#8ca79d;backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(max-width:359px) {
  .shell.pet-glass-profile[data-locali-route] > .card {padding:16px}
  .shell.pet-glass-profile[data-locali-route] .profile-card {grid-template-columns:52px minmax(0,1fr);gap:6px 12px}
  .shell.pet-glass-profile[data-locali-route] .profile-photo-button {width:52px;height:52px}
}

/* Shared visual language across Pets, Map, Protection and Profile. */
.shell.pet-unified[data-locali-route]{--pet-unified-ink:#344333;--pet-unified-muted:#82917b;--pet-unified-line:#e1e8d9;background:linear-gradient(135deg,#f2f5ed,#f8f4e9 70%,#eef2e9);color:var(--pet-unified-ink);border-radius:23px}
.shell.pet-unified[data-locali-route] > .top{background:transparent;border-color:var(--pet-unified-line)}
.shell.pet-unified[data-locali-route] > .top .brand{color:#435f49}
.shell.pet-unified[data-locali-route] > .page-heading h1,.shell.pet-unified[data-locali-route] > h1{color:#354836;letter-spacing:-.025em}
.shell.pet-unified[data-locali-route] > .card,.shell.pet-unified[data-locali-route] > section.card,.shell.pet-unified[data-locali-route] .pet-home-card{border:1px solid var(--pet-unified-line);border-radius:20px;background:#fffefa;box-shadow:0 5px 18px rgb(50 75 49 / .045)}
.shell.pet-unified[data-locali-route] > .card h2,.shell.pet-unified[data-locali-route] > section.card h2{color:#3b503a}
.shell.pet-unified[data-locali-route] .muted{color:var(--pet-unified-muted)}
.shell.pet-unified[data-locali-route] ~ .nav{background:rgb(255 255 250 / .95);border:1px solid #e0e8d9;border-radius:24px;box-shadow:0 12px 30px rgb(43 67 45 / .10);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.shell.pet-unified[data-locali-route] ~ .nav a{color:#5a715d}
.shell.pet-unified[data-locali-route] ~ .nav a.active{background:#dcefe3;color:#315f53;border-radius:18px}
@media(max-width:760px){.shell.pet-unified[data-locali-route]{border-radius:0}.shell.pet-unified[data-locali-route] ~ .nav{margin:0 14px 12px}}
@media(prefers-contrast:more){.shell.pet-unified[data-locali-route] > .card,.shell.pet-unified[data-locali-route] ~ .nav{border-color:#738c71}}

/* Named saved places in the diary mini map. */
.pet-tracker-place-label{max-width:180px;padding:8px 13px;border:1px solid #d6e3d2;border-radius:14px;background:#fffefa;color:#354e3a;font:600 13px/1.25 var(--font-ui);text-align:center;box-shadow:0 5px 17px rgb(36 62 37 / .22);white-space:normal;overflow-wrap:anywhere;transform:translateY(-7px)}
.pet-tracker-place-label::after{content:'';position:absolute;left:calc(50% - 5px);bottom:-5px;width:9px;height:9px;background:#fffefa;border-right:1px solid #d6e3d2;border-bottom:1px solid #d6e3d2;transform:rotate(45deg)}

/* Login: the diary's warm palette, with one viewport and no nested scrolling
   at normal phone and desktop sizes. Small/zoomed screens keep the form reachable. */
.login-screen:not(.approved-react){max-width:none;background:linear-gradient(135deg,#e1e8d8 0%,#f7ecd4 52%,#dce8de 100%);color:#344333}
.login-screen:not(.approved-react)::before{content:'';position:absolute;width:min(44vw,520px);aspect-ratio:1;border-radius:50%;top:-24%;right:21%;background:#fff0ba66;filter:blur(72px);pointer-events:none}
.login-screen:not(.approved-react) .login-art{background-color:transparent;background-size:min(88%,580px) auto;background-position:center 54%}
.login-screen:not(.approved-react) .login-brand{color:#405942}
.login-screen:not(.approved-react) .login{z-index:1;width:min(100%,430px);max-width:430px;max-height:none;padding:clamp(25px,3.5vw,42px);border:1px solid #e3e9d9;border-radius:25px;background:#fffefa;box-shadow:0 25px 70px rgb(46 64 43 / .13);overflow:visible}
.login-screen:not(.approved-react) .login-eyebrow{display:block;color:#8b9d7c;font-size:10px;font-weight:800;letter-spacing:.17em;margin-bottom:11px}
.login-screen:not(.approved-react) .title{color:#344b39;font-family: var(--font-ui);font-size:clamp(28px,3vw,37px);letter-spacing:-.035em}
.login-screen:not(.approved-react) .title + .muted{color:#7f8d78;margin-bottom:18px}
.login-screen:not(.approved-react) .login-label{color:#495f49}
.login-screen:not(.approved-react) .field{border-color:#d4dfcc;background:#f9faf5;border-radius:12px}
.login-screen:not(.approved-react) .field:focus{border-color:#7f9d72;outline-color:#b8d2a9}
.login-screen:not(.approved-react) .button{background:#516c53;border-radius:12px;box-shadow:0 6px 16px rgb(59 84 56 / .15)}
.login-screen:not(.approved-react) .button:hover{background:#3d6045}
.login-screen:not(.approved-react) .forgot-link{color:#59765b}
@media(max-width:759px){
  .login-screen:not(.approved-react){background:linear-gradient(155deg,#dbe7d8,#f2e4c8 47%,#f6f7ef 75%)}
  .login-screen:not(.approved-react) .login-brand{top:calc(13px + env(safe-area-inset-top));left:23px}
  .login-screen:not(.approved-react) .login-art{flex:1 1 0;min-height:90px;background-size:auto min(90%,280px);background-position:center 61%}
  .login-screen:not(.approved-react) .login{flex:0 0 auto;align-self:stretch;width:100%;max-width:none;max-height:none;margin:0;padding:18px 23px calc(12px + env(safe-area-inset-bottom));border:0;border-top:1px solid #ffffffb0;border-radius:24px 24px 0 0;box-shadow:0 -12px 35px rgb(44 63 45 / .10);overflow:visible}
  .login-screen:not(.approved-react) .login-eyebrow{margin-bottom:5px;font-size:9px}
  .login-screen:not(.approved-react) .title{font-size:clamp(25px,7vw,31px)}
  .login-screen:not(.approved-react) .title + .muted{margin-bottom:8px}
  .login-screen:not(.approved-react) .login-label{margin:7px 0 3px}
  .login-screen:not(.approved-react) .field{height:44px;min-height:44px}
  .login-screen:not(.approved-react) .button{min-height:46px}
  .login-screen:not(.approved-react) .forgot-link{min-height:31px;padding:7px 0 3px}
}
@media(max-width:759px) and (max-height:690px){
  .login-screen:not(.approved-react) .login-art{min-height:0}
  .login-screen:not(.approved-react) .login{padding-top:11px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}
  .login-screen:not(.approved-react) .title + .muted{margin-bottom:4px}
}
@media(max-width:759px) and (max-height:580px){
  .login-screen:not(.approved-react) .login-brand,.login-screen:not(.approved-react) .login-art{display:none}
  .login-screen:not(.approved-react) .login{height:100%;overflow-y:auto;border-radius:0;box-shadow:none}
}
@media(min-width:760px) and (max-height:560px){.login-screen:not(.approved-react) .login{max-height:100dvh;overflow-y:auto}}
@media(prefers-reduced-motion:reduce){.login-screen:not(.approved-react) *{animation:none;transition:none}}
/* Shared asset chooser: every option, including registration, has one footprint. */
.pet-chooser .pet-chooser-item{width:84px;min-width:84px;max-width:84px;min-height:93px;justify-content:flex-start}
.pet-chooser .asset-map-portrait{width:48px;height:48px;object-fit:contain;border-radius:22%;background:#f2f7f0;border:2px solid #fff}
.pet-chooser .pet-chooser-add{border:0;background:transparent;font:inherit;cursor:pointer}
.pet-chooser .pet-chooser-add-icon{display:grid;place-items:center;width:48px;height:48px;max-width:none!important;border:2px dashed #8db3a7;border-radius:50%;color:#347b6f;background:#f8faf5;font-size:30px;font-weight:400}
.pet-chooser .pet-chooser-add:focus-visible{outline:3px solid #cda264;outline-offset:2px}
.all-assets-stage{position:relative;min-height:380px;margin-bottom:16px}
.all-assets-stage>.map{min-height:380px;height:clamp(380px,55svh,620px)}
.all-assets-item .asset-map-portrait,.all-assets-position-info .asset-map-portrait{width:50px;height:50px;flex:none;object-fit:cover;border:3px solid var(--asset-marker-color,#168b78);border-radius:22%;background:#fff}
.asset-map-portrait.is-photo-loading{background:linear-gradient(110deg,#e3eee8 10%,#f7faf5 42%,#e3eee8 75%);background-size:210% 100%;animation:pet-loading-shimmer 1.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.asset-map-portrait.is-photo-loading{animation:none}}
.shell[data-locali-route="mapa"] .pet-tracker-marker--pet{outline-color:var(--asset-marker-color,#078f86)}
@media(max-width:760px){.all-assets-list{grid-template-columns:1fr}.all-assets-stage>.map{height:52svh;min-height:360px}}
/* Pettycare signature: keep the supplied heart and blue wordmark recognizable. */
.shell .top .brand,.shell[data-locali-route] .top .brand{display:inline-flex;align-items:center;gap:0;color:#07376e!important;font-weight:800;letter-spacing:-1.1px}
.shell .top .brand .brand-heart,.brand .brand-heart{display:block;width:34px;height:34px;object-fit:contain;margin-right:7px;flex:none}
.shell .top .brand em,.shell[data-locali-route] .top .brand em,.brand em{color:#078ce7!important;font-style:normal}
.lp-brand{gap:0;color:#07376e!important}.lp-brand img{width:34px;height:34px;object-fit:contain;margin-right:7px}.lp-brand span{color:#078ce7!important}
.pettycare-signature{display:flex;align-items:center;justify-content:center;gap:0;width:max-content;max-width:100%;margin:24px auto 12px;background:transparent;color:#07376e;font:800 clamp(25px,7vw,38px)/1 var(--font-ui);letter-spacing:-1.5px}
.pettycare-signature img{display:block;width:58px;height:58px;object-fit:contain;margin-right:7px}
.pettycare-signature span{color:#078ce7}

/* Pettycare: fallback técnico sem imagens herdadas, sem duplicação do hero React.
   As rotas secundárias preservam formulários, mapas, QR, proteção e notificações. */
.shell .top::after,.shell .top::before,.nav::before{content:none;display:none;}
.shell:not(.approved-react)[data-locali-route] .page-heading::before,
.shell:not(.approved-react)[data-locali-route] .page-heading::after{content:none;display:none;}
.shell:not(.approved-react)[data-locali-route] .page-heading{
  min-height:0; padding:16px 0 24px;
  background:transparent;
}
#app main.approved-react > .page-heading[hidden]{display:none!important}

/* ── Avisos: sino ao lado da foto de perfil + faixa compacta ───────────────
   O sino vive no cabeçalho (44×44) e abre o card ancorado logo abaixo dele.
   A faixa é o resumo de uma linha: some com os cartões horizontais que
   tomavam a tela inteira. Cores por severidade: crítico, atenção e info. */
.notice-bell-wrap{position:relative;display:inline-flex;flex:none}
.top-account-group{margin-left:auto;display:inline-flex;align-items:center;gap:8px}
.top-account-group .account-link{margin-left:0}
.notice-bell{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #c9dcd5;border-radius:50%;background:var(--locali-mint);color:var(--locali-ink);cursor:pointer;transition:background .16s,transform .16s}
.notice-bell:hover{background:#b9e4d2}
.notice-bell:active{transform:translateY(1px)}
.notice-bell:focus-visible{outline:3px solid #0b6ea4;outline-offset:2px}
.notice-bell .line-icon{width:24px;height:24px}
.notice-bell.has-notice{background:#ffe6cf;border-color:#e9bf92}
.notice-bell.is-open{background:#ffe6cf}
.notice-bell-badge{position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border-radius:10px;background:#c0392b;color:#fff;font-size:11px;font-weight:800;line-height:1;box-shadow:0 2px 6px #073e4333}
.notice-bell-badge[hidden]{display:none}
@keyframes notice-bell-pulse{0%{transform:rotate(0)}18%{transform:rotate(-13deg) scale(1.08)}36%{transform:rotate(11deg) scale(1.05)}54%{transform:rotate(-7deg)}72%{transform:rotate(4deg)}100%{transform:rotate(0) scale(1)}}
.notice-bell.is-pulsing .line-icon{animation:notice-bell-pulse 1.1s ease-in-out}
@media(prefers-reduced-motion:reduce){.notice-bell.is-pulsing .line-icon{animation:none}}

/* O card é posicionado por JS em relação ao sino (fixed): dentro do
   cabeçalho ele era cortado pelo overflow do header e nascia fora da tela. */
.notice-bell-panel{position:fixed;z-index:60;left:12px;top:80px;width:min(340px,calc(100vw - 24px));max-height:min(70vh,520px);overflow:auto;margin:0;padding:14px 16px;border:1px solid #cfe4d8;border-radius:20px;background:#fffdf7;box-shadow:0 12px 34px #073e4326;text-align:left}
.notice-bell-panel[hidden]{display:none!important}
.notice-bell-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.notice-bell-head strong{font-weight:800;color:var(--locali-ink)}
.notice-bell-head span{font-size:12px}
.notice-bell-list{list-style:none;display:flex;flex-direction:column;gap:8px;margin:0;padding:0}
.notice-bell-item{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 12px;border:1px solid #e3eee6;border-left:4px solid #9ac9b0;border-radius:16px;background:#f7fbf6}
.notice-bell-item-warn{border-left-color:#d98a2b;background:#fdf6e8}
.notice-bell-item-error{border-left-color:#c0392b;background:#ffe9e2}
.notice-bell-item-event{border-left-color:#c0392b;background:#fff3ef}
.notice-bell-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.notice-bell-copy strong{font-size:14px;font-weight:800;color:var(--locali-ink);overflow-wrap:anywhere}
.notice-bell-copy span{font-size:12px;line-height:1.45}
.notice-bell-action{flex:none;min-height:40px;padding:8px 14px;font-size:13px}
.notice-bell-empty{padding:6px 2px;font-size:13px}

/* Faixa compacta: uma linha com o aviso mais urgente e atalho para o card. */
.pet-notice-strip{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:0 0 12px;padding:9px 14px;border:1px solid #e8d9b8;border-left:4px solid #d98a2b;border-radius:14px;background:#fdf6e8;color:#6b4a12;font-size:13px;font-weight:700;line-height:1.45;text-align:left;cursor:pointer}
.pet-notice-strip:hover{background:#f9efd8}
.pet-notice-strip:focus-visible{outline:3px solid #0b6ea4;outline-offset:2px}
.pet-notice-strip-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#d98a2b}
.pet-notice-strip-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
.pet-notice-strip-action{margin-left:auto;flex:none;font-size:12px;font-weight:800;text-decoration:underline}
.pet-notice-strip.is-error{border-color:#e7b3a8;border-left-color:#c0392b;background:#ffe9e2;color:#8c3027}
.pet-notice-strip.is-error .pet-notice-strip-dot{background:#c0392b}
@media(max-width:420px){.pet-notice-strip{font-size:12px;padding:8px 11px}}

/* ── Sino de avisos + foto do perfil: mesma altura (44px) e mesmo acabamento.
   O sino herda o vidro dos cartões do app (borda branca, sombra suave e
   blur) em vez do verde chapado; a foto do tutor preenche o botão redondo
   inteiro, do mesmo tamanho do sino ao lado. ─────────────────────────── */
.top-account-group .account-link,
.shell[data-locali-route] .top-account-group .account-link{
  width:44px;min-width:44px;height:44px;padding:7px;
}
.shell[data-locali-route] .top-account-group .account-link .pet-tutor-avatar{
  width:100%;height:100%;
}
.notice-bell{
  border-color:rgb(255 255 255 / .85);
  background:rgb(255 255 255 / .64);
  color:var(--pet-deep,#0d3b38);
  box-shadow:0 4px 18px rgb(7 62 67 / .09);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  transition:background .15s ease,transform .12s ease;
}
.notice-bell:hover{background:rgb(255 255 255 / .88)}
.notice-bell:active{transform:translateY(1px)}
.notice-bell.has-notice,.notice-bell.is-open{
  background:rgb(255 236 214 / .78);border-color:rgb(233 191 146 / .9);color:#8a5a2b;
}

/* Número de avisos no mesmo canto (superior direito), agora assentado SOBRE
   a borda do sino: anel branco separa o badge do vidro e o deslocamento
   pequeno mantém o círculo como âncora visual. */
.top-account-group .notice-bell-badge,
.notice-bell .notice-bell-badge{
  top:-6px!important;right:-6px!important;
  min-width:20px!important;height:20px!important;
  box-sizing:content-box!important;border:2px solid #fff!important;
  box-shadow:0 2px 8px rgba(7,62,67,.24)!important;
}


/* Alertas do tutor: seletor por ativo no próprio card do sino. */
.notice-asset-filters{
  display:flex;gap:6px;align-items:center;max-width:100%;overflow-x:auto;
  padding:3px 0 10px;margin:0 0 4px;scrollbar-width:thin;
}
.notice-asset-filter{
  flex:0 0 auto;border:1px solid rgba(21,97,89,.22);
  background:rgba(255,255,255,.57);border-radius:13px;padding:8px 11px;
  font-size:12px;font-weight:700;line-height:1.2;color:var(--locali-ink);
  cursor:pointer;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.notice-asset-filter[aria-pressed="true"]{
  border-color:rgba(21,97,89,.55);background:rgba(188,230,215,.63);
}
.notice-asset-filter:focus-visible{outline:3px solid #0b6ea4;outline-offset:2px}

.pet-notice-strip-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:1}
.pet-notice-strip-copy .pet-notice-strip-text{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pet-notice-strip-last{display:block;font-size:11px;line-height:1.3;font-weight:500;opacity:.83;white-space:nowrap}
