.auth-page,
.map-page {
  font-family: var(--petmap-font);
  color: #193f34;
  background: linear-gradient(115deg, #e5f2eb, #f6f7e9);
}
.auth-panel {
  max-width: 620px;
  margin: 28px auto 60px;
  padding: 32px;
}
.auth-panel h1 {
  font-size: 27px;
  margin: 0 0 28px;
}
.auth-panel h2 {
  font-size: 18px;
  margin: 24px 0 18px;
}
.auth-panel form {
  margin: 18px 0;
}
.auth-panel form > div,
.auth-panel form > p {
  margin: 0 0 20px;
}
.auth-panel label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
}
.auth-panel input:not([type="hidden"]):not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #cddfd4;
  border-radius: 12px;
  background: white;
  color: #193f34;
  font: inherit;
  margin-bottom: 16px;
}
.auth-panel input[type="checkbox"] {
  accent-color: #08643e;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.auth-panel button,
.map-page .search-button {
  background: #08643e;
  color: white;
  border: 1px solid #08643e;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
}
.auth-panel button:hover,
.map-page .search-button:hover {
  background: #064d30;
}
.auth-panel hr {
  border: 0;
  border-top: 1px solid #d6e5da;
  margin: 26px 0;
}
.auth-panel a {
  color: #08643e;
  font-weight: 700;
}
.auth-panel .helptext {
  display: block;
  color: #60786c;
  font-size: 12px;
  line-height: 1.7;
}
.auth-panel .errorlist {
  color: #a33333;
  font-size: 13px;
  padding-left: 20px;
}
.auth-panel input:focus-visible,
.map-page input:focus-visible,
.map-page button:focus-visible {
  outline: 3px solid #87baa1;
  outline-offset: 2px;
}

.map-page header {
  background: linear-gradient(110deg, #e5f2eb, #f6f7e9);
  border-bottom: 1px solid #d6e5da;
  color: #193f34;
  gap: 14px;
  padding: 10px 24px;
}
.map-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #146763;
  flex-shrink: 0;
}
.map-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
}
.map-brand span {
  font-family: var(--petmap-font);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1;
}
.map-page .search-box {
  min-width: 0;
}
.map-page .search-box input {
  border-color: #cddfd4;
  border-radius: 12px 0 0 12px;
  background: #fffffff0;
  color: #193f34;
}
.map-page .search-button {
  border-radius: 0 12px 12px 0;
  padding: 10px 18px;
}
.map-page .login-button,
.map-page .menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  background: #f7fff9;
  color: #08643e;
  border: 1px solid #cddfd4;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  box-shadow: 0 3px 10px #193f340b;
}
.map-page .login-button:hover,
.map-page .menu-button:hover {
  background: #e7f5ec;
}
.map-page .side-menu {
  background: #fff;
  border-left: 1px solid #d6e5da;
  box-shadow: -8px 0 30px #193f3414;
}
.map-page .side-menu h2 {
  font-size: 25px;
  color: #193f34;
  margin-bottom: 24px;
}
.map-page .side-menu a {
  background: linear-gradient(110deg, #f5fcf7, #eef8f2);
  border: 1px solid #91c9a9;
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 20px;
  color: #164d36;
  font-weight: 700;
}
.map-page .side-menu a:hover {
  background: #e0f2e7;
}
.map-page .area-search-button,
.map-page .pet-filter-toggle,
.map-page .pet-filter-panel,
.map-page .place-results,
.map-page .map-status,
.map-page .map-legend {
  border: 1px solid #cddfd4;
  box-shadow: 0 4px 18px #193f3414;
  color: #193f34;
}
.map-page .area-search-button,
.map-page .pet-filter-toggle {
  border-radius: 12px;
  background: #f7fff9;
  color: #08643e;
  font-weight: 700;
}
.map-page .place-results-header {
  background: #f0f8f3;
  border-color: #d6e5da;
}
.map-page .pet-filter-panel button,
.map-page .place-results-header button {
  border-color: #cddfd4;
  border-radius: 10px;
  color: #08643e;
  font-weight: 700;
}
@media (max-width: 700px) {
  .map-page header {
    gap: 7px;
    padding: 10px;
  }
  .map-brand {
    gap: 5px;
  }
  .map-brand img {
    width: 40px;
    height: 40px;
  }
  .map-brand span {
    font-size: 22px;
  }
  .map-page .login-button {
    font-size: 12px;
    padding: 10px 8px;
  }
  .map-page .menu-button {
    font-size: 13px;
    padding: 10px 8px;
  }
  .map-page .search-box input {
    font-size: 13px;
    padding: 10px 8px;
  }
  .map-page .search-button {
    padding: 10px;
  }
}
@media (max-width: 480px) {
  .map-brand span {
    display: none;
  }
  .auth-panel {
    padding: 22px;
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-page .side-menu {
    transition: none;
  }
}

.map-page .side-menu {
  top: 0;
  width: clamp(340px, 34vw, 500px);
  max-width: 100vw;
  height: 100dvh;
  padding: 30px 24px;
  color: #123f2b;
  box-shadow: -12px 0 40px #143d251c;
}
.map-page .map-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 34px;
}
.map-page .map-menu-heading h2 {
  font-size: 25px;
  margin: 4px 0;
}
.map-page .map-menu-close {
  border: 0;
  background: transparent;
  color: #60786c;
  font-size: 32px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.map-page .side-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #9dd6b8;
  border-radius: 17px;
  background: linear-gradient(120deg, #fcfffc, #edf9f1);
  padding: 24px 18px;
  font-weight: 750;
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 16px;
  color: #123f2b;
}
.map-page .side-menu a:hover {
  background: #e7f5e9;
  border-color: #33835c;
}
.map-page .side-menu a > span {
  width: 30px;
  font-size: 30px;
  text-align: center;
  flex-shrink: 0;
}
.map-page .side-menu a > b {
  margin-left: auto;
  font-size: 32px;
  font-weight: 500;
}

.site-map-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  border: 0;
  z-index: 0;
  pointer-events: none;
}
body:has(.site-map-background) {
  background: #e8eee9;
  isolation: isolate;
}
body:has(.site-map-background) .page-wrap {
  position: relative;
  z-index: 1;
}
body:has(.site-map-background) .site-header {
  background: rgba(248, 253, 248, 0.95);
  border-radius: 0 0 20px 20px;
  padding: 26px 24px;
}
body:has(.site-map-background) main > section,
body:has(.site-map-background) .auth-panel {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 30px #193f3414;
}

.map-page header {
  height: 144px;
  padding: 26px 32px;
  gap: 20px;
  background: rgba(248, 253, 248, 0.96);
}
.map-page .map-brand {
  gap: 12px;
}
.map-page .map-brand img {
  width: 92px;
  height: auto;
  border-radius: 12px;
}
.map-page .map-brand span {
  font-size: clamp(28px, 4vw, 42px);
}
.map-page .menu-button {
  padding: 14px 22px;
  font-size: 16px;
}
.map-page .map-area {
  height: calc(100dvh - 144px);
}
@media (max-width: 700px) {
  .map-page header {
    height: 116px;
    padding: 18px 16px;
    gap: 8px;
  }
  .map-page .map-brand img {
    width: 76px;
  }
  .map-page .map-brand span {
    font-size: 28px;
  }
  .map-page .map-area {
    height: calc(100dvh - 116px);
  }
  .map-page .menu-button {
    padding: 12px;
    font-size: 14px;
  }
  body:has(.site-map-background) .site-header {
    padding: 22px 16px;
  }
}
@media (max-width: 480px) {
  .map-page header {
    height: auto;
    min-height: 116px;
    flex-wrap: wrap;
  }
  .map-page .map-brand {
    flex: 1;
  }
  .map-page .map-brand span {
    display: inline;
  }
  .map-page .search-box {
    order: 4;
    flex-basis: 100%;
  }
  .map-page .map-brand img {
    width: 54px;
  }
  .map-page .map-area {
    height: calc(100dvh - 140px);
  }
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 14px 18px;
  min-height: 46px;
  border: 1px solid #cddfd4;
  border-radius: 12px;
  background: #f7fff9;
  color: #08643e;
  font:
    700 14px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    sans-serif;
  white-space: nowrap;
  box-shadow: 0 3px 10px #193f340b;
}
.account-button:hover {
  background: #e7f5e9;
}
.site-header .brand {
  margin-right: auto;
}
.site-header .menu-shell {
  margin-left: 12px;
}
@media (max-width: 600px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .account-button {
    font-size: 12px;
    padding: 12px 10px;
  }
  .site-header .brand-name {
    font-size: 26px;
  }
  .site-header .menu-shell {
    margin-left: 0;
  }
}

.profile-layout {
  padding: 26px 0 60px;
}
.profile-layout > .content-panel {
  margin-bottom: 24px;
}
.profile-user-card {
  display: flex;
  align-items: center;
  gap: 28px;
}
.profile-portrait {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-user-text {
  flex: 1;
  overflow-wrap: anywhere;
}
.profile-user-text h1 {
  margin: 0 0 12px;
  font-size: 27px;
}
.profile-user-text p {
  margin: 6px 0;
  color: #60786c;
}
.profile-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.profile-card-actions form {
  margin: 0;
}
.profile-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7d2c3;
  border-radius: 12px;
  padding: 13px 20px;
  background: #f4faf6;
  color: #245842;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.profile-section-heading h2 {
  margin: 0;
  font-size: 24px;
}
.profile-section-heading h2 span {
  color: #679a7f;
  font-size: 18px;
  margin-left: 8px;
}
.profile-pet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.profile-pet-card {
  border: 1px solid #cde1d4;
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(140deg, #fff, #f2f9f4);
  text-align: center;
  overflow-wrap: anywhere;
}
.profile-pet-card h3 {
  font-size: 22px;
  margin: 16px 0 6px;
}
.profile-pet-card > p {
  color: #60786c;
  font-size: 14px;
}
.profile-pet-card dl {
  margin: 22px 0 0;
  text-align: left;
}
.profile-pet-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #e1ece5;
}
.profile-pet-card dt {
  color: #698170;
}
.profile-pet-card dd {
  margin: 0;
}
.profile-pet-card .profile-card-actions {
  justify-content: center;
}
.profile-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 42px 20px;
  border: 1px dashed #b8d4c4;
  border-radius: 18px;
  color: #60786c;
}
.profile-edit-panel {
  max-width: 820px;
  margin: auto;
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}
.profile-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.profile-field input,
.profile-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cddfd4;
  border-radius: 12px;
  min-height: 46px;
  background: white;
  color: #193f34;
  font: inherit;
}
.profile-field small {
  display: block;
  font-size: 12px;
  color: #60786c;
  margin-top: 7px;
}
.profile-avatar-picker {
  border: 1px solid #cddfd4;
  border-radius: 16px;
  padding: 20px;
  margin: 26px 0;
}
.profile-avatar-picker legend {
  padding: 0 8px;
  font-weight: 700;
}
.profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.profile-avatar-choice {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 14px 8px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #f5f9f6;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
}
.profile-avatar-choice:has(input:checked) {
  border-color: #08643e;
  background: #e6f4ec;
}
.profile-avatar-choice input {
  accent-color: #08643e;
}
.profile-avatar-choice img {
  width: 72px;
  height: 72px;
}
.profile-layout .errorlist {
  color: #a33333;
  font-size: 13px;
}
.profile-field input:focus-visible,
.profile-field select:focus-visible {
  outline: 3px solid #87baa1;
  outline-offset: 2px;
}
@media (max-width: 1000px) {
  .profile-pet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .profile-user-card {
    flex-direction: column;
    text-align: center;
  }
  .profile-pet-grid,
  .profile-fields {
    grid-template-columns: 1fr;
  }
  .profile-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-layout {
    padding-top: 20px;
  }
  .profile-user-card .profile-card-actions {
    justify-content: center;
  }
}

.map-page .side-menu {
  overflow-y: auto;
}

.site-header .patmap-brand,
.map-page header .patmap-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #146763;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.site-header .patmap-brand .brand-logo,
.map-page header .patmap-brand .brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
}
.site-header .patmap-brand .brand-name,
.map-page header .patmap-brand .brand-name {
  font-family: var(--petmap-font);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
  display: inline;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .menu-shell {
  margin-left: 0;
}
.admin-button {
  color: #08643e !important;
  text-decoration: none !important;
}
.lost-panel {
  max-width: 860px !important;
  width: 100%;
  padding: 32px !important;
  border: 1px solid #d6e5da;
  border-radius: 20px;
  box-sizing: border-box;
}
.reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.reply-edit {
  margin-top: 16px;
}
.reply-edit textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #cddfd4;
  border-radius: 10px;
  font: inherit;
}
.pm-page .pm-card + .pm-card {
  margin-top: 20px;
}
@media (max-width: 700px) {
  .site-header .patmap-brand .brand-logo,
  .map-page header .patmap-brand .brand-logo {
    width: 54px;
    height: 54px;
  }
  .site-header .patmap-brand .brand-name,
  .map-page header .patmap-brand .brand-name {
    font-size: 28px;
  }
  .lost-panel {
    padding: 22px !important;
  }
}
@media (max-width: 480px) {
  .map-page header .patmap-brand {
    flex: 1;
  }
  .site-header .patmap-brand .brand-name,
  .map-page header .patmap-brand .brand-name {
    font-size: 24px;
  }
}

.site-header {
  min-height: 144px;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .site-header {
    min-height: 116px;
  }
}

.profile-avatar-choice img,
.profile-portrait {
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
}

.profile-avatar-choice[hidden] {
  display: none !important;
}
.profile-avatar-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.profile-avatar-choice {
  position: relative;
}
.profile-avatar-choice:focus-within {
  outline: 3px solid #87baa1;
  outline-offset: 2px;
}

.map-page header .search-box {
  position: relative;
  min-width: 0;
  align-items: center;
}
.map-page header .search-box input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding-right: 60px;
  border-radius: 12px;
}
.map-page header .search-box .search-button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-page .pet-species-control {
  top: 16px;
}
@media (min-width: 601px) {
  .map-page .place-results {
    top: 16px;
  }
  .map-page .pet-species-control > .pet-filter-panel {
    max-height: calc(100dvh - 290px);
  }
}

.reply .reply-actions,
.reply .reply-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.reply .reply-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 38px;
  min-width: 60px;
  padding: 8px 14px;
  margin: 0;
  border: 1px solid #b7d2c3;
  border-radius: 8px;
  background: #f4faf6;
  color: #245842;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.reply .reply-control::-webkit-details-marker {
  display: none;
}
.reply .reply-control:hover {
  background: #e3f0e8;
}
.reply .reply-control:focus-visible {
  outline: 3px solid #87baa1;
  outline-offset: 2px;
}
.reply .reply-control-primary {
  background: #08643e;
  border-color: #08643e;
  color: #fff;
}
.reply .reply-control-primary:hover {
  background: #064d30;
}
.reply .reply-control-danger {
  border-color: #d8b5af;
  background: #fff8f6;
  color: #963f33;
}
.reply .reply-control-danger:hover {
  background: #f8e9e6;
}
.reply .reply-delete {
  position: relative;
  margin: 0;
}
.reply .reply-delete-confirm {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2;
  min-width: 190px;
  padding: 12px;
  border: 1px solid #d8b5af;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 14px #193f3420;
}
.reply .reply-delete-confirm p {
  margin: 0 0 10px;
  font-size: 13px;
}
.reply .reply-delete-confirm form {
  margin: 0;
}
.reply .reply-edit-form {
  margin: 0;
}
.reply .reply-edit-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #91bba4;
  border-radius: 8px;
  background: #f7fcf9;
  color: #193f34;
  font: inherit;
  line-height: 1.9;
  resize: vertical;
  overflow: auto;
  box-shadow: none;
}
.reply .reply-edit-form textarea:focus {
  outline: 2px solid #87baa1;
  box-shadow: none;
}
.reply [hidden] {
  display: none !important;
}

.reply-section {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #cddfd4;
  border-radius: 16px;
  background: #eef7f1;
  color: #193f34;
}
.reply-section .reply {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #cddfd4;
  border-radius: 12px;
  background: #f6fbf7;
}
.reply-section .reply .post-content {
  padding: 8px 0;
}
.reply-section .board-form textarea,
.reply-section .reply-edit-form textarea {
  background: #e6f2eb;
  border: 1px solid #91bba4;
  color: #193f34;
}

.site-header .patmap-brand .brand-name,
.map-page header .patmap-brand .brand-name {
  display: inline-flex;
  align-items: center;
}
.site-header .patmap-brand .brand-name .brand-wordmark,
.map-page header .patmap-brand .brand-name .brand-wordmark {
  display: block;
  width: auto;
  height: 1em;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
}
@media (max-width: 600px) {
  .reply-section {
    padding: 16px;
  }
  .reply-section .reply {
    padding: 12px;
  }
}

.profile-edit-panel {
  width: min(100%, 680px);
  margin-inline: auto;
}
.profile-edit-panel h1 {
  margin: 0 0 24px;
  color: #174b39;
}
.profile-edit-panel .profile-fields {
  display: grid;
  gap: 20px;
}
.profile-edit-panel .profile-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.profile-edit-panel label {
  font-weight: 650;
  color: #244b3b;
}
.profile-edit-panel input:not([type="checkbox"]):not([type="radio"]) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #bdd8ca;
  border-radius: 10px;
  background: #fff;
  color: #183a2c;
  font: inherit;
}
.profile-edit-panel input:focus {
  outline: 2px solid #267c55;
  outline-offset: 2px;
}
.profile-edit-panel small,
.profile-edit-panel .helptext {
  display: block;
  color: #586c61;
  line-height: 1.6;
}
.profile-edit-panel small ul {
  margin: 0;
  padding-left: 20px;
}
.profile-edit-panel .errorlist {
  margin: 0;
  color: #a32e29;
  padding-left: 20px;
}
.profile-edit-panel .profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}
.profile-edit-panel :is(.primary-button, .profile-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #b6d7c5;
  text-decoration: none;
  font: 600 14px/1.4 inherit;
}
.profile-edit-panel .primary-button {
  background: #1c6848;
  color: #fff;
  cursor: pointer;
}
.profile-edit-panel .profile-secondary {
  background: #f3faf6;
  color: #24553e;
}

.event-entry {
  border: 1px solid #d4e5da;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}
.event-entry > summary.information-row {
  list-style: none;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.event-entry > summary::-webkit-details-marker {
  display: none;
}
.event-entry > summary:focus-visible {
  outline: 3px solid #71a88b;
  outline-offset: -3px;
}
.event-entry[open] > summary .arrow {
  transform: rotate(180deg);
}
.event-entry .detail-panel {
  margin: 0;
  border: 0;
  border-top: 1px solid #d4e5da;
  border-radius: 0;
  background: #f4faf6;
}
.auth-panel .form-actions .profile-secondary {
  font-size: inherit;
  min-height: 44px;
  box-sizing: border-box;
}

.account-edit-panel .profile-fields {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  max-width: 640px;
}
.profile-edit-panel .profile-field {
  align-content: start;
  grid-template-rows: auto auto auto;
}
.profile-edit-panel
  .profile-field
  input:not([type="checkbox"]):not([type="radio"]),
.profile-edit-panel .profile-field select {
  height: 46px;
  min-height: 46px;
  align-self: start;
}
.profile-edit-panel .profile-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
}
.profile-edit-panel [hidden] {
  display: none !important;
}
.auth-timers {
  padding: 12px 16px;
  background: #edf7f0;
  border: 1px solid #c5dfcf;
  border-radius: 10px;
  margin: 16px 0;
  line-height: 1.7;
}
.auth-timers p {
  margin: 4px 0;
}
.auth-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.auth-timer.is-expired {
  color: #a33131;
}
.filter-pet-profile {
  display: block;
  margin: 8px 0;
  font-size: 12px;
}
.filter-pet-profile select {
  width: 100%;
  padding: 8px;
  border: 1px solid #bed8ca;
  border-radius: 8px;
  background: #fff;
}

.pet-card,
.profile-pet-card,
.profile-user-text,
.information-row > div {
  min-width: 0;
}
.pet-card strong,
.pet-card span,
.pet-card small,
.profile-pet-card h3,
.profile-pet-card p,
.profile-user-text p,
.profile-user-text h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
.pet-card > span:not(.pet-check):not(.all-paw) {
  white-space: normal;
  line-height: 1.5;
}
.account-button {
  position: relative;
}
.profile-notification-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 5px;
  border-radius: 50%;
  background: #d84b45;
  vertical-align: super;
}
.notification-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #176740;
  color: white;
  font-size: 12px;
}
.notification-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.notification-list li {
  margin: 10px 0;
  border: 1px solid #d7e6dc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.notification-list li.is-unread {
  background: #edf8f1;
  border-color: #80b99a;
}
.notification-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #234c3c;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.notification-item:hover {
  background: #e4f3e9;
}
.notification-preview {
  color: #54665d;
}
.notification-item small {
  color: #68796e;
}
.notification-unread-label {
  font-size: 12px;
  color: #176740;
}
.notification-panel {
  max-width: 900px;
  margin: auto;
}
.reply-parent,
.filter-safety-note {
  font-size: 13px;
  line-height: 1.6;
  color: #536c5d;
}
.reply-parent {
  padding-left: 10px;
  border-left: 3px solid #a5cfb5;
}
.reply:target {
  scroll-margin-top: 24px;
}
.board-search-scope {
  flex: 0 0 130px;
}
.board-search-scope select {
  width: 100%;
  height: 46px;
  border: 1px solid #c5dccc;
  border-radius: 9px;
  background: #fff;
  color: #234c3c;
  padding: 8px;
  font: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[data-profile-notification][hidden],
[data-notification-count][hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .board-search-scope {
    flex-basis: 105px;
  }
  .notification-button {
    padding: 9px !important;
    font-size: 12px !important;
  }
}

.reply-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  clear: both;
}
.reply-action-row .reply-tools {
  display: flex;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  position: static;
  float: none;
}
.reply-action-row .reply-btn {
  box-sizing: border-box;
  position: static;
  float: none;
  margin: 0;
  min-height: 34px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}
.reply-action-row .act-reply,
.reply-action-row .report-link {
  background: transparent;
  border: 0;
  color: #32604a;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13px;
}
.reply-action-row .act-reply:before,
.reply-action-row .report-link:before {
  display: none;
}
.reply-action-row .act-reply:hover,
.reply-action-row .report-link:hover {
  background: #e3f1e8;
  color: #164c33;
}
.reply-action-row .report-link {
  color: #69776f;
}
.board-report-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}
.board-report-actions a {
  background: #f4f8f5;
  color: #556b5e;
  border: 1px solid #cddfd4;
  text-decoration: none;
  min-height: 34px;
  box-sizing: border-box;
}
.report-panel {
  max-width: 900px;
  margin: auto;
}
.report-form {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.report-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.report-form select,
.report-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #bcd7c8;
  border-radius: 9px;
  background: #fff;
  color: #193f34;
  font: inherit;
}
.report-form .errorlist {
  color: #a33131;
}
.report-list {
  list-style: none;
  padding: 0;
}
.report-list li {
  padding: 16px 0;
  border-bottom: 1px solid #d5e3da;
}
.report-list a {
  color: #1b6242;
}
.report-meta {
  color: #66776d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.report-evidence {
  padding: 16px;
  background: #f2f7f4;
  border: 1px solid #d2e2d8;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 350px;
  overflow: auto;
}
.moderation-banner {
  padding: 12px;
  border: 1px solid #dccba5;
  background: #fff8e8;
  color: #6e5631;
  border-radius: 8px;
}
.report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.reply-hidden {
  color: #6c786f;
  font-size: 13px;
}

.delete-confirm form,
.reply .reply-del-form .reply-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.delete-confirm .danger-button,
.reply .reply-del-form .act-delete {
  background: #a33b32;
  border: 1px solid #a33b32;
  color: #fff;
  min-height: 44px;
  min-width: 100px;
  box-sizing: border-box;
  padding: 10px 18px;
}
.delete-confirm .reset-button,
.reply .reply-del-form .act-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4faf6;
  border: 1px solid #b7d2c3;
  color: #245842;
  border-radius: 10px;
  min-height: 44px;
  min-width: 100px;
  box-sizing: border-box;
  padding: 10px 18px;
  text-decoration: none;
}
.reply .reply-del-form .reply-ask {
  flex-basis: 100%;
  margin: 0;
}

.board-panel .post-action-row,
.board-panel .reply-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.board-panel .post-action-row :is(a, button),
.board-panel .reply-action-row .reply-btn,
.board-panel .reply-form-actions .reply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  min-height: 36px;
  min-width: 62px;
  box-sizing: border-box;
  padding: 8px 14px;
  margin: 0;
  border: 1px solid #347956;
  border-radius: 8px;
  background: #347956;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.board-panel .reply-btn:before {
  display: none;
}
.board-panel .reply-action-row .reply-tools {
  flex-wrap: wrap;
  gap: 10px;
}
.board-panel .post-action-row :is(a, button):hover,
.board-panel .reply-action-row .reply-btn:hover,
.board-panel .reply-form-actions .reply-btn:hover {
  background: #2c6d4b;
}
.board-panel .post-action-row button:disabled,
.board-panel .reply-action-row button:disabled {
  background: #edf3ef;
  color: #7a8e81;
  border-color: #d2ded5;
  cursor: not-allowed;
}
.board-panel .primary-button:not(.danger-button),
.report-panel .primary-button {
  background: #2f7955;
  border-color: #2f7955;
  color: #fff;
}
.board-panel .reply-del-form .act-delete {
  background: #a33b32 !important;
  border-color: #a33b32 !important;
}
.board-panel .reply-del-form .act-cancel {
  background: #f4faf6 !important;
  border-color: #b7d2c3 !important;
  color: #245842 !important;
}
.reply-list-section {
  margin-top: 30px;
}
.reply-compose-section {
  margin-top: 22px;
  background: #f4faf6;
}
.reply-compose-section h3 {
  margin: 0 0 18px;
}
.reply-compose-section .board-form {
  margin-top: 0;
}
.notification-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 10px !important;
  box-sizing: border-box;
  position: relative;
}
.notification-bell {
  display: block;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
.notification-button .notification-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #f7fff9;
  border-radius: 12px;
  background: #b94b42;
  color: white;
  font-size: 10px;
  line-height: 1;
}

.map-page header .search-box {
  position: relative;
  overflow: visible;
}
.recent-searches {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 180;
  padding: 12px;
  background: #fff;
  border: 1px solid #c9ddcf;
  border-radius: 12px;
  box-shadow: 0 8px 24px #193f3420;
  color: #245842;
}
.recent-searches-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 0 4px 8px;
}
.map-page header .search-box .recent-searches button {
  position: static;
  min-height: 36px;
  height: auto;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #38644b;
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.map-page header .search-box .recent-searches .recent-search-clear {
  font-size: 12px;
  white-space: nowrap;
}
.recent-searches ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recent-searches li {
  margin: 0;
  padding: 0;
}
.map-page header .search-box .recent-searches .recent-search-term {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}
.map-page header .search-box .recent-searches button:hover {
  background: #edf6f0;
}
.recent-searches[hidden] {
  display: none !important;
}
.keyword-load-more {
  padding: 12px;
}
.keyword-load-more button {
  width: 100%;
  padding: 10px;
  border: 1px solid #b7d2c3;
  border-radius: 8px;
  background: #edf6f0;
  color: #245842;
  font: inherit;
  cursor: pointer;
}
