:root {
  color-scheme: light;
  --ink: #172526;
  --muted: #536465;
  --panel: rgba(255, 252, 240, 0.92);
  --panel-strong: #fff9e9;
  --teal: #0f6b5b;
  --teal-dark: #0d3f3c;
  --gold: #f2bd3d;
  --coral: #df6d55;
  --sky: #4f96b5;
  --leaf: #6e8c3f;
  --shadow: 0 18px 45px rgba(13, 45, 43, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #0f2d2e;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(12, 43, 43, 0.88), rgba(12, 43, 43, 0.12) 55%, rgba(255, 210, 106, 0.16)),
    url("/assets/wildlife-journey.png") center / cover fixed no-repeat;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.mini-map,
.mini-map * {
  -webkit-user-drag: none;
  user-select: none;
}

.app-shell {
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff9e9;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid rgba(255, 249, 233, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.24);
}

.actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.text-button,
.primary-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff9e9;
  background: rgba(13, 63, 60, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.icon-button {
  width: 42px;
}

.text-button {
  gap: 8px;
  padding: 0 14px;
}

.icon-button svg,
.text-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiet {
  color: var(--ink);
  background: rgba(15, 107, 91, 0.1);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  max-width: 1180px;
  margin: 92px auto 26px;
}

.eyebrow,
.card-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #fff9e9;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.32);
}

.status-strip {
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 249, 233, 0.42);
  border-radius: 8px;
  color: #fff9e9;
  background: rgba(13, 63, 60, 0.66);
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(14px);
}

.tracker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.tracker-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.animal-photo {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(15, 107, 91, 0.1), rgba(15, 107, 91, 0.46)),
    url("/assets/wildlife-journey.png") center / cover no-repeat;
}

.animal-photo.has-image {
  background-color: #e6efe9;
  background-repeat: no-repeat;
  background-size: cover, contain;
  background-position: center, top center;
}

.card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.card-label {
  color: var(--coral);
}

.card-heading h2 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.species-pill {
  max-width: 45%;
  padding: 7px 9px;
  border-radius: 8px;
  color: #113130;
  background: #f5d36d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.conversation {
  display: grid;
  gap: 10px;
}

.bubble {
  margin: 0;
  padding: 12px 13px;
  border-radius: 8px;
  line-height: 1.45;
  font-weight: 750;
}

.animal-line {
  color: #fff9e9;
  background: var(--teal);
}

.field-line {
  color: #1d3131;
  background: #f4d7a0;
}

.mini-map {
  position: relative;
  flex: 0 0 auto;
  height: clamp(520px, 56vw, 680px);
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(23, 37, 38, 0.18);
  background: #d8e6df;
  cursor: grab;
  touch-action: none;
}

.mini-map.is-dragging {
  cursor: grabbing;
}

.map-tiles {
  position: absolute;
  inset: 0;
  background: #d8e6df;
}

.map-tiles img {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.track-path,
.track-dots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.track-path {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.track-path polyline {
  fill: none;
  stroke: #df4f38;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 5px rgba(13, 63, 60, 0.36));
}

.track-dot {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: none;
}

.track-dot::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1d6fb8;
  box-shadow: 0 2px 8px rgba(13, 63, 60, 0.24);
}

.track-dot.latest::after {
  width: 22px;
  height: 22px;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(223, 109, 85, 0.24), 0 2px 12px rgba(13, 63, 60, 0.32);
}

.map-pin {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid #fff9e9;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(223, 109, 85, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-pin::after {
  content: "Current";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  padding: 4px 7px;
  border-radius: 8px;
  color: #fff9e9;
  background: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 5px 14px rgba(13, 63, 60, 0.24);
}

.map-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 350px;
}

.map-control {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(23, 37, 38, 0.18);
  border-radius: 8px;
  color: #172526;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 950;
  box-shadow: 0 4px 14px rgba(13, 63, 60, 0.18);
  cursor: pointer;
}

.fit-route,
.point-prev,
.point-next {
  padding: 0 10px;
}

.map-control:disabled {
  opacity: 0.48;
  cursor: default;
}

.map-tooltip {
  position: absolute;
  z-index: 7;
  display: grid;
  gap: 3px;
  max-width: min(280px, calc(100% - 28px));
  padding: 10px 44px 10px 10px;
  border: 1px solid rgba(23, 37, 38, 0.16);
  border-radius: 8px;
  color: #172526;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.83rem;
  line-height: 1.25;
  box-shadow: 0 10px 28px rgba(13, 63, 60, 0.24);
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: auto;
}

.map-tooltip.below {
  transform: translate(-50%, 12px);
}

.map-tooltip strong {
  color: var(--teal-dark);
}

.map-tooltip-close {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 37, 38, 0.16);
  border-radius: 8px;
  color: #172526;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.map-tooltip ul {
  display: grid;
  gap: 2px;
  margin: 2px 0 0;
  padding: 0 0 0 16px;
}

.map-attribution {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 4;
  padding: 3px 5px;
  border-radius: 4px;
  color: #243536;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  line-height: 1;
}

.movement-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(23, 37, 38, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.72);
}

.movement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.movement-header strong {
  color: var(--coral);
  text-transform: none;
  white-space: nowrap;
}

.movement-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  list-style: none;
}

.movement-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
  cursor: pointer;
}

.movement-list li:hover,
.movement-list li:focus-visible {
  background: rgba(15, 107, 91, 0.1);
}

.movement-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-list li strong {
  color: var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.last-seen {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff9e9;
  background: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.compatibility-link {
  display: none;
}

.empty-state {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #102a2a;
  background: var(--gold);
}

.full-width {
  width: 100%;
}

.setup-dialog {
  width: min(640px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.setup-dialog::backdrop {
  background: rgba(9, 27, 28, 0.62);
  backdrop-filter: blur(6px);
}

.setup-dialog form {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header h2 {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid rgba(23, 37, 38, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf4;
}

input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(79, 150, 181, 0.8);
  outline-offset: 2px;
}

.form-error {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  color: #6d1f16;
  background: #ffe0d9;
  font-weight: 800;
}

.tracking-details {
  border: 1px solid rgba(23, 37, 38, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.72);
}

.tracking-details summary {
  min-height: 38px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

.tracking-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 14px 12px 28px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.combined-panel {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.combined-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.combined-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.05;
}

.combined-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(13, 63, 60, 0.28);
}

.combined-map {
  height: clamp(360px, 46vw, 560px);
  min-height: 360px;
}

.combined-map .track-dot::after {
  background: var(--dot-color, #1d6fb8);
}

.combined-map .track-dot.latest {
  pointer-events: auto;
}

.combined-map .track-dot.latest::after {
  width: 20px;
  height: 20px;
  background: var(--dot-color, var(--coral));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--dot-color, var(--coral)) 26%, transparent), 0 2px 12px rgba(13, 63, 60, 0.32);
}

.combined-dot-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  padding: 3px 7px;
  border-radius: 8px;
  color: #fff9e9;
  background: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 5px 14px rgba(13, 63, 60, 0.24);
  pointer-events: none;
}

.updates-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(23, 37, 38, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.72);
}

.updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.updates-header strong {
  color: var(--coral);
  text-transform: none;
  white-space: nowrap;
}

.updates-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
  list-style: none;
}

.updates-list li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(15, 107, 91, 0.06);
}

.update-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.update-title {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.update-image {
  width: 100%;
  max-height: 220px;
  margin: 4px 0;
  border-radius: 8px;
  object-fit: cover;
}

.update-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.tracker-rows {
  display: grid;
  gap: 14px;
}

.tracker-row {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(23, 37, 38, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.6);
}

.tracker-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tracker-row .row-title {
  padding: 0;
  color: var(--teal-dark);
  font-size: 0.95rem;
  font-weight: 900;
}

.tracker-row .remove-row:disabled {
  opacity: 0.4;
  cursor: default;
}

.add-row-button {
  justify-self: start;
  padding: 0 14px;
}

/* ---- auth ---- */
body.locked {
  overflow: hidden;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff9e9;
  background: rgba(13, 63, 60, 0.6);
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background:
    linear-gradient(160deg, rgba(9, 34, 33, 0.86), rgba(9, 34, 33, 0.7)),
    url("/assets/wildlife-journey.png") center / cover no-repeat;
  overflow: auto;
}

.login-card {
  width: min(560px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-title {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.05;
  text-shadow: none;
}

.login-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.login-tile {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 10px;
  border: 1px solid rgba(23, 37, 38, 0.16);
  border-radius: 8px;
  background: #fffdf4;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.login-tile:hover:not(:disabled),
.login-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(13, 63, 60, 0.18);
}

.login-tile:disabled {
  opacity: 0.5;
  cursor: default;
}

.tile-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.tile-name {
  color: var(--ink);
  font-weight: 900;
}

.tile-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-pin {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.pin-back {
  justify-self: start;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(15, 107, 91, 0.1);
  font-weight: 900;
  cursor: pointer;
}

.pin-who {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
}

.pin-prompt {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.pin-dots {
  display: flex;
  gap: 14px;
}

.pin-dots span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: transparent;
  transition: background 0.1s ease;
}

.pin-dots span.filled {
  background: var(--teal);
}

.pin-error {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  color: #6d1f16;
  background: #ffe0d9;
  font-weight: 800;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 78px);
  gap: 12px;
  margin-top: 4px;
}

.pin-key {
  min-height: 66px;
  border: 1px solid rgba(23, 37, 38, 0.16);
  border-radius: 12px;
  color: var(--ink);
  background: #fffdf4;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.pin-key:hover,
.pin-key:focus-visible {
  background: rgba(15, 107, 91, 0.1);
}

.pin-key.spacer {
  border: 0;
  background: transparent;
  cursor: default;
}

.pin-key.erase {
  font-size: 1.3rem;
}

.family-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.family-rows {
  display: grid;
  gap: 10px;
}

.family-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(23, 37, 38, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.6);
}

.family-who {
  font-weight: 900;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.family-pin {
  min-height: 44px;
  text-align: center;
  letter-spacing: 0.3em;
  font-weight: 900;
}

.family-save {
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .status-strip {
    max-width: none;
  }

  .tracker-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tracker-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .animal-photo {
    min-height: 150px;
  }

  .mini-map {
    height: 390px;
    min-height: 390px;
  }

  .card-heading {
    display: grid;
  }

  .species-pill {
    max-width: 100%;
    justify-self: start;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .credential-grid {
    grid-template-columns: 1fr;
  }

  .movement-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .movement-list li strong {
    white-space: normal;
  }
}
