.theme-toggle {
  position: relative;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 88px;
  height: 44px;
  flex: 0 0 88px;
  padding: 0 11px 0 43px;
  overflow: hidden;
  border: 1px solid #89a979;
  border-radius: 999px;
  color: #173f30;
  background: linear-gradient(145deg, #f8f2ca 0%, #dceab8 100%);
  box-shadow: 0 3px 0 #b1c697, inset 0 1px 0 #fff9d8, 0 0 0 1px #ffffff30;
  font: 800 9px/1 "DM Sans", sans-serif;
  letter-spacing: .14em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #a9c28c, inset 0 1px 0 #fff9d8, 0 7px 20px #51743a30; }
.theme-toggle:active { transform: translateY(1px); box-shadow: 0 1px 0 #a9c28c, inset 0 1px 0 #fff9d8; }
.theme-toggle:focus-visible { outline: 3px solid #55aa78; outline-offset: 3px; }
.theme-toggle-knob {
  position: absolute;
  z-index: 1;
  left: 4px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #fff5bd;
  border-radius: 50%;
  color: #bd7915;
  background: radial-gradient(circle at 35% 28%, #fff9d8, #ffd66e 68%, #f0b943);
  box-shadow: 0 2px 7px #4f5f2d50, inset 0 1px 1px #fff;
  transition: left .3s cubic-bezier(.2,.8,.2,1), color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.theme-toggle-icon { display: block; width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle-icon circle { fill: currentColor; stroke: none; }
.theme-toggle-label { position: relative; z-index: 1; }
.theme-toggle-stars { position: absolute; inset: 0; color: #769563; pointer-events: none; }
.theme-toggle-stars span:first-child { position: absolute; right: 7px; top: 5px; font-size: 9px; }
.theme-toggle-stars span:last-child { position: absolute; right: 22px; bottom: 5px; font-size: 13px; line-height: 8px; }
.theme-toggle[data-mode="dark"] {
  justify-content: flex-start;
  padding: 0 43px 0 11px;
  color: #e6f0dc;
  background: linear-gradient(145deg, #183c2c 0%, #10291f 100%);
  border-color: #4b7655;
  box-shadow: 0 3px 0 #08150e, inset 0 1px 0 #ffffff12, 0 0 16px #2c9c5c24;
}
.theme-toggle[data-mode="dark"].theme-toggle--header { padding: 0 38px 0 9px; }
.theme-toggle[data-mode="dark"] .theme-toggle-knob {
  color: #173f30;
  border-color: #d7f4c7;
  background: radial-gradient(circle at 34% 26%, #f1ffdb, #a9e9a2 72%, #72cf87);
  box-shadow: 0 0 13px #7ce49a88, 0 2px 7px #0008, inset 0 1px 1px #ffffff;
}
.theme-toggle[data-mode="dark"] .theme-toggle-stars { color: #d6eea0; }
html.theme-pointer-dragging,
html.theme-pointer-dragging * { cursor: grabbing !important; }
html.theme-dragging .theme-toggle-knob { transition: none !important; }
.header .store-buttons > .store-badge:not(.header-login) {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid #38664d;
  border-radius: 12px;
  background: linear-gradient(155deg, #194936, #123a2b);
  box-shadow: 0 2px 0 #092b20, inset 0 1px 0 #ffffff12;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.header .store-buttons > button.store-badge:not(.header-login) {
  width: 108px;
  max-width: 108px;
  flex: 0 0 108px;
  text-align: center;
}
.header .store-buttons > a.store-badge {
  width: 126px;
  max-width: 126px;
  flex: 0 0 126px;
  column-gap: 6px;
}
.header .store-buttons > .store-badge:not(.header-login) > span {
  font-size: 5px;
  letter-spacing: .55px;
  line-height: 1.2;
}
.header .store-buttons > .store-badge:not(.header-login) > strong {
  font-size: 12px;
  line-height: 1.15;
}
.header .store-buttons > .store-badge:not(.header-login):hover { transform: translateY(-2px); box-shadow: 0 4px 0 #092b20, 0 9px 18px #143f2d24, inset 0 1px 0 #ffffff18; filter: brightness(1.08); }
.header .store-buttons > a.store-badge .play-store-icon { width: 17px; height: 19px; }
.header .store-buttons { gap: 7px; }
.header .store-buttons > .header-login {
  box-sizing: border-box;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 110px;
  padding: 5px 9px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffe981, #ffd957);
  box-shadow: 0 2px 0 #c5a03a, inset 0 1px 0 #fff4bd;
}
.header .store-buttons > .header-login > span { font-size: 5px; letter-spacing: .55px; }
.header .store-buttons > .header-login > strong { font-size: 13px; line-height: 1.15; }
.theme-toggle--header {
  width: 78px;
  height: 42px;
  flex: 0 0 78px;
  padding: 0 1px 0 42px;
}
.theme-toggle--header .theme-toggle-knob { left: 3px; top: 3px; width: 34px; height: 34px; }
.theme-toggle--header .theme-toggle-icon { width: 20px; height: 20px; }
.theme-toggle--legal { width: 84px; height: 40px; flex-basis: 84px; margin-left: 2px; }
.theme-toggle--legal .theme-toggle-knob { width: 32px; height: 32px; }
.theme-toggle--floating { position: fixed; z-index: 3000; right: 18px; bottom: 18px; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
  color: #eaf2e9;
  background: #0f1712 !important;
}
html[data-theme="dark"] .nav-shell {
  background: #14221a !important;
  border-color: #34483a !important;
}
html[data-theme="dark"] .header { color: #edf4ec; }
html[data-theme="dark"] .page-nav button { color: #c5d5c7; }
html[data-theme="dark"] .page-nav button[aria-current="page"] { color: #95e3a7; }
html[data-theme="dark"] .page-nav span { color: #708273; }
html[data-theme="dark"] .page-stack { background: #111c15; }
html[data-theme="dark"] .page-view {
  color: #e6efe5;
  background: #0c1510;
}
html[data-theme="dark"] .opening { background: #18271c; }
html[data-theme="dark"] .opening .eyebrow { color: #a7c4a1; }
html[data-theme="dark"] .opening h1,
html[data-theme="dark"] .info-page h2,
html[data-theme="dark"] .map-heading h2 { color: #f0f5ec; }
html[data-theme="dark"] .opening h1 span,
html[data-theme="dark"] .info-page h2 span { color: #91dfa2; }
html[data-theme="dark"] .opening-description,
html[data-theme="dark"] .opening-note,
html[data-theme="dark"] .info-page > .wrap > div > p:not(.eyebrow),
html[data-theme="dark"] .map-heading > p { color: #bdcbbd; }
html[data-theme="dark"] .buddy-playground {
  color: #f4f1df;
  background: #102d20;
  border-color: #355a3c;
  box-shadow: 5px 5px 0 #28392a;
}
html[data-theme="dark"] .play-ticker {
  color: #172017;
  background: #cfb044;
  border-color: #263b2b;
}
html[data-theme="dark"] .faq-list,
html[data-theme="dark"] .download-cards article,
html[data-theme="dark"] .support-card {
  color: #eaf2e9;
  background: #1b2820;
  border-color: #405844;
  box-shadow: 4px 4px 0 #0b120d;
}
html[data-theme="dark"] .faq-list details { border-color: #3b4c3d; }
html[data-theme="dark"] .faq-list details p,
html[data-theme="dark"] .download-cards p,
html[data-theme="dark"] .support-card p { color: #bdcbbd; }
html[data-theme="dark"] .download-cards article > span { color: #a9c19f; }
html[data-theme="dark"] .faq-list details.answer-highlight {
  color: #f1edcf;
  background: #33321d;
  border-color: #8d8744;
  box-shadow: inset 4px 0 0 #87cf8a;
}
html[data-theme="dark"] .answer-highlight summary { color: #d6eba9; }
html[data-theme="dark"] .map-frame {
  background: #18231c;
  border-color: #486447;
  box-shadow: 4px 4px 0 #0b120d;
}
html[data-theme="dark"] .map-page { background: #0c1510; }
html[data-theme="dark"] #world-map,
html[data-theme="dark"] #world-map.leaflet-container {
  background: #111a14 !important;
}
html[data-theme="dark"] .map-bottom { color: #cbd8cb; }
html[data-theme="dark"] .map-legend { color: #d8e3d6; }
html[data-theme="dark"] .map-legend span:before { border-color: #8ba18d; }
html[data-theme="dark"] .leaflet-tile {
  filter: brightness(.78) invert(1) hue-rotate(180deg) saturate(.62);
}
html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip {
  color: #eaf2e9;
  background: #17251c;
  box-shadow: 0 4px 18px #0008;
}
html[data-theme="dark"] .leaflet-popup-content { color: #eaf2e9; }
html[data-theme="dark"] .leaflet-popup-close-button { color: #d3e0d2 !important; }
html[data-theme="dark"] .leaflet-control-zoom a {
  color: #e5efe3 !important;
  background: #18271e !important;
  border-color: #49624d !important;
}
html[data-theme="dark"] .leaflet-control-attribution {
  color: #d5e2d3 !important;
  background: #111c15e8 !important;
}
html[data-theme="dark"] .leaflet-control-attribution a { color: #a8dfb0 !important; }
html[data-theme="dark"] .map-city-card {
  color: #eaf2e9;
  background: #14221bee;
  border-color: #58705a;
  box-shadow: 0 5px 20px #0008;
}
html[data-theme="dark"] .city-card-kicker { color: #9bd9a2; }
html[data-theme="dark"] .map-city-card > span:not(.city-card-kicker),
html[data-theme="dark"] .map-city-card small { color: #c0d0c1; }
html[data-theme="dark"] .map-city-card > div { border-color: #3b5140; }
html[data-theme="dark"] .map-toolbar input,html[data-theme="dark"] .login-email-fields input{color:#eaf2e9;background:#121c16;border-color:#526d56}
html[data-theme="dark"] .login-dialog{color:#eaf2e9;background:#19271e;border-color:#425a45}
html[data-theme="dark"] .login-dialog-heading h2,html[data-theme="dark"] .login-email-fields label{color:#eaf2e9}
html[data-theme="dark"] .login-dialog-heading>p:last-child{color:#c4d1c4}
html[data-theme="dark"] .login-close{color:#c4d1c4}
html[data-theme="dark"] .login-close:hover{color:#fff;background:#26382b}
html[data-theme="dark"] .login-divider{color:#a9b9a9}
html[data-theme="dark"] .login-divider:before,html[data-theme="dark"] .login-divider:after{border-color:#435844}
html[data-theme="dark"] .login-email-choice{color:#eaf2e9;background:#17251c;border-color:#526d56}
html[data-theme="dark"] .login-email-back{color:#a6d9af}
html[data-theme="dark"] #map-auth-status{color:#f0aaa2}
html[data-theme="dark"] .map-consent {
  color: #edf4ec;
  background: #17251c;
}
html[data-theme="dark"] .map-consent p { color: #c4d1c4; }
html[data-theme="dark"] .map-consent a,
html[data-theme="dark"] .page-view a { color: #9fe0ad; }
html[data-theme="dark"] .legal-footer {
  color: #bfd0bf;
  background: #142119;
  border-color: #34483a;
}
html[data-theme="dark"] .legal-footer a { color: #a0dcaa; }
html[data-theme="dark"] body.legal-body {
  color: #eaf2e9;
  background: #0f1712 !important;
}
html[data-theme="dark"] .legal-header {
  color: #eef4ec;
  background: #15241b;
  border-color: #415744;
}
html[data-theme="dark"] .legal-header > span { color: #c5d5c5; }
html[data-theme="dark"] .legal-document { color: #eaf2e9; }
html[data-theme="dark"] .legal-kicker { color: #a9c6a4; }
html[data-theme="dark"] .legal-date { color: #b4c3b4; }
html[data-theme="dark"] .legal-intro,
html[data-theme="dark"] .legal-document article p,
html[data-theme="dark"] .legal-document article li,
html[data-theme="dark"] .support-help p { color: #c5d1c5; }
html[data-theme="dark"] .legal-document a,
html[data-theme="dark"] .legal-footer a { color: #9fe0ad; }
html[data-theme="dark"] .legal-layout aside nav,
html[data-theme="dark"] .support-help,
html[data-theme="dark"] .boost-facts > div {
  color: #eaf2e9;
  background: #19271e;
  border-color: #405944;
}
html[data-theme="dark"] .boost-facts strong { color: #b8e5b2; }
html[data-theme="dark"] .boost-facts span { color: #c0d0c0; }
html[data-theme="dark"] .boost-calculator {
  color: #f0f5ec;
  background: #102b20;
  border: 1px solid #3d5b43;
}
html[data-theme="dark"] .boost-calculator p { color: #cad9c9; }
html[data-theme="dark"] .boost-inputs select,
html[data-theme="dark"] .boost-inputs input {
  color: #eaf2e9;
  background: #101a14;
  border-color: #536d56;
}
html[data-theme="dark"] .boost-table-wrap { border-color: #405944; }
html[data-theme="dark"] .boost-table-wrap caption,
html[data-theme="dark"] .boost-table-wrap thead { color: #eaf2e9; background: #1d3023; }
html[data-theme="dark"] .boost-table-wrap th,
html[data-theme="dark"] .boost-table-wrap td { border-color: #354a39; }
html[data-theme="dark"] .boost-table-wrap tbody tr:nth-child(even) { background: #16231a; }
html[data-theme="dark"] .boost-table-wrap td { color: #c3d3c2; }
html[data-theme="dark"] .boost-section details { border-color: #405944; }
html[data-theme="dark"] .legal-action { color: #f2f5ed !important; background: #236a48; }
.theme-toggle[data-mode="dark"]:hover { box-shadow: 0 5px 0 #08150e, inset 0 1px 0 #ffffff12, 0 0 22px #51cb7c42; }
.theme-toggle[data-mode="dark"]:active { box-shadow: 0 1px 0 #08150e, inset 0 1px 0 #ffffff12; }
.theme-toggle[data-mode="dark"]:focus-visible { outline-color: #a5e6aa; }
html[data-theme="dark"] .card {
  color: #eaf2e9;
  background: #15231b;
  border-color: #405d46;
}
html[data-theme="dark"] .brand-panel { background: #123b2d; }
html[data-theme="dark"] .check { color: #a9e3b0; background: #20382a; border-color: #526e55; box-shadow: none; }
html[data-theme="dark"] .eyebrow { color: #a8c7ad; }
html[data-theme="dark"] h1 { color: #eaf2e9; }
html[data-theme="dark"] .message,
html[data-theme="dark"] .footnote { color: #c0d0c2; }
html[data-theme="dark"] .home-link { color: #a0dfae; }

@supports (view-transition-name: root) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 460ms;
    animation-timing-function: cubic-bezier(.22, .78, .24, 1);
  }
  ::view-transition-old(root) { animation-name: pawplots-theme-fade-out; }
  ::view-transition-new(root) { animation-name: pawplots-theme-fade-in; }
  html.theme-dragging::view-transition-old(root),
  html.theme-dragging::view-transition-new(root) {
    animation-duration: 1000ms !important;
    animation-timing-function: linear !important;
    animation-play-state: paused !important;
  }
  @keyframes pawplots-theme-fade-out { to { opacity: 0; } }
  @keyframes pawplots-theme-fade-in { from { opacity: 0; } }
}
html.theme-dragging.theme-preview-dark::after,
html.theme-dragging.theme-preview-light::after {
  content: "";
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  pointer-events: none;
}
html.theme-dragging.theme-preview-dark::after {
  background: #07170f;
  opacity: calc(var(--theme-preview-progress, 0) * .34);
  mix-blend-mode: multiply;
}
html.theme-dragging.theme-preview-light::after {
  background: #fff9e7;
  opacity: calc(var(--theme-preview-progress, 0) * .38);
  mix-blend-mode: screen;
}
html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning body * {
  transition: background-color .42s cubic-bezier(.22, .78, .24, 1), color .42s cubic-bezier(.22, .78, .24, 1), border-color .42s cubic-bezier(.22, .78, .24, 1), box-shadow .42s cubic-bezier(.22, .78, .24, 1), fill .42s cubic-bezier(.22, .78, .24, 1), stroke .42s cubic-bezier(.22, .78, .24, 1) !important;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 1ms !important; }
  html.theme-transitioning,
  html.theme-transitioning body,
  html.theme-transitioning body * { transition-duration: 1ms !important; }
}

@media (max-width: 760px) {
  .header .store-buttons > button.store-badge:not(.header-login) { width: 108px; max-width: 108px; flex: 0 0 108px; }
  .header .store-buttons > a.store-badge { width: 126px; max-width: 126px; flex: 0 0 126px; }
  .header .store-buttons > .header-login { width: 106px; min-width: 106px; max-width: 106px; flex-basis: 106px; }
  .theme-toggle--header { width: 78px; height: 42px; flex-basis: 78px; }
  .theme-toggle--legal { width: 84px; height: 40px; flex-basis: 84px; }
  .nav-shell { padding: 9px 12px; }
  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    gap: 7px;
  }
  .header-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 0;
  }
  .header .brand-wordmark { width: 148px; }
  .header .page-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 5px 13px;
    padding: 3px 4px;
  }
  .header .store-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 6px;
  }
  .legal-header { flex-wrap: wrap; }
  .legal-header img { width: 125px; }
  .theme-toggle--legal { margin-left: auto; }
  .legal-back { margin-left: 0; }
}
@media (max-width: 540px) {
  .header .store-buttons > button.store-badge:not(.header-login) { width: 100px; max-width: 100px; flex-basis: 100px; }
  .header .store-buttons > a.store-badge { width: 116px; max-width: 116px; flex-basis: 116px; }
  .header .store-buttons > .header-login { width: 98px; min-width: 98px; max-width: 98px; flex-basis: 98px; }
  .header .store-buttons > .theme-toggle--header { width: 78px; min-width: 78px; max-width: 78px; flex: 0 0 78px; padding: 0 1px 0 42px; }
  html[data-theme="dark"] .header .store-buttons > .theme-toggle--header { padding: 0 38px 0 9px; }
  .header .brand-wordmark { width: 130px; }
  .legal-header img { width: 112px; }
}
