* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: #137853; }
:focus-visible { outline: 3px solid #65b98b; outline-offset: 3px; }
.shell { max-width: 780px; min-height: 100dvh; margin: auto; padding: calc(14px + env(safe-area-inset-top)) 20px calc(102px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 16px; }
.brand { display: inline-flex; align-items: center; color: #137853; font-size: 21px; font-weight: 800; letter-spacing: -.7px; text-decoration: none; }
.brand::before { content: "🐾"; display: grid; place-items: center; width: 38px; height: 38px; margin-right: 9px; border-radius: 12px; background: #e2f3e7; font-size: 20px; letter-spacing: 0; }
.account-link { min-height: 44px; padding: 9px 12px; border: 1px solid #d8e9dd; border-radius: 12px; background: #fff; color: #286e4b; font-size: 13px; font-weight: 700; }
.title { margin: 12px 0 8px; font: 800 clamp(31px,4vw,42px)/1.07 var(--font-ui); letter-spacing: -.055em; }
.muted { color: #698174; font-size: 14px; line-height: 1.55; }
.title + .muted { margin: 0 0 22px; }
h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.35px; }
.card { margin: 14px 0; padding: 18px; border: 1px solid #dfe9df; border-radius: 19px; background: #fff; box-shadow: 0 7px 22px #153f2c09; }
.pet-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 94px; text-align: left; color: inherit; transition: transform .15s, box-shadow .15s; }
.pet-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px #153f2c17; }
.pet-icon { display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: 16px; background: #f5e8d4; font-size: 32px; }
.pet-copy { display: grid; gap: 8px; min-width: 0; }
.pet-copy strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { margin-left: auto; color: #93aa99; font-size: 28px; line-height: 1; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 10px; border-radius: 30px; background: #e0f2e5; color: #156b49; font-size: 12px; font-weight: 700; }
.pill.warn { background: #fff0d7; color: #875819; }
.pet-label { margin: -5px 0 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 18px; border: 0; border-radius: 13px; background: #147c58; color: #fff; font-weight: 750; text-decoration: none; text-align: center; }
.button:hover { background: #0c6547; }
.button.secondary { background: #e2f2e7; color: #176d4d; }
.button.secondary:hover { background: #d3eada; }
.button:disabled { opacity: .55; cursor: default; }
.wide { width: 100%; }
.field { display: block; width: 100%; min-height: 48px; margin: 10px 0; padding: 13px 14px; border: 1px solid #d2e1d6; border-radius: 13px; background: #fff; color: #1b382d; font-size: 16px; }
.field::placeholder { color: #83998b; }
.pet-paw-settings label { display: block; margin: 12px 0 7px; font-weight: 700; }
.pet-paw-settings select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #d2e1d6; border-radius: 12px; background: #fff; color: #1b382d; }
.pet-paw-settings p { margin: 0; color: #698174; font-size: 14px; line-height: 1.5; }
.pet-tracker-map .maplibregl-popup-content { white-space: pre-line; font: 13px/1.45 var(--font-ui); }
.pet-tracker-map .pet-paw-popup .maplibregl-popup-content {
  min-width: 148px;
  padding: 18px 42px 18px 22px;
  border-radius: 20px;
  background: #fffdf7;
  color: #0b5858;
  box-shadow: 0 8px 28px rgb(7 62 67 / .18);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.pet-tracker-map .pet-paw-popup .maplibregl-popup-content::first-line {
  color: #647c77;
  font-size: 13px;
  font-weight: 500;
}
.pet-tracker-map .pet-paw-popup .maplibregl-popup-close-button {
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #647c77;
  font-size: 21px;
}
.pet-tracker-map .pet-paw-popup .maplibregl-popup-close-button:hover { background: #e8f3ee; }
.pet-tracker-map .pet-paw-popup .maplibregl-popup-close-button:focus-visible { outline: 2px solid #168b78; outline-offset: 2px; }
.pet-tracker-map .pet-paw-popup[class*="maplibregl-popup-anchor-bottom"] .maplibregl-popup-tip { border-top-color: #fffdf7; }
.pet-tracker-map .pet-paw-popup[class*="maplibregl-popup-anchor-top"] .maplibregl-popup-tip { border-bottom-color: #fffdf7; }
.pet-tracker-map .pet-paw-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #fffdf7; }
.pet-tracker-map .pet-paw-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #fffdf7; }

.nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 3px; padding: 7px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(220,233,223,.55); background: transparent; box-shadow: none; backdrop-filter: none; opacity: 0.97; }
.nav a { flex: 1; max-width: 142px; min-height: 53px; padding: 5px 2px; border-radius: 12px; color: #71877a; font-size: 12px; text-align: center; text-decoration: none; }
.nav a.active { background: #ecf7ef; color: #137853; }
.nav a strong { display: block; font-weight: 700; }
.nav span { display: block; margin-bottom: 2px; font-size: 21px; line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
.chart-card { margin: 12px 0; }
.chart-card h2 { margin-bottom: 18px; font-size: 16px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 152px; padding-top: 8px; border-bottom: 1px solid #e1eae1; background: repeating-linear-gradient(to top, transparent 0, transparent 39px, #edf2ed 40px); }
.bar { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; height: 100%; color: #71887a; font-size: 11px; text-align: center; white-space: nowrap; }
.bar span { flex: none; margin-top: 7px; transform: translateY(22px); }
.chart-card:has(.bars) { padding-bottom: 40px; }
.footnote { margin: 19px 0; font-size: 12px; }
.map { position: relative; height: min(55dvh, 480px); min-height: 310px; margin: 14px 0 0; border-radius: 20px; background: #e6eee5; overflow: hidden; }
.map-message { display: grid; place-items: center; padding: 25px; color: #466856; text-align: center; }
.map .leaflet-container { position: absolute; inset: 0; font: inherit; }
.pet-fallback-map { width: 100%; height: 100%; object-fit: contain; background: #eef3ec; }
.pet-fallback-note { margin: 8px 2px 0; }
.pet-alert-banner { border-color: #e8b04b; background: #fff8e8; }
.pet-alert-banner strong { display: block; margin-bottom: 8px; font-size: 16px; }
.pet-ntc-alert-banner {
  border-color: #e8b04b;
  background: #fff8e8;
  margin-top: 8px;
}
.pet-ntc-alert-banner strong { display: block; margin-bottom: 8px; font-size: 16px; }
.pet-silence-alert-banner {
  border-color: #d35b5b;
  background: #fdf0f0;
  margin-top: 8px;
}
.pet-silence-alert-banner strong { display: block; margin-bottom: 6px; font-size: 16px; color: #8a2b2b; }
.pet-silence-alert-banner span { font-size: 13px; color: #6b3a3a; }
.pet-alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.pet-alert-row span { flex: 1; min-width: 180px; }
.pet-alert-action { min-height: 44px; padding: 9px 14px; font-size: 14px; }
.encounters-card h2 { margin-bottom: 4px; }
.encounter-item { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid #e2ebe4; }
.encounter-item:first-of-type { border-top: 0; }
.encounter-item strong { font-size: 15px; }
.encounter-item p { margin: 0; }
.pet-popup-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgb(7 62 67 / .55); }
.pet-popup-card { width: min(420px, 100%); text-align: center; }
.pet-popup-card strong { display: block; font-size: 19px; margin-bottom: 6px; }
.pet-popup-actions { display: flex; gap: 8px; margin-top: 14px; }
.pet-popup-actions .button { flex: 1; }
.map-sheet .button { margin-top: 8px; }
.error { margin: 12px 0; padding: 13px; border-radius: 13px; background: #fff0e9; color: #983c27; font-size: 14px; }
.notice { margin: 14px 0; padding: 14px; border-radius: 13px; background: #e8f4ea; color: #315c42; font-size: 14px; line-height: 1.45; }
.timeline { margin-left: 8px; padding-left: 16px; border-left: 2px solid #b7dcc5; }
.timeline p { margin: 14px 0; }
.loader { padding: 45px 0; color: #627d6c; text-align: center; }
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-card div { display: grid; min-width: 0; gap: 2px; }
.profile-card strong, .profile-card span { overflow-wrap: anywhere; }
.profile-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; background: #e2f2e7; color: #17815a; font-size: 25px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.actions .button { flex: 1; }
.small { font-size: 12px; }
@media (max-width: 380px) {
  .shell { padding-right: 15px; padding-left: 15px; }
  .nav a { font-size: 11px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
}
@media (min-width: 760px) {
  .shell { padding-right: 28px; padding-left: 28px; }
  .nav { right: auto; left: 50%; width: min(780px, 100%); transform: translateX(-50%); border-right: 1px solid rgba(220,233,223,.55); border-left: 1px solid rgba(220,233,223,.55); }
}
@media (prefers-reduced-motion: reduce) { .pet-card { transition: none; } }

/* ── Proteção: identidade do pet (foto + nome) ─────────────────────────── */
.pet-identity { display: flex; align-items: center; gap: 14px; }
.pet-avatar { display: grid; place-items: center; width: 76px; height: 76px; flex: none; overflow: hidden; border-radius: 20px; background: #f5e8d4; color: #8a6b3f; }
.pet-avatar .line-icon { width: 34px; height: 34px; }
.pet-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.pet-identity-copy { min-width: 0; }
.pet-identity-copy h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.4px; }
.pet-identity-copy p { margin: 0; }
.pet-identity-photo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pet-identity-photo p { flex: 1 1 100%; margin: 0; }
.pet-identity-photo .button { min-height: 42px; padding: 10px 14px; font-size: 14px; }
.pet-rename { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.pet-rename .field { flex: 1 1 200px; margin: 0; }
.pet-rename p { flex: 1 1 100%; margin: 0; }
.pet-icon-img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.pet-icon--photo { background: none; }
.encounter-point { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.encounter-item small.verified { color: #156b49; }
.encounter-item small.warn { color: #875819; }

/* ── QR studio ─────────────────────────────────────────────────────────── */
.qr-studio-holder { margin: 0 0 14px; }
.qr-studio__header { display: grid; gap: 6px; }
.qr-studio__header strong { font-size: 17px; }
.qr-studio__header p { margin: 0; }
.qr-studio__formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.qr-studio__format { display: grid; gap: 2px; min-height: 64px; padding: 10px 8px; border: 1px solid #dfe9df; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.qr-studio__format.is-selected { border-color: #147c58; background: #e2f2e7; color: #176d4d; }
.qr-studio__format strong { font-size: 14px; }
.qr-studio__format small { color: #698174; font-size: 11px; }
.qr-studio__preview { display: grid; place-items: center; gap: 10px; padding: 20px 12px; border: 1px dashed #c9dccf; border-radius: 16px; background: #f6faf7; overflow: hidden; }
.qr-studio__paper { position: relative; width: min(100%, 320px); transform-origin: center; box-shadow: 0 10px 24px #153f2c1f; }
.qr-studio__paper img { display: block; width: 100%; height: auto; }
.qr-studio__cut-line { position: absolute; inset: -6px; border: 1px dashed #b7c9bd; border-radius: 6px; }
.qr-studio__safe-zone { position: absolute; border: 1px dashed #e0a83c; }
.qr-studio__hole-zone { position: absolute; border: 1px dashed #e0a83c; border-radius: 50%; }
.qr-studio__preview-meta { display: grid; gap: 2px; text-align: center; }
.qr-studio__preview-meta strong { font-size: 14px; }
.qr-studio__preview-meta span { color: #698174; font-size: 12px; }
.qr-validation { display: grid; gap: 14px; margin: 16px 0; padding: 16px; border: 1px solid #dfe9df; border-radius: 16px; background: #fbfdfb; }
.qr-validation__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qr-validation__head strong { font-size: 15px; }
.qr-validation__head span.muted { flex: 1 1 100%; }
.qr-validation__badge { margin-left: auto; padding: 5px 10px; border-radius: 30px; font-size: 12px; font-weight: 700; }
.qr-validation__badge--passed { background: #e0f2e5; color: #156b49; }
.qr-validation__badge--warning { background: #fff0d7; color: #875819; }
.qr-validation__badge--failed { background: #fff0e9; color: #983c27; }
.qr-validation__scale { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qr-validation__scale input[type="range"] { flex: 1 1 140px; accent-color: #147c58; }
.qr-validation__scale-copy { font-size: 13px; font-weight: 700; }
.qr-validation__reset { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.qr-validation__checks { display: grid; gap: 8px; }
.qr-validation__check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e7efe9; }
.qr-validation__check--passed { border-color: #bcdcc7; }
.qr-validation__check--warning { border-color: #ecd3a2; background: #fffaf0; }
.qr-validation__check--failed { border-color: #f0c3b6; background: #fff5f1; }
.qr-validation__check-copy { display: grid; gap: 2px; }
.qr-validation__check strong { font-size: 13px; }
.qr-validation__check small { color: #698174; font-size: 12px; }
.qr-status-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; font-size: 13px; font-weight: 800; }
.qr-status-icon--passed { background: #e0f2e5; color: #156b49; }
.qr-status-icon--warning { background: #fff0d7; color: #875819; }
.qr-status-icon--failed { background: #fff0e9; color: #983c27; }
.qr-validation__metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-validation__metric { display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; background: #eef6f0; text-align: center; }
.qr-validation__metric strong { font-size: 15px; color: #1d4730; }
.qr-validation__metric small { color: #516b5a; font-size: 11px; }
.qr-validation__read, .qr-validation__camera { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.qr-validation__read-copy, .qr-validation__read-copy { display: grid; gap: 2px; }
.qr-validation__read-copy strong { font-size: 13px; }
.qr-validation__read-copy small { color: #698174; font-size: 12px; }
.qr-validation__read .button, .qr-validation__camera .button { min-height: 42px; padding: 10px 14px; font-size: 13px; }
.qr-validation__result { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #e7efe9; }
.qr-validation__result-copy { display: grid; gap: 2px; }
.qr-validation__result strong { font-size: 13px; }
.qr-validation__result small { color: #698174; font-size: 12px; }
.qr-validation__camera-view { display: grid; gap: 8px; justify-items: center; }
.qr-validation__camera-view video { width: 100%; max-width: 320px; border-radius: 14px; background: #07111c; }
.qr-validation__camera-view span { color: #698174; font-size: 12px; }
.qr-validation__camera-message { font-size: 12px; color: #698174; }
.qr-validation__camera-message--passed { color: #156b49; }
.qr-validation__camera-message--failed { color: #983c27; }
.qr-studio__link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: #eef6f0; }
.qr-studio__link-copy { display: grid; gap: 2px; min-width: 0; }
.qr-studio__link-copy span { color: #516b5a; font-size: 11px; }
.qr-studio__link-copy strong { font-size: 13px; overflow-wrap: anywhere; }
.qr-studio__link .button { min-height: 40px; padding: 9px 12px; font-size: 13px; }
.qr-studio__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qr-studio__actions .button { flex: 1 1 120px; }
.qr-studio__tip { margin: 12px 0 0; color: #698174; font-size: 12px; line-height: 1.5; }
.qr-studio__tip.error { color: #983c27; }
.qr-studio__tip.notice { color: #315c42; }

/* ── Marcadores do mapa (MapLibre): última posição em destaque, patinhas discretas ── */
.pet-tracker-marker { display: grid; place-items: center; line-height: 1; pointer-events: none; }
.pet-tracker-marker--pet { width: 44px; height: 44px; overflow: hidden; padding: 0; border-radius: 22%; background: #fff; border: 3px solid #d33f2e; box-shadow: 0 2px 8px rgb(0 0 0 / .25); font-size: 24px; pointer-events: auto; cursor: pointer; }
.pet-tracker-marker--pet img { display: block; width: 100%; height: 100%; border-radius: 22%; object-fit: cover; }
.pet-tracker-marker--self { font-size: 24px; }
.pet-tracker-marker--paw { font-size: 13px; opacity: .7; }
.pet-tracker-marker--pet { z-index: 10; }

/* Rodapé de versão: diagnóstico de cache velho em campo. */
.version-stamp{margin-top:auto;padding:18px 20px 22px;font-size:10px;letter-spacing:.04em;color:#8a9a97;opacity:.75}


/* LocaliPet dashboard: hierarchy inspired by the Canva dashboard boards. */
.pet-dashboard .page-heading { margin-bottom: 16px; }
.pet-dashboard-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 0 0 16px; padding: 18px 20px; border: 1px solid #e4ece7;
  border-radius: 20px; background: linear-gradient(115deg, #f1fbf7, #ffffff 72%);
}
.pet-dashboard-intro { min-width: 0; }
.pet-dashboard-intro h2 { margin: 5px 0 4px; color: #153b31; font-size: clamp(19px, 2.3vw, 25px); }
.pet-dashboard-intro p { margin: 0; }
.pet-dashboard-eyebrow { color: #138c78; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.pet-dashboard-period { display: grid; gap: 6px; flex: 0 0 180px; color: #5c7168; font-size: 12px; font-weight: 700; }
.pet-dashboard-period .field { margin: 0; min-height: 44px; border-radius: 13px; background: #fff; }
.pet-dashboard-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px;
}
.pet-dashboard-stat {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0; min-height: 120px;
  padding: 16px 14px; border: 1px solid #e8eeeb; border-radius: 18px;
  background: #fff; box-shadow: 0 5px 18px rgba(26, 63, 51, .045);
}
.pet-dashboard-stat-icon {
  display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center;
  border-radius: 50%; color: #108978; background: #e4f8f2;
}
.pet-dashboard-stat-icon .line-icon { width: 22px; height: 22px; }
.pet-dashboard-stat-icon.is-blue { color: #2879a9; background: #e8f5fc; }
.pet-dashboard-stat-icon.is-violet { color: #7560bf; background: #f1edff; }
.pet-dashboard-stat-copy { min-width: 0; }
.pet-dashboard-stat-copy > span { display: block; color: #50665d; font-size: 12px; line-height: 1.35; }
.pet-dashboard-stat-copy strong {
  display: block; margin-top: 8px; color: #153b31; font-size: clamp(18px, 2vw, 25px);
  line-height: 1.16; overflow-wrap: anywhere;
}
.pet-dashboard-stat-copy small { display: block; margin-top: 6px; color: #7a8c84; font-size: 11px; line-height: 1.35; }
.pet-dashboard-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 16px; }
.pet-dashboard-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pet-dashboard-chart { min-width: 0; margin: 0 0 12px; padding: 18px; border: 1px solid #e8eeeb; border-radius: 18px; box-shadow: 0 5px 18px rgba(26, 63, 51, .04); }
.pet-dashboard-chart-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.pet-dashboard-chart-icon {
  display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center;
  border-radius: 12px; color: #107e70; background: #e4f8f2;
}
.pet-dashboard-chart-icon .line-icon { width: 20px; height: 20px; }
.pet-dashboard-chart-icon.is-hours { color: #397ca5; background: #e8f5fc; }
.pet-dashboard-chart-copy h2 { margin: 0 0 3px; color: #203d34; font-size: 15px; }
.pet-dashboard-chart-copy p { margin: 0; font-size: 11px; }
.pet-dashboard-chart .bars { height: 158px; }
.pet-dashboard-chart.chart-empty { min-height: 175px; }

/* Histórico categórico NTC da nanoTAG — reaproveita paleta e cards existentes. */
.pet-ntc-chart { grid-column: 1 / -1; }
.pet-ntc-icon { font-size: 23px; font-weight: 700; }
.pet-ntc-latest { margin: 0 0 9px; font-size: 13px; font-weight: 700; color: #203d34; }
.pet-ntc-plot { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pet-ntc-svg { display: block; width: 100%; min-width: 620px; height: auto; overflow: visible; }
.pet-ntc-grid-line { stroke: #e2ebe4; stroke-width: 1; }
.pet-ntc-axis-label { fill: #50665d; font-size: 11px; }
.pet-ntc-point { fill: #147c58; stroke: #fff; stroke-width: 1.4; }
.pet-ntc-note { margin: 9px 0 0; font-size: 11px; line-height: 1.5; }
.pet-ntc-details { margin-top: 12px; color: #50665d; font-size: 12px; }
.pet-ntc-details summary { cursor: pointer; font-weight: 700; }
.pet-ntc-details ol { max-height: 165px; padding-left: 22px; overflow: auto; line-height: 1.8; }
@media (max-width: 620px) {
  .pet-ntc-latest { font-size: 12px; }
  .pet-ntc-axis-label { font-size: 10px; }
}

.pet-dashboard .footnote { margin: 0 0 14px; }
@media (max-width: 900px) {
  .pet-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .pet-dashboard-toolbar { align-items: stretch; flex-direction: column; gap: 13px; padding: 16px; border-radius: 17px; }
  .pet-dashboard-period { flex-basis: auto; width: 100%; }
  .pet-dashboard-stats { gap: 9px; }
  .pet-dashboard-stat { min-height: 112px; gap: 9px; padding: 13px 11px; border-radius: 15px; }
  .pet-dashboard-stat-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .pet-dashboard-stat-icon .line-icon { width: 19px; height: 19px; }
  .pet-dashboard-stat-copy > span { font-size: 11px; }
  .pet-dashboard-stat-copy strong { margin-top: 6px; font-size: clamp(16px, 4.6vw, 21px); }
  .pet-dashboard-stat-copy small { font-size: 10px; }
  .pet-dashboard-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .pet-dashboard-actions .button:first-child { grid-column: 1 / -1; }
  .pet-dashboard-charts { grid-template-columns: 1fr; gap: 0; }
  .pet-dashboard-chart { padding: 15px; }
}

.pet-dashboard-pettilove-mascot { font-size: 40px; line-height: 1; }
.pet-dashboard-pettilove-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pet-dashboard-pettilove-title h2 { margin: 0; }
.pet-dashboard-pettilove-title p { margin: 2px 0 0; }
.diary-react-host.diary-refreshing{position:relative;pointer-events:none}.diary-react-host.diary-refreshing::after{content:'Atualizando diário…';position:fixed;z-index:30;top:20px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:999px;background:#fffefa;color:#305c50;box-shadow:0 6px 24px #243f3026;font-size:12px;font-weight:600}

/* Preferências de notificação por e-mail */
.notif-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2ebe4; }
.notif-row:last-of-type { border-bottom: 0; }
.notif-copy { display: flex; flex-direction: column; gap: 2px; }
.notif-copy strong { font-size: 14px; font-weight: 600; color: #234b3f; }
.notif-copy small { font-size: 12px; color: #6b7f72; }
.notif-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: #007a70; cursor: pointer; flex-shrink: 0; }

/* Alerta: pet fora de casa por mais de 6 horas */
.pet-away-alert-banner {
  border-color: #d98a2b;
  background: #fdf6e8;
  margin-top: 8px;
}
.pet-away-alert-banner strong { display: block; margin-bottom: 6px; font-size: 16px; color: #7a4a1a; }
.pet-away-alert-banner span { font-size: 13px; color: #6b5a3a; }

/* Nenhum texto de cabeçalho de rota no topo das telas (pedido do usuário). */
.page-heading{display:none!important}

.account-places-card{margin:14px!important;padding:16px!important}
.account-place-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #e6ebdc}
.account-place-info{flex:1;min-width:150px;display:flex;flex-direction:column;gap:3px}
.account-place-info small{color:#6d8477}
.account-place-assets{display:flex;flex-wrap:wrap;gap:8px}
.account-place-asset{display:inline-flex;align-items:center;gap:5px;background:#f1f6ef;border-radius:10px;padding:6px 9px;font-size:12px;color:#274b3f}
