body.app_page {
  min-height: 100vh;
  background: #fbf4e3;
}

.app_bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  background: rgba(251, 244, 227, 0.96);
  border-bottom: 2px solid rgba(139, 94, 60, 0.18);
}

.app_back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  border: 2px solid rgba(139, 94, 60, 0.35);
}

.app_title {
  flex: 1;
  font-size: 18px;
  font-weight: 900;
}

.app_step {
  font-size: 14px;
  font-weight: 700;
  color: #6e5142;
  white-space: nowrap;
}

.app_main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.step_h {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
}

.step_lead {
  margin-bottom: 16px;
  color: #6e5142;
}

.step_gap {
  display: grid;
  gap: 16px;
}

.photo_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.photo_item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 18px;
  background: #eef3d6;
  box-shadow: 0 4px 10px rgba(90, 60, 30, 0.18);
}

.photo_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo_del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(74, 46, 34, 0.85);
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.photo_empty {
  grid-column: 1 / -1;
  padding: 28px 12px;
  border: 3px dashed rgba(139, 94, 60, 0.4);
  border-radius: 20px;
  text-align: center;
  color: #6e5142;
}

.file_btn {
  position: relative;
  cursor: pointer;
}

.file_btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file_btn:focus-within {
  outline: 3px solid #e5594a;
  outline-offset: 3px;
}

.btn_row {
  display: grid;
  gap: 12px;
}

.btn_row_2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.field_label {
  padding: 0;
  font-size: 16px;
  font-weight: 900;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid #8b5e3c;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.chip input:checked + span {
  background: #f6a23c;
  box-shadow: 0 3px 0 rgba(139, 94, 60, 0.55);
}

.chip input:focus-visible + span {
  outline: 3px solid #e5594a;
  outline-offset: 2px;
}

.memo {
  width: 100%;
  min-height: 96px;
  padding: 12px 16px;
  border: 2px solid #8b5e3c;
  border-radius: 20px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #4a2e22;
  resize: vertical;
}

.map_box {
  height: 340px;
  margin-bottom: 12px;
  border: 3px solid #fff;
  border-radius: 22px;
  box-shadow: 0 6px 14px rgba(90, 60, 30, 0.2);
  overflow: hidden;
  z-index: 0;
}

.geo_msg {
  min-height: 3.4em;
  margin-bottom: 12px;
  font-weight: 700;
}

.geo_msg_ok {
  color: #5f8f3a;
}

.geo_msg_warn {
  color: #a35a12;
}

.summary {
  display: grid;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.summary li {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(139, 94, 60, 0.4);
}

.summary .k {
  font-weight: 900;
}

.summary .v {
  min-width: 0;
  overflow-wrap: anywhere;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 12px;
}

.form_error {
  min-height: 1.4em;
  margin: 0 0 8px;
  font-weight: 700;
  color: #e5594a;
}

.done_code {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 6px 18px;
  border: 2px dashed #8b5e3c;
  border-radius: 14px;
  background: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide_list {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 0 0 0 1.2em;
}

.rep_list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep_card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 2px solid rgba(139, 94, 60, 0.3);
  border-radius: 22px;
  background: #fff;
}

.rep_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rep_code {
  font-weight: 900;
  letter-spacing: 0.06em;
}

.st_chip {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: #eee;
}

.st_new {
  background: #fde2dd;
  color: #a1281b;
}

.st_accepted,
.st_in_progress {
  background: #fdeedd;
  color: #a35a12;
}

.st_done {
  background: #eef3d6;
  color: #5f8f3a;
}

.st_declined {
  background: #e8e8e8;
  color: #555;
}

.rep_note {
  padding: 8px 12px;
  border-radius: 12px;
  background: #eef3d6;
  font-size: 14px;
}

.rep_meta {
  font-size: 14px;
  color: #6e5142;
}

@media (max-width: 640px) {
  .map_box {
    height: 300px;
  }
  .btn_row_2 {
    grid-template-columns: 1fr 1.6fr;
  }
}

.apps_nav {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.apps_nav_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed rgba(139, 94, 60, 0.4);
}

.apps_nav_item:first-child {
  border-top: 0;
}

.apps_nav_icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.apps_nav_letter {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.apps_nav_text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apps_nav_text b {
  font-size: 15px;
  color: #4a2e22;
}

.apps_nav_text small {
  font-size: 13px;
  line-height: 1.5;
  color: #6e5142;
}

.apps_nav_about {
  align-self: flex-start;
  padding: 4px 0;
  font-size: 12px;
  color: #6e5142;
  text-decoration: underline;
}

.apps_nav_item > .btn {
  flex-shrink: 0;
  width: auto;
  min-height: 44px;
  padding: 6px 18px;
  font-size: 15px;
  white-space: nowrap;
}

.apps_nav_note {
  font-size: 13px;
  color: #6e5142;
}

.app_help {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(139, 94, 60, 0.35);
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.text_input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid #8b5e3c;
  border-radius: 16px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #4a2e22;
}

.pet_list {
  display: grid;
  gap: 10px;
}

.pet_card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid rgba(139, 94, 60, 0.3);
  border-radius: 18px;
  background: #fff;
}

.pet_photo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
}

.pet_text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pet_text small {
  font-size: 13px;
  color: #6e5142;
}

.pet_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.pet_btns .btn {
  flex: 1 1 140px;
  width: auto;
  min-height: 48px;
  font-size: 16px;
}

.pet_card > .btn {
  width: auto;
  flex-shrink: 0;
  min-height: 48px;
  font-size: 16px;
}
