:root {
  --green: #12b957;
  --green-dark: #079443;
  --green-soft: #eaf8ef;
  --orange: #ff7a1a;
  --ink: #141922;
  --muted: #6f7785;
  --line: #e8edf2;
  --soft: #f5f8f6;
  --blue: #1f78ff;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef4f1, #dde6ea);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 20px 70px rgba(18, 28, 45, 0.18);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 22px 15px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
}

.screen.active {
  display: block;
}

#detailPage {
  padding-bottom: 128px;
}

.topbar,
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-spacer {
  width: 32px;
  height: 32px;
}

.city-button,
.back-button,
.plain-button,
.mini-menu {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.city-button {
  padding: 8px 0;
  font-size: 22px;
}

.city-button::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 6px solid var(--ink);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  vertical-align: middle;
}

.mini-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 34px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mini-menu span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
  gap: 14px;
  min-height: 184px;
  margin: 14px -15px 0;
  padding: 18px 15px 22px;
  background:
    radial-gradient(circle at 82% 22%, rgba(18, 185, 87, 0.14), transparent 30%),
    linear-gradient(92deg, #ffffff 0%, #edf8f1 60%, #e1f4ec 100%);
}

.hero h1 {
  margin: 0;
  font-size: 35px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1::first-line {
  color: var(--ink);
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero .eyebrow {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-weight: 800;
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 0 22px 22px;
  object-position: 62% center;
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  text-align: left;
}

.location-row strong {
  color: var(--green-dark);
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 12px;
}

.recommend-heading {
  align-items: end;
  margin-top: 22px;
}

.recommend-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.coach-list {
  display: grid;
  gap: 12px;
  padding-bottom: 92px;
}

.recommended-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.recommended-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 13px;
  padding: 12px;
  border: 1px solid #d8f0e2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfffc, #ffffff);
  box-shadow: 0 10px 28px rgba(18, 148, 67, 0.08);
  cursor: pointer;
}

.recommended-main {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  min-width: 0;
}

.recommended-main p {
  margin: 6px 0;
  color: #4a515c;
  font-size: 13px;
  line-height: 1.38;
}

.recommended-bottom {
  display: flex;
  align-items: baseline;
  margin-top: auto;
}

.coach-card {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 14px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 24px rgba(19, 35, 45, 0.05);
  cursor: pointer;
}

.coach-card:active {
  transform: translateY(1px);
}

.photo-wrap {
  position: relative;
  align-self: start;
}

.coach-photo,
.recommended-photo {
  width: 102px;
  height: 128px;
  border-radius: 15px;
  object-fit: cover;
  background: var(--soft);
}

.recommended-photo {
  width: 112px;
  height: 132px;
}

.photo-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 6px 6px;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, rgba(7, 148, 67, 0.86), rgba(4, 126, 57, 0.96));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 -8px 16px rgba(2, 80, 35, 0.08);
}

.coach-main {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  min-width: 0;
}

.coach-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.coach-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.coach-title h3 {
  margin: 0;
  font-size: 19px;
}

.coach-id,
.distance,
.meta {
  color: var(--muted);
  font-size: 12px;
}

.verified {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf8f2;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.coach-card p {
  margin: 7px 0 0;
  color: #4a515c;
  font-size: 13px;
  line-height: 1.35;
}

.coach-bottom {
  display: flex;
  align-items: baseline;
  margin-top: auto;
}

.detail-link {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.price {
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.price small {
  color: #2d3340;
  font-size: 12px;
  font-weight: 600;
}

.primary,
.secondary,
.consult-button {
  border: 0;
  border-radius: 13px;
  font-weight: 900;
}

.consult-button {
  min-width: 92px;
  padding: 10px 12px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
}

.service-strip {
  position: fixed;
  left: 50%;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100vw - 30px), 400px);
  transform: translateX(-50%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 35px rgba(21, 35, 45, 0.12);
  text-align: left;
}

.service-dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.service-strip small,
.service-strip strong {
  display: block;
}

.service-strip small {
  color: var(--muted);
}

.service-strip b {
  margin-left: auto;
  color: var(--green-dark);
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -22px -15px 0;
  padding: 16px 15px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.back-button,
.plain-button {
  color: var(--green-dark);
  font-size: 14px;
}

.detail-profile-card {
  display: block;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #d8f0e2;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(237, 248, 242, 0.9), rgba(255, 255, 255, 0) 48%),
    #fff;
  box-shadow: 0 16px 38px rgba(18, 148, 67, 0.1);
}

.detail-profile-top {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
}

.detail-avatar-wrap {
  position: relative;
  align-self: start;
}

.detail-avatar-wrap img {
  display: block;
  width: 128px;
  height: 162px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--soft);
}

.detail-avatar-wrap span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 6px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(7, 148, 67, 0.86), rgba(4, 126, 57, 0.96));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.detail-profile-main {
  display: flex;
  min-width: 0;
  min-height: 162px;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.detail-profile-main h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.12;
}

.detail-name-row {
  display: flex;
  align-items: start;
  justify-content: flex-start;
}

.detail-id {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 13px;
}

.detail-meta-line span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f7f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.copy-id-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dce8e1;
  border-radius: 10px;
  background: #fff;
}

.copy-id-button::before,
.copy-id-button::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 12px;
  border: 1.8px solid var(--green-dark);
  border-radius: 3px;
}

.copy-id-button::before {
  transform: translate(-3px, -3px);
  opacity: 0.45;
}

.copy-id-button::after {
  transform: translate(3px, 3px);
  background: #fff;
}

.copy-id-button:active {
  transform: scale(0.96);
}

.detail-tags {
  margin-top: 0;
}

.detail-info-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-info-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #edf1f0;
  border-radius: 14px;
  background: #f8faf9;
}

.detail-info-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-info-row > strong {
  color: #27313d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.assurance-panel {
  margin-top: 10px;
}

.assurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assurance-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #edf8f2;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.section-block {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 35, 45, 0.04);
}

.section-block h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.course-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dfe9e5;
  box-shadow: 0 10px 26px rgba(19, 35, 45, 0.05);
}

.course-card + .course-card {
  margin-top: 18px;
}

.course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--green);
}

.course-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

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

.course-head > div {
  min-width: 0;
}

.course-price {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.course-recommend {
  margin: 13px 0 0;
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--green-soft);
  color: #276344 !important;
  font-weight: 700;
}

.course-goals {
  margin-top: 11px;
  padding: 11px 12px 12px;
  border: 1px solid #edf1f0;
  border-radius: 13px;
  background: #fbfdfc;
}

.course-goals > b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.benefit-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.benefit-row span:nth-child(3):last-child {
  grid-column: 1 / -1;
}

.course-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 16px 0 0;
}

.course-facts > span,
.course-facts > button {
  display: grid;
  gap: 5px;
  min-height: 60px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #edf1f0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.38;
  text-align: left;
}

.course-facts b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.course-facts em {
  color: var(--green-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.course-facts .fact-place {
  grid-column: 1 / -1;
}

.course-facts .fact-half {
  grid-column: span 1;
}

.course-facts .fact-place,
.course-facts > span:first-child {
  background: #f8faf9;
}

.fact-address {
  position: relative;
  cursor: pointer;
}

.fact-address > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fact-address strong {
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
}

.fact-address i {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.fact-address:active {
  transform: translateY(1px);
}

.course-card p,
.section-block p,
.service-page p,
.service-page li {
  color: #4f5864;
  font-size: 14px;
  line-height: 1.55;
}

.address-button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d7e8ff;
  border-radius: 14px;
  background: #f2f7ff;
  color: var(--blue);
  text-align: left;
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.photo-row img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.case-list,
.review-list {
  display: grid;
  gap: 10px;
}

.review-list {
  margin-top: 12px;
}

.case-card,
.review-card {
  margin: 0;
  padding: 13px;
  border-radius: 15px;
  background: #f8faf9;
  border: 1px solid #edf1f0;
}

.case-card span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2762b7;
  font-size: 12px;
  font-weight: 900;
}

.case-card p,
.review-card p {
  margin: 6px 0;
}

.case-card strong {
  color: var(--ink);
}

.review-card {
  border-color: #ffe3c7;
  background: #fffaf5;
}

.review-card p {
  color: #4f5864;
}

.review-card cite {
  display: block;
  margin-top: 8px;
  color: #9a5208;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  margin: 0;
  padding: 14px 15px calc(18px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(19, 35, 45, 0.08);
}

.sticky-cta .primary {
  min-height: 48px;
  border-radius: 999px;
  font-size: 17px;
}

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

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.wide {
  width: 100%;
  padding: 14px 16px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
}

.sheet.open {
  display: block;
}

.scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 20, 31, 0.38);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100vw, 430px);
  max-height: 86vh;
  overflow: auto;
  transform: translateX(-50%);
  padding: 10px 18px 18px;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 16px;
  border-radius: 999px;
  background: #dbe2e9;
}

.sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-head h2 {
  margin: 0;
}

.sheet-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: var(--muted);
  font-size: 22px;
}

label {
  display: block;
  margin: 12px 0;
  color: #28313d;
  font-size: 14px;
  font-weight: 800;
}

label strong {
  color: #ff4d4f;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: #fbfcfd;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 185, 87, 0.12);
}

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

.sheet-actions button,
.contact-card a,
.contact-card button {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.success-message {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 13px;
  background: #eaf8ef;
  color: var(--green-dark);
}

.success-message span {
  color: #397653;
  font-size: 13px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-card + .contact-card {
  margin-top: 10px;
}

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

.contact-card strong {
  grid-column: 1;
  font-size: 18px;
}

.contact-card a,
.contact-card button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 92px;
}

.contact-panel .secondary {
  margin-top: 14px;
}

.service-page {
  padding-top: 20px;
}

.service-page h1 {
  margin: 0 0 10px;
  font-size: 27px;
}

.service-page section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.service-page h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-page ul {
  margin: 0;
  padding-left: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  display: none;
  transform: translateX(-50%);
  max-width: min(330px, calc(100vw - 40px));
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(18, 25, 34, 0.92);
  color: #fff;
  font-size: 14px;
}

.toast.show {
  display: block;
}

.viewport-debug {
  position: fixed;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 30;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(18, 25, 34, 0.92);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 360px) {
  .coach-card {
    grid-template-columns: 92px 1fr;
  }

  .coach-photo {
    width: 92px;
    height: 118px;
  }

  .recommended-card {
    grid-template-columns: 96px 1fr;
  }

  .recommended-photo {
    width: 96px;
    height: 122px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .consult-button {
    min-width: 82px;
    padding-inline: 9px;
  }
}

@media (max-width: 390px) {
  .screen {
    padding-inline: 12px;
  }

  .detail-topbar {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero {
    margin-inline: -12px;
    padding-inline: 12px;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 10px;
  }

  .recommended-card,
  .coach-card {
    gap: 10px;
    padding: 10px;
  }

  .recommended-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .coach-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .recommended-photo {
    width: 94px;
    height: 118px;
  }

  .coach-photo {
    width: 90px;
    height: 114px;
  }

  .recommended-main,
  .coach-main {
    min-height: 114px;
  }

  .coach-top,
  .coach-bottom,
  .recommended-bottom {
    flex-wrap: wrap;
  }

  .coach-title h3 {
    font-size: 18px;
  }

  .tag-row span {
    padding-inline: 7px;
  }

  .detail-profile-card {
    padding: 14px;
  }

  .detail-profile-top {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .detail-avatar-wrap img {
    width: 104px;
    height: 132px;
  }

  .detail-profile-main {
    min-height: 132px;
  }

  .detail-profile-main h1 {
    font-size: 27px;
  }

  .course-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .course-price {
    white-space: normal;
  }

  .service-strip {
    width: calc(100vw - 24px);
  }
}

@media (max-width: 375px) {
  .recommended-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .coach-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .recommended-photo {
    width: 86px;
    height: 110px;
  }

  .coach-photo {
    width: 82px;
    height: 106px;
  }

  .recommended-main,
  .coach-main {
    min-height: 106px;
  }

  .photo-badge,
  .coach-id,
  .distance,
  .meta {
    font-size: 11px;
  }

  .price {
    font-size: 16px;
  }

  .coach-card p,
  .recommended-main p {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .screen {
    padding-inline: 10px;
  }

  .hero {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .recommended-card,
  .coach-card {
    gap: 8px;
    padding: 8px;
    border-radius: 15px;
  }

  .recommended-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .coach-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .recommended-photo {
    width: 72px;
    height: 96px;
    border-radius: 12px;
  }

  .coach-photo {
    width: 70px;
    height: 94px;
    border-radius: 12px;
  }

  .recommended-main,
  .coach-main {
    min-height: 94px;
  }

  .coach-top,
  .coach-bottom,
  .recommended-bottom {
    flex-wrap: nowrap;
    min-width: 0;
  }

  .coach-title {
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
  }

  .coach-title h3,
  .coach-id,
  .distance,
  .price,
  .price small,
  .tag-row span {
    white-space: nowrap;
  }

  .coach-title h3 {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .coach-id,
  .distance,
  .photo-badge {
    font-size: 10px;
  }

  .distance {
    margin-left: auto;
  }

  .tag-row {
    gap: 4px;
    margin-top: 6px;
    overflow: hidden;
  }

  .tag-row span {
    padding: 3px 6px;
    font-size: 10px;
  }

  .coach-card p,
  .recommended-main p {
    margin-top: 5px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .price {
    font-size: 15px;
  }

  .price small {
    font-size: 10px;
  }
}

/* Minimum 320px support */
@media (max-width: 340px) {
  .detail-topbar {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .location-row {
    gap: 10px;
    padding: 11px 12px;
  }

  .location-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .location-row strong {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .service-strip {
    bottom: 10px;
    gap: 8px;
    width: calc(100vw - 20px);
    padding: 10px;
  }

  .service-dot {
    width: 40px;
    height: 40px;
  }

  .sticky-cta {
    padding-right: 10px;
    padding-left: 10px;
  }

  .sheet-panel {
    padding-right: 12px;
    padding-left: 12px;
  }
}
