/**
 * TASFUL — スマホ詳細ページUI統一（960px以下）
 */
@media (max-width: 960px) {
  :root {
    --tasu-detail-pad-x: 0.85rem;
    --tasu-detail-tab-pad: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  body.tasu-app-mobile-page:not(.tasu-mdetail-page):not([data-detail-type="skill"]):not([data-detail-type="worker"]) {
    padding-bottom: var(--tasu-detail-tab-pad) !important;
  }

  body.tasu-app-mobile-page .dash-content,
  body.tasu-app-mobile-page .anpi-dashboard-main,
  body.tasu-app-mobile-page .anpi-dashboard-shell,
  body.tasu-app-mobile-page .demo-deals-layout,
  body.tasu-app-mobile-page main.shop-checkout,
  body.tasu-app-mobile-page .post-page {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--tasu-detail-pad-x) !important;
    padding-right: var(--tasu-detail-pad-x) !important;
    padding-bottom: var(--tasu-detail-tab-pad) !important;
    box-sizing: border-box;
  }

  body.tasu-app-mobile-page .skill-detail-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--tasu-detail-pad-x) !important;
    padding-right: var(--tasu-detail-pad-x) !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
  }

  body.tasu-app-mobile-page .skill-detail-wrap {
    padding-top: 0.5rem !important;
  }

  body.tasu-app-mobile-page .anpi-panel-card,
  body.tasu-app-mobile-page .anpi-summary-card,
  body.tasu-app-mobile-page .anpi-dash-register-banner,
  body.tasu-app-mobile-page .demo-deals-panel,
  body.tasu-app-mobile-page .shop-checkout__card,
  body.tasu-app-mobile-page .post-agent,
  body.tasu-app-mobile-page .skill-hero-section,
  body.tasu-app-mobile-page [data-listing-hero-figure] {
    border-radius: 14px;
  }

  body.tasu-app-mobile-page .anpi-stat-grid,
  body.tasu-app-mobile-page .anpi-quick-grid {
    grid-template-columns: 1fr;
  }

  body.tasu-app-mobile-page:has(.tasu-mobile-shell-head) .anpi-dash-header,
  body.tasu-app-mobile-page:has(.tasu-mobile-shell-head) .demo-deals-page-head {
    display: none !important;
  }

  body.tasu-app-mobile-page .shop-checkout__actions {
    padding-bottom: 0.5rem;
  }

  body.tasu-app-mobile-page:not(.tasu-mdetail-page) .section-nav {
    display: none !important;
  }

  body.tasu-app-mobile-page .listing-not-found,
  body.tasu-app-mobile-page [data-listing-not-found] {
    margin-top: 0.75rem;
  }
}

@media (min-width: 961px) {
  .tasu-mobile-detail-shell,
  [data-tasu-mobile-detail-shell],
  .tasu-mdetail-cta-dock,
  .tasu-mdetail-fixed-cta,
  [data-tasu-mdetail-cta-dock],
  [data-tasu-mdetail-fixed-cta] {
    display: none !important;
  }
}
