:root {
  --green: #20c98d;
  --green-dark: #14ad80;
  --green-soft: #e8faf4;
  --red: #cc3b35;
  --text: #202124;
  --muted: #909399;
  --line: #edf0ee;
  --page: #f6f6f6;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(27, 44, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: #e9eceb;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--page);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.mini-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f1f1f1;
}

.status-row {
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-size: 18px;
}

.island {
  justify-self: center;
  width: 130px;
  height: 34px;
  border-radius: 999px;
  background: #050505;
}

.signal {
  justify-self: end;
  font-size: 14px;
}

.title-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 126px;
  align-items: center;
  height: 58px;
  border-bottom: 1px solid #e9e9e9;
}

.title-row h1 {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plain-icon {
  font-size: 38px;
  line-height: 1;
}

.dots {
  font-size: 24px;
  letter-spacing: 2px;
}

.language-switch {
  display: flex;
  justify-self: end;
  gap: 3px;
  margin-right: 8px;
  padding: 3px;
  border: 1px solid #dde5e1;
  border-radius: 999px;
  background: #fff;
}

.language-switch button {
  min-width: 30px;
  height: 27px;
  border-radius: 999px;
  padding: 0 6px;
  color: #5f6965;
  font-size: 11px;
  font-weight: 800;
}

.language-switch button:last-child {
  min-width: 48px;
}

.language-switch button.is-active {
  background: var(--green);
  color: #fff;
}

.page {
  display: none;
  height: calc(100vh - 102px);
  height: calc(100dvh - 102px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 0 14px calc(108px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.page.is-active {
  display: block;
}

.phone-shell.is-registering .tabbar {
  display: none;
}

.phone-shell.is-registering .floating-chat-btn,
.floating-chat-btn.is-hidden {
  display: none;
}

.phone-shell.is-registering .page {
  height: calc(100vh - 102px);
  height: calc(100dvh - 102px);
  padding-bottom: 24px;
}

.register-hero {
  margin: 0 -14px;
  padding: 32px 22px 72px;
  background: linear-gradient(135deg, #101f1b, #20c98d);
  color: #fff;
}

.register-hero span,
.register-hero h2,
.register-hero p {
  display: block;
  margin: 0;
}

.register-hero span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.register-hero h2 {
  margin-top: 8px;
  font-size: 30px;
}

.register-hero p {
  margin-top: 12px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.register-card {
  position: relative;
  z-index: 2;
  margin-top: 12px;
}

.login-card {
  margin-top: -42px;
}

.signup-card {
  margin-top: -42px;
}

.register-section-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.login-register-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: #64706c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.login-register-link button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-weight: 900;
  padding: 4px 2px;
}

.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: end;
}

.email-code-row .soft-btn {
  height: 45px;
  padding: 0 8px;
  white-space: nowrap;
}

.register-card small {
  color: var(--muted);
  line-height: 1.5;
}

.referral-help {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  background: #f6faf8;
  padding: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.referral-help strong {
  color: var(--green-dark);
}

.visible-referral-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(0, 171, 132, 0.28);
  border-radius: 8px;
  background: #ecfff7;
  color: var(--green-dark);
  font-weight: 800;
  white-space: nowrap;
}

.visible-referral-code b {
  color: #d33434;
  letter-spacing: 0.5px;
}

.role-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.role-choice label {
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(32, 201, 141, 0.25);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  box-sizing: border-box;
}

#registerForm .role-choice input {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
  border-radius: 50% !important;
  accent-color: var(--green);
}

#registerForm .role-choice span {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

#registerForm .signup-role-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#registerForm .signup-role-row input[type="hidden"] {
  display: none !important;
}

#registerForm .signup-role-row button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid rgba(32, 201, 141, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}

#registerForm .signup-role-row button.is-active {
  border-color: rgba(32, 201, 141, 0.72);
  background: #effbf6;
  color: #101815;
  box-shadow: inset 0 0 0 1px rgba(32, 201, 141, 0.18);
}

#registerForm .signup-role-row button::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex: 0 0 16px;
  border: 2px solid #7b8580;
  border-radius: 50%;
  background: #fff;
}

#registerForm .signup-role-row button.is-active::before {
  border-color: var(--green-dark);
  background: radial-gradient(circle, var(--green) 0 45%, transparent 48%);
}

#registerForm .agree-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(32, 201, 141, 0.22);
  border-radius: 10px;
  background: #f7fbf9;
  color: #5f6663;
  font-size: 13px;
  line-height: 1.35;
  text-align: left !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

#registerForm .agree-row .agree-check,
#registerForm .agree-row > input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: static !important;
  display: grid !important;
  place-content: center;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 22px !important;
  opacity: 1 !important;
  transform: none !important;
  border: 2px solid var(--green) !important;
  border-radius: 6px;
  background: #fff !important;
  box-sizing: border-box !important;
}

#registerForm .agree-row .agree-check::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s ease;
  clip-path: polygon(14% 44%, 0 59%, 39% 100%, 100% 18%, 84% 4%, 37% 67%);
  background: #fff;
}

#registerForm .agree-row .agree-check:checked {
  border-color: var(--green) !important;
  background: var(--green) !important;
}

#registerForm .agree-row .agree-check:checked::before {
  transform: scale(1);
}

#registerForm .agree-row .agree-text {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  padding-top: 1px;
  overflow-wrap: break-word !important;
  word-break: break-word;
  white-space: normal !important;
  text-align: left !important;
}

.form-error {
  min-height: 18px;
  color: #d84848 !important;
  font-weight: 800;
}

.home-head {
  margin: 0 -14px;
  padding: 12px 16px 18px;
  background: linear-gradient(180deg, #dbfff5 0%, #f6f6f6 100%);
}

.city-row,
.map-toolbar,
.location-bar,
.line-item,
.card-head,
.pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-btn {
  font-weight: 700;
}

.bell {
  width: 32px;
  height: 32px;
  color: var(--green-dark);
  font-size: 24px;
}

.search-pill,
.location-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  border: 1px solid rgba(32, 201, 141, 0.65);
  border-radius: 999px;
  background: #fff;
  padding: 0 4px 0 12px;
}

.search-pill input,
.location-bar input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-pill button {
  min-width: 58px;
  height: 28px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-size: 13px;
}

.product-category-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 12px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.product-category-row::-webkit-scrollbar {
  display: none;
}

.product-category-row button {
  flex: 0 0 auto;
  min-width: max-content;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(17, 31, 45, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #20272c;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.product-category-row button.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, #4c3fea, #7459f4);
  color: #fff;
}

.green-banner {
  display: grid;
  grid-template-columns: 1fr 108px;
  min-height: 126px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #19bd86, #38d69a);
  color: #fff;
}

.green-banner div {
  padding: 18px 0 18px 18px;
}

.green-banner small,
.green-banner strong,
.green-banner span {
  display: block;
}

.green-banner small {
  font-size: 20px;
  font-weight: 900;
}

.green-banner strong {
  margin-top: 2px;
  font-size: 26px;
  line-height: 1.05;
}

.green-banner span {
  width: max-content;
  margin-top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: #e85642;
  font-size: 13px;
  font-weight: 800;
}

.green-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice,
.profile-card,
.checkout-card,
.service-card,
.tech-card {
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.notice {
  margin-top: 12px;
  padding: 11px 14px;
  color: #69716e;
  font-size: 13px;
}

.home-action-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 4px;
}

.home-action-strip button {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(32, 201, 141, 0.22);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow);
}

.home-action-strip strong,
.home-action-strip span {
  display: block;
}

.home-action-strip strong {
  color: var(--green-dark);
  font-size: 16px;
}

.home-action-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fx-rate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 201, 141, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #5c6662;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.fx-rate button {
  min-width: 72px;
  height: 30px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.quick-grid button {
  display: grid;
  gap: 8px;
  color: #363b39;
  font-size: 13px;
}

.quick-grid button::before {
  content: "";
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), #7bdcf5);
}

.tech-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-inline-actions button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(17, 166, 121, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.section-block {
  margin-top: 12px;
}

.section-title h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 17px;
}

.avatar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mini-person {
  text-align: center;
}

.mini-person img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

[data-preview] {
  cursor: zoom-in;
}

.avatar-row .empty-state {
  grid-column: 1 / -1;
}

.profile-avatar-edit {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.profile-avatar-edit label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.profile-avatar-edit input {
  display: none;
}

.mini-person strong,
.mini-person span {
  display: block;
}

.mini-person strong {
  margin-top: 6px;
  font-size: 14px;
}

.mini-person span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(38, 48, 44, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.tabs,
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 10px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.tabs::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar {
  display: none;
}

.tabs button,
.category-tabs button {
  position: relative;
  min-width: max-content;
  height: 36px;
  color: #60666a;
  font-size: 16px;
}

.tabs button.is-active,
.category-tabs button.is-active {
  color: var(--green-dark);
}

.tabs button.is-active::after,
.category-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  transform: translateX(-50%);
}

.service-list,
.tech-list,
.order-history {
  display: grid;
  gap: 14px;
}

.service-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.service-photo {
  display: grid;
  gap: 6px;
  align-self: start;
}

.service-photo button {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f1;
}

.service-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 92px;
}

.service-photo .service-photo-thumbs button {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid #d4e7dd;
  border-radius: 3px;
  cursor: zoom-in;
}

.service-photo .service-photo-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.service-card img,
.product-row img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.service-photo label {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.service-photo input {
  display: none;
}

.service-card h3,
.tech-card h2,
.checkout-card h2 {
  margin: 0;
  font-size: 17px;
}

.service-card p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.service-card-content {
  min-width: 0;
}

.service-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-title-row h3 {
  min-width: 0;
}

.service-title-row .card-order-btn {
  flex: 0 0 auto;
}

.badge-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.badge-row::-webkit-scrollbar {
  display: none;
}

.badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 24px;
  align-items: center;
  padding: 0 6px;
  border: 1px solid #cbe7da;
  border-radius: 5px;
  color: var(--green-dark);
  font-size: 12px;
}

.order-btn.card-order-btn {
  flex: 0 0 auto;
  align-self: center;
  min-width: 58px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
}

.price {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  margin-top: 10px;
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.price small {
  display: inline;
  color: var(--green-dark);
  font-size: 12px;
}

.price-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
  max-width: 100%;
}

.tier-price {
  display: inline-grid;
  grid-template-columns: auto auto;
  width: 100%;
  max-width: 100%;
  column-gap: 2px;
  row-gap: 1px;
  align-items: baseline;
  justify-content: center;
  padding: 4px 2px;
  border-radius: 6px;
  background: #f3fbf7;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.editable-tier-price {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.editable-tier-price:hover,
.editable-tier-price:focus-visible {
  outline: 2px solid #16a36a;
  outline-offset: 2px;
}

.tier-price b {
  color: var(--green-dark);
  font-size: 9px;
}

.tier-price small {
  display: block;
  grid-column: 1 / -1;
  padding-left: 0;
  color: var(--green-dark);
  font-size: 9px;
  text-align: center;
}

#checkoutPrice,
#payTotal,
#paymentAmount,
#paymentDue,
#pendingAmount,
.pay-bar strong,
.success-summary strong {
  white-space: nowrap;
}

.order-btn,
.reserve-btn,
.pay-bar button,
.float-back {
  align-self: end;
  min-width: 84px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #8ee58b);
  color: #fff;
  font-weight: 700;
}

.location-bar {
  margin: 12px -14px 14px;
  padding: 14px;
  background: #fff;
}

.location-bar label {
  flex: 1;
  border-color: transparent;
  background: #f3f3f3;
}

.tech-card {
  display: grid;
  grid-template-columns: 82px 1fr 86px;
  gap: 12px;
  padding: 18px 12px;
}

.tech-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.tech-status {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 14px;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  font-size: 12px;
}

.tech-card p {
  margin: 5px 0;
  color: #565c5a;
}

.license {
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid #a8d9c7;
  border-radius: 5px;
  color: var(--green-dark);
  font-size: 12px;
}

.time-box {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
}

.time-box span {
  padding: 6px 8px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green-dark);
  font-size: 13px;
}

.map-toolbar {
  margin: 0 -14px;
  padding: 12px 14px;
  background: #fff;
}

.mode-switch {
  display: flex;
  border: 1px solid var(--line);
}

.mode-switch button {
  height: 34px;
  padding: 0 12px;
  background: #fff;
}

.mode-switch .is-active {
  background: #c9f2e4;
  color: var(--green-dark);
}

.map-canvas {
  position: relative;
  height: calc(100vh - 252px);
  min-height: 520px;
  margin: 0 -14px;
  overflow: hidden;
  background: #eef2f0;
}

.google-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-status {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.map-status strong {
  color: #1f4f91;
}

.map-status span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.fake-address {
  max-width: 66%;
  overflow: hidden;
  color: var(--text);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-card {
  margin-top: 14px;
  padding: 18px;
}

.address-row {
  min-height: 72px;
  font-size: 21px;
  width: 100%;
  text-align: left;
}

.pin-large {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.line-item {
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.row-button {
  width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
}

.line-item:last-child {
  border-bottom: 0;
}

.line-item span {
  color: var(--muted);
}

.line-item b {
  color: var(--green-dark);
}

.stacked {
  display: block;
  padding-top: 14px;
}

.stacked strong {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}

.stacked em {
  color: var(--red);
  font-style: normal;
}

.stacked p {
  color: var(--muted);
  line-height: 1.7;
}

.product-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-row > img {
  grid-row: 1 / span 2;
}

.product-row > div:not(.stepper) {
  min-width: 0;
}

.product-row .stepper {
  grid-column: 2;
  justify-self: start;
  align-self: start;
}

.product-row p {
  margin: 6px 0;
  color: var(--muted);
}

.product-row #checkoutPrice {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--red);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: clip;
  vertical-align: top;
}

.product-row p strong,
.red {
  color: var(--red);
}

.product-row span {
  color: var(--muted);
  font-size: 14px;
}

.product-row b {
  color: var(--green-dark);
}

.plan-card h2 {
  margin-bottom: 12px;
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-option {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #d9ebe4;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.plan-option span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.plan-option strong {
  color: var(--red);
  font-size: 14px;
  line-height: 1.25;
}

.plan-option.is-active {
  border-color: var(--green);
  background: #effbf5;
  box-shadow: 0 8px 22px rgba(23, 185, 130, 0.14);
}

.custom-price-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(32, 201, 141, 0.22);
  border-radius: 8px;
  background: #f7fbf9;
}

.custom-price-box span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.custom-price-box input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(32, 201, 141, 0.36);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  outline: 0;
}

.custom-price-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(32, 201, 141, 0.12);
}

.custom-price-box small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stepper button {
  width: 28px;
  height: 28px;
  border: 1px solid #bfe8db;
  border-radius: 7px;
  color: var(--green-dark);
  font-size: 22px;
}

.checkout-card textarea {
  width: 100%;
  height: 104px;
  margin-top: 16px;
  border: 0;
  outline: 0;
  border-radius: 8px;
  background: #fafafa;
  padding: 16px;
  resize: none;
}

.pay-bar {
  position: sticky;
  bottom: 70px;
  margin: 18px -14px 0;
  padding: 12px 16px;
  background: #fff;
}

#payment {
  padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
}

#payment .pay-bar {
  position: fixed;
  left: 50%;
  bottom: calc(102px + env(safe-area-inset-bottom, 0px));
  z-index: 31;
  width: min(100vw, 430px);
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(25, 35, 32, 0.14);
  transform: translateX(-50%);
}

#payment:not(.is-active) .pay-bar {
  display: none;
}

.pay-bar span {
  color: var(--red);
}

.pay-bar button {
  width: 132px;
  height: 48px;
  font-size: 17px;
}

.order-status-card {
  margin-top: 14px;
  padding: 16px;
}

.card-head h2 {
  margin: 0;
}

.card-head button {
  color: var(--muted);
}

.order-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.order-icons button {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #5f6663;
}

.order-icons button:first-line {
  color: var(--green);
}

.order-card {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
}

.order-card h3 {
  margin: 0 0 8px;
}

.order-card p {
  margin: 4px 0;
  color: var(--muted);
}

.profile-hero {
  margin: 0 -14px;
  padding: 28px 20px 82px;
  background: linear-gradient(135deg, #18b981, #58dc9d);
  color: #fff;
}

.profile-hero.compact {
  padding-bottom: 36px;
}

.hero-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
  text-align: center;
  font-size: 15px;
}

.hero-actions-row button {
  color: #fff;
  line-height: 1.7;
}

.profile-main {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
}

.profile-main img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-main h2 {
  margin: 0 0 6px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.profile-card {
  margin-top: -50px;
  padding: 16px;
}

.profile-card.flat {
  margin-top: 14px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.own-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.wallet-box {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wallet-box[data-feature] {
  cursor: pointer;
}

.wallet-box strong {
  display: block;
  color: var(--green-dark);
  font-size: 20px;
  white-space: nowrap;
}

.wallet-box button {
  float: right;
  margin-top: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.account-card {
  display: grid;
  gap: 12px;
}

.account-info-list {
  display: grid;
  gap: 8px;
}

.account-info-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6fbf8;
}

.account-info-list span {
  color: var(--muted);
}

.account-info-list strong {
  min-width: 0;
  color: var(--ink);
  word-break: break-word;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-actions > :only-child {
  grid-column: 1 / -1;
}

.toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle span {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d9d9d9;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: 0.18s ease;
}

.toggle input:checked + span {
  background: var(--green);
}

.toggle input:checked + span::after {
  transform: translateX(20px);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 10px;
  margin-top: 18px;
}

.menu-grid button {
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 14px;
}

.menu-grid i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a65, #5cd99e);
  color: #fff;
  font-style: normal;
}

.list-menu {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.list-menu button {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  font-size: 17px;
}

.list-menu button:last-child {
  border-bottom: 0;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100vw, 430px);
  min-height: 82px;
  padding: 7px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #cfd9d5;
  background: #fff;
  box-shadow: 0 -10px 28px rgba(25, 35, 32, 0.12);
  transform: translateX(-50%);
}

.is-hidden {
  display: none !important;
}

.tabbar button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 62px;
  border-radius: 10px;
  color: #111816;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.tabbar span {
  color: #111816;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.tabbar .is-active {
  color: #00845f;
  background: #e9fbf4;
}

.tabbar .is-active span {
  color: #00845f;
}

.floating-chat-btn {
  position: fixed;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  z-index: 29;
  display: grid;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(13, 172, 124, 0.3);
}

.floating-chat-btn img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.floating-chat-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.float-back {
  position: sticky;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  height: 52px;
  margin-top: 18px;
  font-size: 18px;
}

#techs .tech-list {
  padding-bottom: 92px;
}

#techs .float-back {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  z-index: 29;
  width: auto;
  min-width: 82px;
  height: 38px;
  margin: 0;
  padding: 0 14px;
  box-shadow: 0 10px 24px rgba(20, 173, 128, 0.26);
  font-size: 14px;
}

.detail-hero {
  margin: 0 -14px;
  padding: 22px 16px 26px;
  background: linear-gradient(135deg, #19bd86, #7fe6a7);
  color: #fff;
}

.detail-main {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
}

.detail-main-photo {
  position: relative;
  width: 86px;
  height: 86px;
}

.detail-main-photo img {
  width: 86px;
  height: 86px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  object-fit: cover;
}

.detail-main-photo span {
  position: absolute;
  right: -2px;
  bottom: -2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
}

.detail-main h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.detail-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.detail-stats strong,
.detail-stats span {
  display: block;
}

.detail-stats strong {
  color: var(--green-dark);
  font-size: 20px;
}

.detail-stats span,
.detail-card p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.profile-info-grid article {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f6fbf8;
}

.profile-info-grid span,
.profile-info-grid strong {
  display: block;
}

.profile-info-grid span {
  color: var(--muted);
  font-size: 12px;
}

.profile-info-grid strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.photo-manager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.photo-grid.managed {
  grid-template-columns: repeat(3, 1fr);
}

.upload-locked,
.permission-note,
.admin-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.upload-locked {
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f3f6f5;
  text-align: center;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.photo-upload-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.photo-upload-card button {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f5f4;
}

.photo-upload-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-upload-card.is-main img {
  aspect-ratio: 16 / 10;
}

.photo-upload-card strong {
  color: var(--ink);
  font-size: 13px;
}

.photo-upload-card label {
  display: inline-grid;
  place-items: center;
  height: 32px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.photo-upload-card input {
  display: none;
}

.admin-people-photo-list {
  display: grid;
  gap: 14px;
}

.admin-person-photo-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(32, 201, 141, 0.16);
  border-radius: 10px;
  background: #f8fbfa;
}

.admin-person-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-person-head img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-person-head strong,
.admin-person-head span {
  display: block;
  min-width: 0;
}

.admin-person-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-person-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.address-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.address-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.address-item.is-active {
  border-color: var(--green);
  background: var(--green-soft);
}

.address-item strong,
.address-item span {
  display: block;
}

.address-item span,
.address-form input,
.address-form textarea {
  color: var(--muted);
}

.address-form {
  display: grid;
  gap: 12px;
}

.address-form input,
.address-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 12px;
  outline: 0;
}

.address-form textarea {
  min-height: 90px;
  resize: none;
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.date-strip button,
.time-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4d5552;
}

.date-strip button.is-active,
.time-grid button.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.wide-btn {
  width: 100%;
}

.soft-btn {
  height: 44px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.success-panel {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding: 28px 18px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #8ee58b);
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}

.pending-icon {
  background: linear-gradient(135deg, #ffb84d, #ff7b54);
}

.pending-panel {
  text-align: center;
}

.payment-proof-form {
  display: grid;
  gap: 10px;
}

.success-panel h2 {
  margin: 0;
  font-size: 24px;
}

.success-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.success-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f8faf9;
  text-align: left;
}

.success-summary span {
  color: var(--muted);
}

.success-summary strong {
  text-align: right;
}

.payment-summary {
  margin-top: 14px;
}

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

.payment-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.payment-card.is-active {
  border-color: var(--green);
  background: var(--green-soft);
}

.payment-card strong {
  font-size: 16px;
}

.payment-card span,
.payment-card small {
  color: var(--muted);
  line-height: 1.45;
}

.form-feature-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.form-feature-card > p,
.admin-login-card p,
.admin-login-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dynamic-form-fields {
  display: grid;
  gap: 12px;
}

.field-label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.field-label span {
  font-size: 14px;
}

.field-label.inline-field {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.field-label.inline-field span {
  white-space: nowrap;
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: 0;
}

.field-label textarea {
  min-height: 96px;
  resize: vertical;
}

.submission-list {
  display: grid;
  gap: 10px;
}

.submission-list article {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  background: #f6faf8;
  padding: 12px;
}

.submission-list strong {
  color: var(--green-dark);
}

.submission-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-login-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-login-card small {
  color: #d84848;
}

.admin-hero {
  margin: 0 -14px;
  padding: 22px 18px;
  background: linear-gradient(135deg, #13251f, #1abc88);
  color: #fff;
}

.admin-hero p,
.admin-hero h2,
.admin-hero span {
  display: block;
  margin: 0;
}

.admin-hero h2 {
  margin-top: 6px;
  font-size: 24px;
}

.admin-hero span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-stats article,
.admin-panel,
.admin-row {
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-stats article {
  padding: 14px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 13px;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tabs button {
  min-width: max-content;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.admin-tabs button.is-active {
  background: var(--green);
  color: #fff;
}

.admin-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-panel h2 {
  margin: 0;
  font-size: 18px;
}

.admin-chat-dock {
  margin-top: 14px;
  border: 1px solid rgba(32, 201, 141, 0.18);
}

.admin-chat-dock .card-head button {
  color: var(--green-dark);
  font-weight: 800;
}

.admin-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.admin-row p {
  margin: 0;
  color: var(--muted);
}

.approval-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
}

.approval-summary article {
  padding: 12px;
  border: 1px solid rgba(32, 201, 141, 0.18);
  border-radius: 10px;
  background: #f7fbf9;
}

.approval-summary span,
.approval-head span,
.approval-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.approval-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 22px;
}

.approval-row {
  gap: 10px;
  border-color: rgba(32, 201, 141, 0.18);
  background: #fff;
}

.approval-row.is-pending {
  border-color: rgba(32, 201, 141, 0.42);
  box-shadow: 0 10px 24px rgba(32, 201, 141, 0.1);
}

.approval-row.is-done {
  background: #f8faf9;
}

.admin-order-row {
  gap: 10px;
  border-color: rgba(16, 30, 25, 0.08);
}

.referral-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.referral-code-row strong {
  color: var(--green-dark);
  font-size: 20px;
  letter-spacing: 0;
}

.approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff7e8;
  color: #b26b00;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.status-pill.is-approved {
  background: var(--green-soft);
  color: var(--green-dark);
}

.status-pill.is-rejected {
  background: #fff0f0;
  color: var(--red);
}

.status-pill.is-working {
  background: #eef5ff;
  color: #2070c9;
}

.approval-meta {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #f8faf9;
}

.admin-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-actions .primary-admin-btn {
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.admin-actions .danger-admin-btn {
  border: 1px solid rgba(207, 61, 51, 0.18);
  background: #fff0f0;
  color: var(--red);
  font-weight: 900;
}

.sync-form {
  display: grid;
  gap: 10px;
}

.sync-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sync-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--text);
}

.sync-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sync-status-grid article {
  padding: 12px;
  border: 1px solid #d9ebe4;
  border-radius: 8px;
  background: #f7fcfa;
}

.sync-status-grid span {
  color: var(--muted);
  font-size: 12px;
}

.sync-status-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: 15px;
}

.admin-chat-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.chat-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 390px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 10px;
  background: #f5f8f7;
}

.chat-messages.is-admin-preview {
  max-height: 260px;
}

.chat-bubble {
  width: min(86%, 320px);
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 29, 23, 0.06);
}

.chat-bubble.is-customer {
  justify-self: end;
  background: var(--green);
  color: #fff;
}

.chat-bubble strong,
.chat-bubble p,
.chat-bubble span {
  display: block;
  margin: 0;
}

.chat-bubble p {
  margin-top: 5px;
  line-height: 1.55;
}

.chat-translation {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(32, 201, 141, 0.1);
}

.chat-bubble.is-customer .chat-translation {
  background: rgba(255, 255, 255, 0.18);
}

.chat-translation span,
.chat-translation p {
  display: block;
  margin: 0;
}

.chat-translation span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.chat-bubble.is-customer .chat-translation span {
  color: rgba(255, 255, 255, 0.88);
}

.chat-translation p {
  margin-top: 4px;
  line-height: 1.55;
}

.chat-plain-translations {
  display: grid;
  gap: 3px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgb(255 255 255 / 35%);
}

.chat-plain-translations p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.chat-hidden-media {
  display: none !important;
}

.chat-bubble span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.chat-bubble.is-customer span {
  color: rgba(255, 255, 255, 0.76);
}

.chat-media-image {
  display: block;
  width: min(180px, 100%);
  margin-top: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.chat-media-image img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.chat-audio {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.task-hero {
  margin: 0 -14px 14px;
  padding: 28px 22px 54px;
  background: linear-gradient(135deg, #0d6b5a, #2bd38f);
  color: #fff;
}

.task-hero span,
.task-hero h2,
.task-hero p {
  display: block;
  margin: 0;
}

.task-hero span {
  font-weight: 800;
  opacity: 0.88;
}

.task-hero h2 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.12;
}

.task-hero p {
  margin-top: 10px;
  max-width: 330px;
  line-height: 1.55;
  opacity: 0.9;
}

.task-compose-card {
  display: grid;
  gap: 12px;
  margin-top: -42px;
}

.task-compose-card h2,
.task-compose-card p {
  margin: 0;
}

.task-compose-card p {
  color: var(--muted);
  line-height: 1.55;
}

.task-form {
  display: grid;
  gap: 10px;
}

.task-form input,
.task-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(22, 168, 122, 0.2);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
  outline: 0;
}

.task-form textarea {
  min-height: 92px;
  resize: vertical;
}

.task-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.task-card,
.chat-layout-card {
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.task-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.task-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.task-card-head strong,
.task-card-head span,
.task-card p {
  display: block;
  margin: 0;
  min-width: 0;
}

.task-card-head strong {
  font-size: 18px;
}

.task-card-head span,
.task-card p,
.task-meta {
  color: var(--muted);
  line-height: 1.5;
}

.task-card-head b {
  color: #d93636;
  white-space: nowrap;
}

.task-meta,
.task-timeline,
.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-meta span,
.task-timeline span,
.task-done {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f1fbf6;
  color: var(--green-dark);
  font-size: 12px;
}

.task-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.chat-layout-card {
  display: grid;
  gap: 12px;
  margin-top: -42px;
  padding: 12px;
}

.chat-contact-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.friend-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(32, 201, 141, 0.16);
  border-radius: 10px;
  background: #f8fbfa;
}

.friend-panel-head {
  display: grid;
  gap: 4px;
}

.friend-panel-head strong,
.friend-panel-head span {
  display: block;
}

.friend-panel-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.friend-candidate-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.friend-candidate-row::-webkit-scrollbar {
  display: none;
}

.friend-candidate-row article {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.friend-candidate-row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.friend-candidate-row span {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-candidate-row button,
.friend-request-list button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.friend-request-list {
  display: grid;
  gap: 8px;
}

.friend-request-list article {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.friend-request-list span {
  min-width: 0;
  flex: 1 1 160px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chat-contact-list button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(32, 201, 141, 0.18);
  border-radius: 8px;
  background: #f8fbfa;
}

.chat-contact-list button.is-active {
  border-color: var(--green);
  background: var(--green-soft);
}

.chat-contact-list img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-contact-list span {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-window-card,
.chat-window-head {
  display: grid;
  gap: 10px;
}

.chat-window-head strong,
.chat-window-head span {
  display: block;
}

.chat-window-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chat-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chat-upload-row label {
  display: grid;
  place-items: center;
  min-height: 38px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.chat-upload-row input {
  display: none;
}

.download-hero {
  margin: 0 -14px;
  padding: 36px 22px 82px;
  background: linear-gradient(135deg, #0f6b55, #21c98d);
  color: #fff;
}

.download-hero span,
.download-hero h2,
.download-hero p {
  display: block;
  margin: 0;
}

.download-hero span {
  font-weight: 800;
  opacity: 0.86;
}

.download-hero h2 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.12;
}

.download-hero p {
  margin-top: 14px;
  max-width: 310px;
  line-height: 1.65;
  opacity: 0.88;
}

.download-card {
  display: grid;
  gap: 14px;
  margin-top: -54px;
}

.download-detect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-detect article {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f3fbf7;
}

.download-detect span,
.download-detect strong {
  display: block;
}

.download-detect span {
  color: var(--muted);
  font-size: 12px;
}

.download-detect strong {
  margin-top: 6px;
  color: var(--ink);
  word-break: break-word;
}

.download-recommend,
.download-tips {
  display: grid;
  gap: 10px;
}

.download-recommend h2,
.download-recommend p,
.download-tips h3,
.download-tips p {
  margin: 0;
}

.download-recommend p,
.download-tips p {
  color: var(--muted);
  line-height: 1.6;
}

.download-actions {
  display: grid;
  gap: 10px;
}

.download-actions a,
.download-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
}

.chat-form {
  display: grid;
  gap: 10px;
}

.chat-form textarea {
  min-height: 84px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.chat-form.compact {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.chat-form.compact textarea {
  min-height: 54px;
}

.admin-chat-head {
  display: grid;
  gap: 4px;
}

.admin-chat-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feature-panel {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 24px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 34px;
  font-weight: 900;
}

.feature-panel h2 {
  margin: 0;
  font-size: 22px;
}

.feature-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-body {
  display: grid;
  gap: 12px;
  text-align: left;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-stats article,
.feature-list article,
.feature-records article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 12px;
}

.feature-stats span,
.feature-list p,
.feature-records p {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: 20px;
}

.feature-list,
.feature-records,
.feature-quick-form {
  display: grid;
  gap: 10px;
}

.feature-list h3,
.feature-records h3,
.feature-quick-form h3 {
  margin: 0;
  font-size: 16px;
}

.feature-list strong,
.feature-records strong {
  display: block;
  margin-bottom: 5px;
}

.feature-quick-form input,
.feature-quick-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 12px;
  outline: 0;
}

.feature-quick-form textarea {
  min-height: 84px;
  resize: vertical;
}

.feature-actions {
  display: grid;
  gap: 10px;
}

.worker-feature-panel {
  text-align: left;
}

.worker-feature-panel .feature-icon,
.worker-feature-panel h2,
.worker-feature-panel p {
  text-align: center;
}

.worker-detail-list {
  display: grid;
  gap: 10px;
}

.worker-detail-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: #f6faf8;
  padding: 0 14px;
  color: var(--muted);
}

.worker-detail-row strong {
  color: var(--ink);
  text-align: right;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.image-viewer.is-hidden {
  display: none;
}

.image-viewer img {
  max-width: min(92vw, 520px);
  max-height: 72vh;
  border-radius: 8px;
  object-fit: contain;
}

.image-viewer p {
  margin: 12px 0 0;
  color: #fff;
  font-weight: 700;
}

.image-viewer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.image-viewer-nav.is-hidden {
  display: none;
}

.image-viewer-previous {
  left: max(12px, calc(50% - 310px));
}

.image-viewer-next {
  right: max(12px, calc(50% - 310px));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 50;
  min-width: 180px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-update-banner {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 80;
  width: min(390px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(32, 201, 141, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(27, 44, 38, 0.16);
  transform: translateX(-50%);
}

.app-update-banner.is-hidden {
  display: none;
}

.app-update-banner strong,
.app-update-banner span {
  display: block;
  min-width: 0;
}

.app-update-banner strong {
  font-size: 14px;
}

.app-update-banner span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.app-update-banner button {
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.app-update-banner .update-close {
  min-width: 48px;
  background: #eef4f1;
  color: #5f6b66;
}

@media (min-width: 760px) {
  body {
    padding: 24px 0;
  }

  .phone-shell {
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    border-radius: 26px;
  }

  .page {
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
  }

  .tabbar {
    bottom: 24px;
  }

  .floating-chat-btn {
    bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .service-card,
  .tech-card,
  .product-row {
    grid-template-columns: 76px 1fr;
  }

  .service-card img,
  .tech-card img,
  .product-row img {
    width: 76px;
    height: 76px;
  }

  .order-btn,
  .time-box,
  .stepper {
    grid-column: 1 / -1;
  }

  .order-btn.card-order-btn {
    grid-column: auto;
  }
}
.address-required-row {
  border: 1px solid rgba(21, 181, 120, 0.3);
  border-radius: 14px;
  background: #f2fbf7;
  margin-bottom: 8px;
  padding: 12px;
}

.address-required-row span {
  max-width: 68%;
  text-align: right;
  white-space: normal;
}

.address-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.gateway-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e8;
  color: #8a5b00;
  font-size: 12px;
  line-height: 1.55;
}

.price-editor {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 23, 18, 0.62);
}

.price-editor.is-hidden {
  display: none;
}

.price-editor-card {
  width: min(100%, 420px);
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.price-editor-card .card-head {
  margin-bottom: 10px;
}

.price-editor-card .card-head button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
}

.price-editor-card > p {
  margin: 0 0 14px;
  color: #607168;
}

.price-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.profile-account-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.profile-logout-btn,
.admin-logout-btn {
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
}

.admin-hero {
  position: relative;
}

.admin-logout-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #087b58;
  background: #fff;
}

.task-waiting {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f2f6f4;
  color: #63756c;
  font-size: 12px;
}

@media (max-width: 420px) {
  .price-editor {
    align-items: end;
    padding: 0;
  }

  .price-editor-card {
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

#order {
  padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
}

#order .plan-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

#order .plan-option {
  min-width: 0;
  min-height: 68px;
  padding: 9px 7px;
}

#order .plan-option span {
  font-size: 12px;
}

#order .plan-option strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

#order .pay-bar {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 31;
  width: min(100vw, 430px);
  margin: 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(25, 35, 32, 0.14);
  transform: translateX(-50%);
}

#order:not(.is-active) .pay-bar {
  display: none;
}
