:root {
  --orange: #ff5a16;
  --orange-dark: #e9470b;
  --orange-light: #ffb66f;
  --blue: #126ec7;
  --blue-dark: #132554;
  --ink: #15234b;
  --cream: #fffaf5;
  --line: rgba(21, 35, 75, 0.14);
  --shadow: 0 22px 48px rgba(123, 61, 35, 0.16);
}

/* 2026 üretim arayüzü: marka, harita ve mobil deneyim */
:where(button, a, input, select):focus-visible {
  outline: 3px solid rgba(18, 110, 199, 0.34);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.brand,
.app-brand {
  gap: 4px;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

.brand .brand-mark,
.app-brand .brand-mark {
  width: 102px;
  height: 102px;
  flex: 0 0 102px;
  border-radius: 24px;
  object-fit: cover;
  filter: drop-shadow(0 9px 17px rgba(36, 27, 92, 0.23));
}

.brand .brand-wordmark,
.app-brand .brand-wordmark {
  width: clamp(138px, 14vw, 180px);
  height: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: none;
}

.app-brand-light .brand-wordmark {
  padding: 4px 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(30, 34, 82, 0.11);
}

.site-nav,
.app-topbar,
.workspace-header {
  min-height: 118px;
  padding-top: max(8px, env(safe-area-inset-top));
}

.hero-content {
  margin-top: 56px;
}

.hero-downloads {
  display: flex;
  max-width: 600px;
  margin-top: 17px;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-store-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  color: #fff;
  background: rgba(18, 37, 84, 0.86);
  box-shadow: 0 10px 24px rgba(70, 35, 44, 0.18);
  text-decoration: none;
  backdrop-filter: blur(9px);
  transition: transform 160ms ease, background 160ms ease;
}

.hero-store-button:hover {
  color: #fff;
  background: #101f48;
  transform: translateY(-2px);
}

.hero-store-button small,
.hero-store-button strong {
  display: block;
  line-height: 1.05;
}

.hero-store-button small {
  font-size: 0.57rem;
  opacity: 0.75;
}

.hero-store-button strong {
  margin-top: 3px;
  font-size: 0.82rem;
}

.hero-account-link {
  padding: 10px 5px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 850;
}

.hero-login-button {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(19, 37, 84, 0.88);
  box-shadow: 0 10px 20px rgba(32, 35, 76, 0.22);
}

.hero-login-button:hover {
  color: #fff;
  background: var(--blue-dark);
}

.footer-brand .brand-mark {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
}

.footer-brand .brand-wordmark {
  width: 132px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.workspace-header {
  padding-bottom: 8px;
}

.dashboard-shell {
  width: min(1480px, calc(100% - 44px));
}

.animal-card {
  position: relative;
  min-height: 96px;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.animal-card:hover {
  border-color: rgba(255, 90, 22, 0.25);
  box-shadow: 0 18px 34px rgba(66, 51, 64, 0.12);
  transform: translateY(-2px);
}

.animal-card-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.animal-edit-link {
  padding: 6px 9px;
  border-radius: 9px;
  color: var(--orange-dark);
  background: #fff0e5;
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
}

.tracking-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.tracking-grid > .map-card {
  grid-column: span 9;
}

.tracking-grid > .alerts-card {
  grid-column: span 3;
}

.map-card,
.alerts-card,
.records-card {
  border-color: rgba(44, 62, 103, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 251, 246, 0.93));
  box-shadow: 0 20px 44px rgba(62, 49, 65, 0.1);
}

.map-command-bar {
  display: flex;
  margin: -2px 0 13px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-command,
.route-paw-field select {
  min-height: 44px;
  border: 1px solid rgba(41, 65, 103, 0.13);
  border-radius: 13px;
  color: var(--blue-dark);
  background: #fff;
  box-shadow: 0 7px 16px rgba(52, 59, 88, 0.06);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 820;
}

.map-command {
  display: inline-flex;
  padding: 9px 13px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.map-command:hover,
.map-command.is-active {
  border-color: rgba(18, 110, 199, 0.24);
  color: #0d65aa;
  background: #edf7ff;
}

.map-command-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(110deg, var(--orange), #ff7a20);
}

.map-command-primary:hover {
  color: #fff;
  background: linear-gradient(110deg, var(--orange-dark), #f66b15);
}

.map-command:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.map-command-icon {
  width: 44px;
  padding: 0;
  font-size: 1.1rem;
}

.route-paw-field {
  position: relative;
}

.route-paw-field::after {
  position: absolute;
  top: 50%;
  right: 12px;
  content: "⌄";
  color: var(--orange-dark);
  pointer-events: none;
  transform: translateY(-55%);
}

.route-paw-field select {
  min-width: 130px;
  padding: 8px 34px 8px 12px;
  appearance: none;
}

.route-summary {
  display: flex;
  margin-bottom: 12px;
  padding: 11px 13px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 90, 22, 0.16);
  border-radius: 14px;
  color: #5f6475;
  background: #fff5eb;
  font-size: 0.73rem;
}

.route-summary[hidden] {
  display: none;
}

.route-summary span {
  min-width: 220px;
  flex: 1;
}

.route-summary a,
.route-summary button {
  border: 0;
  color: var(--orange-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

#map {
  height: clamp(560px, 65vh, 720px);
  border-radius: 21px;
  box-shadow: inset 0 0 0 1px rgba(42, 63, 99, 0.08);
}

.map-load-error {
  display: grid;
  padding: 30px;
  place-items: center;
  color: #9c4234;
  background: #fff1ed;
  text-align: center;
}

.leaflet-control-zoom a,
.leaflet-draw-toolbar a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
}

.leaflet-bar {
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(32, 47, 73, 0.18) !important;
}

.paw-map-tooltip {
  border: 0;
  border-radius: 9px;
  color: var(--blue-dark);
  box-shadow: 0 6px 16px rgba(28, 41, 70, 0.16);
  font-weight: 850;
}

.animation-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.speed-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(30, 79, 132, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
}

.speed-control button {
  min-width: 39px;
  min-height: 32px;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  color: #69728a;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
}

.speed-control button[aria-pressed="true"] {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(18, 110, 199, 0.2);
}

.live-indicator {
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid rgba(48, 145, 103, 0.18);
  border-radius: 999px;
  background: #effbf5;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.live-indicator:hover {
  box-shadow: 0 7px 16px rgba(42, 137, 94, 0.12);
  transform: translateY(-1px);
}

.live-indicator.is-active i {
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 185, 120, 0.42); }
  70% { box-shadow: 0 0 0 8px rgba(56, 185, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 185, 120, 0); }
}

.alerts-list {
  max-height: clamp(560px, 65vh, 720px);
}

.status-item {
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.status-item:hover {
  box-shadow: 0 8px 17px rgba(41, 62, 91, 0.08);
  transform: translateY(-1px);
}

.status-item:focus-visible {
  outline: 3px solid rgba(255, 90, 22, 0.28);
  outline-offset: 3px;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(255px, 1.3fr) minmax(255px, 1.3fr) auto;
  width: min(100%, 920px);
  align-items: end;
  gap: 10px;
}

.filter-period {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 7px 8px 8px;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 0.65fr);
  gap: 7px;
  border: 1px solid rgba(40, 55, 93, 0.11);
  border-radius: 15px;
  background: linear-gradient(120deg, #fffdfb, #fff8f1);
}

.filter-period legend {
  padding: 0 6px;
  color: var(--orange-dark);
  font-size: 0.64rem;
  font-weight: 850;
}

.filter-field label {
  font-size: 0.66rem;
}

.filter-field input,
.filter-field select {
  width: 100%;
  max-width: none;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(40, 55, 93, 0.12);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(52, 59, 88, 0.04);
  font-size: 0.78rem;
}

.filter-field select {
  padding-right: 32px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange-dark) 50%),
    linear-gradient(135deg, var(--orange-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 19px,
    calc(100% - 11px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filter-button,
.filter-clear {
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.filter-button {
  border: 0;
  color: #fff;
  background: linear-gradient(110deg, var(--orange), #ff7a20);
  box-shadow: 0 8px 17px rgba(199, 67, 14, 0.19);
}

.filter-clear {
  border: 1px solid rgba(40, 55, 93, 0.11);
  color: #68718a;
  background: #fff;
}

.map-card.map-is-expanded {
  position: fixed;
  z-index: 9999;
  inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  display: flex;
  padding: 18px;
  flex-direction: column;
  border-radius: 22px;
}

.map-card.map-is-expanded #map {
  min-height: 280px;
  height: auto;
  flex: 1;
}

.map-expanded {
  overflow: hidden;
}

.edit-paw-visual img {
  border-radius: 46% 54% 48% 52%;
  object-fit: cover;
}

.warm-checkbox {
  display: inline-flex;
  margin-top: 4px;
  align-items: center;
  gap: 9px;
  color: #737b90;
  cursor: pointer;
  font-size: 0.76rem;
}

.warm-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.warm-checkbox.remove-photo-option {
  margin: -1px 0 0 4px;
  justify-self: start;
  gap: 6px;
  font-size: 0.66rem;
  line-height: 1;
  white-space: nowrap;
}

.warm-checkbox.remove-photo-option input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
}

.form-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.form-action-row .form-submit {
  width: auto;
  min-width: 190px;
}

.form-cancel {
  color: #747b8e;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .tracking-grid > .map-card {
    grid-column: span 8;
  }

  .tracking-grid > .alerts-card {
    grid-column: span 4;
  }

  .filter-form {
    grid-template-columns: minmax(150px, 0.8fr) 1fr 1fr;
  }

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .site-nav {
    min-height: 98px;
  }

  .brand .brand-mark,
  .app-brand .brand-mark {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .brand .brand-wordmark,
  .app-brand .brand-wordmark {
    width: 128px;
  }

  .tracking-grid > .map-card,
  .tracking-grid > .alerts-card {
    grid-column: 1 / -1;
  }

  #map {
    height: min(66vh, 620px);
  }

  .alerts-list {
    max-height: 380px;
  }

  .filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .filter-form > .filter-field:first-child,
  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body.home-page,
  body.app-page {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-nav,
  .app-topbar,
  .workspace-header {
    min-height: 84px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .brand .brand-mark,
  .app-brand .brand-mark {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 18px;
  }

  .brand .brand-wordmark,
  .app-brand .brand-wordmark {
    width: 105px;
  }

  .site-nav {
    width: min(100% - 24px, 600px);
    gap: 8px;
  }

  .site-nav .nav-links {
    display: none;
  }

  .nav-login {
    margin-left: auto;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    width: calc(100% - 30px);
    margin: 42px auto 0;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .hero-copy {
    max-width: 92%;
  }

  .hero-downloads {
    max-width: 100%;
  }

  .hero-store-button {
    flex: 1 1 135px;
  }

  .hero-account-link {
    flex: 0 0 100%;
  }

  .hero-pets {
    bottom: -100px;
    left: -60px;
    width: 94vw;
    max-height: 430px;
  }

  .hero-symbol {
    right: -35px;
    bottom: 30px;
    width: 48vw;
  }

  .dashboard-shell {
    width: calc(100% - 20px);
  }

  .map-card,
  .alerts-card,
  .records-card {
    padding: 16px;
    border-radius: 20px;
  }

  .map-command-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
  }

  .map-command,
  .route-paw-field,
  .route-paw-field select {
    width: 100%;
  }

  .map-command-primary {
    grid-column: span 1;
  }

  #map {
    height: 58vh;
    min-height: 440px;
    border-radius: 16px;
  }

  .animation-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .speed-control {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(4, 1fr);
  }

  .animation-button {
    width: 100%;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-form > .filter-field:first-child,
  .filter-period,
  .filter-actions {
    grid-column: auto;
  }

  .filter-period {
    grid-template-columns: minmax(0, 1.25fr) minmax(95px, 0.75fr);
  }

  .filter-actions {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
  }

  .filter-button,
  .filter-clear {
    width: 100%;
  }

  .records-table th,
  .records-table td {
    padding: 13px 12px;
    font-size: 0.72rem;
  }

  .form-action-row {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-action-row .form-submit,
  .form-cancel {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .brand .brand-wordmark,
  .app-brand .brand-wordmark {
    width: 88px;
  }

  .workspace-header .app-brand .brand-wordmark {
    display: none;
  }

  .map-command-bar {
    grid-template-columns: 1fr 1fr;
  }

  .map-command-icon {
    width: 100%;
  }

  .route-summary a,
  .route-summary button {
    min-height: 36px;
  }
}

/* PatimiBul mesaj sistemi */
.patimi-message-open {
  overflow: hidden;
}

.patimi-message-layer {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  visibility: hidden;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.patimi-message-layer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.patimi-message-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 160, 79, 0.28), transparent 34%),
    rgba(17, 29, 63, 0.56);
  backdrop-filter: blur(9px);
}

.patimi-message-card {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  padding: 31px;
  border: 1px solid rgba(255, 151, 75, 0.34);
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 95% 0, rgba(255, 189, 125, 0.27), transparent 32%),
    linear-gradient(145deg, #ffffff, #fff8f1);
  box-shadow: 0 30px 75px rgba(21, 29, 61, 0.28);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  text-align: center;
  transform: translateY(18px) scale(0.97);
  transition: transform 200ms ease;
}

.patimi-message-card::after {
  position: absolute;
  z-index: 0;
  right: -42px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 90, 22, 0.07);
  border-radius: 50%;
  content: "";
}

.patimi-message-layer.is-open .patimi-message-card {
  transform: translateY(0) scale(1);
}

.patimi-message-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #7c8294;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
}

.patimi-message-logo {
  position: relative;
  z-index: 1;
  width: min(190px, 62%);
  margin: 0 auto 22px;
}

.patimi-message-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 9px 13px rgba(35, 27, 93, 0.14));
  object-fit: contain;
}

.patimi-message-eyebrow,
.patimi-message-card h2,
.patimi-message-card > p,
.patimi-message-actions {
  position: relative;
  z-index: 1;
}

.patimi-message-eyebrow {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.patimi-message-card h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.patimi-message-card > #patimi-message-copy {
  margin: 13px auto 0;
  color: #68718a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.patimi-message-actions {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.patimi-message-card:not(.is-confirm) .patimi-message-actions {
  grid-template-columns: minmax(0, 1fr);
}

.patimi-message-button {
  min-height: 48px;
  padding: 11px 17px;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.patimi-message-cancel {
  border: 1px solid rgba(43, 57, 94, 0.12);
  color: #626c85;
  background: #fff;
}

.patimi-message-confirm {
  border: 0;
  color: #fff;
  background: linear-gradient(110deg, var(--orange), #ff7a20);
  box-shadow: 0 10px 21px rgba(196, 65, 14, 0.22);
}

.patimi-message-button:hover,
.patimi-message-close:hover {
  transform: translateY(-1px);
}

.patimi-message-button:focus-visible,
.patimi-message-close:focus-visible {
  outline: 3px solid rgba(18, 110, 199, 0.28);
  outline-offset: 3px;
}

.patimi-message-cancel[hidden] {
  display: none;
}

/* Ana sayfa sıcak slogan hiyerarşisi */
.intro p {
  display: grid;
  gap: 12px;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
}

.intro p strong {
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro p span {
  color: #4e5976;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 620;
  line-height: 1.55;
}

/* Giriş ve kayıt alanlarında ortak sıcak marka dili */
body.auth-page,
body.auth-page button,
body.auth-page input,
body.auth-page select {
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
}

body.auth-page .app-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.2), transparent 23%),
    linear-gradient(108deg, #f25416, #ef8040 50%, #2888d4);
  box-shadow: 0 8px 30px rgba(53, 56, 102, 0.12);
  backdrop-filter: none;
}

body.auth-page .topbar-link {
  color: #fff;
  text-shadow: 0 2px 10px rgba(77, 39, 29, 0.2);
}

body.auth-page .topbar-link:hover {
  color: #fff5dc;
}

body.auth-page .auth-story h1,
body.auth-page .form-card-heading h2 {
  font-family: inherit;
  font-weight: 850;
}

body.auth-page .login-register-switch {
  margin-top: clamp(54px, 6vw, 72px);
}

@media (max-width: 700px) {
  .patimi-message-card {
    padding: 27px 21px 22px;
    border-radius: 23px;
  }

  .patimi-message-actions {
    margin-top: 21px;
  }

  body.auth-page .login-register-switch {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .patimi-message-layer,
  .patimi-message-card {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 65% 48%, rgba(255, 232, 193, 0.82) 0 13%, transparent 31%),
    radial-gradient(circle at 92% 30%, rgba(90, 196, 255, 0.9) 0 10%, transparent 43%),
    linear-gradient(112deg, #fd5a19 0%, #ff8e3d 44%, #9f91bd 69%, #2589dd 100%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(181, 43, 0, 0.13), transparent 42%, rgba(0, 93, 179, 0.12));
  pointer-events: none;
}

.site-nav {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(1240px, calc(100% - 48px));
  min-height: 83px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-logo {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 5px 10px rgba(17, 18, 70, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  margin-left: auto;
}

.nav-links a,
.nav-login {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(89, 37, 18, 0.25);
}

.nav-links a:hover,
.nav-login:hover {
  color: #fff4d5;
}

.nav-login {
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-login:hover {
  color: var(--orange-dark);
  background: #fff;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(650px, 54vw);
  margin: 77px 0 0 max(7.5vw, calc((100vw - 1120px) / 2));
}

.eyebrow {
  margin: 0 0 13px;
  color: #fff8e9;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--orange-dark);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.55rem, 5.3vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 4px 22px rgba(125, 52, 15, 0.22);
}

.hero-copy {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  font-weight: 550;
  line-height: 1.56;
  text-shadow: 0 2px 12px rgba(100, 42, 19, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(105deg, var(--orange), #ff7a19);
  box-shadow: 0 12px 22px rgba(162, 50, 7, 0.28);
}

.button-primary:hover {
  color: #fff;
  box-shadow: 0 16px 28px rgba(162, 50, 7, 0.38);
}

.button-secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(72, 57, 63, 0.16);
}

.button-dark {
  color: #fff;
  background: var(--blue-dark);
  box-shadow: 0 10px 20px rgba(21, 35, 75, 0.22);
}

.hero-note {
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.hero-note a {
  font-weight: 800;
}

.hero-pets {
  position: absolute;
  z-index: 1;
  bottom: -155px;
  left: max(1vw, calc((100vw - 1370px) / 2));
  width: min(42vw, 548px);
  max-height: 670px;
  object-fit: cover;
  object-position: 42% 44%;
  border-radius: 46% 46% 0 0;
  clip-path: ellipse(58% 54% at 49% 48%);
  opacity: 0.95;
  filter: saturate(1.12) contrast(1.02) drop-shadow(12px 8px 22px rgba(109, 55, 25, 0.2));
}

.hero-symbol {
  position: absolute;
  z-index: 1;
  right: clamp(4vw, 10vw, 13vw);
  bottom: 83px;
  width: min(24vw, 325px);
  border-radius: 50%;
  filter: drop-shadow(0 17px 27px rgba(44, 24, 108, 0.32));
}

.hero-cloud {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  filter: blur(2px);
}

.hero-cloud-one {
  right: 8%;
  bottom: 128px;
  width: 310px;
  height: 85px;
}

.hero-cloud-two {
  left: 29%;
  bottom: 63px;
  width: 410px;
  height: 102px;
}

.hero-wave {
  position: absolute;
  z-index: 2;
  right: -6%;
  bottom: -82px;
  left: -6%;
  height: 162px;
  border-radius: 50% 50% 0 0 / 58% 58% 0 0;
  background: var(--cream);
}

.intro {
  padding: 56px 0 37px;
  text-align: center;
}

.intro p {
  max-width: 790px;
  margin: 0 auto;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.intro strong {
  color: var(--orange-dark);
}

.how-it-works {
  padding: 35px 0 90px;
}

.section-heading {
  max-width: 630px;
  margin: 0 auto 37px;
  text-align: center;
}

.section-heading h2,
.app-cta h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.app-cta p {
  margin: 14px auto 0;
  color: #5c6583;
  font-size: 1.05rem;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.8fr);
  overflow: hidden;
  border: 1px solid rgba(255, 172, 101, 0.54);
  border-radius: 26px;
  background: linear-gradient(115deg, #fff2e5, #ffead0 57%, #f9e4d1);
  box-shadow: var(--shadow);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 34px 23px 33px;
  list-style: none;
}

.process-step {
  position: relative;
  padding: 12px 19px;
  text-align: center;
}

.process-step + .process-step {
  border-left: 1px solid rgba(193, 116, 64, 0.24);
}

.process-step + .process-step::before {
  position: absolute;
  top: 33%;
  left: -8px;
  color: #ce9d77;
  content: "›";
  font-size: 2rem;
  font-weight: 300;
}

.step-number {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 24px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: 0.83rem;
  font-weight: 850;
}

.step-visual {
  display: grid;
  width: 126px;
  height: 100px;
  margin: 0 auto 19px;
  place-items: center;
}

.collar-visual {
  position: relative;
  width: 134px;
  height: 71px;
  margin-top: 12px;
  border: 17px solid #18233d;
  border-radius: 45% 45% 40% 40% / 65% 65% 42% 42%;
  background: linear-gradient(#33405b, #121a2c);
  box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.22), 0 9px 13px rgba(37, 30, 49, 0.22);
}

.collar-visual::after {
  position: absolute;
  top: 21px;
  left: 31px;
  width: 36px;
  height: 16px;
  border-radius: 9px;
  background: #24d4fb;
  box-shadow: 0 0 10px #7febff;
  content: "";
}

.collar-visual span {
  position: absolute;
  right: 7px;
  bottom: -31px;
  color: #f0fbff;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.phone-visual {
  position: relative;
  width: 59px;
  height: 101px;
  overflow: hidden;
  border: 7px solid #172242;
  border-radius: 15px;
  background:
    linear-gradient(32deg, transparent 45%, rgba(255, 255, 255, 0.82) 46% 49%, transparent 50%),
    linear-gradient(145deg, transparent 40%, #b2d77d 41% 47%, transparent 48%),
    #d9e6be;
  box-shadow: 0 8px 16px rgba(29, 36, 68, 0.22);
}

.phone-visual::before {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 4px;
  background: #172242;
  content: "";
  transform: translateX(-50%);
}

.map-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #efb920;
}

.dot-one {
  top: 37px;
  left: 11px;
}

.dot-two {
  right: 9px;
  bottom: 19px;
  background: #2fae73;
}

.map-pin,
.location-pin {
  color: #f54a1b;
  font-size: 1.9rem;
  line-height: 1;
  text-shadow: 0 3px 4px rgba(135, 46, 20, 0.23);
}

.map-pin {
  position: absolute;
  top: 38px;
  right: 12px;
}

.alert-visual {
  position: relative;
  width: 108px;
  height: 84px;
  padding-top: 15px;
  color: #ff8d13;
  font-family: Georgia, serif;
  font-size: 5.2rem;
  line-height: 0.58;
  text-shadow: 0 7px 0 #f45d16, 0 12px 16px rgba(142, 56, 26, 0.23);
}

.alert-visual span {
  position: absolute;
  top: 39px;
  left: 39px;
  color: #80305c;
  font-size: 2.7rem;
}

.process-step h3 {
  margin: 0;
  color: #1f2440;
  font-size: 1rem;
}

.process-step p {
  margin: 8px 0 0;
  color: #5d5361;
  font-size: 0.88rem;
  line-height: 1.5;
}

.app-preview {
  position: relative;
  display: grid;
  min-height: 345px;
  place-content: center;
  overflow: hidden;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 62% 31%, rgba(255, 255, 255, 0.83), transparent 23%),
    linear-gradient(142deg, #ffd3a8 0%, #fff4dd 55%, #bfe4ff 100%);
}

.app-preview::before {
  position: absolute;
  right: -55px;
  bottom: -66px;
  width: 230px;
  height: 230px;
  border: 22px solid rgba(35, 129, 205, 0.17);
  border-radius: 50%;
  content: "";
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 164px;
  height: 287px;
  overflow: hidden;
  border: 10px solid #242530;
  border-radius: 25px;
  background: #e8f2cc;
  box-shadow: 11px 16px 25px rgba(66, 55, 63, 0.27);
  transform: rotate(4deg);
}

.phone-camera {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 50px;
  height: 10px;
  border-radius: 0 0 9px 9px;
  background: #242530;
  transform: translateX(-50%);
}

.app-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(32deg, transparent 38%, #fff5d4 39% 46%, transparent 47%),
    linear-gradient(-45deg, transparent 37%, #f7f6e4 38% 47%, transparent 48%),
    repeating-linear-gradient(0deg, #d2e4ab 0 28px, #bcde9a 29px 31px);
}

.map-line {
  position: absolute;
  display: block;
  width: 190px;
  height: 13px;
  border-radius: 20px;
  background: rgba(255, 255, 250, 0.9);
  transform: rotate(-39deg);
}

.map-line-one {
  top: 61px;
  left: -37px;
}

.map-line-two {
  top: 142px;
  left: 20px;
  transform: rotate(23deg);
}

.map-line-three {
  top: 209px;
  left: -25px;
}

.location-pin {
  position: absolute;
  z-index: 1;
  top: 105px;
  left: 65px;
  font-size: 3rem;
}

.app-map-card {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 12px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 10px;
  color: #1b2751;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 10px rgba(60, 82, 46, 0.17);
  font-size: 0.64rem;
  font-weight: 800;
}

.app-map-card img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.app-preview > p {
  position: relative;
  z-index: 1;
  max-width: 225px;
  margin: 19px auto 0;
  color: #5e5261;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.care-message {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 200, 140, 0.56);
  border-bottom: 1px solid rgba(255, 200, 140, 0.56);
  background: linear-gradient(90deg, #fff8f0, #ffe8cc 50%, #fff9f3);
  text-align: center;
}

.care-message p {
  margin: 0;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.trust {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  min-height: 386px;
  margin-top: 80px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(110deg, #fff5e8, #ffd39a);
  box-shadow: var(--shadow);
}

.trust-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 6vw, 78px);
}

.quote-mark {
  color: #ff8f51;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
}

.trust blockquote {
  max-width: 525px;
  margin: 16px 0 0;
  color: var(--blue-dark);
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  font-weight: 740;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.trust-caption {
  max-width: 430px;
  margin: 19px 0 0;
  color: #666278;
}

.text-link {
  margin-top: 23px;
  color: var(--orange-dark);
  font-weight: 850;
  text-decoration: none;
}

.trust-image {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 32%, rgba(255, 255, 255, 0.92) 0 7%, transparent 8%),
    radial-gradient(circle at 64% 66%, rgba(255, 255, 255, 0.6) 0 12%, transparent 13%),
    linear-gradient(145deg, #ff9e4b, #f1ceaa 48%, #8ec9ee);
}

.trust-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffd59e 0%, transparent 42%), linear-gradient(0deg, rgba(28, 68, 132, 0.16), transparent 46%);
  content: "";
}

.trust-image::before {
  position: absolute;
  z-index: 0;
  right: 8%;
  bottom: 8%;
  width: 220px;
  height: 220px;
  border: 18px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(242, 119, 36, 0.11);
  content: "";
}

.trust-image img {
  position: absolute;
  z-index: 1;
  right: 13%;
  bottom: 6%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 65% 78%;
  filter: drop-shadow(0 18px 19px rgba(47, 44, 87, 0.26));
}

.app-cta {
  margin-top: 88px;
  padding: 64px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 232, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 174, 88, 0.11) 0 14px, transparent 14px 28px);
}

.app-cta-content {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) auto;
  align-items: center;
  gap: 31px;
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 25px;
  box-shadow: 0 12px 23px rgba(35, 42, 84, 0.22);
}

.app-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.app-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.app-cta-downloads {
  display: grid;
  gap: 10px;
}

.store-downloads {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.store-button {
  display: flex;
  min-width: 148px;
  min-height: 52px;
  padding: 8px 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  background: #131722;
  box-shadow: 0 10px 20px rgba(27, 31, 44, 0.17);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px rgba(27, 31, 44, 0.23);
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.05;
}

.store-button small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.61rem;
}

.store-button strong {
  font-size: 0.98rem;
}

.store-icon {
  display: grid;
  width: 28px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
}

.apple-icon {
  font-family: Arial, sans-serif;
  font-size: 1.75rem;
}

.play-icon {
  width: 0;
  height: 0;
  margin: 0 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 24px solid #fff;
  filter: drop-shadow(-5px 0 0 #49b96d);
}

.site-footer {
  padding: 25px 0;
  color: rgba(255, 255, 255, 0.86);
  background: #12234f;
}

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

.footer-brand {
  color: #fff;
  font-size: 1.15rem;
}

.footer-brand .brand-logo {
  width: 38px;
  height: 38px;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
}

.site-footer div:last-child {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: 690px;
  }

  .site-nav {
    width: min(100% - 32px, 760px);
    gap: 16px;
  }

  .brand {
    font-size: 1.38rem;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .hero-content {
    width: min(600px, 71vw);
    margin-top: 69px;
    margin-left: 8vw;
  }

  .hero-pets {
    bottom: -107px;
    left: -50px;
    width: min(49vw, 420px);
  }

  .hero-symbol {
    right: 6vw;
    bottom: 108px;
    width: min(27vw, 240px);
  }

  .process-layout {
    grid-template-columns: 1fr;
  }

  .app-preview {
    min-height: 295px;
  }

  .phone-frame {
    transform: rotate(0);
  }

  .trust {
    grid-template-columns: 1fr 0.78fr;
  }

  .app-cta-content {
    grid-template-columns: 80px 1fr;
  }

  .app-cta-downloads {
    grid-column: 2;
  }

  .store-downloads,
  .app-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 30px, 560px);
  }

  .hero {
    min-height: 745px;
  }

  .site-nav {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand {
    font-size: 1.27rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  .nav-login {
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .hero-content {
    width: calc(100% - 30px);
    margin: 56px auto 0;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero h1 br {
    display: none;
  }

  .hero-copy {
    max-width: 470px;
    font-size: 1rem;
  }

  .hero-pets {
    bottom: -43px;
    left: -57px;
    width: 255px;
    height: 338px;
    border-radius: 43% 43% 0 0;
  }

  .hero-symbol {
    right: 12px;
    bottom: 105px;
    width: 170px;
  }

  .hero-wave {
    right: -39%;
    bottom: -71px;
    left: -39%;
    height: 122px;
  }

  .intro {
    padding: 39px 0 28px;
  }

  .how-it-works {
    padding: 34px 0 58px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .process-step {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 5px 14px;
    padding: 17px 9px;
    text-align: left;
  }

  .process-step + .process-step {
    border-top: 1px solid rgba(193, 116, 64, 0.24);
    border-left: 0;
  }

  .process-step + .process-step::before {
    display: none;
  }

  .step-number {
    top: 12px;
    left: 15px;
  }

  .step-visual {
    width: 98px;
    height: 85px;
    grid-row: span 2;
    margin: 0;
    transform: scale(0.78);
    transform-origin: center;
  }

  .process-step h3 {
    align-self: end;
    margin-top: 13px;
  }

  .process-step p {
    align-self: start;
    margin: 0;
  }

  .app-preview {
    min-height: 290px;
  }

  .care-message {
    padding: 24px 0;
  }

  .trust {
    grid-template-columns: 1fr;
    margin-top: 53px;
  }

  .trust-card {
    padding: 40px 29px;
  }

  .trust-image {
    min-height: 260px;
  }

  .trust-image::after {
    background: linear-gradient(0deg, #ffd59e 0%, transparent 45%);
  }

  .app-cta {
    margin-top: 57px;
    padding: 46px 0;
  }

  .app-cta-content {
    grid-template-columns: 1fr;
    gap: 19px;
    text-align: center;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto;
  }

  .app-cta-downloads {
    grid-column: auto;
  }

  .store-downloads,
  .app-cta-actions {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Uygulama ve içerik sayfaları */
body.app-page {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 164, 88, 0.14), transparent 24%),
    radial-gradient(circle at 93% 16%, rgba(66, 158, 230, 0.12), transparent 26%),
    #fffaf5;
  font-family: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", sans-serif;
}

body.app-page main {
  flex: 1;
}

body.app-page h1,
body.app-page h2,
body.app-page h3,
body.app-page p {
  margin-top: 0;
}

.app-topbar,
.workspace-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(28px, calc((100vw - 1240px) / 2));
}

.app-topbar {
  border-bottom: 1px solid rgba(23, 39, 80, 0.09);
  background: rgba(255, 250, 245, 0.88);
  backdrop-filter: blur(16px);
}

.workspace-header {
  color: #fff;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.2), transparent 23%),
    linear-gradient(108deg, #f25416, #ef8040 50%, #2888d4);
  box-shadow: 0 8px 30px rgba(53, 56, 102, 0.12);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.app-brand-light {
  color: #fff;
}

.app-brand img {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 7px 12px rgba(38, 31, 91, 0.24));
}

.topbar-link,
.header-action {
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar-link:hover {
  color: var(--orange-dark);
}

.header-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.header-action-outline {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
}

.header-action:hover {
  background: rgba(255, 255, 255, 0.26);
}

.page-eyebrow {
  margin-bottom: 10px;
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app-footer {
  padding: 22px 24px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-dark);
  text-align: center;
}

.app-footer p {
  margin: 0;
  font-size: 0.82rem;
}

/* Giriş ve kayıt */
.auth-main {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 150px);
  margin: 35px auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(38px, 5.5vw, 72px);
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 65% 30%, rgba(255, 239, 196, 0.78), transparent 24%),
    linear-gradient(145deg, #f75a17 0%, #f7984c 48%, #2c91d9 100%);
  box-shadow: 0 28px 60px rgba(126, 64, 38, 0.2);
}

.auth-story::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  border: 45px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.auth-story-glow {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(3px);
}

.auth-story-logo {
  position: absolute;
  top: 8%;
  right: 10%;
  width: min(42%, 250px);
  filter: drop-shadow(0 18px 28px rgba(35, 27, 93, 0.28));
}

.auth-story-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.auth-story .page-eyebrow {
  color: #fff5dc;
}

.auth-story h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.auth-story-content > p:not(.page-eyebrow) {
  max-width: 500px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 1.05rem;
  line-height: 1.62;
}

.auth-benefits {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.auth-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 760;
  backdrop-filter: blur(10px);
}

.auth-benefits span {
  font-size: 1rem;
}

.auth-story-register {
  background:
    radial-gradient(circle at 65% 28%, rgba(255, 239, 196, 0.68), transparent 24%),
    linear-gradient(145deg, #236fae 0%, #4da3df 45%, #f6a15d 100%);
}

.auth-pets {
  position: absolute;
  top: -90px;
  right: -10px;
  width: min(61%, 420px);
  border-radius: 45%;
  clip-path: ellipse(49% 43% at 52% 47%);
  opacity: 0.93;
  filter: saturate(1.05) drop-shadow(0 20px 30px rgba(36, 48, 102, 0.2));
}

.signup-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signup-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 800;
}

.signup-steps b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.form-card {
  width: 100%;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid rgba(255, 175, 106, 0.34);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 55px rgba(71, 54, 69, 0.12);
  backdrop-filter: blur(16px);
}

.form-card-heading {
  margin-bottom: 28px;
  text-align: center;
}

.form-card-heading.align-left {
  text-align: left;
}

.form-card-heading .page-eyebrow {
  margin-bottom: 7px;
}

.form-card-heading h2 {
  margin-bottom: 9px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.form-card-heading > p:last-child {
  margin-bottom: 0;
  color: #69728d;
}

.form-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9c53);
  box-shadow: 0 11px 21px rgba(202, 75, 21, 0.22);
  font-size: 1.5rem;
}

.form-alert {
  margin-bottom: 20px;
  padding: 12px 15px;
  border: 1px solid rgba(210, 63, 49, 0.2);
  border-radius: 14px;
  color: #a5312c;
  background: #fff0ec;
  font-size: 0.88rem;
  font-weight: 750;
}

.warm-form {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: #29375d;
  font-size: 0.87rem;
  font-weight: 820;
}

.field-group input,
.field-group select,
.filter-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(40, 55, 93, 0.16);
  border-radius: 14px;
  outline: none;
  color: var(--blue-dark);
  background: #fffdfb;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-group select {
  padding: 12px 44px 12px 15px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange-dark) 50%),
    linear-gradient(135deg, var(--orange-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 14px) 23px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.field-group input::placeholder {
  color: #a2a8b9;
}

.field-group input:focus,
.field-group select:focus,
.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(255, 90, 22, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 22, 0.1);
}

.field-group small {
  color: #8990a3;
  font-size: 0.75rem;
}

.tracker-setup {
  display: grid;
  margin: 2px 0 0;
  padding: 17px;
  gap: 14px;
  border: 1px solid rgba(255, 122, 48, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffaf5, #fff);
}

.tracker-setup legend {
  padding: 0 7px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.tracker-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4c5875;
  cursor: pointer;
}

.tracker-toggle input {
  width: 19px;
  height: 19px;
  min-height: 19px;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--orange);
}

.tracker-toggle span,
.tracker-toggle b,
.tracker-toggle small {
  display: block;
}

.tracker-toggle b {
  margin-bottom: 2px;
  color: #2d3a5f;
  font-size: 0.8rem;
}

.tracker-toggle small {
  color: #858da1;
  font-size: 0.7rem;
  font-weight: 600;
}

.tracker-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tracker-summary span {
  display: grid;
  min-height: 50px;
  padding: 9px;
  place-content: center;
  border: 1px solid rgba(40, 55, 93, 0.09);
  border-radius: 12px;
  color: #7b8398;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.65rem;
  text-align: center;
}

.tracker-summary b {
  margin-top: 2px;
  color: var(--blue-dark);
  font-size: 0.74rem;
}

@media (max-width: 480px) {
  .tracker-summary {
    grid-template-columns: 1fr;
  }
}

.optional-label {
  margin-left: 6px;
  color: #9298aa;
  font-size: 0.68rem;
  font-weight: 650;
}

.photo-upload {
  display: flex;
  min-height: 78px;
  padding: 14px;
  align-items: center;
  gap: 13px;
  border: 1px dashed rgba(255, 90, 22, 0.45);
  border-radius: 16px;
  background: #fff9f3;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.photo-upload:hover {
  border-color: var(--orange);
  background: #fff4e8;
  transform: translateY(-1px);
}

.photo-upload > span:last-child,
.photo-upload b,
.photo-upload small {
  display: block;
}

.photo-upload small {
  margin-top: 4px;
  font-weight: 600;
}

.photo-upload-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9344);
  font-size: 1.35rem;
}

.file-input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-input:focus + .image-preview,
.photo-upload:focus-within {
  outline: 3px solid rgba(255, 90, 22, 0.18);
  outline-offset: 3px;
}

.image-preview {
  display: flex;
  padding: 8px 12px;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  color: #28765a;
  background: #effaf5;
  font-size: 0.77rem;
  font-weight: 800;
}

.image-preview[hidden] {
  display: none;
}

.image-preview img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.form-submit,
.filter-button {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(108deg, var(--orange), #ff7a20);
  box-shadow: 0 12px 24px rgba(198, 63, 10, 0.2);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.form-submit:hover,
.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(198, 63, 10, 0.28);
}

.form-switch {
  margin: 24px 0 0;
  color: #72798f;
  font-size: 0.87rem;
  text-align: center;
}

.form-switch a {
  color: var(--orange-dark);
  font-weight: 850;
  text-decoration: none;
}

/* Çalışma alanı ve pati ekleme */
.workspace-actions,
.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-actions form,
.dashboard-user form {
  margin: 0;
}

.workspace-shell,
.dashboard-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.workspace-shell {
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
  gap: 9px;
  color: #8b8fa0;
  font-size: 0.83rem;
}

.breadcrumb a {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: none;
}

.animal-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.animal-welcome {
  padding: clamp(20px, 4vw, 48px);
}

.animal-welcome h1 {
  max-width: 620px;
  margin-bottom: 17px;
  color: var(--blue-dark);
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.animal-welcome > p:not(.page-eyebrow) {
  max-width: 590px;
  color: #69728d;
  font-size: 1.04rem;
  line-height: 1.65;
}

.animal-welcome-visual {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 24px;
}

.animal-welcome-visual::before {
  position: absolute;
  inset: 0;
  border-radius: 48px;
  background: linear-gradient(135deg, #ffe0bf, #bde2fb);
  box-shadow: 0 18px 35px rgba(79, 62, 69, 0.14);
  content: "";
  transform: rotate(-5deg);
}

.animal-welcome-visual img {
  position: absolute;
  z-index: 1;
  inset: 15px;
  width: 160px;
  height: 160px;
  border-radius: 40px;
}

.paw-bubble {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 9px 17px rgba(67, 55, 79, 0.18);
}

.paw-one {
  top: -12px;
  right: -16px;
}

.paw-two {
  bottom: -5px;
  left: -14px;
  background: var(--blue);
}

.check-list {
  display: grid;
  margin: 25px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 29px;
  color: #3c496c;
  font-weight: 740;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #30a66d;
  content: "✓";
  font-size: 0.7rem;
}

.animal-form-card {
  max-width: 490px;
  margin-left: auto;
}

/* Dashboard */
.dashboard-user {
  color: #fff;
}

.user-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fff;
  font-weight: 900;
}

.user-copy {
  display: grid;
  margin-right: 8px;
}

.user-copy small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
}

.user-copy span {
  max-width: 230px;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-shell {
  padding: 36px 0 78px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
  min-height: 305px;
  align-items: center;
  gap: 35px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 35%, rgba(255, 245, 213, 0.34), transparent 23%),
    linear-gradient(112deg, #f05416, #ef7d3e 48%, #2989d3);
  box-shadow: 0 24px 50px rgba(116, 67, 55, 0.17);
}

.dashboard-hero::after {
  position: absolute;
  right: -100px;
  bottom: -155px;
  width: 420px;
  height: 420px;
  border: 50px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero .page-eyebrow {
  color: #fff1d9;
}

.dashboard-hero h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.dashboard-hero > div:first-child > p:not(.page-eyebrow) {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.62;
}

.dashboard-hero-actions {
  display: flex;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.warm-button,
.soft-button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.warm-button {
  color: #fff;
  background: linear-gradient(108deg, var(--orange), #ff7a20);
  box-shadow: 0 12px 22px rgba(172, 53, 7, 0.22);
}

.dashboard-hero .warm-button {
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 12px 22px rgba(97, 45, 27, 0.16);
}

.soft-button {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.warm-button:hover,
.soft-button:hover {
  transform: translateY(-2px);
}

.dashboard-summary {
  display: grid;
  gap: 12px;
}

.dashboard-summary article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.summary-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.3rem;
}

.summary-icon-blue {
  color: #fff;
  background: rgba(21, 92, 173, 0.35);
}

.dashboard-summary strong,
.dashboard-summary small {
  display: block;
}

.dashboard-summary strong {
  font-size: 1.15rem;
}

.dashboard-summary small {
  color: rgba(255, 255, 255, 0.74);
}

.dashboard-section {
  padding: 63px 0 24px;
}

.dashboard-section-heading,
.surface-card-heading,
.records-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-section-heading {
  margin-bottom: 22px;
}

.dashboard-section-heading h2,
.surface-card-heading h2,
.records-heading h2 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.dashboard-section-heading .page-eyebrow,
.surface-card-heading .page-eyebrow,
.records-heading .page-eyebrow {
  margin-bottom: 4px;
}

.section-link {
  color: var(--orange-dark);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.animal-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(44, 62, 103, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 27px rgba(66, 51, 64, 0.08);
}

.animal-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9c52);
  font-size: 1.2rem;
  font-weight: 900;
}

.animal-avatar-photo {
  overflow: hidden;
  background: #fff;
}

.animal-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animal-card h3 {
  margin-bottom: 3px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.animal-card p {
  margin-bottom: 0;
  color: #7c8296;
  font-size: 0.78rem;
}

.animal-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #31936a;
  font-size: 0.7rem;
  font-weight: 850;
}

.animal-battery {
  display: inline-flex;
  min-width: 62px;
  padding: 4px 7px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(45, 131, 195, 0.15);
  border-radius: 999px;
  color: #2877ae;
  background: #eef8ff;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.animal-battery b {
  color: inherit;
  font-size: 0.68rem;
}

.animal-battery.is-low {
  border-color: rgba(224, 146, 31, 0.2);
  color: #a86413;
  background: #fff8e8;
}

.animal-battery.is-critical {
  border-color: rgba(217, 69, 53, 0.2);
  color: #b43e32;
  background: #fff0ed;
}

.animal-status i,
.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38b978;
  box-shadow: 0 0 0 4px rgba(56, 185, 120, 0.12);
}

.dashboard-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed rgba(44, 62, 103, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-empty > span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: var(--orange-dark);
  background: #fff0e2;
}

.dashboard-empty h3 {
  margin-bottom: 3px;
  color: var(--blue-dark);
  font-size: 0.92rem;
}

.dashboard-empty p {
  margin-bottom: 0;
  color: #7b8296;
  font-size: 0.78rem;
}

.dashboard-empty .soft-button {
  margin-left: auto;
  border-color: rgba(255, 90, 22, 0.2);
  color: var(--orange-dark);
  background: #fff;
}

.tracking-grid {
  display: grid;
  margin-top: 29px;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.surface-card {
  overflow: hidden;
  border: 1px solid rgba(44, 62, 103, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(66, 51, 64, 0.08);
}

.map-card,
.alerts-card,
.records-card {
  padding: 22px;
}

.surface-card-heading {
  margin-bottom: 18px;
  align-items: center;
}

.map-hint,
.live-indicator {
  color: #7f8497;
  font-size: 0.7rem;
  font-weight: 740;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #309167;
}

#map {
  height: 470px;
  border: 1px solid rgba(42, 63, 99, 0.1);
  border-radius: 18px;
  background: #dcebd2;
}

.animation-toolbar {
  display: flex;
  margin-top: 13px;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(35, 76, 128, 0.09);
  border-radius: 15px;
  background: linear-gradient(110deg, #fff8f1, #eef8ff);
}

.animation-toolbar strong,
.animation-toolbar span {
  display: block;
}

.animation-toolbar strong {
  margin-bottom: 3px;
  color: var(--blue-dark);
  font-size: 0.78rem;
}

.animation-toolbar span {
  color: #798196;
  font-size: 0.69rem;
  line-height: 1.4;
}

.animation-button {
  min-height: 36px;
  padding: 8px 12px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
}

.animation-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.animation-playback-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.animation-live-button {
  min-height: 36px;
  padding: 8px 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(48, 145, 103, 0.2);
  border-radius: 11px;
  color: #287d5a;
  background: #effbf5;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
}

.animation-live-button.is-active {
  border-color: transparent;
  color: #fff;
  background: #309167;
  box-shadow: 0 6px 14px rgba(48, 145, 103, 0.2);
}

.latest-paw-marker {
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(29, 48, 80, 0.28);
  object-fit: cover;
}

.map-popup {
  display: grid;
  gap: 3px;
}

.map-popup strong {
  color: var(--blue-dark);
}

.map-popup span {
  color: #737b91;
  font-size: 0.74rem;
}

.leaflet-control-zoom a,
.leaflet-draw-toolbar a {
  color: var(--blue-dark);
}

.alerts-list {
  display: grid;
  max-height: 470px;
  overflow: auto;
  gap: 10px;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 16px;
}

.status-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.status-item strong,
.status-item small {
  display: block;
}

.status-item strong {
  color: var(--blue-dark);
  font-size: 0.8rem;
  line-height: 1.4;
}

.status-item small {
  margin-top: 4px;
  color: #858b9c;
  font-size: 0.68rem;
}

.status-item .status-context {
  margin-top: 6px;
  color: #5f667a;
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.45;
}

.status-item .status-attribution {
  margin-top: 3px;
  color: #9499a7;
  font-size: 0.58rem;
}

.status-alert-list {
  display: grid;
  margin-top: 10px;
  gap: 7px;
}

.status-alert-summary {
  display: grid;
  padding-top: 8px;
  border-top: 1px solid rgba(45, 55, 84, 0.1);
  gap: 3px;
}

.status-alert-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.status-alert-heading b {
  color: var(--blue-dark);
  font-size: 0.7rem;
  line-height: 1.35;
}

.status-test-badge {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  color: #9a3c2e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-item .status-alert-detail {
  margin-top: 0;
  color: #5f667a;
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.42;
}

.status-item .status-alert-time {
  margin-top: 0;
  font-size: 0.59rem;
}

.status-success {
  border-color: rgba(52, 169, 111, 0.16);
  background: #effbf5;
}

.status-success .status-icon {
  color: #27865d;
  background: #d9f5e6;
}

.status-danger {
  border-color: rgba(217, 69, 53, 0.18);
  background: #fff1ed;
}

.status-danger .status-icon {
  color: #bc3c31;
  background: #ffdcd5;
}

.status-warning {
  border-color: rgba(224, 146, 31, 0.2);
  background: #fff8e8;
}

.status-warning .status-icon {
  color: #a86413;
  background: #ffe9b9;
}

.status-neutral {
  border-color: rgba(39, 126, 193, 0.16);
  background: #eef7fd;
}

.status-neutral .status-icon {
  color: #1e71ad;
  background: #d8edfa;
}

.compact-empty {
  align-items: flex-start;
  padding: 15px;
}

.records-card {
  margin-top: 18px;
}

.records-heading {
  margin-bottom: 20px;
  align-items: center;
}

.filter-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.filter-field {
  display: grid;
  gap: 5px;
}

.filter-field label {
  color: #69728d;
  font-size: 0.67rem;
  font-weight: 800;
}

.filter-field input,
.filter-field select {
  min-height: 41px;
  max-width: 195px;
  padding: 8px 10px;
  border: 1px solid rgba(40, 55, 93, 0.16);
  border-radius: 11px;
  outline: none;
  color: var(--blue-dark);
  background: #fffdfb;
  font: inherit;
  font-size: 0.75rem;
}

.filter-button {
  min-height: 41px;
  padding: 8px 15px;
  border-radius: 11px;
  font-size: 0.77rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(44, 62, 103, 0.09);
  border-radius: 16px;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.records-table th,
.records-table td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(44, 62, 103, 0.08);
  text-align: left;
}

.records-table th {
  color: #68718b;
  background: #fff8f1;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.records-table td {
  color: #394663;
  font-size: 0.8rem;
}

.records-table tbody tr:last-child td {
  border-bottom: 0;
}

.records-table tbody tr:hover {
  background: #fffaf5;
}

.records-table .record-row {
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.records-table .record-row:focus {
  outline: 3px solid rgba(255, 90, 22, 0.2);
  outline-offset: -3px;
}

.records-table .record-row.is-selected {
  background: #fff0e3;
  box-shadow: inset 4px 0 0 var(--orange);
}

.loading-row td,
.empty-table-cell {
  color: #8a8fa1;
  text-align: center;
}

/* Hakkımızda ve iletişim */
.content-page {
  background:
    radial-gradient(circle at 2% 14%, rgba(255, 165, 85, 0.14), transparent 24%),
    radial-gradient(circle at 94% 22%, rgba(61, 151, 222, 0.14), transparent 24%),
    #fffaf5;
}

.content-topbar {
  position: sticky;
  top: 0;
}

.content-nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2.6vw, 30px);
}

.content-nav a {
  color: #475471;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.content-nav a[aria-current="page"] {
  color: var(--orange-dark);
}

.content-nav .content-nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-dark);
}

.content-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.content-hero,
.contact-hero {
  padding: clamp(60px, 9vw, 115px) 0;
}

.content-hero-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
}

.content-hero h1,
.contact-copy h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--blue-dark);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.97;
  letter-spacing: -0.06em;
}

.content-hero-grid > div:first-child > p:not(.page-eyebrow),
.contact-copy > p:not(.page-eyebrow) {
  max-width: 650px;
  margin-bottom: 27px;
  color: #626d88;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-hero-art {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 46% 54% 50% 50%;
  background: linear-gradient(145deg, #ffbe7e, #f9dfbf 48%, #9fd6f5);
  box-shadow: 0 25px 50px rgba(87, 66, 81, 0.17);
}

.content-hero-art img {
  position: relative;
  z-index: 2;
  width: 70%;
  filter: drop-shadow(0 18px 25px rgba(47, 40, 98, 0.25));
}

.orbit {
  position: absolute;
  border: 20px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.orbit-one {
  width: 85%;
  height: 85%;
}

.orbit-two {
  right: -18%;
  bottom: -18%;
  width: 58%;
  height: 58%;
  border-color: rgba(32, 116, 190, 0.18);
}

.values-section,
.help-section {
  padding: 30px 0 90px;
}

.section-title-left {
  max-width: 650px;
  margin-bottom: 30px;
}

.section-title-left h2,
.story-banner h2,
.contact-card h2 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.value-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  padding: 28px;
  border: 1px solid rgba(50, 65, 102, 0.1);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(71, 53, 68, 0.08);
}

.value-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9a4c);
  font-size: 1.25rem;
}

.value-card:nth-child(2) .value-icon {
  background: linear-gradient(135deg, var(--blue), #61b4eb);
}

.value-card h3 {
  margin-bottom: 9px;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.value-card p {
  margin-bottom: 0;
  color: #69728b;
  font-size: 0.9rem;
  line-height: 1.65;
}

.story-banner {
  display: grid;
  margin-bottom: 90px;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 55px;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 29px;
  color: #fff;
  background: linear-gradient(112deg, #ef5617, #f18a47 52%, #358ed0);
  box-shadow: 0 22px 44px rgba(98, 62, 59, 0.16);
}

.story-banner .page-eyebrow {
  color: #fff0d8;
}

.story-banner h2 {
  color: #fff;
}

.story-banner > p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.contact-hero {
  background: linear-gradient(180deg, rgba(255, 238, 218, 0.5), transparent);
}

.contact-card {
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid rgba(255, 175, 106, 0.37);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 45px rgba(78, 58, 73, 0.11);
}

.contact-card-icon {
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9b51);
  font-size: 1.4rem;
}

.contact-card h2 {
  margin-bottom: 12px;
  font-size: 2.3rem;
}

.contact-card > p:not(.page-eyebrow) {
  color: #6d758c;
  line-height: 1.65;
}

.contact-card > a {
  display: inline-flex;
  margin-top: 8px;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-weight: 900;
  text-decoration: none;
}

.help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(50, 65, 102, 0.1);
  border-radius: 21px;
  color: inherit;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 26px rgba(71, 53, 68, 0.07);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 32px rgba(71, 53, 68, 0.11);
}

.help-card > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9a4c);
}

.help-card:nth-child(2) > span {
  background: linear-gradient(135deg, var(--blue), #62b4ea);
}

.help-card h3 {
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 0.98rem;
}

.help-card p {
  margin-bottom: 0;
  color: #7a8194;
  font-size: 0.77rem;
}

.help-card b {
  color: var(--orange-dark);
}

.content-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-dark);
}

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

.content-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .auth-main,
  .animal-form-layout,
  .content-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 520px;
  }

  .auth-panel {
    padding-top: 0;
  }

  .form-card {
    max-width: 620px;
  }

  .animal-form-card {
    max-width: 620px;
    margin: 0 auto;
  }

  .dashboard-hero,
  .tracking-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .animal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-form {
    width: 100%;
  }

  .filter-field {
    flex: 1;
  }

  .filter-field input,
  .filter-field select {
    max-width: none;
  }

  .content-hero-art {
    width: min(480px, 75vw);
    margin: 0 auto;
  }

  .story-banner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .app-topbar,
  .workspace-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .app-brand {
    font-size: 1.25rem;
  }

  .app-brand img {
    width: 42px;
    height: 42px;
  }

  .auth-main,
  .workspace-shell,
  .dashboard-shell,
  .content-shell {
    width: min(100% - 28px, 600px);
  }

  .auth-main {
    margin: 20px auto 28px;
    gap: 20px;
  }

  .auth-story {
    min-height: 485px;
    padding: 28px;
    border-radius: 26px;
  }

  .auth-story h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .auth-story-logo {
    top: 5%;
    right: 5%;
    width: 190px;
  }

  .auth-pets {
    top: -70px;
    right: -35px;
    width: 330px;
  }

  .form-card {
    padding: 27px 22px;
    border-radius: 23px;
  }

  .workspace-header,
  .dashboard-header {
    flex-wrap: wrap;
  }

  .workspace-actions,
  .dashboard-user {
    gap: 6px;
  }

  .user-copy {
    display: none;
  }

  .animal-welcome {
    padding: 10px 0 20px;
  }

  .animal-welcome h1 {
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }

  .dashboard-shell {
    padding-top: 20px;
  }

  .dashboard-hero {
    min-height: 0;
    padding: 28px 23px;
    border-radius: 25px;
  }

  .dashboard-summary,
  .animal-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-section {
    padding-top: 45px;
  }

  .dashboard-section-heading,
  .surface-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-hint {
    margin-top: -10px;
  }

  #map {
    height: 380px;
  }

  .animation-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .animation-button {
    width: 100%;
  }

  .filter-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-button {
    width: 100%;
  }

  .content-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .content-nav a {
    flex: 0 0 auto;
    font-size: 0.73rem;
  }

  .content-hero,
  .contact-hero {
    padding: 55px 0;
  }

  .content-hero h1,
  .contact-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.3rem);
  }

  .value-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .values-section,
  .help-section {
    padding-bottom: 60px;
  }

  .story-banner {
    margin-bottom: 60px;
    padding: 30px 24px;
    border-radius: 23px;
  }

  .content-footer .content-shell {
    flex-direction: column;
    text-align: center;
  }
}

/* Son katman: önceki tema kurallarına karşı üretim düzenini sabitler. */
body .site-nav,
body .app-topbar,
body .workspace-header {
  min-height: 118px;
  padding-top: max(8px, env(safe-area-inset-top));
}

body .brand .brand-mark,
body .app-brand .brand-mark {
  width: 102px;
  height: 102px;
  flex: 0 0 102px;
  border-radius: 24px;
  object-fit: cover;
  clip-path: inset(20%);
  transform: scale(1.9);
}

body .brand .brand-wordmark,
body .app-brand .brand-wordmark {
  width: clamp(138px, 14vw, 180px);
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: none;
}

body .app-brand-light .brand-wordmark {
  padding: 4px 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
}

body .site-nav .brand-wordmark {
  padding: 3px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 7px 18px rgba(35, 39, 90, 0.1);
}

body .brand .brand-mark.brand-mark-legacy,
body .app-brand .brand-mark.brand-mark-legacy {
  width: 118px;
  height: 102px;
  flex: 0 0 118px;
  border-radius: 22px;
  clip-path: inset(12% round 22px);
  object-fit: cover;
  transform: scale(1.38);
}

.logout-wordmark {
  display: block;
  width: clamp(108px, 10vw, 148px);
  height: auto;
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(31, 35, 82, 0.15);
  object-fit: contain;
}

body .tracking-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body .tracking-grid > .map-card {
  grid-column: span 9;
}

body .tracking-grid > .alerts-card {
  grid-column: span 3;
}

body #map {
  height: clamp(560px, 65vh, 720px);
}

body .alerts-list {
  max-height: clamp(560px, 65vh, 720px);
}

body .filter-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(255px, 1.3fr) minmax(255px, 1.3fr) auto;
}

body .filter-field input,
body .filter-field select {
  width: 100%;
  max-width: none;
  min-height: 44px;
}

body .filter-field input[type="date"],
body .filter-field input[type="time"] {
  min-height: 48px;
  color-scheme: light;
  cursor: pointer;
  touch-action: manipulation;
}

body .filter-field input[type="date"]::-webkit-calendar-picker-indicator,
body .filter-field input[type="time"]::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  margin-inline-start: 8px;
  padding: 5px;
  border-radius: 8px;
  background-color: rgba(255, 90, 22, 0.1);
  cursor: pointer;
  opacity: 0.9;
}

body .map-card.map-is-expanded #map {
  height: auto;
}

.paw-location-icon {
  border: 0;
  background: transparent;
}

.paw-location-marker {
  display: flex;
  width: 120px;
  align-items: center;
  flex-direction: column;
  pointer-events: none;
  transform: translateZ(0);
}

.paw-location-avatar {
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 18px rgba(29, 48, 80, 0.3);
  object-fit: cover;
}

.paw-location-point {
  position: relative;
  z-index: 2;
  display: block;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 0 4px rgba(255, 90, 22, 0.22),
    0 5px 12px rgba(80, 35, 18, 0.28);
}

.paw-location-point::after {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #fff;
  content: "";
}

.paw-location-label {
  display: block;
  max-width: 116px;
  margin-top: 7px;
  overflow: hidden;
  padding: 4px 9px;
  border: 1px solid rgba(33, 54, 91, 0.1);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(29, 48, 80, 0.17);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .hero .hero-content > .eyebrow {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  letter-spacing: 0.12em;
}

body .hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 4.15rem);
}

body .records-heading > div:first-child {
  flex: 0 0 auto;
}

body .records-heading {
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
}

body .records-heading h2 {
  font-size: clamp(1.08rem, 1.5vw, 1.42rem);
  white-space: nowrap;
}

body .filter-form {
  width: 100%;
  max-width: none;
  grid-template-columns:
    minmax(155px, 0.72fr)
    minmax(280px, 1.18fr)
    minmax(280px, 1.18fr)
    minmax(190px, 0.7fr);
  align-items: stretch;
  gap: 12px;
}

body .filter-period {
  height: 100%;
}

body .filter-paw-period {
  grid-template-columns: minmax(0, 1fr);
}

body .filter-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(76px, 0.7fr) minmax(96px, 1fr);
  align-items: end;
  gap: 7px;
}

body .filter-button,
body .filter-clear {
  width: 100%;
  min-width: 0;
  padding-inline: 11px;
}

.filter-error {
  margin: -4px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(202, 61, 48, 0.16);
  border-radius: 10px;
  color: #a53a31;
  background: #fff3f0;
  font-size: 0.7rem;
  font-weight: 760;
}

.filter-error[hidden] {
  display: none;
}

.records-pagination {
  display: flex;
  min-height: 54px;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.records-pagination[hidden] {
  display: none;
}

.records-pagination p {
  margin: 0;
  color: #747c91;
  font-size: 0.75rem;
  font-weight: 780;
  white-space: nowrap;
}

.records-page-controls,
.records-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.records-page-controls button {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(42, 58, 95, 0.12);
  border-radius: 11px;
  color: var(--blue-dark);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.records-page-controls button:hover:not(:disabled) {
  border-color: rgba(255, 90, 22, 0.25);
  color: var(--orange-dark);
  background: #fff5eb;
}

.records-page-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.records-page-number.is-current {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(110deg, var(--orange), #ff7a20);
  box-shadow: 0 7px 15px rgba(199, 67, 14, 0.18);
}

.records-page-ellipsis {
  display: grid;
  width: 24px;
  min-height: 38px;
  place-items: center;
  color: #8a90a2;
  font-weight: 900;
}

body .animal-card {
  min-height: 118px;
  gap: 16px;
  padding: 18px 20px;
}

body .animal-avatar.animal-avatar-photo {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 23px;
  background: linear-gradient(145deg, #fff2e5, #eaf6ff);
  box-shadow:
    0 0 0 2px rgba(255, 115, 45, 0.16),
    0 12px 24px rgba(58, 51, 78, 0.16);
}

body .animal-avatar.animal-avatar-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body .animal-card h3 {
  font-size: 1.08rem;
}

@media (max-width: 1180px) {
  body .tracking-grid > .map-card {
    grid-column: span 8;
  }

  body .tracking-grid > .alerts-card {
    grid-column: span 4;
  }

  body .filter-form {
    grid-template-columns: minmax(150px, 0.8fr) 1fr 1fr;
  }
}

@media (max-width: 900px) {
  body .site-nav,
  body .app-topbar,
  body .workspace-header {
    min-height: 98px;
  }

  body .brand .brand-mark,
  body .app-brand .brand-mark {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  body .brand .brand-wordmark,
  body .app-brand .brand-wordmark {
    width: 128px;
  }

  body .brand .brand-mark.brand-mark-legacy,
  body .app-brand .brand-mark.brand-mark-legacy {
    width: 96px;
    height: 82px;
    flex-basis: 96px;
  }

  .logout-wordmark {
    width: 102px;
  }

  body .tracking-grid > .map-card,
  body .tracking-grid > .alerts-card {
    grid-column: 1 / -1;
  }

  body #map {
    height: min(66vh, 620px);
  }

  body .alerts-list {
    max-height: 380px;
  }

  body .filter-form {
    grid-template-columns: 1fr 1fr;
  }

  body .filter-paw-period,
  body .filter-actions {
    grid-column: 1 / -1;
  }

  body .filter-actions {
    width: min(100%, 270px);
    justify-self: end;
  }
}

@media (max-width: 700px) {
  body .animal-card {
    min-height: 106px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }

  body .animal-avatar.animal-avatar-photo {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }

  body .hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  body .site-nav,
  body .app-topbar,
  body .workspace-header {
    min-height: 84px;
  }

  body .brand .brand-mark,
  body .app-brand .brand-mark {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 18px;
  }

  body .brand .brand-wordmark,
  body .app-brand .brand-wordmark {
    width: 105px;
  }

  body .brand .brand-mark.brand-mark-legacy,
  body .app-brand .brand-mark.brand-mark-legacy {
    width: 78px;
    height: 66px;
    flex-basis: 78px;
    border-radius: 17px;
  }

  .logout-wordmark {
    width: 86px;
    padding: 3px 5px;
    border-radius: 9px;
  }

  body #map {
    height: 58vh;
    min-height: 440px;
  }

  body .filter-form {
    grid-template-columns: 1fr;
  }

  body .filter-paw-period,
  body .filter-actions {
    grid-column: auto;
  }

  body .filter-actions {
    width: 100%;
  }

  body .animation-playback-actions {
    width: 100%;
  }

  body .animation-playback-actions .animation-button,
  body .animation-playback-actions .animation-live-button {
    width: auto;
    flex: 1;
  }

  .records-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .records-page-controls {
    width: 100%;
    justify-content: space-between;
  }

  .records-page-numbers {
    max-width: calc(100vw - 190px);
    overflow-x: auto;
    padding: 2px;
  }

  body .auth-story-logo {
    top: 12%;
    right: -42px;
    width: 210px;
    opacity: 0.14;
    filter: saturate(0.85);
  }
}

@media (max-width: 430px) {
  body .brand .brand-wordmark,
  body .app-brand .brand-wordmark {
    width: 88px;
  }

  body .workspace-header .app-brand .brand-wordmark {
    display: block;
    width: 72px;
  }
}

/* Pati seçimi ve şeffaf marka görseli */
.animal-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.animal-location-select {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  touch-action: manipulation;
}

.animal-card-copy,
.animal-card-name,
.animal-card-species {
  display: block;
  min-width: 0;
}

.animal-card-name {
  margin-bottom: 3px;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.animal-card-species {
  color: #7c8296;
  font-size: 0.78rem;
}

.animal-card.is-map-selected {
  border-color: rgba(255, 90, 22, 0.5);
  background: linear-gradient(135deg, rgba(255, 247, 239, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 36px rgba(197, 76, 26, 0.16);
}

.animal-card.is-map-selected .animal-card-name {
  color: var(--orange-dark);
}

.paw-focus-notice {
  display: flex;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 90, 22, 0.18);
  border-radius: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #6c4638;
  background: #fff5ec;
  font-size: 0.78rem;
}

.paw-focus-notice[hidden] {
  display: none;
}

.paw-focus-notice strong {
  color: var(--orange-dark);
}

.paw-focus-notice button {
  padding: 5px 9px;
  border: 1px solid rgba(255, 90, 22, 0.2);
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.logout-wordmark,
.nav-login-wordmark {
  display: block;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.logout-wordmark {
  width: clamp(132px, 12vw, 178px);
  padding: 0;
  border-radius: 0;
}

.nav-login-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.nav-login-wordmark {
  width: clamp(118px, 10vw, 154px);
}

body .site-nav,
body .app-topbar,
body .workspace-header {
  min-height: 132px;
}

body .brand .brand-mark.brand-mark-legacy,
body .app-brand .brand-mark.brand-mark-legacy {
  width: 146px;
  height: 122px;
  flex-basis: 146px;
  transform: scale(1.42);
}

@media (max-width: 900px) {
  body .site-nav,
  body .app-topbar,
  body .workspace-header {
    min-height: 108px;
  }

  body .brand .brand-mark.brand-mark-legacy,
  body .app-brand .brand-mark.brand-mark-legacy {
    width: 118px;
    height: 98px;
    flex-basis: 118px;
  }

  .logout-wordmark {
    width: 118px;
    padding: 0;
  }

  .nav-login-wordmark {
    width: 108px;
  }
}

@media (max-width: 700px) {
  body .animal-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .animal-location-select {
    gap: 12px;
  }

  body .site-nav,
  body .app-topbar,
  body .workspace-header {
    min-height: 92px;
  }

  body .brand .brand-mark.brand-mark-legacy,
  body .app-brand .brand-mark.brand-mark-legacy {
    width: 94px;
    height: 78px;
    flex-basis: 94px;
  }

  .logout-wordmark {
    width: 92px;
    padding: 0;
  }

  .nav-login-group {
    gap: 7px;
  }

  .nav-login-wordmark {
    width: 88px;
  }

  .nav-login {
    padding-inline: 12px;
  }
}

/* Dashboard odak düzeni: birleşik başlık, ilk ekranda geniş harita ve eşlenmiş durum alanı */
body.dashboard-page .dashboard-header {
  min-height: 124px;
  padding: max(8px, env(safe-area-inset-top))
    max(18px, calc((100vw - 1800px) / 2))
    8px;
}

.dashboard-brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(4px, 0.8vw, 13px);
}

.dashboard-title-lockup {
  min-width: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
}

.dashboard-title-lockup h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.22rem, 1.8vw, 1.85rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.dashboard-title-lockup p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.72rem, 0.9vw, 0.94rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

body.dashboard-page .dashboard-shell {
  width: min(1800px, calc(100% - 28px));
  padding: 14px 0 64px;
}

body.dashboard-page .tracking-grid {
  display: grid;
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr);
}

body.dashboard-page .tracking-grid > .map-card {
  grid-column: 1 / -1;
}

body.dashboard-page .map-card {
  padding: 18px;
}

body.dashboard-page .map-card > .surface-card-heading {
  min-height: 42px;
  margin-bottom: 12px;
}

body.dashboard-page .map-card > .surface-card-heading h2 {
  font-size: clamp(1.28rem, 1.8vw, 1.75rem);
}

body.dashboard-page .map-command-bar {
  margin-bottom: 11px;
}

body.dashboard-page #map {
  height: clamp(330px, calc(100svh - 382px), 650px);
}

.family-status-grid {
  display: grid;
  margin: 0 0 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.companion-panel {
  min-width: 0;
  padding: 22px;
}

.family-status-grid .surface-card-heading {
  min-height: 56px;
  margin-bottom: 18px;
  align-items: center;
}

.family-status-grid .surface-card-heading h2 {
  font-size: clamp(1.42rem, 2.2vw, 2rem);
}

.family-status-grid .animal-grid,
.family-status-grid .alerts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-items: stretch;
  gap: 12px;
}

.family-status-grid .alerts-list {
  max-height: none;
  overflow: visible;
  align-items: start;
}

.family-status-grid .animal-card,
.family-status-grid .status-item {
  min-width: 0;
  min-height: 118px;
}

.family-status-grid .animal-card {
  padding: 14px;
  gap: 11px;
}

.family-status-grid .animal-avatar.animal-avatar-photo {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.family-status-grid .animal-card-actions {
  align-self: center;
}

.family-status-grid .status-item {
  position: relative;
  box-sizing: border-box;
  height: 164px;
  min-height: 164px;
  max-height: 164px;
  align-items: center;
  padding: 14px;
}

.family-status-grid .status-icon {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: visible;
  flex: 0 0 58px;
  border: 3px solid #fff;
  border-radius: 19px;
  box-shadow: 0 9px 20px rgba(47, 51, 81, 0.15);
}

.family-status-grid .status-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.family-status-grid .status-badge {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #2d83c3;
  box-shadow: 0 5px 11px rgba(36, 49, 77, 0.2);
  font-size: 0.64rem;
  font-weight: 900;
}

.family-status-grid .status-success .status-badge {
  background: #2f9b69;
}

.family-status-grid .status-danger .status-badge {
  background: #d94a3c;
}

.family-status-grid .status-warning .status-badge {
  background: #d88b20;
}

.family-status-grid .status-copy {
  max-height: 136px;
  min-width: 0;
  overflow: hidden;
}

.family-status-grid .status-item:has(.status-alert-list) {
  align-items: flex-start;
}

.family-status-grid .status-copy strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.family-status-grid .status-context {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.family-status-grid .status-attribution,
.family-status-grid .status-alert-heading b,
.family-status-grid .status-alert-detail,
.family-status-grid .status-alert-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-status-grid .status-alert-list {
  overflow: hidden;
}

.status-card-popover {
  position: absolute;
  z-index: 5;
  inset: 9px;
  overflow: auto;
  padding: 13px 14px;
  border: 1px solid rgba(255, 123, 47, 0.22);
  border-radius: 14px;
  color: #5f667a;
  background: rgba(255, 252, 248, 0.98);
  box-shadow: 0 16px 32px rgba(34, 45, 76, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
  overscroll-behavior: contain;
}

.status-card-popover b {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-size: 0.72rem;
  line-height: 1.35;
}

.status-card-popover p {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.48;
  white-space: pre-line;
}

@media (hover: hover) and (pointer: fine) {
  .family-status-grid .status-item:hover,
  .family-status-grid .status-item:focus-visible {
    z-index: 20;
  }

  .family-status-grid .status-item:hover .status-card-popover,
  .family-status-grid .status-item:focus-visible .status-card-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .status-card-popover {
    display: none;
  }
}

body.dashboard-page .records-card {
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .family-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-status-grid .animal-grid,
  .family-status-grid .alerts-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
}

@media (max-width: 900px) {
  body.dashboard-page .dashboard-header {
    min-height: 106px;
  }

  .dashboard-title-lockup h1 {
    font-size: clamp(1.05rem, 2.7vw, 1.42rem);
  }

  .dashboard-title-lockup p {
    font-size: clamp(0.66rem, 1.6vw, 0.82rem);
  }

  body.dashboard-page #map {
    height: clamp(330px, calc(100svh - 360px), 600px);
  }
}

@media (max-width: 700px) {
  body.dashboard-page .dashboard-header {
    min-height: 0;
    padding: max(7px, env(safe-area-inset-top)) 10px 8px;
    flex-wrap: wrap;
    gap: 3px 10px;
  }

  .dashboard-brand-lockup {
    width: 100%;
  }

  .dashboard-title-lockup h1 {
    font-size: clamp(0.98rem, 4.4vw, 1.28rem);
  }

  .dashboard-title-lockup p {
    margin-top: 4px;
    font-size: clamp(0.62rem, 2.7vw, 0.78rem);
  }

  body.dashboard-page .dashboard-user {
    width: 100%;
    justify-content: flex-end;
  }

  body.dashboard-page .dashboard-user .user-avatar,
  body.dashboard-page .dashboard-user .user-copy {
    display: none;
  }

  body.dashboard-page .dashboard-user .header-action {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.68rem;
  }

  body.dashboard-page .logout-wordmark {
    width: 82px;
  }

  body.dashboard-page .dashboard-shell {
    width: calc(100% - 12px);
    padding-top: 7px;
  }

  body.dashboard-page .map-card {
    padding: 12px;
    border-radius: 18px;
  }

  body.dashboard-page .map-card > .surface-card-heading {
    min-height: 38px;
    margin-bottom: 8px;
    align-items: center;
    flex-direction: row;
  }

  body.dashboard-page .map-card > .surface-card-heading h2 {
    font-size: 1.05rem;
  }

  body.dashboard-page .map-card > .surface-card-heading .page-eyebrow {
    font-size: 0.58rem;
  }

  body.dashboard-page .map-hint {
    max-width: 126px;
    margin: 0;
    font-size: 0.58rem;
    line-height: 1.25;
    text-align: right;
  }

  body.dashboard-page .map-command-bar {
    display: flex;
    margin-bottom: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body.dashboard-page .map-command-bar::-webkit-scrollbar {
    display: none;
  }

  body.dashboard-page .map-command,
  body.dashboard-page .route-paw-field,
  body.dashboard-page .route-paw-field select {
    width: auto;
    flex: 0 0 auto;
  }

  body.dashboard-page .map-command,
  body.dashboard-page .route-paw-field select {
    min-height: 40px;
  }

  body.dashboard-page .map-command-icon {
    width: 40px;
  }

  body.dashboard-page #map {
    height: clamp(300px, calc(100svh - 410px), 520px);
    min-height: 300px;
  }

  body.dashboard-page .animation-toolbar {
    margin-top: 8px;
    padding: 9px;
    gap: 8px;
  }

  body.dashboard-page .animation-toolbar > div:first-child {
    min-width: 132px;
  }

  body.dashboard-page .animation-toolbar strong {
    font-size: 0.7rem;
  }

  body.dashboard-page .animation-toolbar span {
    font-size: 0.58rem;
  }

  body.dashboard-page .speed-control button {
    min-width: 34px;
  }

  .family-status-grid {
    margin: 0 0 12px;
    gap: 12px;
  }

  .companion-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .family-status-grid .surface-card-heading {
    min-height: 48px;
    margin-bottom: 12px;
    align-items: center;
    flex-direction: row;
  }

  .family-status-grid .alerts-list {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
  }

  .family-status-grid .status-item {
    min-width: min(78vw, 300px);
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: start;
  }
}

/* Giriş kartı ve kontrollü pati türü seçimi */
.form-wordmark {
  display: block;
  width: min(72%, 238px);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.form-card-heading .login-title {
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.login-register-switch {
  margin-top: clamp(38px, 5vw, 52px);
}

@media (max-width: 700px) {
  .form-wordmark {
    width: min(70%, 210px);
    margin-bottom: 17px;
  }

  .login-register-switch {
    margin-top: 36px;
  }
}

@media (max-width: 430px) {
  body.dashboard-page .brand-mark.brand-mark-legacy {
    width: 86px;
    height: 72px;
    flex-basis: 86px;
  }

  .dashboard-brand-lockup {
    gap: 2px;
  }

  .dashboard-title-lockup h1 {
    font-size: clamp(0.9rem, 4.25vw, 1.05rem);
  }

  .dashboard-title-lockup p {
    font-size: clamp(0.57rem, 2.55vw, 0.68rem);
  }

  body.dashboard-page #map {
    height: clamp(290px, calc(100svh - 405px), 480px);
    min-height: 290px;
  }
}

/* Giriş sloganı ve tüm sayfalarda ortak sağ üst marka görseli */
.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-corner-wordmark {
  display: block;
  width: clamp(118px, 10vw, 168px);
  max-height: 52px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.login-story {
  align-items: center;
}

.login-story .auth-story-content {
  width: 100%;
  max-width: 560px;
  margin: auto;
  text-align: center;
}

.login-story-logo {
  display: block;
  width: clamp(120px, 14vw, 176px);
  height: auto;
  margin: 0 auto 23px;
  filter: drop-shadow(0 16px 25px rgba(35, 27, 93, 0.25));
  object-fit: contain;
}

body.auth-page .login-story h1 {
  max-width: 520px;
  margin: 0 auto 18px;
  font-size: clamp(1.9rem, 3.5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.login-story .auth-story-content > p {
  margin-right: auto;
  margin-left: auto;
}

.login-story .auth-benefits {
  justify-content: center;
}

.login-password-rule {
  display: flex;
  margin-top: 2px;
  align-items: center;
  gap: 7px;
  color: #65708a !important;
  font-size: 0.72rem !important;
  font-weight: 680;
  line-height: 1.4;
}

.login-password-rule span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  color: #2a865f;
  background: #e7f8ef;
  font-size: 0.66rem;
  font-weight: 900;
}

.content-nav .header-corner-wordmark {
  margin-left: 3px;
}

@media (max-width: 700px) {
  .topbar-actions {
    gap: 7px;
  }

  .header-corner-wordmark {
    width: 86px;
    max-height: 38px;
  }

  body.auth-page .topbar-link {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .login-story-logo {
    width: 126px;
    margin-bottom: 17px;
  }

  body.auth-page .login-story h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.45rem);
  }
}

@media (max-width: 430px) {
  .content-nav .header-corner-wordmark {
    width: 76px;
  }
}

/* Ana sayfaya taşınan takip özeti ve ortalanmış giriş düzeni */
.intro-details {
  width: min(850px, calc(100% - 24px));
  margin: 24px auto 0;
}

.intro .intro-details > p {
  display: block;
  max-width: 760px;
  margin: 0 auto 17px;
  color: #626b82;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  font-size: clamp(0.94rem, 1.35vw, 1.06rem);
  font-weight: 620;
  line-height: 1.6;
}

.intro-benefits {
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.intro-benefits li {
  display: inline-flex;
  min-height: 40px;
  padding: 9px 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 90, 22, 0.16);
  border-radius: 999px;
  color: #343c5c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(48, 42, 76, 0.07);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 760;
}

.intro-benefits li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fff0e8;
  font-size: 0.82rem;
  font-weight: 900;
}

body.auth-page .login-main-centered {
  width: min(680px, calc(100% - 40px));
  min-height: auto;
  margin: 30px auto 48px;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.login-main-centered .login-story {
  min-height: 245px;
  padding: 30px;
  align-items: center;
  border-radius: 30px;
}

.login-main-centered .login-story .auth-story-content {
  max-width: 600px;
}

.login-main-centered .login-story-logo {
  width: clamp(112px, 18vw, 144px);
  margin-bottom: 12px;
}

body.auth-page .login-main-centered .login-story h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

.login-main-centered .auth-panel {
  width: 100%;
  padding: 0;
}

.login-main-centered .form-card {
  max-width: 620px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .intro-details {
    width: min(100% - 18px, 580px);
    margin-top: 20px;
  }

  .intro-benefits {
    gap: 8px;
  }

  .intro-benefits li {
    padding: 8px 11px;
    font-size: 0.72rem;
  }

  body.auth-page .login-main-centered {
    width: min(100% - 20px, 620px);
    margin: 15px auto 30px;
    gap: 12px;
  }

  .login-main-centered .login-story {
    min-height: 215px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .login-main-centered .login-story-logo {
    width: 112px;
    margin-bottom: 10px;
  }

  body.auth-page .login-main-centered .login-story h1 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }
}

/* Ana sayfanın ilk ekranını daha dengeli ve görünür tut */
body.home-page .hero {
  min-height: 620px;
}

body.home-page .hero-content {
  margin-top: 42px;
}

body.home-page .hero-pets {
  bottom: -68px;
  clip-path: ellipse(60% 58% at 49% 50%);
  object-position: 50% 52%;
}

body.home-page .intro {
  padding-top: 24px;
}

.login-main-centered .auth-panel {
  align-self: start;
}

body.auth-page .login-main-centered {
  margin-top: clamp(24px, 6vh, 64px);
}

@media (min-width: 980px) {
  .intro-details {
    width: min(1120px, calc(100% - 40px));
  }

  .intro .intro-details > p {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  body.home-page .hero {
    min-height: 650px;
  }

  body.home-page .hero-content {
    margin-top: 38px;
  }

  body.home-page .hero-pets {
    bottom: -50px;
  }
}

@media (max-width: 700px) {
  body.home-page .hero {
    min-height: 700px;
  }

  body.home-page .hero-content {
    margin-top: 30px;
  }

  body.home-page .hero-pets {
    bottom: -30px;
    left: -38px;
    width: min(78vw, 330px);
    height: 390px;
    max-height: 390px;
    clip-path: ellipse(60% 57% at 49% 50%);
    object-position: 50% 58%;
  }

  body.home-page .intro {
    padding-top: 20px;
  }
}

/* Hareket geçmişi için dokunmatik saat ve dakika listeleri */
.time-select-group {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(62px, 1fr) auto minmax(54px, 0.82fr);
  align-items: center;
  gap: 5px;
}

body .filter-field .time-select-group select {
  min-width: 0;
  min-height: 48px;
  padding: 8px 25px 8px 9px;
  color-scheme: light;
  cursor: pointer;
  touch-action: manipulation;
}

.time-select-separator {
  color: var(--orange-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 430px) {
  .time-select-group {
    grid-template-columns: minmax(74px, 1fr) auto minmax(68px, 0.9fr);
  }
}

/* Android/PWA gizlilik ve çevrimdışı durum sayfaları */
.privacy-main {
  padding: clamp(34px, 6vw, 74px) 0 80px;
}

.privacy-hero {
  max-width: 820px;
  margin-bottom: 28px;
  text-align: center;
}

.privacy-hero h1 {
  margin: 7px 0 13px;
  color: var(--blue-dark);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.privacy-hero > p:last-child {
  margin: 0;
  color: #7a8194;
  font-size: 0.82rem;
  font-weight: 700;
}

.privacy-card {
  display: grid;
  max-width: 920px;
  padding: clamp(25px, 4vw, 46px);
  gap: 0;
  border: 1px solid rgba(44, 62, 103, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 55px rgba(52, 44, 74, 0.09);
}

.privacy-card article {
  padding: 24px 0;
  border-bottom: 1px solid rgba(44, 62, 103, 0.08);
}

.privacy-card article:first-child {
  padding-top: 0;
}

.privacy-card article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-card h2 {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.privacy-card p,
.privacy-card li {
  color: #626b82;
  font-size: 0.92rem;
  line-height: 1.75;
}

.privacy-card p {
  margin: 0;
}

.privacy-card p + p {
  margin-top: 9px;
}

.privacy-card ul {
  margin: 0;
  padding-left: 20px;
}

.privacy-card a {
  color: var(--orange-dark);
  font-weight: 800;
}

.content-footer .content-shell > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.offline-page {
  min-height: 100svh;
}

.offline-shell {
  display: grid;
  width: min(100% - 30px, 620px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 26px 0;
  place-items: center;
}

.offline-card {
  width: 100%;
  margin: 0;
  text-align: center;
}

.offline-icon {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.offline-card h1 {
  margin: 6px 0 12px;
  color: var(--blue-dark);
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  line-height: 1.08;
}

.offline-card > p:not(.page-eyebrow) {
  margin: 0 auto 24px;
  color: #6b7388;
  line-height: 1.65;
}

/* Ana sayfa: görsel ve çağrı alanlarını çakışmadan ayıran responsive düzen */
body.home-page .hero {
  min-height: 660px;
}

body.home-page .hero-stage {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1320px, calc(100% - 48px));
  min-height: 522px;
  margin: 0 auto;
  padding: 20px 0 78px;
  grid-template-columns: minmax(0, 1.05fr) minmax(500px, 0.95fr);
  align-items: center;
  gap: clamp(34px, 4.5vw, 78px);
}

body.home-page .hero-visual {
  position: relative;
  min-width: 0;
  min-height: 430px;
  align-self: stretch;
}

body.home-page .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 610px;
  margin: 0;
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(32, 44, 93, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: 0 24px 60px rgba(39, 43, 88, 0.12);
  backdrop-filter: blur(5px);
}

body.home-page .hero h1 {
  max-width: 590px;
  font-size: clamp(2.25rem, 3.45vw, 3.15rem);
  line-height: 1.02;
}

body.home-page .hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

body.home-page .hero-copy {
  max-width: 570px;
  margin-top: 20px;
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
}

body.home-page .hero-actions {
  margin-top: 24px;
}

body.home-page .hero-downloads {
  margin-top: 14px;
}

body.home-page .hero-pets {
  position: absolute;
  right: 0;
  bottom: -68px;
  left: auto;
  width: min(100%, 650px);
  height: 520px;
  max-height: none;
  border-radius: 46% 46% 0 0;
  object-fit: cover;
  object-position: 50% 54%;
  clip-path: ellipse(60% 57% at 49% 50%);
}

body.home-page .hero-symbol {
  right: auto;
  bottom: 4px;
  left: 4px;
  width: clamp(92px, 10vw, 132px);
  opacity: 0.82;
}

@media (max-width: 1040px) {
  body.home-page .hero-stage {
    width: min(100% - 34px, 980px);
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 24px;
  }

  body.home-page .hero-content {
    padding: 24px;
  }

  body.home-page .hero-pets {
    right: -10px;
    width: min(110%, 520px);
  }
}

@media (max-width: 820px) {
  body.home-page .hero {
    min-height: 1040px;
  }

  body.home-page .hero-stage {
    width: min(100% - 28px, 640px);
    min-height: 0;
    padding: 8px 0 92px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body.home-page .hero-visual {
    min-height: 390px;
  }

  body.home-page .hero-content {
    max-width: none;
    padding: 26px;
    border-radius: 26px;
    text-align: center;
    background: linear-gradient(145deg, rgba(23, 44, 95, 0.28), rgba(255, 255, 255, 0.14));
  }

  body.home-page .hero-content > .eyebrow,
  body.home-page .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  body.home-page .hero-actions,
  body.home-page .hero-downloads {
    justify-content: center;
  }

  body.home-page .hero-pets {
    right: 50%;
    bottom: 0;
    width: min(100%, 430px);
    height: 380px;
    object-position: 50% 58%;
    transform: translateX(50%);
  }

  body.home-page .hero-symbol {
    right: 2px;
    bottom: 4px;
    left: auto;
    width: 104px;
  }
}

@media (max-width: 520px) {
  body.home-page .hero {
    min-height: 1050px;
  }

  body.home-page .hero-stage {
    width: min(100% - 24px, 430px);
    padding-top: 0;
  }

  body.home-page .hero-visual {
    min-height: 330px;
  }

  body.home-page .hero-content {
    padding: 22px 16px;
    border-radius: 23px;
  }

  body.home-page .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
    line-height: 1.04;
  }

  body.home-page .hero-copy {
    max-width: 34rem;
    font-size: 0.94rem;
    line-height: 1.52;
  }

  body.home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body.home-page .hero-actions .button {
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px;
    font-size: 0.86rem;
  }

  body.home-page .hero-actions .button-primary {
    grid-column: 1 / -1;
  }

  body.home-page .hero-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  body.home-page .hero-store-button {
    min-width: 0;
    min-height: 50px;
    padding: 8px 10px;
  }

  body.home-page .hero-pets {
    bottom: 0;
    width: min(105%, 370px);
    height: 330px;
  }

  body.home-page .hero-symbol {
    width: 84px;
  }
}

/* iOS ve dar mobil ekranlarda rota araçlarını kaydırmasız, kompakt göster */
@media (max-width: 700px) {
  body.dashboard-page .map-command-bar {
    display: grid;
    overflow: visible;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.dashboard-page .map-command,
  body.dashboard-page .route-paw-field,
  body.dashboard-page .route-paw-field select {
    width: 100%;
    min-width: 0;
  }

  body.dashboard-page .map-command,
  body.dashboard-page .route-paw-field select {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 0.69rem;
  }

  body.dashboard-page .route-paw-field {
    grid-row: 1;
    grid-column: 1 / 3;
  }

  body.dashboard-page #create-route {
    grid-row: 1;
    grid-column: 3 / 5;
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
  }

  body.dashboard-page #locate-user {
    grid-row: 2;
    grid-column: 1 / 3;
  }

  body.dashboard-page #fit-map {
    grid-row: 2;
    grid-column: 3;
  }

  body.dashboard-page #toggle-map-size {
    grid-row: 2;
    grid-column: 4;
  }

  body.dashboard-page .map-command-icon {
    width: 100%;
  }
}

/* Mobil uygulamada hareket filtresini taşmadan göster ve uyarıları dikey sırala */
@media (max-width: 700px) {
  body.dashboard-page .records-card {
    overflow: hidden;
    padding-right: 12px;
    padding-left: 12px;
  }

  body.dashboard-page .filter-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body.dashboard-page .filter-period {
    width: 100%;
    min-width: 0;
    padding: 7px;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 6px;
  }

  body.dashboard-page .filter-paw-period {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-page .filter-field,
  body.dashboard-page .filter-time-field,
  body.dashboard-page .filter-field input,
  body.dashboard-page .filter-field select {
    min-width: 0;
  }

  body.dashboard-page .filter-time-field label {
    font-size: 0.6rem;
    white-space: nowrap;
  }

  body.dashboard-page .filter-field input[type="date"] {
    min-height: 46px;
    padding-right: 5px;
    padding-left: 7px;
    font-size: 0.7rem;
    -webkit-min-logical-width: 0;
  }

  body.dashboard-page .time-select-group {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 3px;
  }

  body.dashboard-page .filter-field .time-select-group select {
    min-height: 46px;
    padding: 7px 20px 7px 6px;
    font-size: 0.7rem;
  }

  body.dashboard-page .time-select-separator {
    font-size: 0.86rem;
  }

  body.dashboard-page .family-status-grid .alerts-list {
    display: grid;
    max-height: none;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
    scroll-snap-type: none;
  }

  body.dashboard-page .family-status-grid .status-item {
    width: 100%;
    min-width: 0;
    flex: none;
    scroll-snap-align: none;
  }
}

/* Pati sağlık profili ve acil veteriner merkezi */
.emergency-header-action {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: linear-gradient(135deg, #d94a3c, #ef6754);
  box-shadow: 0 8px 18px rgba(121, 34, 31, 0.2);
  white-space: nowrap;
}

.emergency-header-action:hover {
  color: #fff;
  background: linear-gradient(135deg, #c83d31, #e95948);
}

.animal-emergency-link {
  color: #c5463b;
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.animal-health-form-layout {
  grid-template-columns: minmax(280px, 0.7fr) minmax(520px, 1.3fr);
  align-items: start;
}

.animal-form-card.has-health-fields {
  max-width: 760px;
}

.health-profile {
  display: grid;
  margin: 4px 0 0;
  padding: 20px;
  gap: 17px;
  border: 1px solid rgba(47, 131, 195, 0.16);
  border-radius: 20px;
  background: linear-gradient(145deg, #f5fbff, #fffaf6);
}

.health-profile legend {
  padding: 0 8px;
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 880;
}

.health-profile-intro {
  margin: -5px 0 1px;
  color: #70798f;
  font-size: 0.76rem;
  line-height: 1.5;
}

.age-input-card {
  min-width: 0;
  margin: 0;
  padding: 13px;
  gap: 12px;
  border: 1px solid rgba(40, 55, 93, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
}

.age-input-card > legend {
  padding: 0 5px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.age-mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.age-mode-options label {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 10px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(47, 131, 195, 0.14);
  border-radius: 999px;
  color: #556079;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 760;
  cursor: pointer;
}

.age-mode-options input {
  width: auto;
  min-height: 0;
  accent-color: var(--orange);
}

.age-entry-panel {
  display: grid;
  gap: 8px;
}

.age-entry-panel[hidden],
.approximate-age-panel [hidden] {
  display: none;
}

.approximate-age-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.approximate-age-panel > small {
  grid-column: 1 / -1;
}

.compact-field {
  min-width: 0;
}

.form-field-grid,
.emergency-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-group textarea {
  width: 100%;
  min-height: 88px;
  padding: 13px 15px;
  resize: vertical;
  border: 1px solid rgba(40, 55, 93, 0.16);
  border-radius: 14px;
  outline: none;
  color: var(--blue-dark);
  background: #fffdfb;
  font: inherit;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-group textarea::placeholder {
  color: #a2a8b9;
}

.field-group textarea:focus {
  border-color: rgba(255, 90, 22, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 22, 0.1);
}

.emergency-shell {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 70px;
}

.emergency-hero {
  display: grid;
  min-height: 180px;
  padding: clamp(26px, 4vw, 46px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: 26px;
  overflow: hidden;
  border: 1px solid rgba(217, 74, 60, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 83% 20%, rgba(255, 181, 126, 0.3), transparent 28%),
    linear-gradient(135deg, #fff8f2, #f2f9ff);
  box-shadow: 0 18px 42px rgba(67, 51, 72, 0.08);
}

.emergency-hero h1 {
  margin: 3px 0 10px;
  color: var(--blue-dark);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.emergency-hero > div:first-child > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #69728a;
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}

.emergency-hero-note {
  display: grid;
  padding: 19px;
  gap: 5px;
  border: 1px solid rgba(217, 74, 60, 0.16);
  border-radius: 19px;
  color: #7d3f39;
  background: rgba(255, 255, 255, 0.78);
}

.emergency-hero-note strong {
  color: #bd3f35;
  font-size: 0.88rem;
}

.emergency-hero-note span {
  font-size: 0.76rem;
  line-height: 1.5;
}

.emergency-paw-tabs {
  display: flex;
  margin: 16px 0;
  overflow-x: auto;
  gap: 10px;
  scrollbar-width: thin;
}

.emergency-paw-tab {
  display: flex;
  min-width: 190px;
  padding: 9px 13px 9px 9px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(42, 58, 95, 0.11);
  border-radius: 17px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.emergency-paw-tab.is-selected {
  border-color: rgba(217, 74, 60, 0.38);
  background: #fff2ee;
  box-shadow: 0 10px 21px rgba(165, 64, 48, 0.1);
}

.emergency-paw-tab img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid #fff;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(60, 52, 78, 0.12);
}

.emergency-paw-tab span,
.emergency-paw-tab b,
.emergency-paw-tab small {
  display: block;
  min-width: 0;
}

.emergency-paw-tab b {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emergency-paw-tab small {
  margin-top: 2px;
  color: #7c8498;
  font-size: 0.65rem;
}

.emergency-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.72fr) minmax(580px, 1.28fr);
  align-items: start;
  gap: 18px;
}

.health-summary-card,
.veterinary-finder {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(42, 58, 95, 0.1);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(66, 51, 64, 0.08);
}

.health-summary-card {
  position: sticky;
  top: 14px;
}

.health-summary-heading,
.health-summary-paw,
.veterinary-finder-heading {
  display: flex;
  align-items: center;
}

.health-summary-heading,
.veterinary-finder-heading {
  justify-content: space-between;
  gap: 15px;
}

.health-summary-paw {
  min-width: 0;
  gap: 13px;
}

.health-summary-paw img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border: 4px solid #fff;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(62, 51, 80, 0.15);
}

.health-summary-heading h2,
.veterinary-finder-heading h2 {
  margin: 1px 0 0;
  color: var(--blue-dark);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.health-summary-paw > div > span {
  color: #7a8296;
  font-size: 0.72rem;
}

.health-edit-link {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.health-summary-list {
  display: grid;
  margin: 20px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.health-summary-list > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(42, 58, 95, 0.08);
  border-radius: 14px;
  background: #fbfcff;
}

.health-summary-list .health-summary-wide {
  grid-column: 1 / -1;
}

.health-summary-list dt {
  margin-bottom: 4px;
  color: #8a90a1;
  font-size: 0.63rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.health-summary-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #34415f;
  font-size: 0.78rem;
  font-weight: 690;
  line-height: 1.45;
  white-space: pre-line;
}

.health-summary-list dd small {
  display: block;
  margin-top: 2px;
  color: #8a91a3;
  font-size: 0.64rem;
  font-weight: 620;
}

.health-summary-list dd a {
  display: inline-block;
  margin-left: 7px;
  color: #c5463b;
  font-weight: 850;
}

.emergency-contact-summary {
  border-color: rgba(217, 74, 60, 0.14) !important;
  background: #fff5f1 !important;
}

.health-summary-actions {
  display: flex;
  margin-top: 13px;
  gap: 8px;
}

.health-summary-primary,
.health-summary-secondary,
.find-vets-button,
.select-location-button,
.vet-route-button {
  display: inline-flex;
  min-height: 43px;
  padding: 9px 13px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: none;
}

.health-summary-primary,
.find-vets-button,
.vet-route-button {
  color: #fff;
  background: linear-gradient(135deg, #d94a3c, #f06a55);
  box-shadow: 0 8px 17px rgba(163, 49, 40, 0.17);
}

.health-summary-secondary {
  border: 1px solid rgba(217, 74, 60, 0.18);
  color: #bd4035;
  background: #fff4f0;
}

.veterinary-location-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.select-location-button {
  border: 1px solid rgba(217, 74, 60, 0.2);
  color: #bd4035;
  background: #fff4f0;
  white-space: nowrap;
}

.select-location-button.is-active {
  border-color: rgba(20, 119, 201, 0.35);
  color: #1166aa;
  background: #edf7ff;
}

.select-location-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.health-summary-disclaimer,
.map-data-note {
  margin: 12px 0 0;
  color: #9398a7;
  font-size: 0.63rem;
  line-height: 1.5;
}

.find-vets-button {
  gap: 6px;
  white-space: nowrap;
}

.find-vets-button:disabled,
.vet-route-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.vet-status {
  margin: 15px 0 11px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #667088;
  background: #f4f7fb;
  font-size: 0.74rem;
  line-height: 1.45;
}

.vet-status[data-tone="success"] {
  color: #287657;
  background: #eef9f3;
}

.vet-status[data-tone="warning"] {
  color: #9c5c20;
  background: #fff6e8;
}

#emergency-map {
  height: 360px;
  border: 1px solid rgba(42, 63, 99, 0.1);
  border-radius: 18px;
  background: #dcebd2;
}

#emergency-map.is-selecting-location {
  cursor: crosshair;
  outline: 4px solid rgba(20, 119, 201, 0.16);
}

#emergency-map[hidden] {
  display: none;
}

.vet-source-attribution {
  display: flex;
  min-height: 36px;
  margin: 0 0 11px;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(42, 63, 99, 0.1);
  border-radius: 13px;
  color: #778096;
  background: #f8fafc;
  font-size: 0.68rem;
}

.vet-source-attribution[hidden] {
  display: none;
}

.vet-source-attribution.is-google-source {
  border-color: rgba(66, 133, 244, 0.2);
  background: #f8fbff;
}

.google-maps-attribution {
  color: #5e5e5e;
  font-family: Arial, Sans-Serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
}

.osm-attribution {
  color: #5f687d;
  font-weight: 750;
}

.vet-map-popup strong,
.vet-map-popup span {
  display: block;
}

.vet-map-popup span {
  margin-top: 3px;
  color: #6d7588;
  font-size: 0.72rem;
}

.vet-route-summary {
  display: flex;
  margin-top: 10px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(217, 74, 60, 0.15);
  border-radius: 13px;
  color: #663f3c;
  background: #fff3ef;
  font-size: 0.75rem;
  font-weight: 750;
}

.vet-route-summary[hidden] {
  display: none;
}

.vet-route-summary a {
  color: #bd4035;
  font-weight: 850;
  white-space: nowrap;
}

.vet-list {
  display: grid;
  max-height: 610px;
  margin-top: 12px;
  padding-right: 3px;
  overflow-y: auto;
  gap: 9px;
}

.vet-list.is-google-source {
  padding: 10px;
  border: 1px solid rgba(66, 133, 244, 0.14);
  border-radius: 18px;
  background: #f9fbff;
}

.vet-list-empty {
  display: flex;
  padding: 18px;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(42, 58, 95, 0.17);
  border-radius: 16px;
  color: #687188;
  background: #fafbfe;
}

.vet-list-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #c5463b;
  background: #fff0ec;
  font-size: 1.2rem;
}

.vet-list-empty strong,
.vet-list-empty p {
  display: block;
}

.vet-list-empty strong {
  color: var(--blue-dark);
  font-size: 0.82rem;
}

.vet-list-empty p {
  margin: 3px 0 0;
  font-size: 0.7rem;
}

.vet-card {
  padding: 14px;
  border: 1px solid rgba(42, 58, 95, 0.1);
  border-radius: 17px;
  background: #fff;
}

.vet-card.vet-state-open {
  border-color: rgba(47, 155, 105, 0.22);
  background: linear-gradient(135deg, #f7fffa, #fff);
}

.vet-card.vet-state-closed {
  opacity: 0.76;
}

.vet-card.vet-source-google {
  border-color: rgba(66, 133, 244, 0.16);
  box-shadow: 0 8px 18px rgba(55, 86, 132, 0.05);
}

.vet-card-heading,
.vet-title-group,
.vet-card-actions,
.vet-metrics {
  display: flex;
  align-items: center;
}

.vet-card-heading {
  justify-content: space-between;
  gap: 12px;
}

.vet-title-group {
  min-width: 0;
  gap: 9px;
}

.vet-rank {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 10px;
  color: #bd4035;
  background: #fff0ec;
  font-size: 0.72rem;
  font-weight: 900;
}

.vet-title-group h3 {
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vet-open-state {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 850;
}

.vet-open-state.open {
  color: #287657;
  background: #e9f8f0;
}

.vet-open-state.unknown {
  color: #9a5d21;
  background: #fff3dd;
}

.vet-open-state.closed {
  color: #737b8f;
  background: #eef0f4;
}

.vet-metrics {
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
}

.vet-metrics strong {
  color: #c5463b;
  font-size: 0.82rem;
}

.vet-metrics span {
  color: #81889a;
  font-size: 0.61rem;
}

.vet-address,
.vet-hours {
  margin: 8px 0 0;
  color: #687188;
  font-size: 0.7rem;
  line-height: 1.4;
}

.vet-hours {
  margin-top: 3px;
  color: #858b9c;
  font-size: 0.64rem;
}

.vet-card-actions {
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 7px;
}

.vet-route-button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.68rem;
}

.vet-detail-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(66, 133, 244, 0.18);
  border-radius: 11px;
  color: #2f66b0;
  background: #f1f6ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 820;
}

.vet-detail-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.vet-contact-link {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 10px;
  align-items: center;
  border: 1px solid rgba(42, 58, 95, 0.11);
  border-radius: 11px;
  color: #45516e;
  background: #fff;
  font-size: 0.66rem;
  font-weight: 820;
  text-decoration: none;
}

.emergency-no-paw {
  display: flex;
  margin-top: 18px;
  padding: 28px;
  align-items: center;
  gap: 16px;
}

.emergency-no-paw > span {
  font-size: 2rem;
}

.emergency-no-paw h2,
.emergency-no-paw p {
  margin: 0;
}

.emergency-no-paw p {
  margin-top: 3px;
  color: #737b8f;
}

.emergency-no-paw .form-submit {
  display: inline-flex;
  min-height: 46px;
  margin-left: auto;
  padding: 10px 16px;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .animal-health-form-layout,
  .emergency-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .animal-form-card.has-health-fields {
    max-width: none;
    margin-left: 0;
  }

  .health-summary-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .emergency-header-action {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.65rem;
  }

  .animal-health-form-layout .animal-welcome {
    padding: 10px 5px 20px;
  }

  .animal-health-form-layout .animal-welcome h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .animal-form-card.has-health-fields,
  .health-profile {
    border-radius: 20px;
  }

  .animal-form-card.has-health-fields {
    padding: 20px 14px;
  }

  .health-profile {
    padding: 15px 11px;
  }

  .form-field-grid,
  .emergency-contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .emergency-shell {
    width: calc(100% - 12px);
    padding-top: 7px;
  }

  .emergency-hero {
    min-height: 0;
    padding: 22px 17px;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    border-radius: 21px;
  }

  .emergency-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .emergency-paw-tabs {
    margin: 10px 0;
  }

  .emergency-paw-tab {
    min-width: min(76vw, 260px);
  }

  .health-summary-card,
  .veterinary-finder {
    padding: 15px;
    border-radius: 20px;
  }

  .health-summary-heading,
  .veterinary-finder-heading {
    align-items: flex-start;
  }

  .health-summary-paw img {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 17px;
  }

  .health-summary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .health-summary-list .health-summary-wide {
    grid-column: auto;
  }

  .health-summary-actions,
  .vet-route-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .health-summary-actions > *,
  .vet-route-summary a {
    width: 100%;
    text-align: center;
  }

  .veterinary-finder-heading {
    flex-direction: column;
  }

  .veterinary-location-actions,
  .find-vets-button,
  .select-location-button {
    width: 100%;
  }

  .veterinary-location-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  #emergency-map {
    height: 320px;
  }

  .vet-list {
    max-height: none;
    overflow: visible;
  }

  .vet-card-heading {
    align-items: flex-start;
  }

  .vet-title-group h3 {
    white-space: normal;
  }

  .vet-metrics {
    min-width: 74px;
  }

  .emergency-no-paw {
    align-items: flex-start;
    flex-direction: column;
  }

  .emergency-no-paw .form-submit {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* iPhone'da tarih, saat ve dakika alanlarını eşit ve taşmasız hizala */
@media (max-width: 700px) {
  body.dashboard-page .filter-period:not(.filter-paw-period) {
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    gap: 7px;
  }

  body.dashboard-page .filter-period .filter-field {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body.dashboard-page .filter-field input[type="date"] {
    box-sizing: border-box;
    width: calc(100% - 7px);
    max-width: calc(100% - 7px);
    padding-right: 4px;
    padding-left: 6px;
    appearance: none;
    -webkit-appearance: none;
    justify-self: start;
  }

  body.dashboard-page .time-select-group {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.dashboard-page .filter-field .time-select-group select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
    padding-left: 7px;
  }

  body.dashboard-page .time-select-separator {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
}

/* İçerik sayfalarının ilk mesajını alt bölüm başlıklarıyla aynı ölçüde tut. */
body.content-page .content-hero h1,
body.content-page .contact-copy h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

/* Turuncu-mavi header üzerinde logoyu değiştirmeden kutusuz, yumuşak ışık halesi. */
body .workspace-header .app-brand {
  position: relative;
  z-index: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

body .workspace-header .app-brand::before {
  position: absolute;
  z-index: -1;
  inset: 8% -8%;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.62) 40%,
    rgba(255, 255, 255, 0) 74%
  );
  filter: blur(5px);
}

/* Pati bazlı canlı görünüm, güvenli alan ve üst animasyon araçları. */
.map-field-label {
  display: block;
  margin: 0 0 4px 2px;
  color: #68728b;
  font-size: 0.59rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.live-paw-field {
  display: grid;
  height: 44px;
  align-self: center;
  min-width: 150px;
}

.live-paw-field::after {
  top: 50%;
  bottom: auto;
}

.live-paw-field select {
  width: 100%;
  min-width: 150px;
}

.safe-area-command {
  align-self: center;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #5c4fc8, #287fd0);
  box-shadow: 0 10px 22px rgba(64, 72, 177, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

body.dashboard-page .live-paw-field select,
body.dashboard-page #start-safe-area,
body.dashboard-page #locate-user,
body.dashboard-page #create-route {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  align-self: center;
}

.safe-area-command:hover,
.safe-area-command.is-drawing,
.safe-area-command.is-saved {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #4c40b7, #1774c5);
  box-shadow: 0 14px 27px rgba(55, 65, 166, 0.3);
  transform: translateY(-1px);
}

.safe-area-command.is-saved {
  filter: saturate(1.18);
}

.map-animation-quick {
  display: flex;
  min-height: 44px;
  margin-left: auto;
  align-self: end;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(35, 76, 128, 0.11);
  border-radius: 14px;
  background: linear-gradient(110deg, #fff8f1, #eef8ff);
  box-shadow: 0 7px 16px rgba(52, 59, 88, 0.06);
}

.speed-control-compact {
  padding: 2px;
  background: rgba(255, 255, 255, 0.9);
}

.speed-control-compact button {
  min-width: 32px;
  min-height: 30px;
  padding: 4px 5px;
  font-size: 0.62rem;
}

.app-footer-content {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-footer-content nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-footer-content a,
.content-footer a {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.app-footer-content a:hover,
.content-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 700px) {
  body.dashboard-page .map-command-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-page .live-paw-field,
  body.dashboard-page .map-animation-quick {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  body.dashboard-page #start-safe-area,
  body.dashboard-page .route-paw-field,
  body.dashboard-page #create-route,
  body.dashboard-page #locate-user,
  body.dashboard-page #fit-map,
  body.dashboard-page #toggle-map-size {
    grid-row: auto;
    grid-column: auto;
  }

  body.dashboard-page .live-paw-field,
  body.dashboard-page .route-paw-field,
  body.dashboard-page .live-paw-field select,
  body.dashboard-page .route-paw-field select,
  body.dashboard-page #start-safe-area,
  body.dashboard-page #create-route,
  body.dashboard-page #locate-user {
    width: 100%;
  }

  body.dashboard-page .map-animation-quick {
    margin-left: 0;
    overflow-x: auto;
    justify-content: space-between;
  }

  .app-footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Dar ekranlarda hareket araçları ve geçmiş tablosu için son yerleşim kuralları. */
.records-table .records-paw-column {
  width: 16%;
}

.records-table {
  table-layout: fixed;
}

.records-table .records-location-column {
  width: 56%;
}

.records-table .records-time-column {
  width: 28%;
}

.records-table th:last-child,
.records-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.record-location-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.record-coordinates {
  flex: 0 0 auto;
  color: #394663;
  font-variant-numeric: tabular-nums;
}

.record-place {
  min-width: 0;
  overflow: hidden;
  color: #727b90;
  font-size: 0.73rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-place::before {
  margin-right: 8px;
  color: var(--orange);
  content: "•";
}

.record-time-content {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35em;
}

.record-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

@media (min-width: 901px) and (max-width: 1180px) {
  body.dashboard-page .map-command-bar {
    display: grid;
    overflow: visible;
    grid-template-columns:
      minmax(150px, 1fr)
      minmax(145px, auto)
      minmax(110px, auto)
      minmax(126px, auto)
      44px
      44px;
    align-items: center;
  }

  body.dashboard-page .map-animation-quick {
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  body.dashboard-page .filter-period:not(.filter-paw-period) {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  body.dashboard-page .filter-period .filter-field,
  body.dashboard-page .filter-time-field,
  body.dashboard-page .time-select-group,
  body.dashboard-page .filter-field input,
  body.dashboard-page .filter-field select {
    min-width: 0;
    max-width: none;
  }

  body.dashboard-page .time-select-group {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.dashboard-page .time-select-separator {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  body.dashboard-page .filter-field .time-select-group select {
    box-sizing: border-box;
    width: 100%;
    padding-right: 24px;
  }

  body.dashboard-page .animation-toolbar {
    flex-wrap: wrap;
  }

  body.dashboard-page .animation-toolbar > div:first-child {
    min-width: 230px;
    flex: 1 1 280px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  body.dashboard-page .map-command-bar {
    display: grid;
    overflow: visible;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.dashboard-page .live-paw-field,
  body.dashboard-page #start-safe-area,
  body.dashboard-page #locate-user,
  body.dashboard-page #create-route {
    width: 100%;
  }

  body.dashboard-page .live-paw-field {
    grid-column: 1 / 3;
  }

  body.dashboard-page #start-safe-area {
    grid-column: 3 / 5;
  }

  body.dashboard-page #locate-user {
    grid-column: 1 / 3;
  }

  body.dashboard-page #create-route {
    grid-column: 3 / 5;
  }

  body.dashboard-page #fit-map {
    grid-column: 3;
  }

  body.dashboard-page #toggle-map-size {
    grid-column: 4;
  }

  body.dashboard-page .map-animation-quick {
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  body.dashboard-page .map-animation-quick {
    display: grid;
    width: 100%;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  body.dashboard-page .speed-control-compact,
  body.dashboard-page .animation-controls .speed-control {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.dashboard-page .speed-control-compact button,
  body.dashboard-page .animation-controls .speed-control button {
    width: 100%;
    min-width: 0;
  }

  body.dashboard-page .map-animation-quick .animation-playback-actions,
  body.dashboard-page .animation-controls .animation-playback-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-page .map-animation-quick .animation-playback-actions > *,
  body.dashboard-page .animation-controls .animation-playback-actions > * {
    box-sizing: border-box;
    width: 100%;
  }

  body.dashboard-page .animation-toolbar,
  body.dashboard-page .animation-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  body.dashboard-page .filter-form > *,
  body.dashboard-page .filter-period > *,
  body.dashboard-page .time-select-group > * {
    min-width: 0;
  }

  body.dashboard-page .table-scroll {
    -webkit-overflow-scrolling: touch;
  }

  body.dashboard-page .records-table {
    width: 100%;
    min-width: 0;
  }

  body.dashboard-page .records-table .records-paw-column {
    width: 18%;
  }

  body.dashboard-page .records-table .records-location-column {
    width: 51%;
  }

  body.dashboard-page .records-table .records-time-column {
    width: 31%;
  }

  body.dashboard-page .records-table th,
  body.dashboard-page .records-table td {
    padding: 11px 8px;
    font-size: 0.67rem;
  }

  body.dashboard-page .record-location-cell {
    display: grid;
    gap: 3px;
  }

  body.dashboard-page .record-coordinates,
  body.dashboard-page .record-place {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 0.61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.dashboard-page .record-place::before {
    margin-right: 5px;
  }

  body.dashboard-page .record-time-cell {
    white-space: normal;
  }

  body.dashboard-page .record-time-content {
    display: grid;
    justify-items: end;
    gap: 2px;
    line-height: 1.25;
  }

  body.dashboard-page .record-date,
  body.dashboard-page .record-time {
    white-space: nowrap;
  }

  body.dashboard-page .record-date {
    color: #6f7890;
    font-size: 0.6rem;
  }

  body.dashboard-page .record-time {
    color: var(--blue-dark);
    font-size: 0.72rem;
  }
}

@media (max-width: 360px) {
  body.dashboard-page .filter-period:not(.filter-paw-period) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-page .filter-field input[type="date"] {
    width: 100%;
    max-width: 100%;
  }
}
