/* Original tabs and sections retained. Mobile rhythm: 8px rows, modest corners. */
@media(max-width:600px){
 .back-site-alt{position:fixed!important;right:12px!important;left:auto!important;top:auto!important;bottom:calc(108px + env(safe-area-inset-bottom, 0px))!important;display:block!important;width:fit-content;max-width:calc(100vw - 24px);margin:0!important;padding:9px 13px!important;border-radius:999px!important;font-size:12px!important;line-height:1.5;box-shadow:0 4px 14px rgba(109,93,80,.12)!important;z-index:60!important}
 html,body{max-width:100%;overflow-x:clip}
 .member-page{width:100%!important;max-width:100%!important;padding:16px 12px 100px!important;box-sizing:border-box}
 .member-page *,.admin-content *{box-sizing:border-box;min-width:0}
 .member-page .member-box,.member-page .member-panel,.member-page .member-history-card,.member-page .price-section-card,.member-page .member-section-hero{border-radius:8px!important;padding:12px!important;box-shadow:none!important;margin-bottom:12px!important}
 .member-page .member-box .member-box,.member-history-item .yuqi-card{border-radius:0!important;border:0!important;padding:0!important}
 .member-history-item{border-radius:0!important;border:0!important;border-top:1px solid #e5dcd2!important;padding:12px 0!important;background:transparent!important}
 .member-history-item-head{align-items:baseline!important;gap:8px!important}
 .member-history-item-head h4,.member-history-title,.price-section-title,.member-box-title{font-size:16px!important}
 .member-history-products,.member-history-payments,.member-history-operations{padding:8px 0!important;border-radius:0!important;box-shadow:none!important;font-size:13px!important}
 .member-history-payments>div,.price-line{padding-top:8px!important;padding-bottom:8px!important}
 .price-line{gap:8px!important}.price-line-name{font-size:14px!important}.price-line-value{font-size:14px!important;white-space:nowrap}
 .price-line-time{font-size:11px!important;display:block!important;margin:2px 0!important}
 .member-box-list,.member-hero-text,.member-history-note{font-size:13px!important;line-height:1.7!important}
 .member-history-detail264{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
 .member-history-detail264 td,.member-history-detail264 th{padding:8px 3px;border-bottom:1px solid #e5dcd2;text-align:left;overflow-wrap:anywhere}
 .member-history-detail264 td:last-child,.member-history-detail264 th:last-child{text-align:right;width:25%;white-space:nowrap}
 .member-history-detail264 td:nth-child(2),.member-history-detail264 th:nth-child(2){width:15%;text-align:center}
 .admin-content{padding:12px 8px!important;max-width:100%!important}
 .admin-content .yuqi-card,.admin-content .compact-card{border-radius:8px!important;padding:12px!important;box-shadow:none!important}
 .admin-content .btn{border-radius:6px!important;min-height:40px}
 .member-overlay-content{padding:12px!important;max-width:100%!important}
 .course-flow264{font-size:13px;margin-top:8px;line-height:1.8}.course-flow264 summary{cursor:pointer;padding:8px 0;color:#806b5b}.course-flow264 p{white-space:pre-line}
 .point-audit-row{padding:8px 0;border-bottom:1px solid #e5dcd2;overflow-wrap:anywhere}
}

/* v271: mobile return link stays at the right edge above the bottom nav. */
@media(max-width:600px){
 .member-site-footer{padding:0;margin:0;height:0}
 body:has(.admin-shell) .member-site-footer,
 body:has(#memberOverlay) .member-site-footer{display:none!important}
}
