@media (max-width: 760px) {
  html {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  html.mobile-order-scroll-locked,
  body.mobile-order-scroll-locked {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.mobile-order-scroll-locked {
    position: fixed;
    inset: 0;
    width: 100%;
  }
  body { width: 100%; max-width: 100%; overflow-x: hidden; background: #f5f8f7; color: #24342f; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  main, form, fieldset, .page-shell, .form-panel, .form-panel p, .order-fields { min-width: 0; max-width: 100%; }
  .site-footer { display: none; }
  h1, h2, h3, p, a, button { letter-spacing: 0; }
  h1 { font-size: 25px; line-height: 1.25; text-align: left; }
  h2 { font-size: 20px; }
  .topbar { top: 0; width: 100%; margin: 0; padding: 10px 16px; gap: 8px; border: 0; border-bottom: 1px solid #e4eae7; border-radius: 0; box-shadow: none; background: rgba(255,255,255,.97); }
  .topbar .icon-button { background: transparent; border: 0; box-shadow: none; }
  .brand-logo { width: 110px; max-width: 100%; }
  .mobile-back-wrap { display: flex; justify-content: flex-end; width: calc(100% - 32px); margin: 10px auto 0; }
  .mobile-back-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid #d4e2da; border-radius: 7px; background: #fff; color: #176b45; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
  .mobile-back-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-back-button:active { background: #edf7f1; }
  .mobile-heading-with-back { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .mobile-heading-with-back .mobile-back-wrap { grid-column: 2; width: auto; margin: 0; }
  .mobile-heading-with-back h1 { margin: 0; }
  .mobile-back-after-heading { margin-top: -10px; margin-bottom: 10px; }
  .section-list-heading { gap: 12px; }
  .section-list-heading .section-heading-title { width: 100%; }
  .section-list-heading .actions { justify-content: flex-start; }
  .profile-dropdown { top: var(--profile-menu-top, calc(100% + 16px)); right: 0; left: auto; width: min(290px, calc(100vw - 32px)); max-height: var(--profile-menu-max-height, calc(100vh - 84px)); border-radius: 8px; }
  .profile-button.has-unread-notifications { position: relative; }
  .profile-menu:not([open]) .profile-button.has-unread-notifications { color: #d15c16; animation: profile-alert-pulse 1.55s ease-in-out infinite; }
  .profile-menu:not([open]) .profile-button.has-unread-notifications::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #ef6b23; animation: profile-alert-dot 1.55s ease-in-out infinite; }
  .profile-menu[open] .profile-button.has-unread-notifications { color: #08794b; animation: none; }
  .profile-menu[open] .profile-button.has-unread-notifications::after { display: none; }
  .profile-menu[open] .notification-menu-link.has-unread-notifications { color: #a8460b; background: #fff3e8; border-top-color: #efc39d; animation: notification-menu-alert 1.55s ease-in-out infinite; font-weight: 800; }
  .profile-menu[open] .notification-menu-link.has-unread-notifications > svg { color: #d65b16; }
  .profile-menu[open] .notification-menu-link.has-unread-notifications .unread-badge { background: #df5b18; color: #fff; }
  .page-shell, .page-shell.narrow { width: calc(100% - 32px); margin: 20px auto 28px; }
  .page-heading, .dashboard-head { text-align: left; margin-bottom: 20px; }
  .page-heading h1, .dashboard-head h1 { font-size: 25px; }
  .performer-dashboard-head { gap: 14px; margin-top: 6px; }
  .performer-dashboard-title, .dashboard-title-row { width: 100%; }
  .dashboard-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .dashboard-title-row h1 { min-width: 0; font-size: 24px; line-height: 1.2; }
  .dashboard-title-row .mobile-back-wrap { grid-column: 2; width: auto; margin: 0; }
  .performer-dashboard-head .actions { width: 100%; justify-content: stretch; }
  .performer-dashboard-head .actions > * { flex: 1 1 100%; }
  .performer-onboarding-card, .profile-worker-cta { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .performer-onboarding-icon, .profile-worker-cta-icon { width: 42px; height: 42px; border-radius: 11px; }
  .performer-onboarding-icon svg, .profile-worker-cta-icon svg { width: 21px; height: 21px; }
  .performer-onboarding-card h2, .profile-worker-cta h2 { font-size: 16px; }
  .performer-onboarding-card p, .profile-worker-cta p { font-size: 11px; }
  .performer-onboarding-card > .primary-btn, .profile-worker-cta > .primary-btn { grid-column: 1 / -1; width: 100%; }
  .performer-services-heading { align-items: stretch; flex-direction: column; }
  .performer-services-heading .secondary-btn { width: 100%; }
  .profile-page-heading { margin-top: 4px; }
  .customer-account-summary .profile-stats { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px; border-radius: 8px; box-shadow: none; border-color: #dfe7e2; }
  .page-shell > .panel, .order-layout > .panel, .detail-hero > .panel { background: transparent; border: 0; border-radius: 0; padding: 0; }
  .service-hero { width: calc(100% - 32px); max-width: 480px; margin: 2px auto 24px; }
  .service-hero-copy { padding: 18px 14px 16px; gap: 14px; border-radius: 16px; box-shadow: 0 8px 18px rgba(15,70,130,.10); }
  .hero-copy-main { position: relative; display: flex; flex-direction: column; gap: 12px; }
  .hero-kicker-row { position: static; font-size: 10px; }
  .hero-kicker { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); box-shadow: none; padding: 5px 9px; max-width: none; }
  .service-hero-copy h1 { max-width: 350px; display: block; overflow: visible; margin: 0 auto; font-size: 19px; line-height: 1.28; text-align: center; }
  .hero-visual { width: min(100%, 300px); padding: 4px 0; gap: 12px; }
  .hero-photo-card { width: 78px; flex: 0 1 78px; box-shadow: 0 5px 10px rgba(0,32,90,.20); }
  .hero-photo-main { width: 86px; flex-basis: 86px; }
  .hero-photo-card img, .hero-photo-main img { height: 56px; }
  .hero-photo-card strong { font-size: 8px; }
  .hero-photo-card small, .hero-stars { font-size: 6px; }
  .service-hero-copy .hero-actions { width: min(100%, 280px); display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .service-hero-copy .hero-actions .primary-btn, .service-hero-copy .hero-actions .secondary-btn { min-height: 44px; font-size: 13px; background: #087442; border: 1px solid rgba(255,255,255,.40); box-shadow: 0 3px 7px rgba(0,45,32,.16); border-radius: 8px; }
  .service-hero-copy .hero-actions .primary-btn:hover, .service-hero-copy .hero-actions .secondary-btn:hover { background: #056038; }
  .home-carousel-grid { display: flex; flex-direction: column; width: 100%; margin-top: 0; gap: 28px; }
  .carousel-section { border: 0; border-radius: 0; box-shadow: none; background: transparent; margin: 0; padding: 0; width: 100%; }
  .carousel-section .section-heading { padding: 0 16px; justify-content: flex-start; margin-bottom: 14px; }
  .section-heading h2, .compact-info-section .section-heading h2 { font-size: 20px; text-align: left; }
  .vertical-carousel { height: auto; overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; scrollbar-width: none; padding: 0 16px 8px; }
  .vertical-carousel-track, .vertical-carousel-track.slow { flex-direction: row; display: flex; gap: 12px; animation: none; transform: none; }
  .vertical-carousel-track > [aria-hidden="true"] { display: grid; }
  .vertical-carousel.has-single-card .vertical-carousel-track > [aria-hidden="true"] { display: none; }
  .vertical-carousel .carousel-listing-card { width: 268px; flex: 0 0 268px; height: 190px; scroll-snap-align: center; padding: 16px; }
  .listing-card, .performer-card, .carousel-card { border: 1px solid #dce5df; border-radius: 8px; box-shadow: 0 2px 4px rgba(24,52,38,.03); background: #fff; }
  .listing-card { padding: 16px; gap: 10px; height: 264px; }
  .listing-card > strong { font-size: 15px; line-height: 1.35; }
  .listing-category { color: #146b96; background: #edf6fb; font-size: 10px; }
  .listing-status { font-size: 10px; }
  .listing-status-active { background: #087847; }
  .listing-meta-row { background: #f5f8f6; border: 0; border-radius: 5px; padding: 8px; gap: 7px; }
  .listing-meta-row small { font-size: 11px; }
  .listing-card .listing-action { width: 80%; height: 40px; min-height: 40px; padding: 8px; background: #08784c; color: white; box-shadow: none; border-radius: 6px; font-size: 12px; }
  .listing-card:hover .listing-action { background: #056339; }
  .carousel-more-btn { width: calc(100% - 32px); margin: 8px 16px 0; background: transparent; color: #0c7148; border: 1px solid #cddfd4; box-shadow: none; border-radius: 6px; min-height: 42px; font-size: 13px; }
  .mobile-how-section { width: calc(100% - 32px); margin: 0 16px; padding: 20px 0; border-block: 1px solid #dfe7e2; }
  .mobile-how-section .process-grid { gap: 18px; }
  .mobile-how-section .process-card { border: 0; background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
  .compact-info-section .process-card span { background: #e0f0e7; color: #156b47; box-shadow: none; }
  .compact-info-section .process-card h3 { font-size: 14px; }
  .compact-info-section .process-card p { font-size: 12px; color: #67766f; }
  .category-filter, .category-filter-more-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .category-filter-card { background: white; padding: 10px 12px; border-radius: 8px; box-shadow: none; border-color: #e0e7e3; }
  .category-filter-card.active { border-color: #79b79c; background: #eff7f3; }
  .category-filter-icon { background: #e8f3ef; border-radius: 6px; color: #157249; }
  .category-filter-more summary { background: transparent; color: #0c7148; border: 1px solid #cddfd4; border-radius: 6px; }
  .primary-btn { background: #08784c; box-shadow: none; min-height: 44px; border-radius: 8px; }
  .secondary-btn { box-shadow: none; min-height: 44px; border-radius: 8px; }
  .form-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .form-panel select, .form-panel textarea { display: block; width: 100%; min-width: 0; max-width: 100%; font-size: 16px; border: 1px solid #d5e0d9; background: white; border-radius: 8px; min-height: 46px; }
  .form-panel input[type="date"], .form-panel input[type="time"], .form-panel input[type="datetime-local"] { height: 48px; min-height: 48px; line-height: 1.2; }
  .form-panel input[type="date"]::-webkit-date-and-time-value,
  .form-panel input[type="time"]::-webkit-date-and-time-value,
  .form-panel input[type="datetime-local"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
  @supports (-webkit-touch-callout: none) {
    .form-panel input[type="date"], .form-panel input[type="time"], .form-panel input[type="datetime-local"] {
      -webkit-appearance: none;
      appearance: none;
    }
  }
  .form-panel label { color: #344c40; font-size: 13px; font-weight: 600; }
  .form-panel .helptext { font-size: 12px; line-height: 1.5; }
  .form-panel .funding-notice { align-items: center; font-size: 11px; gap: 7px; padding: 10px 11px; }
  .form-panel .funding-notice svg { flex-basis: 17px; width: 17px; height: 17px; }
  .payment-confirmation-page { width: calc(100% - 24px); margin-top: 18px; }
  .payment-confirmation-page .page-heading { margin-bottom: 16px; }
  .payment-confirmation-page .page-heading h1 { font-size: 27px; }
  .payment-confirmation-card { padding: 16px; gap: 14px; border-radius: 16px; }
  .payment-summary { align-items: flex-start; }
  .payment-summary strong { font-size: 22px; }
  .payment-status-badge { max-width: 155px; padding: 7px 10px; font-size: 11px !important; }
  .payment-code-intro { gap: 10px; padding: 13px; }
  .payment-code-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; }
  .payment-code-intro h2 { font-size: 16px; }
  .payment-code-intro p { font-size: 12px; }
  .payment-code-field input { min-height: 56px !important; font-size: 22px !important; }
  .card-required-note { font-size: 11px; padding: 11px; }
  .card-required-note strong { font-size: 12px; }
  .form-panel .card-binding-action { width: 100%; max-width: none; justify-self: stretch; justify-content: center; margin-left: 0; }
  .form-panel .card-binding-state { max-width: 100%; }
  .worker-application-page { width: calc(100% - 24px); margin-top: 14px; }
  .worker-application-heading { gap: 12px; margin-bottom: 14px; }
  .worker-application-heading.worker-application-heading-with-back { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .worker-application-heading-with-back > h1 { grid-column: 1; }
  .worker-application-heading-with-back > .mobile-back-wrap { grid-column: 2; width: auto; margin: 0; }
  .worker-application-heading-with-back > :not(h1):not(.mobile-back-wrap) { grid-column: 1 / -1; }
  .worker-application-heading h1 { font-size: 26px; }
  .rhmt-registration-note { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 12px; }
  .rhmt-registration-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; }
  .rhmt-registration-note strong { font-size: 13px; }
  .rhmt-registration-note small { font-size: 11px; }
  .rhmt-store-links { grid-column: 1 / -1; width: 100%; }
  .rhmt-registration-link { width: 100%; min-height: 44px; }
  .worker-application-page > .worker-application-form { gap: 20px; padding: 16px; border: 1px solid #dce8e1; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(28, 68, 50, .07); }
  .performer-type-fieldset legend { margin-bottom: 9px; font-size: 13px; }
  .performer-type-options { grid-template-columns: 1fr; gap: 9px; }
  .performer-type-option { grid-template-columns: 38px minmax(0, 1fr) 19px; min-height: 70px; padding: 11px 12px; border-radius: 12px; }
  .performer-type-icon { width: 38px; height: 38px; border-radius: 10px; }
  .performer-type-copy strong { font-size: 13px; }
  .performer-type-copy small { font-size: 11px; }
  .worker-application-fields, .worker-legal-fields { gap: 14px; }
  .worker-application-submit { justify-self: stretch; min-width: 0; }
  .order-summary-grid { gap: 0; }
  .order-summary-card { border: 0; border-bottom: 1px solid #e2e8e3; border-radius: 0; box-shadow: none; background: transparent; grid-template-columns: 28px minmax(80px,.8fr) minmax(0,1.2fr); padding: 12px 0; }
  .order-summary-card dd { font-size: 13px; overflow-wrap: anywhere; }
  .order-summary-card dt { font-size: 11px; }
  .order-summary-icon { background: #e7f0ec; color: #18744f; border-radius: 6px; }
  .detail-title, .detail-main-card .detail-title { text-align: left; font-size: 22px; }
  .favorite-action { font-size: 10px; gap: 5px; min-height: 32px; padding: 6px 9px; }
  .favorite-action svg { flex-basis: 16px; width: 16px; height: 16px; }
  .performer-favorite { left: 10px; top: 10px; }
  .description-card { box-shadow: none; border: 0; border-radius: 0; background: transparent; padding: 12px 0; min-height: 0; }
  .owner-share { flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; }
  .owner-share > strong { width: 100%; margin: 0; }
  .owner-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .share-button { min-height: 42px; }
  .share-feedback { text-align: left; }
  .payout-account-card { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .payout-account-icon { width: 42px; height: 42px; border-radius: 11px; }
  .payout-account-icon svg { width: 21px; height: 21px; }
  .payout-account-copy h2 { font-size: 16px; }
  .payout-account-copy p { font-size: 11px; }
  .payout-account-card > .primary-btn, .payout-account-ready { grid-column: 1 / -1; width: 100%; }
  .payout-account-ready { justify-content: center; }
  .action-panel { margin-top: 20px; }
  .status-step { box-shadow: none; }
  .bottom-nav { bottom: 0; left: 0; right: 0; width: 100%; max-width: none; transform: none; margin: 0; border-radius: 0; border: 0; border-top: 1px solid #dde7e1; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); box-shadow: 0 -3px 12px rgba(28,60,39,.03); }
  .bottom-nav { height: auto; min-height: 72px; }
  .bottom-nav a { min-height: 46px; border-radius: 6px; color: #718178; gap: 5px; }
  .bottom-nav a span { font-size: 10px; }
  .bottom-nav a[aria-current="page"] { color: #077341; background: #eef7f1; }
  .bottom-nav svg { width: 21px; height: 21px; }
  .bottom-nav .unread-badge { position: absolute; top: 1px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 4px; font-size: 9px; }
  .workspace-heading { align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .workspace-heading h1 { font-size: 25px; }
  .wallet-layout { grid-template-columns: minmax(0,1fr); }
  .wallet-overview { padding: 24px 0; }
  .balance-display > strong { font-size: 32px; }
  .wallet-topup { padding: 22px 0; border-left: 0; border-top: 1px solid #dfe7e9; }
  .wallet-topup h2, .wallet-history h2, .wallet-pending h2 { font-size: 18px; }
  .transaction-row { gap: 9px; padding: 16px 0; }
  .transaction-icon { flex-basis: 32px; height: 32px; }
  .transaction-info strong { font-size: 12px; }
  .transaction-info a { font-size: 11px; }
  .transaction-amount { font-size: 13px; max-width: 45%; overflow-wrap: anywhere; }
  .conversation-row { gap: 10px; padding: 18px 0; }
  .conversation-info strong { font-size: 14px; }
  .chat-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .chat-page { margin-top: 8px; }
  .chat-heading { gap: 9px; padding-bottom: 14px; }
  .chat-heading h1 { font-size: 16px; text-align: left; }
  .chat-heading small { font-size: 10px; }
  .chat-order { padding: 12px 8px; gap: 8px; }
  .chat-order small { max-width: 30%; }
  .chat-log { height: max(230px, calc(100dvh - 385px)); padding: 18px 6px; }
  .chat-bubble { padding: 10px 12px; max-width: 88%; }
  .chat-composer { background: #f5f8f7; position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .payment-result .payment-amount { font-size: 28px; }
  .settings-callback { font-size: 12px; }
}
@keyframes profile-alert-pulse {
  0%, 100% { color: #b94c10; box-shadow: 0 0 0 0 rgba(225, 96, 28, .08); }
  50% { color: #ef6b23; box-shadow: 0 0 0 7px rgba(225, 96, 28, .16); }
}
@keyframes profile-alert-dot {
  0%, 100% { opacity: .55; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes notification-menu-alert {
  0%, 100% { background: #fff8f1; box-shadow: inset 3px 0 0 rgba(223, 91, 24, .45); }
  50% { background: #ffead8; box-shadow: inset 3px 0 0 #df5b18; }
}
@media (prefers-reduced-motion: reduce) {
  .vertical-carousel-track, .vertical-carousel-track.slow { animation: none; }
  .profile-menu:not([open]) .profile-button.has-unread-notifications,
  .profile-menu:not([open]) .profile-button.has-unread-notifications::after,
  .profile-menu[open] .notification-menu-link.has-unread-notifications { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
