:root {
  --bg: #f9f9ff;
  --surface: #ffffff;
  --soft: #f1f3ff;
  --soft-2: #e9edff;
  --text: #141b2b;
  --muted: #5a6577;
  --line: #e0e5f2;
  --primary: #ff7011;
  --primary-dark: #a83300;
  --primary-soft: #fff2e6;
  --green: #16a34a;
  --green-soft: #e9f8ef;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --red: #dc2626;
  --red-soft: #fff0ee;
  --shadow: 0 8px 28px rgba(20, 27, 43, 0.07);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 94px;
}

.app-shell.route-chat {
  padding-bottom: 0;
}

.app-shell.route-login,
.app-shell.route-register,
.app-shell.route-providerOrders,
.app-shell.route-personalInfo {
  padding-bottom: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f7f7fd;
  border-bottom: 0;
  backdrop-filter: blur(14px);
}

.topbar-inner,
.page {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar-inner {
  min-height: 90px;
  padding: 16px 11px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
  overflow: hidden;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(255, 112, 17, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-pill {
  min-width: 136px;
  height: 59px;
  border: 1px solid #f1dfd6;
  border-radius: 999px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #111827;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 27, 43, 0.08);
  font-size: 18px;
  font-weight: 800;
}

.city-pill .material-symbols-outlined {
  color: var(--primary);
  font-size: 29px;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 32;
}

.notice-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: transparent;
}

.notice-btn .material-symbols-outlined {
  font-size: 34px;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 40;
}

.notice-btn .dot {
  top: -2px;
  right: -2px;
}

.page {
  padding: 18px 16px 26px;
}

.view {
  display: grid;
  gap: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  min-height: 176px;
  padding: 26px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(224, 229, 242, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-copy h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.18;
  max-width: 620px;
}

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

.hero-kv {
  width: 100%;
  margin-top: 18px;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(255, 112, 17, 0.12);
}

.service-image,
.detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-panel,
.card,
.form-card,
.admin-card,
.profile-head,
.detail-panel {
  background: var(--surface);
  border: 1px solid rgba(224, 229, 242, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.hero-search {
  padding: 0;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f7fb;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

.field:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 112, 17, 0.1);
}

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

.btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text);
  background: var(--soft);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
}

.search-submit {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 800;
}

.favorite-solid {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.btn.secondary {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn.danger {
  color: var(--red);
  background: var(--red-soft);
}

.btn.icon {
  width: 42px;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
}

.badge.orange {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.badge.green {
  color: #08712f;
  background: var(--green-soft);
}

.badge.blue {
  color: #174aa6;
  background: var(--blue-soft);
}

.badge.red {
  color: var(--red);
  background: var(--red-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 4px;
}

.section-head h2,
.section-head h1,
.card h3,
.form-card h2 {
  margin: 0;
}

.section-head p,
.muted {
  color: var(--muted);
}

.section-head p {
  margin: 5px 0 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  text-align: center;
  color: var(--muted);
}

.category-tile.active {
  border-color: rgba(255, 112, 17, 0.36);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-image-wrap {
  height: 172px;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.cover-carousel {
  position: relative;
  overflow: hidden;
}

.cover-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  animation: coverFade calc(var(--cover-count) * 3s) infinite;
  animation-delay: calc(var(--slide-index) * 3s);
}

.cover-carousel.single .cover-slide {
  opacity: 1;
  animation: none;
}

.cover-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 27, 43, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.cover-dots {
  position: absolute;
  left: 12px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.cover-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  animation: dotFade calc(var(--cover-count) * 3s) infinite;
  animation-delay: calc(var(--slide-index) * 3s);
}

@keyframes coverFade {
  0%,
  8%,
  38% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes dotFade {
  0%,
  8%,
  38% {
    transform: scale(1.35);
    background: #fff;
  }

  46%,
  100% {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.7);
  }
}

.inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
}

.card-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.card-body h3 {
  font-size: 17px;
  line-height: 1.35;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.price-row,
.card-actions,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-card .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.service-card .card-actions .btn {
  width: 100%;
}

.price {
  color: var(--primary);
  font-weight: 800;
  font-size: 23px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(224, 229, 242, 0.9);
  backdrop-filter: blur(14px);
}

.bottom-nav-inner {
  width: min(680px, 100%);
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 13px;
  position: relative;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.dot {
  position: absolute;
  top: 8px;
  right: calc(50% - 18px);
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid #fff;
}

.tabs,
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab,
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
  white-space: nowrap;
}

.tab.active,
.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.category-page {
  display: grid;
  gap: 12px;
}

.category-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
}

.category-search-input {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8e8a96;
  background: #f0f2ff;
}

.category-search-input .material-symbols-outlined {
  font-size: 24px;
}

.category-search-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.category-search-input input::placeholder {
  color: #8e8a96;
}

.category-search-btn {
  min-height: 56px;
  border-radius: 16px;
  font-weight: 800;
}

.category-layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  min-height: 620px;
  border-top: 1px solid #f2e6df;
}

.category-side {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  display: grid;
  background: #fff;
  border-right: 1px solid #f2e6df;
}

.category-side-item {
  min-height: 74px;
  border: 0;
  position: relative;
  color: #7b625d;
  background: #fff;
  font-size: 16px;
}

.category-side-item.active {
  color: var(--primary);
  font-weight: 800;
}

.category-side-item.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(-50%);
}

.category-content {
  min-width: 0;
  padding: 12px 0 8px 14px;
  display: grid;
  gap: 14px;
}

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

.subcategory-pill {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #71676a;
  background: #e9edff;
  font-weight: 700;
}

.subcategory-pill.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.subcategory-empty {
  grid-column: 1 / -1;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #8e8a96;
  background: #f0f2ff;
  border-radius: 14px;
}

.category-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.category-result-head h1 {
  margin: 0;
  font-size: 24px;
}

.filter-pill {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5a5868;
  background: #e9edff;
  font-weight: 700;
}

.category-service-list {
  display: grid;
  gap: 18px;
}

.category-service-card {
  overflow: hidden;
  border: 1px solid #f1e5df;
  border-radius: 16px;
  position: relative;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 27, 43, 0.06);
}

.category-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.category-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.category-card-badges {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  gap: 8px;
}

.category-card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.category-card-body h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.category-card-body p {
  margin: 0;
  color: #7a6560;
  line-height: 1.65;
}

.category-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #7a6560;
  border-bottom: 1px solid #f1e8e3;
  padding-bottom: 12px;
}

.star {
  color: var(--primary);
}

.category-card-price {
  display: grid;
  gap: 3px;
  color: #7a6560;
}

.category-card-price strong {
  color: var(--primary);
  font-size: 26px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 340px;
  gap: 16px;
  align-items: start;
}

.detail-cover-wrap {
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--soft);
}

.detail-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.detail-panel h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
}

.detail-mobile-page {
  min-height: calc(100vh - 94px);
  padding: 88px 0 164px;
  background: #f7f8ff;
}

.detail-mobile-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  width: min(640px, 100%);
  height: 88px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  background: #f8f8ff;
  transform: translateX(-50%);
}

.detail-mobile-header h1 {
  margin: 0;
  color: #202535;
  font-size: 30px;
  font-weight: 500;
}

.detail-mobile-header button {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #202535;
  background: transparent;
}

.detail-mobile-header button:last-child {
  justify-self: end;
}

.detail-mobile-header .material-symbols-outlined {
  font-size: 34px;
}

.detail-gallery {
  position: relative;
  height: 412px;
  overflow: hidden;
  background: var(--soft);
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-gallery span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 54px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 27, 43, 0.78);
  font-size: 18px;
}

.detail-content {
  padding: 24px 26px 0;
  background: #f7f8ff;
}

.detail-content > h2 {
  margin: 0 0 24px;
  color: #202535;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.2;
}

.detail-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #6f5b55;
  font-size: 20px;
}

.detail-rating-row strong {
  color: #eab308;
  font-size: 30px;
  line-height: 1;
}

.detail-rating-row i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e9c5bc;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.detail-tags span {
  border-radius: 999px;
  padding: 7px 16px;
  color: #fff;
  background: #22c55e;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.detail-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 34px;
}

.detail-price-line strong {
  color: var(--primary);
  font-size: 32px;
  line-height: 1;
}

.detail-price-line span {
  color: #6f5b55;
  font-size: 17px;
}

.detail-assurance {
  margin-bottom: 24px;
  border-radius: 14px;
  padding: 28px 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 42px;
  background: #eef2ff;
}

.detail-assurance div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #202535;
  font-size: 20px;
}

.detail-assurance .material-symbols-outlined {
  color: #078943;
  font-size: 24px;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 28;
}

.detail-provider-box {
  margin-bottom: 34px;
  border: 1px solid #ffc8b4;
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #fff;
}

.detail-provider-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #475569);
  font-size: 28px;
  font-weight: 800;
}

.detail-provider-box strong {
  display: block;
  margin-bottom: 5px;
  color: #202535;
  font-size: 24px;
  font-weight: 500;
}

.detail-provider-box span {
  color: #6f5b55;
  font-size: 17px;
}

.detail-provider-box button {
  min-width: 96px;
  height: 48px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 18px;
}

.detail-copy-section {
  margin-bottom: 34px;
}

.detail-copy-section h3 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 22px;
  color: #202535;
  font-size: 25px;
  font-weight: 500;
}

.detail-copy-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1em;
  border-radius: 999px;
  background: var(--primary);
  transform: translateY(-50%);
}

.detail-copy-section p {
  margin: 0 0 22px;
  color: #6f5b55;
  font-size: 20px;
  line-height: 1.65;
}

.detail-photo-card {
  min-height: 300px;
  margin-bottom: 34px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
}

.detail-photo-card img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.detail-photo-grid {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.detail-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  background: var(--soft);
}

.detail-review-section {
  padding-bottom: 18px;
}

.detail-review-section .empty,
.detail-review-section .review-box {
  background: #fff;
}

.detail-book-bar {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 42;
  width: min(640px, 100%);
  min-height: 112px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(20, 27, 43, 0.06);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.detail-fav-btn {
  border: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #7a6560;
  background: transparent;
  font-size: 13px;
}

.detail-fav-btn .material-symbols-outlined {
  font-size: 34px;
}

.detail-fav-btn.active {
  color: var(--primary);
}

.detail-book-btn {
  height: 72px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 24px rgba(255, 112, 17, 0.24);
  font-size: 26px;
}

.provider-card,
.timeline,
.stats-grid,
.order-card,
.log-list {
  display: grid;
  gap: 10px;
}

.chat-thread {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f7fb;
}

.chat-line {
  max-width: 82%;
  display: grid;
  gap: 4px;
  justify-self: start;
}

.chat-line span {
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-line.me {
  justify-self: end;
}

.chat-line.me span {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 14px 14px 4px 14px;
}

.chat-line small {
  color: var(--muted);
}

.chat-line.me small {
  text-align: right;
}

.messages-page {
  min-height: calc(100vh - 76px);
  padding: 0 0 118px;
  background: #fff;
}

.messages-header {
  height: 112px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 44px 1fr 64px;
  align-items: center;
  gap: 20px;
  background: #f8f8ff;
}

.messages-header button {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #202535;
  background: transparent;
}

.messages-header .material-symbols-outlined {
  font-size: 36px;
}

.messages-header h1 {
  margin: 0;
  color: #202535;
  font-size: 34px;
  font-weight: 500;
}

.message-user-avatar {
  width: 44px;
  height: 44px;
  border: 2px solid #f1dfd6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #a16207);
  font-size: 20px;
  font-weight: 800;
}

.message-search {
  height: 88px;
  margin: 32px;
  border-radius: 22px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--primary);
  background: #eef1ff;
}

.message-search .material-symbols-outlined {
  font-size: 34px;
}

.message-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #202535;
  background: transparent;
  font-size: 24px;
}

.message-search input::placeholder {
  color: #9b8b87;
}

.conversation-list {
  display: grid;
}

.reminder-panel {
  margin: 0 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: #fff;
}

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

.reminder-head h2,
.reminder-head p {
  margin: 0;
}

.reminder-head p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

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

.reminder-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  color: var(--text);
  background: #fbfcff;
}

.reminder-item.unread {
  border-color: rgba(255, 112, 17, 0.36);
  background: var(--primary-soft);
}

.reminder-item > span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fff;
}

.reminder-item strong,
.reminder-item p,
.reminder-item small {
  display: block;
}

.reminder-item p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.5;
}

.reminder-item small {
  color: #8a94a6;
}

.conversation-item {
  min-height: 132px;
  border: 0;
  border-bottom: 1px solid #edf0fb;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  color: #202535;
  background: #fff;
  text-align: left;
}

.conversation-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  overflow: visible;
}

.conversation-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-avatar.system {
  background: var(--primary);
}

.conversation-avatar .material-symbols-outlined {
  font-size: 34px;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 36;
}

.conversation-avatar em {
  position: absolute;
  right: -8px;
  top: -4px;
  min-width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.conversation-avatar i {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #078943;
}

.conversation-item strong {
  display: block;
  margin-bottom: 9px;
  color: #202535;
  font-size: 27px;
  font-weight: 500;
}

.conversation-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #6f5b55;
  font-size: 22px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item time {
  align-self: start;
  margin-top: 18px;
  color: #8a7670;
  font-size: 20px;
  white-space: nowrap;
}

.message-recommend {
  padding: 42px 32px 0;
}

.message-recommend h2 {
  margin: 0 0 26px;
  color: #202535;
  font-size: 30px;
  font-weight: 500;
}

.message-recommend > div {
  display: flex;
  gap: 22px;
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.message-recommend > div::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.message-recommend button {
  width: 250px;
  min-height: 142px;
  border: 1px solid #f1dfd6;
  border-radius: 18px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: #202535;
  background: #eef1ff;
  text-align: left;
  flex: 0 0 auto;
}

.message-recommend .material-symbols-outlined {
  color: var(--primary);
  font-size: 34px;
}

.message-recommend span {
  font-size: 21px;
}

.message-recommend small {
  color: #8a7670;
  font-size: 17px;
}

.chat-page {
  min-height: calc(100vh - 76px);
  padding: 112px 0 122px;
  background: #f7f8ff;
}

.chat-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 42;
  width: min(640px, 100%);
  height: 112px;
  border-bottom: 1px solid #edf0fb;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 42px 72px 1fr 44px 44px;
  align-items: center;
  gap: 16px;
  background: #f8f8ff;
  transform: translateX(-50%);
}

.chat-header button {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: transparent;
}

.chat-header .material-symbols-outlined {
  font-size: 34px;
}

.chat-header h1 {
  margin: 0 0 3px;
  color: #202535;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.chat-header span {
  color: #078943;
  font-size: 20px;
}

.chat-body {
  padding: 76px 28px 34px;
  display: grid;
  gap: 34px;
}

.chat-date {
  justify-self: center;
  border-radius: 999px;
  padding: 10px 24px;
  color: #6f5b55;
  background: #eef1ff;
  font-size: 18px;
}

.chat-bubble-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.chat-bubble-row.me {
  grid-template-columns: minmax(0, 1fr) 54px;
}

.chat-bubble-row > div:nth-child(2),
.chat-bubble-row.me > div:first-child {
  display: grid;
  gap: 10px;
}

.chat-bubble-row p {
  max-width: 420px;
  margin: 0;
  border-radius: 14px;
  padding: 28px;
  color: #202535;
  background: #eef1ff;
  box-shadow: 0 4px 12px rgba(20, 27, 43, 0.04);
  font-size: 22px;
  line-height: 1.45;
}

.chat-bubble-row.me p {
  justify-self: end;
  color: #fff;
  background: var(--primary);
}

.chat-bubble-row time {
  color: #6f5b55;
  font-size: 17px;
}

.chat-bubble-row.me time {
  justify-self: end;
}

.chat-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  overflow: hidden;
}

.chat-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-mini-avatar.user {
  background: linear-gradient(135deg, #ffedd5, #fb923c);
}

.chat-input-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 44;
  width: min(640px, 100%);
  min-height: 112px;
  border-top: 1px solid #dbe1ef;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 44px 1fr 80px;
  align-items: center;
  gap: 18px;
  background: #fff;
  transform: translateX(-50%);
}

.chat-input-bar input {
  height: 68px;
  border: 0;
  border-radius: 14px;
  padding: 0 26px;
  outline: 0;
  color: #202535;
  background: #eef1ff;
  font-size: 21px;
}

.chat-input-bar button {
  border: 0;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: transparent;
}

.chat-input-bar button:last-child {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
}

.chat-input-bar .material-symbols-outlined {
  font-size: 34px;
}

.orders-page {
  min-height: calc(100vh - 76px);
  padding: 0 26px 118px;
  background: #fff;
}

.orders-header {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
}

.orders-header button {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #202535;
  background: transparent;
}

.orders-header .material-symbols-outlined {
  font-size: 34px;
}

.orders-header h1 {
  margin: 0;
  color: #202535;
  font-size: 30px;
  font-weight: 500;
}

.orders-intro-card {
  margin: 12px 0 34px;
  border: 1px solid #e4e9f8;
  border-radius: 16px;
  padding: 42px;
  display: grid;
  gap: 34px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(20, 27, 43, 0.06);
}

.orders-intro-card h1 {
  margin: 0 0 18px;
  color: #202535;
  font-size: 32px;
  font-weight: 500;
}

.orders-intro-card p {
  margin: 0;
  color: #8a7670;
  font-size: 22px;
  line-height: 1.6;
}

.orders-intro-card button {
  min-height: 72px;
  border: 1px solid #ffd2bf;
  border-radius: 14px;
  color: var(--primary);
  background: #fff9f6;
  font-size: 20px;
}

.orders-tabs {
  margin: 0 -26px 28px 0;
  padding-right: 26px;
  display: flex;
  gap: 14px;
  overflow-x: scroll;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.orders-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.orders-tabs button {
  min-width: 118px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  color: #6f5b55;
  background: #f0f2ff;
  font-size: 19px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.orders-tabs button.active {
  border: 3px solid var(--primary);
  color: var(--primary);
  background: #fff9f6;
}

.orders-list {
  display: grid;
  gap: 30px;
}

.order-ticket-card {
  border: 1px solid #e4e9f8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 27, 43, 0.06);
}

.order-cover {
  width: 100%;
  height: 392px;
  display: block;
  object-fit: cover;
  background: #fff3e8;
}

.order-ticket-body {
  padding: 28px;
}

.order-ticket-body h2 {
  margin: 0 0 18px;
  color: #202535;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.35;
}

.order-badges {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.order-badges span {
  border-radius: 999px;
  padding: 7px 16px;
  color: #fff;
  background: #22c55e;
  font-size: 18px;
}

.order-badges .status {
  color: #a84416;
  background: #fff1e8;
}

.order-badges .status.blue {
  color: #1d4ed8;
  background: #e8f0ff;
}

.order-badges .status.green {
  color: #15803d;
  background: #e9f8ef;
}

.order-badges .status.red {
  color: #dc2626;
  background: #fff0ee;
}

.order-info-list {
  display: grid;
  gap: 16px;
  color: #6f5b55;
  font-size: 22px;
  line-height: 1.35;
}

.order-info-list div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
}

.order-info-list .material-symbols-outlined {
  color: #6f5b55;
  font-size: 25px;
}

.order-status-desc {
  margin: 24px 0 0;
  border-top: 1px solid #edf0fb;
  padding-top: 18px;
  color: #9b8b87;
  font-size: 16px;
  line-height: 1.5;
}

.order-ticket-footer {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.order-ticket-footer strong {
  color: var(--primary);
  font-size: 36px;
}

.order-ticket-footer span {
  color: var(--primary);
  font-size: 17px;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.order-card-actions .btn {
  min-width: 112px;
  height: 54px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 17px;
}

.order-card-actions .btn.ghost {
  border-color: transparent;
  color: #6f5b55;
  background: transparent;
}

.order-card-actions .btn.primary {
  box-shadow: none;
}

.orders-loading {
  min-height: 184px;
  margin: 40px 0 8px;
  border: 1px dashed #f1dfd6;
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #b9b0af;
  background: #fafbff;
  font-size: 20px;
}

.orders-loading .material-symbols-outlined {
  font-size: 52px;
}

.message-compose {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.provider-orders-page {
  min-height: 100vh;
  padding: 0 26px 56px;
  background: #fff;
}

.provider-orders-header {
  height: 112px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
}

.provider-orders-header button {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #604842;
  background: transparent;
}

.provider-orders-header .material-symbols-outlined {
  font-size: 34px;
}

.provider-orders-header h1 {
  margin: 0;
  color: #202535;
  font-size: 30px;
  font-weight: 500;
}

.provider-order-tabs {
  margin: 24px -26px 52px 0;
  padding-right: 26px;
  display: flex;
  gap: 18px;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.provider-order-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.provider-order-tabs button {
  min-width: 128px;
  height: 60px;
  border: 2px solid #e7c7ba;
  border-radius: 999px;
  color: #604842;
  background: #fff;
  font-size: 20px;
  flex: 0 0 auto;
}

.provider-order-tabs button.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.provider-order-list {
  display: grid;
  gap: 42px;
}

.provider-order-card {
  border: 1px solid #f0e7e2;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 27, 43, 0.08);
}

.provider-order-cover {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #fff3e8;
}

.provider-order-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.provider-order-cover span {
  position: absolute;
  left: 24px;
  top: 22px;
  border-radius: 999px;
  padding: 8px 18px;
  color: #8a7d79;
  background: #eee9e5;
  font-size: 18px;
}

.provider-order-body {
  padding: 30px 34px 34px;
}

.provider-order-body h2 {
  margin: 0 0 22px;
  color: #202535;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.35;
}

.provider-order-badges {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.provider-order-badges span {
  border-radius: 999px;
  padding: 8px 18px;
  color: #8a6557;
  background: #f8eee8;
  font-size: 18px;
}

.provider-order-badges span:last-child {
  color: #8a6557;
  background: #f4ebe6;
}

.provider-order-info {
  display: grid;
  gap: 15px;
  color: #604842;
  font-size: 21px;
  line-height: 1.35;
}

.provider-order-info div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
}

.provider-order-info .material-symbols-outlined {
  color: #604842;
  font-size: 24px;
}

.provider-order-divider {
  height: 1px;
  margin: 28px 0 20px;
  background: #eee8e5;
}

.provider-order-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.provider-order-footer span {
  display: block;
  margin-bottom: 4px;
  color: #604842;
  font-size: 18px;
}

.provider-order-footer strong {
  color: var(--primary);
  font-size: 32px;
  line-height: 1;
}

.provider-light-btn {
  min-width: 120px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  color: #b44e21;
  background: #fff1e8;
  font-size: 18px;
}

.provider-order-actions {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.provider-order-actions .btn {
  min-height: 78px;
  border-radius: 999px;
  font-size: 26px;
  box-shadow: 0 10px 22px rgba(20, 27, 43, 0.08);
}

.provider-order-actions .btn.primary {
  background: var(--primary);
}

.provider-order-actions .btn.danger {
  color: #fff;
  background: #c92e34;
}

.provider-order-actions .btn.secondary,
.provider-order-actions .btn.ghost {
  color: #fff;
  background: var(--primary);
}

.provider-order-card.cancelled .provider-order-body h2 {
  color: #604842;
}

.provider-cancel-meta {
  margin-bottom: 18px;
  color: #604842;
  font-size: 18px;
}

.provider-orders-empty {
  margin-top: 40px;
}

.favorites-page {
  min-height: calc(100vh - 76px);
  padding: 0 26px 118px;
  background: #fff;
}

.favorites-header {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
}

.favorites-header button {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #202535;
  background: transparent;
}

.favorites-header .material-symbols-outlined {
  font-size: 34px;
}

.favorites-header h1 {
  margin: 0;
  color: #202535;
  font-size: 30px;
  font-weight: 500;
}

.favorites-summary {
  margin: 28px 0 28px;
  border: 1px solid #e4e9f8;
  border-radius: 18px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(20, 27, 43, 0.06);
}

.favorites-summary h2 {
  margin: 0 0 12px;
  color: #202535;
  font-size: 28px;
  font-weight: 500;
}

.favorites-summary p {
  margin: 0;
  color: #8a7670;
  font-size: 19px;
  line-height: 1.55;
}

.favorites-grid {
  grid-template-columns: 1fr;
}

.favorites-empty {
  display: grid;
  gap: 18px;
}

.favorites-empty .btn {
  justify-self: center;
}

.auth-page {
  min-height: 100vh;
  padding: 0 32px 42px;
  background: #fff;
  color: #202535;
}

.auth-header {
  height: 116px;
  display: grid;
  grid-template-columns: 52px 1fr 80px;
  align-items: center;
}

.auth-header.centered {
  grid-template-columns: 52px 1fr 52px;
}

.auth-header button {
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #202535;
  background: transparent;
}

.auth-header .material-symbols-outlined {
  font-size: 34px;
}

.auth-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
}

.auth-header.centered h1 {
  text-align: center;
}

.auth-header > span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  justify-self: end;
  background: #dce3fb;
}

.auth-copy {
  margin-top: 74px;
  margin-bottom: 78px;
}

.login-page .auth-copy {
  margin-top: 56px;
  margin-bottom: 78px;
}

.auth-copy h2 {
  margin: 0 0 24px;
  color: #111827;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
}

.auth-copy p {
  margin: 0;
  color: #604842;
  font-size: 28px;
  line-height: 1.35;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field-label {
  margin: 24px 0 0 8px;
  color: #604842;
  font-size: 21px;
}

.auth-label-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-label-row .auth-field-label {
  margin: 0 0 0 8px;
}

.auth-label-row button {
  border: 0;
  color: #604842;
  background: transparent;
  font-size: 19px;
}

.auth-field {
  min-height: 112px;
  border-radius: 22px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 40px 1fr 44px;
  align-items: center;
  gap: 16px;
  color: #604842;
  background: #eef1ff;
}

.login-page .auth-field {
  grid-template-columns: 1fr 44px;
}

.auth-field > .material-symbols-outlined {
  font-size: 34px;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #202535;
  background: transparent;
  font-size: 27px;
}

.auth-field input::placeholder {
  color: #8f929f;
}

.auth-field button {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #604842;
  background: transparent;
}

.auth-agreement {
  margin: 34px 0 34px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 22px;
  color: #604842;
  font-size: 24px;
  line-height: 1.35;
}

.auth-agreement input {
  width: 40px;
  height: 40px;
  margin: 0;
  accent-color: var(--primary);
}

.auth-agreement button {
  border: 0;
  padding: 0;
  color: #bc3f0e;
  background: transparent;
  font-size: inherit;
}

.auth-primary-btn {
  min-height: 112px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 18px 34px rgba(255, 112, 17, 0.24);
  font-size: 32px;
}

.auth-primary-btn .material-symbols-outlined {
  font-size: 32px;
}

.auth-switch {
  margin-top: 92px;
  color: #604842;
  text-align: center;
  font-size: 23px;
}

.login-page .auth-switch {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 54px;
}

.auth-switch button {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-size: inherit;
}

.provider-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  overflow: hidden;
}

.avatar.large {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: 28px;
}

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

.form-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.order-card {
  padding: 15px;
}

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

.thumb {
  width: 86px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--soft);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
}

.route-detail .topbar,
.route-chat .topbar,
.route-favorites .topbar,
.route-providerOrders .topbar,
.route-personalInfo .topbar,
.route-changePassword .topbar,
.route-login .topbar,
.route-register .topbar,
.route-orders .topbar,
.route-messages .topbar,
.route-profile .topbar,
.route-settings .topbar,
.route-privacyTerms .topbar,
.route-merchant .topbar {
  display: none;
}

.route-detail .page,
.route-chat .page,
.route-favorites .page,
.route-providerOrders .page,
.route-personalInfo .page,
.route-changePassword .page,
.route-login .page,
.route-register .page,
.route-orders .page,
.route-messages .page,
.route-profile .page,
.route-settings .page,
.route-privacyTerms .page,
.route-merchant .page {
  width: min(640px, 100%);
  padding-top: 0;
}

.profile-center-page {
  min-height: calc(100vh - 94px);
  padding: 52px 28px 132px;
  background: #fff;
}

.profile-center-head {
  display: grid;
  grid-template-columns: 126px 1fr 78px;
  align-items: center;
  gap: 30px;
  margin-bottom: 76px;
}

.profile-avatar-mark {
  width: 126px;
  height: 126px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #ff6f13 0%, #ff5f0b 100%);
  box-shadow: 0 18px 34px rgba(255, 112, 17, 0.22);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
}

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

.profile-identity span {
  display: block;
  margin-bottom: 8px;
  color: #9b8b87;
  font-size: 27px;
  line-height: 1.1;
}

.profile-identity strong {
  display: block;
  color: #111827;
  font-size: 39px;
  font-weight: 500;
  line-height: 1.12;
  word-break: break-word;
}

.profile-identity p {
  margin: 14px 0 0;
  color: #9b8b87;
  font-size: 21px;
  line-height: 1.35;
}

.profile-settings-btn {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(255, 112, 17, 0.28);
}

.profile-settings-btn .material-symbols-outlined {
  font-size: 36px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 40;
}

.profile-stats-card {
  min-height: 168px;
  margin-bottom: 52px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  background: #fff;
  box-shadow: 0 20px 40px rgba(20, 27, 43, 0.09);
}

.profile-stats-card button {
  position: relative;
  height: 100%;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  color: #9b8b87;
  background: transparent;
}

.profile-stats-card button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 62px;
  background: #f0eef4;
  transform: translateY(-50%);
}

.profile-stats-card span {
  font-size: 22px;
}

.profile-stats-card strong {
  color: var(--primary);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.profile-section-title {
  margin: 0 0 34px;
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 54px;
}

.profile-shortcuts button {
  min-height: 104px;
  border: 1px solid #f0eef4;
  border-radius: 22px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 6px 14px rgba(20, 27, 43, 0.06);
  font-size: 24px;
  text-align: left;
}

.profile-shortcuts .material-symbols-outlined {
  color: var(--primary);
  font-size: 34px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 36;
}

.merchant-entry-card {
  min-height: 330px;
  border-radius: 36px;
  padding: 54px 48px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 126, 38, 0.96), rgba(255, 126, 38, 0.78)),
    url("./assets/kv-1.png") right center / auto 118% no-repeat,
    #ff7b22;
  box-shadow: 0 18px 36px rgba(255, 112, 17, 0.17);
}

.merchant-entry-card div {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
}

.merchant-entry-card span {
  font-size: 22px;
}

.merchant-entry-card strong {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.22;
}

.merchant-entry-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.merchant-entry-card button {
  width: 188px;
  height: 74px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 12px 24px rgba(20, 27, 43, 0.12);
  font-size: 24px;
}

.merchant-page {
  min-height: calc(100vh - 94px);
  padding: 0 0 118px;
  background: #f7f8ff;
}

.merchant-header {
  height: 92px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #f8f8ff;
}

.merchant-header h1 {
  margin: 0;
  color: #2b2d35;
  font-size: 30px;
  font-weight: 500;
}

.merchant-back {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #2b2d35;
  background: transparent;
}

.merchant-back .material-symbols-outlined {
  font-size: 34px;
}

.merchant-hero {
  min-height: 320px;
  padding: 36px 28px;
  display: flex;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 27, 43, 0.38), rgba(255, 112, 17, 0.2)),
    url("./assets/kv-1.png") right center / auto 120% no-repeat,
    #f7d5b5;
}

.merchant-hero h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 500;
}

.merchant-hero p {
  margin: 0;
  font-size: 23px;
  color: rgba(255, 255, 255, 0.9);
}

.merchant-section {
  padding: 34px 26px 0;
}

.merchant-section > h2 {
  position: relative;
  margin: 0 0 28px;
  padding-left: 24px;
  color: #202535;
  font-size: 30px;
  font-weight: 500;
}

.merchant-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
}

.merchant-steps {
  position: relative;
  display: grid;
  gap: 22px;
}

.merchant-steps::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 70px;
  bottom: 70px;
  width: 3px;
  background: #ffe0cb;
}

.merchant-step-card {
  position: relative;
  min-height: 132px;
  border: 1px solid #e4e9f8;
  border-radius: 16px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 28px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 27, 43, 0.04);
}

.merchant-step-card > span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-size: 30px;
  font-weight: 800;
}

.merchant-step-card strong {
  display: block;
  margin-bottom: 10px;
  color: #202535;
  font-size: 28px;
  font-weight: 500;
}

.merchant-step-card p {
  margin: 0;
  color: #6f5b55;
  font-size: 21px;
  line-height: 1.35;
}

.merchant-plans {
  display: grid;
  gap: 28px;
}

.merchant-plan-card {
  border: 2px solid #dfe5fb;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.08);
}

.merchant-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.merchant-plan-head strong {
  color: #202535;
  font-size: 27px;
  font-weight: 500;
}

.merchant-plan-head span {
  border-radius: 999px;
  padding: 7px 14px;
  color: #7a6b6a;
  background: #eef1ff;
  font-size: 18px;
  white-space: nowrap;
}

.merchant-plan-card > p {
  margin: 0 0 26px;
  color: #6f5b55;
  font-size: 20px;
}

.merchant-plan-card b {
  color: var(--primary);
  font-size: 34px;
}

.merchant-year-box {
  position: relative;
  min-height: 156px;
  border: 1px solid #ffd7c5;
  border-radius: 10px;
  padding: 34px 28px 24px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--primary);
  background: #fff8f4;
}

.merchant-year-box span {
  font-size: 20px;
}

.merchant-year-box strong {
  font-size: 46px;
  line-height: 1;
}

.merchant-year-box em {
  font-style: normal;
  font-size: 18px;
}

.merchant-year-box i {
  position: absolute;
  right: -13px;
  top: -20px;
  min-width: 84px;
  padding: 10px 12px;
  color: #fff;
  background: #057b3c;
  font-size: 17px;
  font-style: normal;
  text-align: center;
}

.merchant-apply-btn {
  width: calc(100% - 52px);
  min-height: 88px;
  margin: 28px 26px 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 16px 28px rgba(255, 112, 17, 0.24);
  font-size: 28px;
}

.account-page {
  min-height: calc(100vh - 94px);
  padding: 42px 28px 120px;
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 112, 17, 0.13), transparent 24%),
    radial-gradient(circle at 12% 92%, rgba(37, 99, 235, 0.08), transparent 28%),
    #f8f8ff;
}

.account-header {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.account-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.account-back {
  width: 38px;
  height: 38px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: transparent;
}

.account-back .material-symbols-outlined {
  font-size: 30px;
}

.account-user-card {
  min-height: 142px;
  margin-bottom: 28px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 8px;
  background: #eef1ff;
  box-shadow: 0 18px 36px rgba(20, 27, 43, 0.04);
}

.account-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9aa0a6;
  background: #e6e2d8;
  border: 5px solid #fff;
  flex: 0 0 auto;
}

.account-avatar .material-symbols-outlined {
  font-size: 48px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
}

.account-user-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 26px;
  line-height: 1.15;
}

.account-user-card span {
  color: #725c56;
  font-size: 19px;
}

.account-menu {
  margin-bottom: 26px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 27, 43, 0.05);
}

.account-menu-item {
  width: 100%;
  min-height: 86px;
  border: 0;
  border-bottom: 1px solid #edf0fb;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 14px;
  color: var(--text);
  background: #fff;
  text-align: left;
  font-size: 23px;
}

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

.account-menu-item > .material-symbols-outlined:first-child,
.account-menu-item > .material-symbols-outlined:last-child {
  color: var(--primary);
}

.account-menu-item > .material-symbols-outlined:first-child {
  font-size: 28px;
}

.account-menu-item > .material-symbols-outlined:last-child {
  justify-self: end;
  font-size: 30px;
}

.account-logout {
  width: 100%;
  min-height: 86px;
  margin-top: 42px;
  border: 2px solid #ffd2bf;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary);
  background: #fff9f6;
  font-size: 23px;
}

.account-logout .material-symbols-outlined {
  font-size: 30px;
}

.privacy-page {
  min-height: 100vh;
  padding: 0 22px 40px;
  background: #fff;
  color: #202535;
}

.privacy-header {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 72px;
  margin: 0 -22px;
  padding: 0 22px;
  border-bottom: 1px solid #edf0fb;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.privacy-header button {
  width: 38px;
  height: 38px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #202535;
  background: transparent;
}

.privacy-header .material-symbols-outlined {
  font-size: 24px;
}

.privacy-header h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.privacy-document {
  padding: 26px 0 0;
}

.privacy-title {
  margin-bottom: 24px;
  border-bottom: 1px solid #edf0fb;
  padding-bottom: 18px;
}

.privacy-title h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
}

.privacy-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.privacy-section {
  padding: 18px 0;
  border-bottom: 1px solid #f0f2fb;
}

.privacy-section h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
}

.privacy-section h4 {
  margin: 18px 0 8px;
  color: #202535;
  font-size: 16px;
  line-height: 1.4;
}

.privacy-section p,
.privacy-section li {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.85;
}

.privacy-section p {
  margin: 0 0 12px;
}

.privacy-section p:last-child,
.privacy-section ul:last-child,
.privacy-section ol:last-child {
  margin-bottom: 0;
}

.privacy-section ul,
.privacy-section ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.privacy-section li + li {
  margin-top: 6px;
}

.privacy-section strong {
  color: #111827;
  font-weight: 800;
}

.personal-page {
  min-height: 100vh;
  padding: 0 32px 150px;
  background: #f8f8ff;
}

.change-password-page {
  min-height: 100vh;
  padding: 0 0 56px;
  background: #f8f8ff;
  color: #202535;
}

.change-password-form {
  width: 100%;
  padding: 22px 0 0;
  display: grid;
  gap: 14px;
}

.change-password-form .auth-field-label {
  margin: 10px 0 0;
  padding: 0 22px;
}

.password-field {
  width: 100%;
  min-height: 56px;
  border-radius: 0;
  padding: 0 14px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  background: #eef4ff;
}

.password-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: #202535;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.password-field button {
  width: 48px;
  height: 48px;
  justify-self: end;
  color: #5f6b7d;
  background: transparent;
}

.password-field button .material-symbols-outlined {
  font-size: 24px;
}

.change-password-submit {
  width: calc(100% - 44px);
  margin: 28px 22px 0;
}

.personal-header {
  height: 104px;
  margin: 0 -32px;
  padding: 0 32px;
  border-bottom: 1px solid #edf0fb;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f8f8ff;
}

.personal-header button {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #202535;
  background: transparent;
}

.personal-header .material-symbols-outlined {
  font-size: 34px;
}

.personal-header h1 {
  margin: 0;
  color: #202535;
  font-size: 34px;
  font-weight: 500;
}

.personal-avatar-block {
  padding: 42px 0 54px;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.personal-avatar-picker {
  position: relative;
  width: 204px;
  height: 204px;
  border: 8px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a4abb0;
  background: #e7e4da;
  box-shadow: 0 10px 22px rgba(20, 27, 43, 0.08);
  cursor: pointer;
}

.personal-avatar-picker > span .material-symbols-outlined {
  font-size: 116px;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
}

.personal-avatar-picker img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.personal-avatar-picker em {
  position: absolute;
  right: -2px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(255, 112, 17, 0.28);
  font-style: normal;
}

.personal-avatar-picker em .material-symbols-outlined {
  font-size: 31px;
}

.personal-avatar-picker input {
  display: none;
}

.personal-avatar-block > button {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 22px;
}

.personal-card {
  margin-bottom: 28px;
  border-radius: 20px;
  padding: 26px;
  display: grid;
  gap: 14px;
  background: #fff;
}

.personal-card label {
  color: #604842;
  font-size: 20px;
}

.personal-card input,
.personal-input-with-icon,
.personal-readonly {
  min-height: 78px;
  border: 0;
  border-radius: 14px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #202535;
  background: #eef1ff;
  font-size: 26px;
  outline: 0;
}

.personal-input-with-icon input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #202535;
  background: transparent;
  font-size: 26px;
}

.personal-input-with-icon .material-symbols-outlined {
  color: #8a7068;
}

.personal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.personal-card-head span {
  border-radius: 999px;
  padding: 7px 16px;
  color: #604842;
  background: #e5e9fb;
  font-size: 16px;
}

.personal-readonly {
  color: #8d929e;
}

.personal-readonly .material-symbols-outlined {
  color: #8a7068;
}

.personal-section-head {
  margin: 42px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.personal-section-head h2 {
  margin: 0;
  color: #202535;
  font-size: 30px;
  font-weight: 500;
}

.personal-section-head span {
  color: #604842;
  font-size: 20px;
}

.address-list {
  display: grid;
  gap: 24px;
}

.address-empty {
  border: 2px dashed #e5e9f7;
  border-radius: 18px;
  padding: 30px 24px;
  color: #8d929e;
  background: #fff;
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
}

.address-card {
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 42px 1fr 44px;
  gap: 18px;
  color: #604842;
  background: #fff;
}

.address-icon {
  color: var(--primary);
}

.address-icon .material-symbols-outlined,
.address-card button .material-symbols-outlined {
  font-size: 34px;
}

.address-card strong {
  display: block;
  margin-bottom: 8px;
  color: #202535;
  font-size: 24px;
}

.address-card p {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.35;
}

.address-card button {
  border: 0;
  padding: 0;
  display: grid;
  place-items: start end;
  color: #8a7068;
  background: transparent;
}

.address-add-btn {
  width: 100%;
  min-height: 90px;
  margin: 26px 0 0;
  border: 3px dashed #e5c4b7;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary);
  background: transparent;
  font-size: 25px;
}

.personal-save-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 44;
  width: min(640px, 100%);
  border-top: 1px solid #dbe1ef;
  padding: 24px 32px 30px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%);
}

.personal-save-bar button {
  width: 100%;
  min-height: 88px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(255, 112, 17, 0.24);
  font-size: 30px;
}

.address-modal {
  display: grid;
  gap: 14px;
}

.address-select-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-default-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #604842;
}

.address-default-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.booking-field-label {
  margin: 2px 2px -6px;
  color: #604842;
  font-size: 15px;
  font-weight: 700;
}

.booking-address-preview {
  border: 1px solid #f2d5c7;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff7f1;
  color: #604842;
}

.booking-address-preview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
}

.booking-address-preview p {
  margin: 4px 0 0;
  line-height: 1.55;
}

.profile-head {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

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

.quick-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 15px;
  display: grid;
  gap: 8px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
}

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

.admin-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.review-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 27, 43, 0.42);
  display: grid;
  place-items: end center;
  padding: 16px;
}

.modal {
  width: min(520px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 14px;
}

.modal:has(.provider-contact-sheet) {
  width: min(640px, 100%);
  min-height: 520px;
  border-radius: 34px 34px 0 0;
  padding: 0;
  gap: 0;
}

.provider-contact-sheet {
  min-height: 520px;
  padding: 22px 26px 34px;
  display: grid;
  align-content: start;
  gap: 28px;
  background: #fff;
}

.sheet-handle {
  width: 80px;
  height: 7px;
  border-radius: 999px;
  justify-self: center;
  background: #f4e7e2;
}

.sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sheet-title-row h2 {
  margin: 0;
  color: #202535;
  font-size: 34px;
  font-weight: 700;
}

.sheet-title-row button {
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #604842;
  background: transparent;
}

.sheet-title-row .material-symbols-outlined {
  font-size: 36px;
}

.provider-contact-locked {
  min-height: 360px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.lock-badge {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fff1e8;
}

.lock-badge .material-symbols-outlined {
  font-size: 48px;
}

.provider-contact-locked h3 {
  margin: 18px 0 0;
  color: #202535;
  font-size: 28px;
  font-weight: 500;
}

.provider-contact-locked p {
  width: min(380px, 100%);
  margin: 0;
  color: #6f5b55;
  font-size: 21px;
  line-height: 1.45;
}

.provider-contact-locked button {
  width: 100%;
  min-height: 86px;
  margin-top: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 16px 30px rgba(255, 112, 17, 0.24);
  font-size: 28px;
}

.provider-message-box {
  display: grid;
  gap: 12px;
}

.provider-message-box label {
  color: #202535;
  font-size: 22px;
  font-weight: 700;
}

.provider-message-box div {
  min-height: 76px;
  border-radius: 20px;
  padding: 10px 12px 10px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  background: #eef1ff;
}

.provider-message-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font-size: 20px;
}

.provider-message-box input::placeholder {
  color: #8a817f;
}

.provider-message-box button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--primary);
  font-size: 19px;
  font-weight: 800;
}

.provider-contact-list {
  margin-top: 8px;
  display: grid;
  gap: 26px;
}

.provider-contact-item {
  min-height: 122px;
  border-radius: 20px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 22px;
  background: #eef1ff;
}

.provider-contact-item > span {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.provider-contact-item.phone > span {
  color: var(--primary);
  background: #fff0ee;
}

.provider-contact-item.wechat > span {
  color: #078943;
  background: #dff1ed;
}

.provider-contact-item.email > span {
  color: #4f46e5;
  background: #e2e4ff;
}

.provider-contact-item .material-symbols-outlined {
  font-size: 34px;
}

.provider-contact-item strong {
  display: block;
  margin-bottom: 8px;
  color: #604842;
  font-size: 19px;
}

.provider-contact-item p {
  margin: 0;
  color: #111827;
  font-size: 27px;
  line-height: 1.15;
  word-break: break-all;
}

.provider-contact-item button {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-size: 22px;
  font-weight: 700;
}

.provider-contact-item.wechat button {
  color: #078943;
}

.provider-contact-item.email button {
  color: #4f46e5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 100;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100vw - 32px);
  background: #141b2b;
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  box-shadow: 0 14px 36px rgba(20, 27, 43, 0.22);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.hide {
  display: none !important;
}

@media (max-width: 920px) {
  .hero,
  .detail-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-cover-wrap {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 90px;
  }

  .brand span:last-child {
    display: none;
  }

  .page {
    padding: 14px 12px 24px;
  }

  .hero-copy {
    min-height: 260px;
  }

  .hero-copy {
    padding: 21px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .search-panel,
  .message-compose,
  .form-grid,
  .profile-head,
  .order-main {
    grid-template-columns: 1fr;
  }

  .search-panel .btn {
    width: 100%;
  }

  .hero-search {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .hero-search .btn {
    width: auto;
  }

  .services-grid,
  .stats-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-tile {
    min-height: 96px;
  }

  .service-image-wrap {
    height: 180px;
  }

  .price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions {
    align-items: stretch;
  }

  .order-main .btn {
    width: 100%;
  }

  .detail-cover-wrap {
    height: 240px;
  }

  .detail-mobile-page {
    padding-top: 72px;
    padding-bottom: 150px;
  }

  .detail-mobile-header {
    height: 72px;
    padding: 0 18px;
    grid-template-columns: 42px 1fr 42px;
  }

  .detail-mobile-header h1 {
    font-size: 25px;
  }

  .detail-mobile-header .material-symbols-outlined {
    font-size: 30px;
  }

  .detail-gallery {
    height: 320px;
  }

  .detail-content {
    padding: 20px 20px 0;
  }

  .detail-content > h2 {
    font-size: 25px;
  }

  .detail-rating-row {
    gap: 10px;
    font-size: 17px;
  }

  .detail-rating-row strong {
    font-size: 26px;
  }

  .detail-tags span {
    font-size: 15px;
    padding: 6px 13px;
  }

  .detail-assurance {
    padding: 24px 20px;
    gap: 22px 24px;
  }

  .detail-assurance div {
    font-size: 18px;
  }

  .detail-provider-box {
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
    padding: 18px;
  }

  .detail-provider-avatar {
    width: 58px;
    height: 58px;
  }

  .detail-provider-box strong {
    font-size: 21px;
  }

  .detail-provider-box span {
    font-size: 15px;
  }

  .detail-provider-box button {
    min-width: 84px;
    height: 42px;
    font-size: 16px;
  }

  .detail-copy-section h3 {
    font-size: 22px;
  }

  .detail-copy-section p {
    font-size: 18px;
  }

  .detail-photo-card {
    min-height: 248px;
  }

  .detail-photo-card img {
    height: 248px;
  }

  .detail-book-bar {
    min-height: 96px;
    padding: 14px 20px;
    grid-template-columns: 62px 1fr;
    gap: 16px;
  }

  .detail-book-btn {
    height: 64px;
    font-size: 23px;
  }

  .orders-page {
    padding: 0 20px 106px;
  }

  .orders-header {
    height: 76px;
    gap: 18px;
  }

  .orders-header h1 {
    font-size: 25px;
  }

  .orders-intro-card {
    margin: 5px 0 28px;
    padding: 32px;
  }

  .orders-intro-card h1 {
    font-size: 27px;
  }

  .orders-intro-card p {
    font-size: 19px;
  }

  .orders-intro-card button {
    min-height: 62px;
    font-size: 18px;
  }

  .orders-tabs {
    margin-right: -20px;
    padding-right: 20px;
  }

  .orders-tabs button {
    min-width: 100px;
    height: 50px;
    font-size: 17px;
  }

  .order-cover {
    height: 294px;
  }

  .order-ticket-body {
    padding: 24px;
  }

  .order-ticket-body h2 {
    font-size: 24px;
  }

  .order-info-list {
    gap: 13px;
    font-size: 19px;
  }

  .order-ticket-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .order-card-actions {
    justify-content: flex-end;
  }

  .order-ticket-footer strong {
    font-size: 32px;
  }

  .orders-loading {
    min-height: 150px;
  }

  .messages-header {
    height: 88px;
    padding: 0 22px;
    grid-template-columns: 40px 1fr 52px;
  }

  .messages-header h1 {
    font-size: 28px;
  }

  .message-user-avatar {
    width: 52px;
    height: 52px;
  }

  .message-search {
    height: 72px;
    margin: 26px 22px;
    border-radius: 18px;
  }

  .reminder-panel {
    margin: 0 20px 24px;
    padding: 14px;
  }

  .reminder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reminder-head .btn {
    width: 100%;
  }

  .message-search input {
    font-size: 20px;
  }

  .conversation-item {
    min-height: 112px;
    padding: 18px 22px;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .conversation-avatar {
    width: 62px;
    height: 62px;
  }

  .conversation-item strong {
    font-size: 23px;
  }

  .conversation-item span {
    font-size: 19px;
  }

  .conversation-item time {
    font-size: 17px;
  }

  .message-recommend {
    padding: 34px 22px 0;
  }

  .chat-page {
    padding-top: 88px;
    padding-bottom: 104px;
  }

  .chat-header {
    height: 88px;
    padding: 0 18px;
    grid-template-columns: 36px 58px 1fr 38px 38px;
    gap: 12px;
  }

  .chat-header h1 {
    font-size: 26px;
  }

  .chat-header span {
    font-size: 17px;
  }

  .chat-body {
    padding: 54px 20px 28px;
    gap: 28px;
  }

  .chat-bubble-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .chat-bubble-row.me {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .chat-bubble-row p {
    max-width: 360px;
    padding: 22px;
    font-size: 19px;
  }

  .chat-mini-avatar {
    width: 42px;
    height: 42px;
  }

  .chat-input-bar {
    min-height: 96px;
    padding: 14px 18px;
    grid-template-columns: 38px 1fr 68px;
    gap: 14px;
  }

  .chat-input-bar input {
    height: 62px;
    padding: 0 20px;
    font-size: 18px;
  }

  .chat-input-bar button:last-child {
    width: 68px;
    height: 68px;
  }

  .favorites-page {
    padding: 0 20px 106px;
  }

  .favorites-header {
    height: 76px;
    gap: 18px;
  }

  .favorites-header h1 {
    font-size: 25px;
  }

  .favorites-summary {
    margin: 24px 0;
    padding: 24px;
  }

  .favorites-summary h2 {
    font-size: 24px;
  }

  .favorites-summary p {
    font-size: 17px;
  }

  .provider-orders-page {
    padding: 0 20px 42px;
  }

  .provider-orders-header {
    height: 86px;
    gap: 18px;
  }

  .provider-orders-header h1 {
    font-size: 25px;
  }

  .provider-order-tabs {
    margin: 22px -20px 42px 0;
    padding-right: 20px;
    gap: 14px;
  }

  .provider-order-tabs button {
    min-width: 112px;
    height: 52px;
    font-size: 18px;
  }

  .provider-order-list {
    gap: 34px;
  }

  .provider-order-cover {
    height: 250px;
  }

  .provider-order-body {
    padding: 26px;
  }

  .provider-order-body h2 {
    font-size: 24px;
  }

  .provider-order-info {
    font-size: 19px;
  }

  .provider-order-footer strong {
    font-size: 29px;
  }

  .provider-order-actions {
    gap: 14px;
  }

  .provider-order-actions .btn {
    min-height: 66px;
    font-size: 22px;
  }

  .personal-page {
    padding: 0 20px 128px;
  }

  .personal-header {
    height: 84px;
    margin: 0 -20px;
    padding: 0 20px;
  }

  .personal-header h1 {
    font-size: 28px;
  }

  .personal-avatar-block {
    padding: 34px 0 42px;
  }

  .personal-avatar-picker {
    width: 172px;
    height: 172px;
  }

  .personal-avatar-picker > span .material-symbols-outlined {
    font-size: 96px;
  }

  .personal-card {
    padding: 22px;
  }

  .personal-card input,
  .personal-input-with-icon,
  .personal-readonly {
    min-height: 70px;
    font-size: 22px;
  }

  .personal-input-with-icon input {
    font-size: 22px;
  }

  .personal-section-head h2 {
    font-size: 26px;
  }

  .address-card {
    padding: 22px;
    grid-template-columns: 36px 1fr 38px;
    gap: 14px;
  }

  .address-card strong {
    font-size: 22px;
  }

  .address-card p {
    font-size: 18px;
  }

  .address-add-btn {
    min-height: 78px;
    font-size: 22px;
  }

  .personal-save-bar {
    padding: 18px 20px 22px;
  }

  .personal-save-bar button {
    min-height: 74px;
    font-size: 26px;
  }

  .modal:has(.provider-contact-sheet) {
    min-height: 480px;
  }

  .provider-contact-sheet {
    min-height: 480px;
    padding: 18px 20px 28px;
  }

  .sheet-title-row h2 {
    font-size: 30px;
  }

  .provider-message-box label {
    font-size: 20px;
  }

  .provider-message-box div {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 10px;
    padding: 9px 10px 9px 16px;
  }

  .provider-message-box input {
    font-size: 18px;
  }

  .provider-message-box button {
    min-height: 48px;
    font-size: 17px;
  }

  .provider-contact-list {
    margin-top: 6px;
    gap: 20px;
  }

  .provider-contact-item {
    min-height: 104px;
    grid-template-columns: 62px 1fr auto;
    gap: 16px;
    padding: 18px 20px;
  }

  .provider-contact-item > span {
    width: 58px;
    height: 58px;
  }

  .provider-contact-item p {
    font-size: 22px;
  }

  .provider-contact-item button {
    font-size: 19px;
  }

  .provider-contact-locked h3 {
    font-size: 24px;
  }

  .provider-contact-locked p {
    font-size: 18px;
  }

  .provider-contact-locked button {
    min-height: 72px;
    font-size: 24px;
  }

  .auth-page {
    padding: 0 20px 36px;
  }

  .auth-header {
    height: 92px;
    grid-template-columns: 46px 1fr 64px;
  }

  .auth-header.centered {
    grid-template-columns: 46px 1fr 46px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .auth-header > span {
    width: 64px;
    height: 64px;
  }

  .auth-copy {
    margin-top: 54px;
    margin-bottom: 54px;
  }

  .login-page .auth-copy {
    margin-top: 42px;
    margin-bottom: 56px;
  }

  .auth-copy h2 {
    font-size: 34px;
  }

  .auth-copy p {
    font-size: 22px;
  }

  .auth-field-label {
    font-size: 18px;
  }

  .auth-field {
    min-height: 90px;
    border-radius: 18px;
    padding: 0 22px;
  }

  .auth-field input {
    font-size: 22px;
  }

  .auth-agreement {
    grid-template-columns: 34px 1fr;
    gap: 16px;
    font-size: 19px;
  }

  .auth-agreement input {
    width: 34px;
    height: 34px;
  }

  .auth-primary-btn {
    min-height: 88px;
    font-size: 27px;
  }

  .auth-switch {
    margin-top: 70px;
    font-size: 20px;
  }

  .bottom-nav-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-center-page {
    padding: 34px 18px 112px;
  }

  .profile-center-head {
    grid-template-columns: 84px 1fr 56px;
    gap: 18px;
    margin-bottom: 52px;
  }

  .profile-avatar-mark {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    font-size: 40px;
  }

  .profile-identity span {
    font-size: 20px;
  }

  .profile-identity strong {
    font-size: 30px;
  }

  .profile-identity p {
    margin-top: 9px;
    font-size: 16px;
  }

  .profile-settings-btn {
    width: 56px;
    height: 56px;
  }

  .profile-settings-btn .material-symbols-outlined {
    font-size: 29px;
  }

  .profile-stats-card {
    min-height: 128px;
    margin-bottom: 38px;
    border-radius: 26px;
  }

  .profile-stats-card span {
    font-size: 17px;
  }

  .profile-stats-card strong {
    font-size: 31px;
  }

  .profile-section-title {
    margin-bottom: 24px;
    font-size: 25px;
  }

  .profile-shortcuts {
    gap: 16px;
    margin-bottom: 40px;
  }

  .profile-shortcuts button {
    min-height: 82px;
    border-radius: 18px;
    padding: 0 18px;
    gap: 12px;
    font-size: 19px;
  }

  .profile-shortcuts .material-symbols-outlined {
    font-size: 29px;
  }

  .merchant-entry-card {
    min-height: 282px;
    border-radius: 28px;
    padding: 38px 30px;
    background-size: auto 104%;
  }

  .merchant-entry-card span {
    font-size: 18px;
  }

  .merchant-entry-card strong {
    font-size: 27px;
  }

  .merchant-entry-card p {
    font-size: 16px;
  }

  .merchant-entry-card button {
    width: 150px;
    height: 58px;
    font-size: 20px;
  }

  .merchant-header {
    height: 76px;
    padding: 0 20px;
  }

  .merchant-header h1 {
    font-size: 25px;
  }

  .merchant-hero {
    min-height: 256px;
    padding: 28px 22px;
    background-size: auto 112%;
  }

  .merchant-hero h2 {
    font-size: 25px;
  }

  .merchant-hero p {
    font-size: 19px;
  }

  .merchant-section {
    padding: 30px 20px 0;
  }

  .merchant-section > h2 {
    margin-bottom: 22px;
    font-size: 25px;
  }

  .merchant-step-card {
    min-height: 112px;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 20px;
  }

  .merchant-step-card > span {
    width: 56px;
    height: 56px;
    font-size: 25px;
  }

  .merchant-step-card strong {
    font-size: 23px;
  }

  .merchant-step-card p {
    font-size: 18px;
  }

  .merchant-steps::before {
    left: 27px;
  }

  .merchant-plan-card {
    padding: 22px;
  }

  .merchant-plan-head strong {
    font-size: 23px;
  }

  .merchant-plan-head span {
    font-size: 16px;
  }

  .merchant-plan-card b {
    font-size: 31px;
  }

  .merchant-year-box {
    min-height: 136px;
    padding: 28px 22px 20px;
  }

  .merchant-year-box strong {
    font-size: 39px;
  }

  .merchant-apply-btn {
    width: calc(100% - 40px);
    min-height: 76px;
    margin: 26px 20px 0;
    font-size: 25px;
  }

  .account-page {
    padding: 28px 16px 110px;
  }

  .account-header {
    margin-bottom: 20px;
  }

  .account-header h1 {
    font-size: 24px;
  }

  .account-user-card {
    min-height: 124px;
    padding: 20px;
  }

  .account-avatar {
    width: 72px;
    height: 72px;
  }

  .account-user-card strong {
    font-size: 22px;
  }

  .account-user-card span {
    font-size: 16px;
  }

  .account-menu-item,
  .account-logout {
    min-height: 76px;
    font-size: 20px;
  }
}

/* Responsive typography and icon scale: keep the app closer to common H5/Web UI density. */
body {
  font-size: 15px;
  line-height: 1.55;
}

.material-symbols-outlined {
  font-size: 22px;
}

.topbar-inner {
  min-height: 72px;
  padding: 12px 16px 8px;
}

.city-pill {
  min-width: 112px;
  height: 46px;
  padding: 0 18px;
  gap: 8px;
  font-size: 15px;
}

.city-pill .material-symbols-outlined,
.notice-btn .material-symbols-outlined {
  font-size: 24px;
}

.notice-btn {
  width: 38px;
  height: 38px;
}

.hero-search {
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 10px;
}

.category-search-input,
.search-submit,
.category-search-btn {
  min-height: 48px;
  border-radius: 14px;
}

.category-search-input input {
  font-size: 15px;
}

.category-search-input .material-symbols-outlined {
  font-size: 21px;
}

.search-submit {
  font-size: 15px;
}

.hero-copy h1,
.orders-intro-card h1,
.auth-copy h2 {
  font-size: 26px;
  line-height: 1.22;
}

.hero-copy p,
.orders-intro-card p,
.detail-copy-section p,
.merchant-hero p {
  font-size: 15px;
  line-height: 1.6;
}

.section-head h1,
.section-head h2,
.detail-content > h2,
.messages-header h1,
.orders-header h1,
.provider-orders-header h1,
.favorites-header h1,
.personal-header h1,
.merchant-header h1,
.account-header h1 {
  font-size: 22px;
  line-height: 1.3;
}

.bottom-nav a {
  font-size: 13px;
}

.bottom-nav .material-symbols-outlined {
  font-size: 22px;
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
    line-height: 1.55;
  }

  .page {
    padding: 12px 12px 22px;
  }

  .topbar-inner {
    min-height: 54px;
    padding: 8px 12px 6px;
  }

  .city-pill {
    min-width: 92px;
    height: 36px;
    padding: 0 13px;
    gap: 6px;
    font-size: 13px;
  }

  .city-pill .material-symbols-outlined,
  .top-actions .material-symbols-outlined,
  .bottom-nav .material-symbols-outlined,
  .card-actions .material-symbols-outlined,
  .orders-header .material-symbols-outlined,
  .provider-orders-header .material-symbols-outlined,
  .messages-header .material-symbols-outlined,
  .chat-header .material-symbols-outlined,
  .favorites-header .material-symbols-outlined,
  .personal-header .material-symbols-outlined,
  .profile-settings-btn .material-symbols-outlined {
    font-size: 19px;
  }

  .notice-btn {
    width: 34px;
    height: 34px;
  }

  .notice-btn .dot {
    min-width: 15px;
    height: 15px;
    font-size: 9px;
    border-width: 1px;
  }

  .btn,
  button,
  input,
  select,
  textarea {
    font-size: 13px;
  }

  .btn {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero-search {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 10px;
  }

  .category-search-input,
  .search-submit,
  .category-search-btn {
    min-height: 42px;
    border-radius: 13px;
  }

  .category-search-input {
    padding: 0 12px;
  }

  .category-search-input input {
    font-size: 13px;
  }

  .category-search-input .material-symbols-outlined {
    font-size: 18px;
  }

  .hero-copy h1,
  .orders-intro-card h1,
  .auth-header h1,
  .personal-header h1,
  .profile-identity strong {
    font-size: 19px;
    line-height: 1.25;
  }

  .section-head h1,
  .section-head h2,
  .category-result-head h1,
  .detail-content > h2,
  .detail-mobile-header h1,
  .orders-header h1,
  .messages-header h1,
  .chat-header h1,
  .favorites-header h1,
  .provider-orders-header h1,
  .merchant-header h1,
  .account-header h1,
  .personal-section-head h2,
  .sheet-title-row h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .card-body h3,
  .category-card-body h2,
  .order-ticket-body h2,
  .provider-order-body h2,
  .favorites-summary h2,
  .merchant-hero h2,
  .merchant-section > h2,
  .auth-copy h2,
  .detail-copy-section h3,
  .message-recommend h2,
  .reminder-head h2,
  .address-card strong,
  .merchant-step-card strong,
  .merchant-plan-head strong,
  .account-user-card strong {
    font-size: 15px;
    line-height: 1.35;
  }

  .hero-copy p,
  .orders-intro-card p,
  .detail-copy-section p,
  .order-info-list,
  .provider-order-info,
  .conversation-item span,
  .conversation-item time,
  .chat-bubble-row p,
  .favorites-summary p,
  .merchant-hero p,
  .merchant-step-card p,
  .address-card p,
  .profile-identity p,
  .profile-stats-card span,
  .account-user-card span,
  .service-meta,
  .muted {
    font-size: 13px;
    line-height: 1.5;
  }

  .card-body h3,
  .order-ticket-body h2,
  .provider-order-body h2 {
    word-break: break-word;
  }

  .price-row strong,
  .order-ticket-footer strong,
  .provider-order-footer strong,
  .merchant-plan-card b,
  .merchant-year-box strong,
  .profile-stats-card strong {
    font-size: 19px;
    line-height: 1.15;
  }

  .orders-tabs button,
  .provider-order-tabs button,
  .order-card-actions .btn,
  .provider-order-actions .btn,
  .detail-book-btn,
  .personal-save-bar button,
  .merchant-apply-btn,
  .address-add-btn,
  .account-menu-item,
  .account-logout {
    min-height: 40px;
    font-size: 13px;
  }

  .bottom-nav-inner {
    min-height: 58px;
    padding: 6px 6px 8px;
  }

  .bottom-nav a {
    font-size: 11px;
    gap: 2px;
  }

  .bottom-nav .material-symbols-outlined {
    font-size: 20px;
  }

  .orders-page,
  .favorites-page,
  .provider-orders-page,
  .personal-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .orders-intro-card,
  .favorites-summary,
  .provider-order-body,
  .order-ticket-body,
  .personal-card,
  .address-card,
  .merchant-plan-card,
  .merchant-step-card {
    padding: 16px;
  }

  .message-search input,
  .chat-input-bar input,
  .personal-card input,
  .personal-input-with-icon,
  .personal-input-with-icon input,
  .personal-readonly,
  .provider-message-box input {
    font-size: 13px;
  }
}

/* Profile and account pages need denser controls than the original showcase layout. */
.profile-avatar-mark,
.account-avatar {
  overflow: hidden;
}

.profile-avatar-mark img,
.account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-avatar-mark span {
  color: #fff;
}

.account-avatar {
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.account-avatar span {
  font-size: 24px;
  color: #fff;
}

.account-avatar em {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-style: normal;
}

.account-avatar em .material-symbols-outlined {
  font-size: 15px;
}

.account-avatar input {
  display: none;
}

.route-settings .page {
  width: 100%;
  max-width: none;
  padding: 0;
}

.about-page {
  min-height: 100vh;
  padding: 0 32px 80px;
  background: linear-gradient(180deg, #fff7f2 0%, #f7f8ff 42%, #fff 100%);
}

.about-document {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.about-brand,
.about-section {
  border: 1px solid #edf0f8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(25, 33, 61, 0.08);
}

.about-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.about-brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

.about-brand h2,
.about-section h3 {
  margin: 0;
  color: #172033;
}

.about-brand h2 {
  font-size: 26px;
}

.about-brand p,
.about-section p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.8;
}

.about-section {
  padding: 24px;
}

.about-section h3 {
  font-size: 20px;
}

.profile-section-title {
  font-size: 22px;
  margin-bottom: 18px;
}

.profile-shortcuts {
  gap: 16px;
  margin-bottom: 34px;
}

.profile-shortcuts button {
  min-height: 76px;
  border-radius: 16px;
  padding: 0 20px;
  gap: 12px;
  font-size: 17px;
}

.profile-shortcuts .material-symbols-outlined {
  font-size: 24px;
}

.profile-settings-btn {
  width: 50px;
  height: 50px;
}

.profile-settings-btn .material-symbols-outlined {
  font-size: 24px;
}

.account-page {
  padding: 28px 22px 112px;
}

.account-header {
  height: 42px;
  margin-bottom: 20px;
  gap: 14px;
}

.account-header h1 {
  font-size: 22px;
}

.account-back .material-symbols-outlined {
  font-size: 24px;
}

.account-user-card {
  min-height: 104px;
  padding: 18px;
  gap: 16px;
}

.account-avatar {
  width: 62px;
  height: 62px;
  border-width: 3px;
  background: linear-gradient(180deg, #ff7b22, #ff5f0b);
}

.account-user-card strong {
  font-size: 18px;
}

.account-user-card span {
  font-size: 14px;
}

.account-menu {
  margin-bottom: 18px;
}

.account-menu-item {
  min-height: 58px;
  padding: 0 18px;
  gap: 14px;
  font-size: 15px;
}

.account-menu-item > .material-symbols-outlined:first-child {
  font-size: 21px;
}

.account-menu-item > .material-symbols-outlined:last-child {
  font-size: 22px;
}

.account-logout {
  min-height: 54px;
  margin-top: 28px;
  font-size: 15px;
}

.account-logout .material-symbols-outlined {
  font-size: 22px;
}

@media (max-width: 640px) {
  .profile-center-page {
    padding: 24px 18px 92px;
  }

  .profile-center-head {
    grid-template-columns: 70px 1fr 42px;
    gap: 14px;
    margin-bottom: 34px;
  }

  .profile-avatar-mark {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    font-size: 30px;
  }

  .profile-identity span {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .profile-identity strong {
    font-size: 22px;
    line-height: 1.18;
  }

  .profile-identity p {
    margin-top: 6px;
    font-size: 13px;
  }

  .profile-settings-btn {
    width: 42px;
    height: 42px;
  }

  .profile-settings-btn .material-symbols-outlined {
    font-size: 20px;
  }

  .profile-stats-card {
    min-height: 104px;
    margin-bottom: 34px;
    border-radius: 22px;
  }

  .profile-stats-card button {
    gap: 8px;
  }

  .profile-stats-card span {
    font-size: 13px;
  }

  .profile-stats-card strong {
    font-size: 22px;
  }

  .profile-section-title {
    font-size: 19px;
    margin-bottom: 14px;
  }

  .profile-shortcuts {
    gap: 12px;
    margin-bottom: 28px;
  }

  .profile-shortcuts button {
    min-height: 58px;
    border-radius: 13px;
    padding: 0 16px;
    gap: 10px;
    font-size: 14px;
  }

  .profile-shortcuts .material-symbols-outlined {
    font-size: 20px;
  }

  .account-page {
    min-height: calc(100vh - 58px);
    padding: 22px 18px 96px;
  }

  .account-header {
    height: 38px;
    margin-bottom: 18px;
  }

  .account-header h1 {
    font-size: 19px;
  }

  .account-user-card {
    min-height: 90px;
    margin-bottom: 22px;
    padding: 16px;
  }

  .account-avatar {
    width: 56px;
    height: 56px;
  }

  .account-menu-item {
    min-height: 52px;
    font-size: 14px;
  }

  .account-logout {
    min-height: 50px;
    font-size: 14px;
  }
}

/* Dense personal info, message list and chat screens. */
.message-user-avatar,
.message-user-avatar img,
.chat-mini-avatar img {
  border-radius: 50%;
}

.message-user-avatar,
.chat-mini-avatar {
  overflow: hidden;
}

.message-user-avatar img,
.chat-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-avatar {
  overflow: hidden;
}

.conversation-avatar.online {
  overflow: visible;
}

.conversation-avatar.online::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #078943;
}

.conversation-unread {
  position: absolute;
  left: 74px;
  top: 18px;
  min-width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.personal-avatar-picker {
  aspect-ratio: 1 / 1;
}

.personal-avatar-picker img {
  display: block;
  clip-path: circle(50% at 50% 50%);
}

.personal-avatar-picker > span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.personal-page {
  padding: 0 24px 124px;
}

.personal-header {
  height: 72px;
  margin: 0 -24px;
  padding: 0 24px;
}

.personal-header h1 {
  font-size: 22px;
}

.personal-header .material-symbols-outlined {
  font-size: 24px;
}

.personal-avatar-block {
  padding: 28px 0 34px;
  gap: 12px;
}

.personal-avatar-picker {
  width: 132px;
  height: 132px;
  border-width: 5px;
}

.personal-avatar-picker > span .material-symbols-outlined {
  font-size: 70px;
}

.personal-avatar-picker em {
  right: -4px;
  bottom: 10px;
  width: 42px;
  height: 42px;
}

.personal-avatar-picker em .material-symbols-outlined {
  font-size: 22px;
}

.personal-avatar-block > button {
  font-size: 15px;
}

.personal-card {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 18px;
  gap: 12px;
}

.personal-card label {
  font-size: 15px;
}

.personal-card input,
.personal-input-with-icon,
.personal-readonly {
  min-height: 52px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
}

.personal-input-with-icon {
  gap: 10px;
}

.personal-input-with-icon .material-symbols-outlined,
.personal-readonly .material-symbols-outlined {
  font-size: 20px;
}

.personal-card-head span {
  padding: 5px 12px;
  font-size: 13px;
}

.personal-save-bar {
  padding: 12px 24px 16px;
}

.personal-save-bar button {
  min-height: 52px;
  font-size: 17px;
}

.messages-header h1,
.chat-header h1 {
  font-size: 20px;
}

.messages-header .material-symbols-outlined,
.chat-header .material-symbols-outlined {
  font-size: 22px;
}

.conversation-item {
  position: relative;
  min-height: 86px;
  padding: 14px 22px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
}

.conversation-avatar {
  width: 48px;
  height: 48px;
}

.conversation-avatar .material-symbols-outlined {
  font-size: 24px;
}

.conversation-item strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.conversation-item span {
  font-size: 14px;
}

.conversation-item time {
  margin-top: 8px;
  font-size: 13px;
}

.chat-page {
  padding-top: 72px;
}

.chat-header {
  height: 72px;
  grid-template-columns: 34px 46px 1fr 34px 34px;
  gap: 10px;
  padding: 0 16px;
}

.chat-header .conversation-avatar {
  width: 44px;
  height: 44px;
}

.chat-header span {
  font-size: 13px;
}

.chat-body {
  padding: 22px 18px 44px;
  gap: 20px;
}

.chat-date {
  padding: 8px 20px;
  font-size: 14px;
}

.chat-bubble-row,
.chat-bubble-row.me {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.chat-bubble-row.me {
  grid-template-columns: minmax(0, 1fr) 36px;
}

.chat-bubble-row p {
  max-width: 300px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.45;
}

.chat-bubble-row time {
  font-size: 13px;
}

.chat-mini-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.chat-mini-avatar .material-symbols-outlined {
  font-size: 19px;
}

.chat-input-bar {
  min-height: 72px;
  padding: 10px 14px 14px;
  gap: 10px;
}

.chat-input-bar input {
  height: 46px;
  font-size: 14px;
}

.chat-input-bar button {
  width: 46px;
  height: 46px;
}

@media (max-width: 640px) {
  .personal-page {
    padding: 0 18px 112px;
  }

  .personal-header {
    height: 62px;
    margin: 0 -18px;
    padding: 0 18px;
  }

  .personal-header h1 {
    font-size: 19px;
  }

  .personal-avatar-block {
    padding: 24px 0 28px;
  }

  .personal-avatar-picker {
    width: 116px;
    height: 116px;
  }

  .personal-card {
    padding: 15px;
  }

  .personal-card input,
  .personal-input-with-icon,
  .personal-readonly {
    min-height: 46px;
    font-size: 14px;
  }

  .personal-save-bar {
    padding: 10px 18px 14px;
  }

  .personal-save-bar button {
    min-height: 48px;
    font-size: 15px;
  }

  .messages-header h1,
  .chat-header h1 {
    font-size: 18px;
  }

  .conversation-item {
    min-height: 76px;
    padding: 12px 18px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .conversation-avatar {
    width: 42px;
    height: 42px;
  }

  .conversation-unread {
    left: 50px;
    top: 10px;
  }

  .conversation-item strong {
    font-size: 16px;
  }

  .conversation-item span,
  .conversation-item time {
    font-size: 13px;
  }

  .chat-page {
    padding-top: 64px;
    padding-bottom: 88px;
  }

  .chat-header {
    height: 64px;
    grid-template-columns: 30px 40px 1fr 30px 30px;
    gap: 8px;
    padding: 0 12px;
  }

  .chat-header .conversation-avatar {
    width: 38px;
    height: 38px;
  }

  .chat-body {
    padding: 18px 14px 36px;
  }

  .chat-bubble-row p {
    max-width: 268px;
    padding: 14px 16px;
    font-size: 14px;
  }

  .chat-mini-avatar {
    width: 32px;
    height: 32px;
  }
}

/* Final density fixes for navigation, messages, chat and detail surfaces. */
.bottom-nav-inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bottom-nav a,
.nav-item {
  min-width: 0;
}

.message-search {
  height: 52px;
  margin: 18px 22px;
  border-radius: 14px;
  padding: 0 16px;
  gap: 10px;
}

.message-search .material-symbols-outlined {
  font-size: 22px;
}

.message-search input {
  font-size: 14px;
}

.chat-header button {
  color: #5f6b7a;
}

.chat-header button .material-symbols-outlined {
  color: inherit;
}

.conversation-avatar.system,
.chat-mini-avatar,
.detail-provider-avatar {
  color: #fff;
  background: linear-gradient(180deg, #ff7b22, #ff5f0b);
}

.conversation-avatar span,
.chat-mini-avatar span,
.detail-provider-avatar span {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.conversation-avatar img,
.chat-mini-avatar img,
.detail-provider-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.detail-provider-avatar {
  overflow: hidden;
}

.detail-tags {
  gap: 8px;
  margin-bottom: 22px;
}

.detail-tags span {
  padding: 4px 10px;
  color: #c2410c;
  background: #fff4ed;
  font-size: 13px;
  font-weight: 700;
}

.detail-book-bar {
  min-height: 76px;
  padding: 10px 16px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
}

.detail-fav-btn {
  font-size: 13px;
}

.detail-fav-btn .material-symbols-outlined {
  font-size: 24px;
}

.detail-book-btn {
  height: 52px;
  font-size: 16px;
}

.chat-input-bar {
  min-height: 62px;
  padding: 8px 12px 12px;
  grid-template-columns: 36px 1fr 42px;
  gap: 8px;
}

.chat-input-bar input {
  height: 42px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
}

.chat-input-bar button,
.chat-input-bar button:last-child {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.chat-input-bar .material-symbols-outlined {
  font-size: 22px;
}

.personal-avatar-picker {
  display: grid;
  place-items: center;
  overflow: visible;
}

.personal-avatar-picker img,
.personal-avatar-picker > span {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}

.personal-avatar-picker em {
  z-index: 2;
}

.personal-avatar-block > button {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .bottom-nav-inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bottom-nav a,
  .nav-item {
    font-size: 10px;
  }

  .bottom-nav .material-symbols-outlined {
    font-size: 18px;
  }

  .message-search {
    height: 46px;
    margin: 14px 18px;
    border-radius: 13px;
  }

  .detail-tags span {
    font-size: 11px;
    padding: 4px 9px;
  }

  .detail-book-bar {
    min-height: 66px;
    padding: 8px 12px;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .detail-book-btn {
    height: 46px;
    font-size: 14px;
  }

  .detail-fav-btn .material-symbols-outlined {
    font-size: 21px;
  }

  .chat-input-bar,
  .chat-input-bar button,
  .chat-input-bar button:last-child {
    height: auto;
  }

  .chat-input-bar {
    min-height: 58px;
    grid-template-columns: 34px 1fr 40px;
  }

  .chat-input-bar input {
    height: 40px;
  }

  .chat-input-bar button,
  .chat-input-bar button:last-child {
    width: 40px;
    height: 40px;
  }
}

/* Tighten category, orders and chat layout after mobile QA. */
.category-side-item {
  min-height: 58px;
  font-size: 14px;
}

.subcategory-pill {
  min-height: 38px;
  font-size: 13px;
}

.category-result-head h1 {
  font-size: 19px;
}

.category-service-card .badge,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.detail-tags span {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.detail-tags span:first-child,
.category-service-card .badge.green {
  color: #08712f;
  background: var(--green-soft);
}

.detail-tags {
  gap: 6px;
}

.order-badges {
  gap: 8px;
  margin-bottom: 12px;
}

.order-badges span,
.provider-order-badges span {
  min-height: 24px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1;
}

.orders-loading {
  display: none;
}

.conversation-avatar.system,
.conversation-avatar.online {
  overflow: hidden;
}

.conversation-avatar.online::after {
  right: -1px;
  bottom: -1px;
  z-index: 2;
}

.conversation-avatar.system img,
.conversation-avatar.online img {
  display: block;
  clip-path: circle(50% at 50% 50%);
}

.chat-bubble-row,
.chat-bubble-row.me {
  align-items: end;
}

.chat-bubble-row > div:nth-child(2),
.chat-bubble-row.me > div:first-child {
  min-width: 0;
  align-content: end;
  gap: 6px;
}

.chat-bubble-row:not(.me) {
  grid-template-columns: 34px minmax(0, max-content);
  justify-content: start;
}

.chat-bubble-row.me {
  grid-template-columns: minmax(0, max-content) 34px;
  justify-content: end;
}

.chat-bubble-row p {
  width: fit-content;
}

.chat-bubble-row:not(.me) time {
  justify-self: start;
  order: 0;
}

.chat-bubble-row.me time {
  justify-self: end;
  order: 0;
}

.chat-bubble-row p {
  order: 1;
}

@media (max-width: 640px) {
  .category-side-item {
    min-height: 52px;
    font-size: 13px;
  }

  .subcategory-pill {
    min-height: 34px;
    font-size: 13px;
  }

  .category-result-head h1 {
    font-size: 17px;
  }

  .category-card-body h2 {
    font-size: 16px;
  }

  .category-card-body p,
  .category-card-meta {
    font-size: 13px;
  }

  .category-card-price strong {
    font-size: 21px;
  }

  .order-badges span,
  .provider-order-badges span {
    min-height: 22px;
    padding: 4px 9px;
    font-size: 13px;
  }

  .chat-bubble-row:not(.me) {
    grid-template-columns: 32px minmax(0, max-content);
  }

  .chat-bubble-row.me {
    grid-template-columns: minmax(0, max-content) 32px;
  }
}

/* Detail-page density polish. */
.detail-assurance {
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 18px;
  gap: 16px 24px;
}

.detail-assurance div {
  gap: 8px;
  font-size: 16px;
}

.detail-assurance .material-symbols-outlined {
  font-size: 20px;
}

.detail-provider-box {
  margin-bottom: 28px;
  padding: 16px;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
}

.detail-provider-avatar {
  width: 52px;
  height: 52px;
}

.detail-provider-box strong {
  margin-bottom: 3px;
  font-size: 19px;
}

.detail-provider-box span {
  font-size: 13px;
}

.detail-provider-box button {
  min-width: 76px;
  height: 36px;
  font-size: 13px;
}

.detail-copy-section h3 {
  margin-bottom: 14px;
  padding-left: 16px;
  font-size: 18px;
  line-height: 1.3;
}

.detail-copy-section h3::before {
  width: 5px;
  height: 1em;
}

@media (max-width: 640px) {
  .category-layout {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .category-content {
    padding-left: 10px;
  }

  .detail-assurance {
    padding: 16px;
    gap: 14px 18px;
  }

  .detail-assurance div {
    font-size: 14px;
  }

  .detail-assurance .material-symbols-outlined {
    font-size: 18px;
  }

  .detail-provider-box {
    padding: 14px;
    grid-template-columns: 46px 1fr auto;
  }

  .detail-provider-avatar {
    width: 46px;
    height: 46px;
  }

  .detail-provider-box strong {
    font-size: 17px;
  }

  .detail-provider-box span {
    font-size: 13px;
  }

  .detail-provider-box button {
    min-width: 68px;
    height: 32px;
    font-size: 13px;
  }

  .detail-copy-section h3 {
    font-size: 16px;
  }
}

/* Compact auth forms. */
.auth-page {
  padding: 0 24px 32px;
}

.auth-header {
  height: 72px;
  grid-template-columns: 40px 1fr 48px;
}

.auth-header.centered {
  grid-template-columns: 40px 1fr 40px;
}

.auth-header button {
  width: 36px;
  height: 36px;
}

.auth-header .material-symbols-outlined {
  font-size: 22px;
}

.auth-header h1 {
  font-size: 22px;
}

.auth-header > span {
  width: 48px;
  height: 48px;
}

.auth-copy,
.login-page .auth-copy {
  margin-top: 28px;
  margin-bottom: 34px;
}

.auth-copy h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.auth-copy p {
  font-size: 15px;
  line-height: 1.5;
}

.auth-field-label {
  margin: 14px 0 0 4px;
  font-size: 14px;
}

.auth-label-row .auth-field-label {
  margin-left: 4px;
}

.auth-label-row button {
  font-size: 13px;
}

.auth-field,
.login-page .auth-field {
  min-height: 52px;
  border-radius: 14px;
  padding: 0 16px;
  grid-template-columns: 24px 1fr 30px;
  gap: 8px;
}

.login-page .auth-field {
  grid-template-columns: 1fr 30px;
}

.auth-field > .material-symbols-outlined,
.auth-field button .material-symbols-outlined {
  font-size: 20px;
}

.auth-field input {
  font-size: 15px;
}

.auth-agreement {
  margin: 20px 0 22px;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-agreement input {
  width: 20px;
  height: 20px;
}

.auth-primary-btn {
  min-height: 52px;
  border-radius: 16px;
  gap: 8px;
  font-size: 16px;
}

.auth-primary-btn .material-symbols-outlined {
  font-size: 20px;
}

.auth-switch {
  margin-top: 32px;
  font-size: 14px;
}

.login-page .auth-switch {
  bottom: 28px;
}

@media (max-width: 640px) {
  .auth-page {
    padding: 0 18px 28px;
  }

  .auth-header {
    height: 60px;
    grid-template-columns: 36px 1fr 42px;
  }

  .auth-header.centered {
    grid-template-columns: 36px 1fr 36px;
  }

  .auth-header h1 {
    font-size: 19px;
  }

  .auth-copy,
  .login-page .auth-copy {
    margin-top: 20px;
    margin-bottom: 26px;
  }

  .auth-copy h2 {
    font-size: 21px;
  }

  .auth-copy p {
    font-size: 13px;
  }

  .auth-field-label {
    font-size: 13px;
  }

  .auth-field,
  .login-page .auth-field {
    min-height: 46px;
    border-radius: 12px;
    padding: 0 14px;
  }

  .auth-field input {
    font-size: 14px;
  }

  .auth-primary-btn {
    min-height: 48px;
    font-size: 15px;
  }

  .change-password-page {
    padding-right: 0;
    padding-left: 0;
  }

  .change-password-page .personal-header {
    margin-right: 0;
    margin-left: 0;
    padding: 0 22px;
  }

  .change-password-page .auth-field.password-field {
    min-height: 56px;
    border-radius: 0;
    padding: 0 14px 0 22px;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .change-password-page .password-field input {
    font-size: 16px;
  }

  .change-password-submit {
    width: calc(100% - 44px);
    margin-right: 22px;
    margin-left: 22px;
  }

  .auth-switch {
    font-size: 13px;
  }
}

/* Small polish pass for home, orders, profile and message avatar. */
.hero-copy > .chips {
  margin-top: 14px;
}

.orders-intro-card {
  gap: 22px;
}

.orders-intro-card button {
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
}

.orders-tabs {
  gap: 10px;
  margin-bottom: 22px;
}

.orders-tabs button {
  min-width: 92px;
  height: 42px;
  font-size: 14px;
}

.orders-tabs button.active {
  border-width: 2px;
}

.merchant-entry-card {
  min-height: 244px;
  padding: 30px 28px;
}

.merchant-entry-card div {
  gap: 10px;
}

.merchant-entry-card span {
  font-size: 15px;
}

.merchant-entry-card strong {
  font-size: 22px;
  line-height: 1.28;
}

.merchant-entry-card p {
  font-size: 13px;
  line-height: 1.5;
}

.merchant-entry-card button {
  width: 128px;
  height: 46px;
  margin-top: 12px;
  font-size: 15px;
}

.message-user-avatar {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 112, 17, 0.35);
  background: linear-gradient(180deg, #ff7b22, #ff5f0b);
  font-size: 19px;
}

.message-user-avatar img {
  display: block;
  border: 3px solid transparent;
  background: linear-gradient(180deg, #ff7b22, #ff5f0b);
  background-clip: padding-box;
}

@media (max-width: 640px) {
  .hero-copy > .chips {
    margin-top: 12px;
  }

  .orders-intro-card {
    margin: 5px 0 28px;
    padding: 32px;
  }

  .orders-intro-card button {
    min-height: 42px;
    font-size: 13px;
  }

  .orders-tabs button {
    min-width: 78px;
    height: 36px;
    font-size: 13px;
  }

  .merchant-entry-card {
    min-height: 214px;
    border-radius: 20px;
    padding: 24px 22px;
  }

  .merchant-entry-card span {
    font-size: 13px;
  }

  .merchant-entry-card strong {
    font-size: 18px;
  }

  .merchant-entry-card p {
    font-size: 13px;
  }

  .merchant-entry-card button {
    width: 112px;
    height: 40px;
    font-size: 13px;
  }
}

/* Final production fixes from browser QA. */
.detail-rating-row,
.detail-rating-row strong,
.detail-rating-row span {
  font-size: 13px;
  line-height: 1.35;
}

.detail-rating-row {
  gap: 6px;
  margin-bottom: 14px;
}

.detail-rating-row strong {
  font-size: 13px;
}

.detail-rating-row i {
  width: 5px;
  height: 5px;
}

.detail-book-bar {
  bottom: 58px;
}

.address-card {
  grid-template-columns: 28px 1fr 30px;
  gap: 12px;
}

.address-icon .material-symbols-outlined,
.address-card button .material-symbols-outlined {
  font-size: 24px;
}

.address-card button {
  width: 30px;
  min-width: 30px;
}

@media (max-width: 640px) {
  .detail-book-bar {
    bottom: 58px;
  }

  .address-card {
    grid-template-columns: 26px 1fr 28px;
    gap: 10px;
  }

  .address-icon .material-symbols-outlined,
  .address-card button .material-symbols-outlined {
    font-size: 22px;
  }
}
