:root {
  --page-max: 480px;
  --bg: #fff8f1;
  --card: #fffdf9;
  --text: #342115;
  --muted: #8d7667;
  --brown: #71370c;
  --brown-dark: #4b2408;
  --orange: #f06a2b;
  --line: rgba(113, 61, 17, 0.1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: clamp(66px, 17vw, 82px);
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.loading-card,
.empty-state {
  grid-column: 1 / -1;
  width: 100%;
  padding: 28px 18px;
  border-radius: 14px;
  background: #fff8ef;
  color: var(--muted);
  text-align: center;
}
.empty-state strong,
.empty-state p {
  display: block;
  margin: 0 0 8px;
}
.empty-state a {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-weight: 700;
}

.quick-status {
  display: grid;
  grid-template-columns: 1fr 0.75fr auto;
  align-items: center;
  padding: 15px 17px;
  gap: 12px;
}
.quick-status > div {
  min-width: 0;
}
.quick-status > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.quick-status span,
.quick-status small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.quick-status strong {
  display: inline-block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
}
.quick-status > button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff0de;
  color: var(--brown);
  font-weight: 800;
  font-size: 11px;
  white-space: nowrap;
}
.art-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Songti SC', serif;
  font-style: normal;
  font-size: 28px;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero::after {
  content: none;
}
.hero__content {
  position: relative;
  z-index: 3;
}
.hero__dots {
  z-index: 3;
}
.hero__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1.4px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.hero__dots button.is-active {
  background: #fff;
}
.tech-photo > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.project-art > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  padding: max(18px, env(safe-area-inset-top, 0px)) 12px max(18px, env(safe-area-inset-bottom, 0px));
  border: 0;
  background: rgba(20, 11, 6, 0.94);
  cursor: zoom-out;
}
.photo-viewer[hidden] {
  display: none;
}
.photo-viewer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.has-photo-viewer {
  overflow: hidden;
}
.nav-icon--user::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.nav-icon--user::after {
  content: '';
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 20px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 4px 4px;
}

.simple-topbar {
  min-height: 86px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(145deg, #fffaf3, #ffefdc);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}
.simple-topbar small,
.profile-hero small {
  color: #a17c5d;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.simple-topbar h1 {
  margin: 3px 0 0;
  font-family: 'Songti SC', serif;
  font-size: 25px;
}
.header-link {
  margin-bottom: 3px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  box-shadow: 0 5px 14px rgba(91, 50, 19, 0.08);
  font-size: 11px;
  font-weight: 800;
}
.sub-page {
  min-height: calc(100vh - 86px);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 20px);
}
.page-intro {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.page-intro h2 {
  margin: 0;
  font-size: 18px;
}
.page-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.page-intro > span,
.page-intro > a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0de;
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.project-browser {
  display: grid;
  grid-template-columns: clamp(96px, 27vw, 118px) minmax(0, 1fr);
  align-items: start;
}

.project-category-column {
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px - var(--nav-h) - var(--safe-bottom));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf6, #fbf3eb);
}

.category-tabs {
  display: grid;
  align-content: start;
  padding: 8px 0 18px;
}

.category-tab {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px 10px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8f7a6d;
  text-align: left;
  font-size: 12px;
}

.category-tab.is-active {
  background: linear-gradient(90deg, #fff0df, rgba(255, 248, 241, 0.28));
  color: var(--brown);
  font-weight: 800;
  box-shadow: none;
}

.category-tab.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  width: 3px;
  height: 64%;
  border-radius: 0 5px 5px 0;
  background: var(--brown);
}

.skeleton-line {
  color: var(--muted);
  padding: 14px;
  font-size: 11px;
}

.project-content {
  min-width: 0;
}

.project-content .page-intro {
  padding: 14px 13px 10px;
}

.service-list {
  padding: 0 11px 20px;
  display: grid;
  gap: 10px;
}

.service-row {
  display: grid;
  grid-template-columns: clamp(88px, 27vw, 112px) minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 9px;

  position: relative;
  overflow: hidden;

  border: 1px solid rgba(111, 58, 18, 0.06);
  border-radius: 15px;

  background: #fff;

  box-shadow: 0 7px 22px rgba(91, 50, 19, 0.07);

  transform: translateY(0) scale(1);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;

  will-change: transform;
}

/* 鼠标设备：项目卡片悬停 */
@media (hover: hover) and (pointer: fine) {
  .service-row:hover {
    transform: translateY(-4px) scale(1.008);

    border-color: rgba(125, 63, 16, 0.16);

    background: #fffdfb;

    box-shadow: 0 13px 30px rgba(91, 50, 19, 0.13);
  }
}

/* 手机点击时的轻微按压反馈 */
.service-row:active {
  transform: translateY(-1px) scale(0.988);

  box-shadow: 0 5px 14px rgba(91, 50, 19, 0.09);

  transition-duration: 0.09s;
}

.service-visual {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #efd2b5, #c68855);
  position: relative;
}

.service-visual::before {
  content: '';
  position: absolute;
  width: 74%;
  aspect-ratio: 0.62;
  border-radius: 48% 44% 52% 45%;
  background: linear-gradient(145deg, #ffc99f, #e58e61);
  transform: rotate(14deg);
  box-shadow: 0 10px 22px rgba(105, 45, 18, 0.15);
}

.service-visual img {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  transform: scale(1);

  transition:
    transform 0.32s ease,
    filter 0.32s ease;
}

.service-title h3 {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-row:hover .service-title h3 {
    color: var(--brown);
    transform: translateX(2px);
  }
}

.service-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 3px 1px;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.service-title h3 {
  margin: 0 4px 0 0;
  font-size: 14px;
}

.service-title span {
  padding: 3px 5px;
  border-radius: 5px;
  background: #fff0df;
  color: #d45a21;
  font-size: 8px;
}

.service-copy > p {
  margin: 7px 0 4px;
  color: #6f5a4b;
  font-size: 10px;
  line-height: 1.45;
}

.service-copy > small {
  color: var(--muted);
  font-size: 9px;
}

.service-action {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 7px;
}

.service-prices > strong {
  display: block;
  color: var(--orange);
  font-size: 19px;
}

.service-prices > strong small {
  color: var(--muted);
  font-size: 8px;
}

.service-prices > small {
  display: block;
  margin-top: 2px;
  color: #9a623a;
  font-size: 9px;
  font-weight: 700;
}

.service-action button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.project-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: end;
  justify-content: center;
  background: rgba(36, 19, 8, 0.72);
  backdrop-filter: blur(5px);
}
.project-detail-modal[hidden] {
  display: none;
}
.project-detail-sheet {
  position: relative;
  width: min(100%, var(--page-max));
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: #fffaf4;
}
.project-detail-sheet > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f4eadf;
}
.modal-close {
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 13px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 24, 10, 0.72);
  color: #fff;
  font-size: 23px;
}
.project-detail-copy {
  padding: 19px 18px calc(20px + env(safe-area-inset-bottom, 0px));
}
.project-detail-copy > small {
  color: #a47d5c;
  font-size: 10px;
}
.project-detail-copy h2 {
  margin: 6px 0 9px;
  font-size: 22px;
}
.project-detail-copy > p {
  min-height: 38px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.project-detail-copy > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.project-detail-copy > div span {
  padding: 12px;
  border-radius: 12px;
  background: #fff0df;
}
.project-detail-copy > div small,
.project-detail-copy > div strong {
  display: block;
}
.project-detail-copy > div small {
  color: var(--muted);
  font-size: 9px;
}
.project-detail-copy > div strong {
  margin-top: 4px;
  color: var(--brown);
  font-size: 16px;
}
.project-detail-copy > button {
  width: 100%;
  margin-top: 15px;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: #fff;
  font-weight: 800;
}

.booking-page {
  padding-top: 13px;
}
.flow-steps {
  margin: 0 13px 13px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(91, 50, 19, 0.06);
}
.flow-steps span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9a887a;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.flow-steps span b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ede4dc;
}
.flow-steps span.is-active {
  color: var(--brown);
  font-weight: 800;
}
.flow-steps span.is-active b {
  background: var(--brown);
  color: #fff;
}
.flow-steps i {
  width: 18px;
  height: 1px;
  background: #e1d4ca;
}
.booking-form {
  padding: 0 13px 95px;
  display: grid;
  gap: 13px;
}
.form-card {
  padding: 17px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(91, 50, 19, 0.07);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.form-section-title > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff0df;
  color: var(--brown);
  font-family: Georgia, serif;
  font-weight: 800;
}

.form-section-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.form-section-title p {
  margin: 4px 0 0;
  color: #806c5d;
  font-size: 12px;
  line-height: 1.4;
}

.field {
  display: block;
  margin-top: 13px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: #573b28;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.field > span small {
  margin-left: 3px;
  color: #8d7667;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(113, 61, 17, 0.16);
  border-radius: 11px;
  padding: 12px;
  outline: none;
  background: #fffcf8;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #b87438;
  box-shadow: 0 0 0 3px rgba(184, 116, 56, 0.1);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* =========================================================
   预约服务方式：到店 / 上门
========================================================= */

.service-mode {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.service-mode__option {
  position: relative;
  min-width: 0;
  min-height: 68px;
  padding: 10px 11px;

  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;

  border: 1px solid rgba(113, 61, 17, 0.13);
  border-radius: 12px;

  background: #fffcf8;
  color: var(--text);

  cursor: pointer;

  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.service-mode__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-mode__option strong,
.service-mode__option small {
  display: block;
  min-width: 0;
}

.service-mode__option strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.service-mode__option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.service-mode__icon {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #f4e4d1;
  color: var(--brown);

  font-size: 13px;
  font-weight: 800;
}

.service-mode__option.is-active {
  border-color: var(--brown);

  background: #fff5e8;

  box-shadow: 0 0 0 3px rgba(113, 55, 12, 0.07);
}

.service-mode__option.is-active .service-mode__icon {
  background: var(--brown);
  color: #fff;
}

.service-mode__option:active {
  transform: scale(0.985);
}

#serviceAddressField[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .service-mode {
    grid-template-columns: 1fr;
  }
}

.selected-summary {
  min-height: 48px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  border-radius: 11px;
  background: #fff5e8;
  color: var(--muted);
  font-size: 11px;
}
.selected-summary strong {
  color: var(--text);
  font-size: 14px;
}
.selected-summary span {
  grid-column: 1;
}
.selected-summary b {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--orange);
  font-size: 20px;
}
.technician-select {
  position: relative;
}

.technician-select__toggle {
  width: 100%;
  min-height: 64px;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(113, 61, 17, 0.13);
  border-radius: 12px;
  background: #fffcf8;
  color: var(--text);
  text-align: left;
}

.technician-select__toggle.is-open {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(113, 55, 12, 0.08);
}

.technician-select__summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.technician-select__summary img,
.technician-select__summary .auto-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ead2b5;
}

.technician-select__summary strong,
.technician-select__summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technician-select__summary strong {
  font-size: 12px;
}

.technician-select__summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.technician-select__chevron {
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 2px solid #8b6d58;
  border-bottom: 2px solid #8b6d58;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.technician-select__toggle.is-open .technician-select__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.technician-picker {
  margin-top: 7px;
  max-height: 310px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(113, 61, 17, 0.12);
  border-radius: 12px;
  background: #fffaf5;
  box-shadow: 0 12px 28px rgba(91, 50, 19, 0.1);
}

.technician-picker[hidden] {
  display: none;
}

.technician-picker__loading {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}

.technician-option {
  width: 100%;
  min-height: 58px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.technician-option:hover,
.technician-option.is-active {
  border-color: #d7b18d;
  background: #fff1e2;
}

.technician-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.technician-option img,
.technician-option > .auto-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: #ead2b5;
  color: var(--brown);
  font-weight: 800;
}

.technician-option__main {
  min-width: 0;
}

.technician-option__main strong,
.technician-option__main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technician-option__main strong {
  font-size: 12px;
}

.technician-option__main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.technician-option__status {
  padding: 4px 6px;
  border-radius: 999px;
  background: #eee8e2;
  color: #7d7067;
  font-size: 8px;
  white-space: nowrap;
}

.technician-option__status.status-online {
  background: #e8f5e8;
  color: #3f7c45;
}

.technician-option__status.status-busy {
  background: #fff0df;
  color: #b35d1f;
}

.technician-option__status.status-offline {
  background: #eeeae7;
  color: #888;
}

.save-phone {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.save-phone input {
  accent-color: var(--brown);
}
.submit-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 35;
  width: min(100%, var(--page-max));
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(15px);
}
.submit-bar small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.submit-bar strong {
  display: block;
  color: var(--orange);
  font-size: 22px;
}

.submit-bar #totalMemberPrice {
  display: block;
  margin-top: 1px;
  color: #9a623a;
  font-size: 10px;
  font-weight: 700;
}
.submit-bar button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(91, 45, 8, 0.18);
}

.profile-hero {
  min-height: 176px;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 20px 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #fff1d9;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 215, 143, 0.28), transparent 32%),
    linear-gradient(145deg, #744013, #351a08);
}

.profile-avatar {
  width: 68px;
  height: 68px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(145deg, #ffe1b0, #d9984a);
  border: 3px solid rgba(255, 255, 255, 0.3);
  font-size: 0;
}

.profile-hero__identity {
  min-width: 0;
}

.profile-hero small {
  display: block;
  color: #e9c89d;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.profile-hero h1 {
  margin: 5px 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff8ee;
  font-size: 22px;
}

.profile-telegram-id {
  margin: 0;
  color: #d9b98e;
  font-size: 10px;
}

.profile-telegram-id strong {
  color: #f7dec0;
  font-weight: 700;
}

.admin-entry {
  align-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 10px;
}

.my-page {
  margin-top: -16px;
  position: relative;
}
.profile-stats {
  margin: 0 13px 13px;
  padding: 17px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(61, 28, 7, 0.12);
}
.profile-stats div {
  text-align: center;
  border-right: 1px solid var(--line);
}
.profile-stats div:last-child {
  border: 0;
}
.profile-stats strong,
.profile-stats span {
  display: block;
}
.profile-stats strong {
  font-size: 20px;
  color: var(--brown);
}
.profile-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.booking-section {
  padding-bottom: 10px;
}
.booking-list {
  padding: 0 13px;
  display: grid;
  gap: 11px;
}
.booking-card {
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(91, 50, 19, 0.07);
  border-left: 3px solid #e4aa62;
}
.booking-card.confirmed {
  border-left-color: #5e9c62;
}
.booking-card.cancel_requested {
  border-left-color: #d48b29;
}
.booking-card.rejected {
  border-left-color: #c75a5a;
}
.booking-card.completed {
  border-left-color: #aaa098;
}
.booking-card.cancelled {
  border-left-color: #d8d1cb;
  opacity: 0.72;
}
.booking-card__head,
.booking-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.booking-card__head small {
  color: var(--muted);
  font-size: 9px;
}
.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0df;
  color: #a15317;
  font-size: 9px;
  font-weight: 800;
}
.confirmed .status-pill {
  background: #e7f5e8;
  color: #387342;
}
.cancel_requested .status-pill {
  background: #fff0d8;
  color: #985b0b;
}
.rejected .status-pill {
  background: #fde8e8;
  color: #9a3939;
}
.completed .status-pill,
.cancelled .status-pill {
  background: #eeeae7;
  color: #777;
}
.booking-card h3 {
  margin: 12px 0 7px;
  font-size: 16px;
}
.booking-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
}
.booking-card p strong {
  color: #5e4432;
}
.booking-card .booking-created-at {
  margin-top: 7px;
  color: #a18775;
  font-size: 10px;
}
.booking-card__foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.booking-card__foot > strong {
  color: var(--orange);
  font-size: 18px;
}
.booking-card__foot button {
  border: 0;
  background: none;
  color: #9a7257;
  font-size: 10px;
}
.booking-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.booking-card__foot .booking-delete {
  padding: 5px 10px;
  border-radius: 999px;
  background: #df3f3f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.booking-card__foot .booking-delete:active {
  background: #bd2f2f;
}
.contact-card {
  margin: 13px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: #fff5e8;
}
.contact-card small,
.contact-card strong {
  display: block;
}
.contact-card small {
  color: var(--muted);
  font-size: 10px;
}
.contact-card strong {
  margin-top: 3px;
  font-size: 14px;
}
.contact-card a {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.booking-technician {
  display: flex;
  align-items: center;
  gap: 6px;
}
.booking-technician img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.admin-body {
  margin: 0;
  background: #f5f2ee;
  color: #2f271f;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC',
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px 1fr;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  color: #ead7c1;
  background: linear-gradient(180deg, #3d210e, #261207);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-brand > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #5d2e0e;
  background: linear-gradient(145deg, #f6d59d, #c98b43);
  font-family: serif;
  font-size: 21px;
  font-weight: 800;
}
.admin-brand strong,
.admin-brand small {
  display: block;
}
.admin-brand strong {
  font-size: 15px;
}
.admin-brand small {
  margin-top: 3px;
  color: #a98d73;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
.admin-sidebar nav {
  margin-top: 25px;
  display: grid;
  gap: 7px;
}
.admin-sidebar nav a,
.admin-sidebar nav button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 11px 13px;
  text-align: left;
  background: none;
  color: #bca48e;
  font-size: 13px;
  line-height: 1.35;
}
.admin-sidebar nav .is-active,
.admin-sidebar nav a:hover {
  color: #fff;
  background: rgba(255, 217, 164, 0.12);
}
.admin-sidebar__foot {
  margin-top: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ad9580;
  font-size: 12px;
  line-height: 1.4;
}
.live-dot {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #63bc72;
  box-shadow: 0 0 0 4px rgba(99, 188, 114, 0.12);
}
.admin-main {
  min-width: 0;
}
.admin-header {
  height: 88px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e9e2db;
}
.admin-header small {
  color: #8b7d72;
  font-size: 12px;
  line-height: 1.35;
}
.admin-header h1 {
  margin: 4px 0 0;
  font-size: 22px;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 9px;
}
.admin-user > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6e5d2;
  color: #794417;
  font-weight: 800;
}
.admin-user strong,
.admin-user small {
  display: block;
}
.admin-user strong {
  font-size: 13px;
  line-height: 1.35;
}
.admin-content {
  padding: 25px 32px 45px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.admin-stat {
  position: relative;

  min-height: 122px;

  padding:
    19px 19px 19px 23px;

  overflow: hidden;

  border:
    1px solid rgba(112, 82, 58, .10);

  border-radius: 13px;

  background:
    var(--admin-stat-bg, #fff);

  box-shadow:
    0 6px 18px rgba(60, 39, 20, .045);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

/* ADMIN STAT COLOR CARDS START */

/*
 * 左边渐变粗描边
 */
.admin-stat::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 6px;

  background:
    var(
      --admin-stat-accent,
      linear-gradient(
        180deg,
        #dca76b,
        #8b4c20
      )
    );
}

/*
 * 01 待确认预约
 * 浅橙杏色
 */
.admin-stat:nth-child(1) {
  --admin-stat-bg:
    linear-gradient(
      135deg,
      #fff7ed,
      #fff1df
    );

  --admin-stat-accent:
    linear-gradient(
      180deg,
      #ffb15c,
      #e87928
    );
}

/*
 * 02 累计预约
 * 浅蓝色
 */
.admin-stat:nth-child(2) {
  --admin-stat-bg:
    linear-gradient(
      135deg,
      #f2f8ff,
      #eaf4ff
    );

  --admin-stat-accent:
    linear-gradient(
      180deg,
      #72b8ff,
      #3d7fd8
    );
}

/*
 * 03 在售项目
 * 浅绿色
 */
.admin-stat:nth-child(3) {
  --admin-stat-bg:
    linear-gradient(
      135deg,
      #f2fbf5,
      #e9f8ee
    );

  --admin-stat-accent:
    linear-gradient(
      180deg,
      #71c98b,
      #409b60
    );
}

/*
 * 04 在岗技师
 * 浅紫色
 */
.admin-stat:nth-child(4) {
  --admin-stat-bg:
    linear-gradient(
      135deg,
      #faf5ff,
      #f2eaff
    );

  --admin-stat-accent:
    linear-gradient(
      180deg,
      #b48be7,
      #8157bc
    );
}

/*
 * 05 会员用户
 * 浅粉色
 */
.admin-stat:nth-child(5) {
  --admin-stat-bg:
    linear-gradient(
      135deg,
      #fff5f7,
      #ffedf1
    );

  --admin-stat-accent:
    linear-gradient(
      180deg,
      #ef9bab,
      #cb6177
    );
}

/*
 * 06 已完成营收
 * 浅金黄色
 */
.admin-stat:nth-child(6) {
  --admin-stat-bg:
    linear-gradient(
      135deg,
      #fffbed,
      #fff4d7
    );

  --admin-stat-accent:
    linear-gradient(
      180deg,
      #e9c255,
      #c28b22
    );
}


/* 桌面端轻微悬停 */
@media (hover: hover) and (pointer: fine) {
  .admin-stat:hover {
    transform:
      translateY(-3px);

    border-color:
      rgba(112, 82, 58, .16);

    box-shadow:
      0 11px 24px
      rgba(60, 39, 20, .09);
  }
}

/* ADMIN STAT COLOR CARDS END */

.admin-stat small,
.admin-stat span,
.admin-stat strong {
  display: block;
}
.admin-stat small {
  color: #74685e;
  font-size: 12px;
  line-height: 1.35;
}
.admin-stat strong {
  margin: 12px 0 7px;
  color: #51290c;
  font-size: 26px;
}
.admin-stat span {
  color: #8f857d;
  font-size: 11px;
  line-height: 1.4;
}
.admin-panel {
  margin-top: 20px;
  border: 1px solid #e9e2db;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.admin-panel__head {
  min-height: 72px;
  padding: 15px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #eee7e1;
}
.admin-panel__head small {
  color: #9b7555;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.1em;
}
.admin-panel__head h2 {
  margin: 3px 0 0;
  font-size: 16px;
}
.admin-panel__head p {
  color: #81766d;
  font-size: 12px;
  line-height: 1.45;
}
.admin-panel__head button {
  border: 1px solid #ddd2c8;
  border-radius: 7px;
  padding: 8px 11px;
  background: #fff;
  color: #67452d;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}
.admin-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-panel__head .admin-icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.admin-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-collapse-icon {
  display: none;
}
#bookings.is-expanded .admin-expand-icon {
  display: none;
}
#bookings.is-expanded .admin-collapse-icon {
  display: block;
}
.admin-table-wrap {
  overflow-x: auto;
}
#bookings.is-expanded {
  position: fixed;
  inset: 18px;
  z-index: 10000;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(38, 18, 7, 0.3);
}
#bookings.is-expanded .admin-table-wrap {
  flex: 1;
  overflow: auto;
}
.admin-body.has-expanded-bookings {
  overflow: hidden;
}
.admin-body.has-expanded-bookings::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(38, 18, 7, 0.38);
}
.admin-pagination {
  min-height: 58px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #eee7e1;
  background: #fff;
}
.admin-pagination button {
  border: 1px solid #ddd2c8;
  border-radius: 7px;
  padding: 7px 12px;
  background: #fff;
  color: #67452d;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
}
.admin-pagination button:hover:not(:disabled),
.admin-panel__head button:hover:not(:disabled) {
  border-color: #bd9572;
  background: #fbf6f0;
}
.admin-pagination button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.admin-pagination span {
  min-width: 92px;
  color: #756b63;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}
.admin-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}
.admin-panel th {
  padding: 10px 15px;
  text-align: left;
  background: #faf8f5;
  color: #756b63;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}
.admin-panel td {
  padding: 13px 15px;
  border-top: 1px solid #f0ebe7;
  vertical-align: middle;
}
.admin-panel td strong,
.admin-panel td small {
  display: block;
}
.admin-panel td small {
  margin-top: 4px;
  max-width: 300px;
  color: #81776f;
  font-size: 11px;
  line-height: 1.4;
}
.admin-panel select,
.price-input {
  border: 1px solid #ded5cd;
  border-radius: 7px;
  padding: 7px 8px;
  background: #fff;
  color: #4e4036;
  font-size: 12px;
  line-height: 1.3;
}
.price-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.price-input input {
  width: 55px;
  border: 0;
  outline: 0;
}
.admin-switch input {
  position: absolute;
  opacity: 0;
}
.admin-switch span {
  width: 34px;
  height: 19px;
  display: block;
  border-radius: 99px;
  background: #ddd5ce;
  position: relative;
  transition: 0.2s;
}
.admin-switch span::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.17);
  transition: 0.2s;
}
.admin-switch input:checked + span {
  background: #714119;
}
.admin-switch input:checked + span::after {
  transform: translateX(15px);
}
.table-save {
  border: 0;
  border-radius: 7px;
  padding: 7px 11px;
  background: #5b3011;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}
.table-save.is-danger {
  background: #9f2f2f;
}
.announcement-result {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border: 1px solid #cfe4d2;
  border-radius: 9px;
  background: #eff8f0;
  color: #2f6b38;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}
.announcement-result[hidden] {
  display: none;
}
.announcement-media,
.announcement-media-preview {
  width: 112px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #f1e7dc;
  color: #8a7768;
  font-size: 11px;
}
.announcement-media img,
.announcement-media video,
.announcement-media-preview img,
.announcement-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.announcement-actions {
  min-width: 250px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.announcement-media-field {
  margin-top: 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 12px;
  background: #faf6f1;
}
.announcement-media-preview {
  width: 140px;
  height: 100px;
}
.announcement-media-field label,
.announcement-media-field small {
  display: block;
}
.announcement-media-field label {
  margin-bottom: 8px;
  color: #66564a;
  font-size: 12px;
  font-weight: 700;
}
.announcement-media-field input {
  width: 100%;
  font-size: 12px;
}
.announcement-media-field small {
  margin-top: 7px;
  color: #81776e;
  font-size: 11px;
  line-height: 1.5;
}
.promotion-qr-card {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 24px;
  align-items: center;
}
.promotion-qr-card[hidden] {
  display: none;
}
.promotion-qr-card > img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #e4d9cf;
  border-radius: 14px;
  background: #fff;
}
.promotion-qr-card strong,
.promotion-qr-card code {
  display: block;
}
.promotion-qr-card code {
  margin-top: 10px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f7f2ed;
  color: #51290c;
}
.promotion-qr-card p {
  margin: 12px 0;
  color: #81766d;
  font-size: 12px;
  line-height: 1.6;
}
.promotion-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.promotion-qr-actions button {
  border: 0;
  border-radius: 7px;
  padding: 9px 12px;
  background: #5b3011;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.welcome-settings {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.welcome-image-field {
  padding: 15px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid #eee3d8;
  border-radius: 13px;
  background: linear-gradient(145deg, #fffaf5, #f8f1ea);
}
.welcome-image-preview {
  width: 180px;
  height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #d8c1aa;
  border-radius: 11px;
  background: #f2e5d8;
  color: #8b7765;
  font-size: 12px;
}
.welcome-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.welcome-image-controls strong,
.welcome-image-controls p {
  display: block;
}
.welcome-image-controls strong {
  color: #4b3423;
  font-size: 14px;
}
.welcome-image-controls p {
  margin: 6px 0 12px;
  color: #817269;
  font-size: 12px;
  line-height: 1.55;
}
.welcome-image-controls > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.welcome-image-controls input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.welcome-upload-button,
.welcome-image-controls button {
  padding: 9px 13px;
  border: 1px solid #d7c6b7;
  border-radius: 8px;
  background: #fff;
  color: #654124;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
}
.welcome-upload-button {
  border-color: #6b3b17;
  background: #6b3b17;
  color: #fff;
}
.welcome-editor-field {
  min-width: 0;
}
.welcome-editor-label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4b3423;
  font-size: 13px;
}
.welcome-editor-label span {
  color: #8b7b70;
  font-size: 12px;
}
.welcome-editor-label span.is-limit {
  color: #a63232;
  font-weight: 700;
}
.welcome-toolbar {
  padding: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid #ddd1c7;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f8f4ef;
}
.welcome-toolbar button {
  min-width: 34px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #ddd1c7;
  border-radius: 6px;
  background: #fff;
  color: #5b3d28;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.welcome-toolbar button:hover {
  border-color: #b98b64;
  background: #fff9f3;
}
.welcome-editor {
  min-height: 130px;
  max-height: 280px;
  padding: 13px 14px;
  overflow-y: auto;
  border: 1px solid #d8cbc0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  color: #34291f;
  font-size: 14px;
  line-height: 1.75;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.welcome-editor:focus {
  border-color: #a97850;
  box-shadow: 0 0 0 3px rgba(169, 120, 80, 0.12);
}
.welcome-editor:empty::before {
  content: attr(data-placeholder);
  color: #aaa19a;
  pointer-events: none;
}
.welcome-editor-field > small {
  display: block;
  margin-top: 7px;
  color: #84786e;
  font-size: 11px;
  line-height: 1.5;
}
.welcome-settings__actions {
  display: flex;
  justify-content: flex-end;
}
.welcome-settings__actions button {
  min-width: 132px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #744014, #4d260c);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.welcome-settings__actions button:disabled {
  opacity: 0.62;
  cursor: wait;
}
@media (max-width: 560px) {
  .announcement-media-field {
    grid-template-columns: 1fr;
  }
  .announcement-media-preview {
    width: 100%;
    height: 180px;
  }
  .promotion-qr-card {
    grid-template-columns: 1fr;
  }
  .welcome-settings {
    padding: 14px;
  }
  .welcome-image-field {
    grid-template-columns: 1fr;
  }
  .welcome-image-preview {
    width: 100%;
    height: 180px;
  }
  .welcome-settings__actions button {
    width: 100%;
  }
}
.table-empty {
  padding: 30px !important;
  text-align: center;
  color: #999;
}
.admin-entity {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.admin-entity > img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  background: #f1dfcc;
}
.admin-entity span {
  min-width: 0;
}
.admin-badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eee9e5;
  color: #756d66;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
}
.admin-badge.is-on {
  background: #e5f2e6;
  color: #3f7847;
}
.entity-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(35, 18, 7, 0.72);
  backdrop-filter: blur(7px);
}
.entity-modal[hidden] {
  display: none;
}
.entity-modal > form {
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}
.entity-modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #eee7e1;
}
.entity-modal__head small {
  color: #986f4d;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.1em;
}
.entity-modal__head h2 {
  margin: 3px 0 0;
  font-size: 18px;
}
.entity-modal__head button {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  background: #f1ebe6;
  color: #5e4635;
  font-size: 21px;
}
.entity-form-fields {
  padding: 18px 20px;
}
.entity-image-field {
  padding: 11px;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  align-items: center;
  border-radius: 12px;
  background: #faf6f1;
}
.entity-image-field > img {
  width: 116px;
  height: 88px;
  border-radius: 9px;
  object-fit: contain;
  object-position: center;
  background: #ead7c5;
}
.entity-image-field label,
.entity-image-field small {
  display: block;
}
.entity-image-field label {
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}
.entity-image-field input[type='file'] {
  width: 100%;
  font-size: 12px;
  line-height: 1.35;
}
.entity-image-field small {
  margin-top: 6px;
  color: #81776e;
  font-size: 11px;
  line-height: 1.4;
}
.entity-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.entity-grid label,
.entity-wide {
  color: #66564a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}
.entity-grid input,
.entity-grid select,
.entity-wide textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #dcd3cb;
  border-radius: 8px;
  background: #fff;
  color: #3c332c;
  outline: none;
}
.entity-wide {
  margin-top: 13px;
  display: block;
}
.entity-wide textarea {
  resize: vertical;
}
.entity-checks {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.entity-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
}
.entity-check input {
  accent-color: #653611;
}
.entity-modal__actions {
  position: sticky;
  bottom: 0;
  padding: 13px 20px;
  display: flex;
  justify-content: end;
  gap: 8px;
  background: #fff;
  border-top: 1px solid #eee7e1;
}
.entity-modal__actions button {
  padding: 9px 15px;
  border: 1px solid #d8cec6;
  border-radius: 8px;
  background: #fff;
  color: #66564a;
}
.entity-modal__actions button:last-child {
  border-color: #5b3011;
  background: #5b3011;
  color: #fff;
  font-weight: 700;
}
.admin-auth {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(35, 18, 7, 0.7);
  backdrop-filter: blur(8px);
}
.admin-auth[hidden] {
  display: none;
}
.admin-auth form {
  width: 360px;
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.admin-auth form > span {
  width: 52px;
  height: 52px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f4dec3;
  color: #66340f;
  font-family: serif;
  font-size: 25px;
}
.admin-auth h2 {
  margin: 16px 0 8px;
}
.admin-auth p {
  color: #766b62;
  font-size: 13px;
  line-height: 1.6;
}
.admin-auth input {
  width: 100%;
  margin: 12px 0 9px;
  padding: 11px 12px;
  border: 1px solid #dcd2ca;
  border-radius: 8px;
}
.admin-auth button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px;
  background: #542b0e;
  color: #fff;
  font-weight: 800;
}
.admin-auth a {
  display: inline-block;
  margin-top: 14px;
  color: #78675a;
  font-size: 12px;
  line-height: 1.35;
}
.admin-body .toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 12px);
  z-index: 120;
  padding: 10px 15px;
  border-radius: 99px;
  background: #352013;
  color: #fff;
  opacity: 0;
  transition: 0.2s;
  font-size: 12px;
  line-height: 1.35;
}
.admin-body .toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  .quick-status {
    grid-template-columns: 1fr 1fr;
  }
  .quick-status > button {
    grid-column: 1 / -1;
  }
  .project-browser {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .service-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 481px) {
  .simple-topbar {
    border-radius: 28px 28px 0 0;
  }
  .submit-bar {
    bottom: calc(18px + var(--nav-h) + var(--safe-bottom));
  }
}
@media (max-width: 800px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 13px 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .admin-brand {
    padding: 0;
    border: 0;
  }
  .admin-brand > span {
    width: 34px;
    height: 34px;
  }
  .admin-brand div {
    display: none;
  }
  .admin-sidebar nav {
    min-width: 0;
    margin: 0;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .admin-sidebar nav a,
  .admin-sidebar nav button {
    width: auto;
    flex: 0 0 auto;
    padding: 9px 11px;
  }
  .admin-sidebar__foot {
    display: none;
  }
  .admin-header {
    height: 74px;
    padding: 0 15px;
  }
  .admin-header h1 {
    font-size: 19px;
  }
  .admin-user div {
    display: none;
  }
  .admin-content {
    padding: 14px 12px 35px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .admin-stat {
    min-height: 108px;
    padding: 15px;
  }
  .admin-stat strong {
    font-size: 23px;
  }
  .admin-panel {
    margin-top: 13px;
  }
  .admin-panel__head {
    padding: 13px 15px;
  }
  .admin-panel__head p {
    display: none;
  }
  .admin-panel table {
    min-width: 700px;
  }
  #bookings.is-expanded {
    inset: 8px;
    border-radius: 12px;
  }
  .admin-pagination {
    min-height: 54px;
    padding: 9px 10px;
    gap: 7px;
  }
  .admin-pagination button {
    padding: 7px 10px;
  }
  .admin-auth form {
    width: min(360px, calc(100vw - 26px));
    padding: 24px 20px;
  }
}
@media (max-width: 420px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stat {
    min-height: 100px;
  }
  .admin-stat span {
    display: none;
  }
  .entity-modal {
    padding: 0;
    align-items: end;
  }
  .entity-modal > form {
    max-height: 94vh;
    border-radius: 17px 17px 0 0;
  }
  .entity-form-fields {
    padding: 14px;
  }
  .entity-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .entity-image-field {
    grid-template-columns: 84px 1fr;
  }
  .entity-image-field > img {
    width: 84px;
    height: 84px;
  }
  .entity-modal__actions {
    padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px));
  }
}
