/*
 * 관리자 반응형 1단계 — 공통 틀 (2026-11)
 *
 * 롤백 원칙
 * - 모든 규칙은 html.rs-on 아래, 1279px 이하 구간에만 둔다 → 1280px 이상 PC 화면은 지금과 같다
 * - rs-on 은 fragments/config.html 이 스위치(admin.responsive.enabled, dev 만 true)나 ?rs=1 쿠키로 붙인다
 * - style.css·각 화면 CSS 는 고치지 않고 여기서 덮어쓴다. 이 파일을 비우거나 스위치를 끄면 원래대로
 * - 예외: 새로 넣은 메뉴 버튼(.rs-menu-btn)을 PC 에서 숨기는 규칙 1개
 */

.rs-menu-btn {
  display: none;
}

@media (max-width: 1279px) {

  /* ------------------------------------------------------------ 틀 */
  html.rs-on .wrap {
    min-width: 0;
  }
  /* 화면 안 고정 너비가 남아 있어도 잘리지 않고 옆으로 밀어 볼 수 있게 */
  html.rs-on .wrap .container {
    overflow-x: auto;
  }
  /* 하위 메뉴 줄을 늘 보여 주는 화면(.header.depth2)의 51px 자리: 좁은 화면에서는 하위 메뉴가 ☰ 안으로 들어가므로 비운다 */
  html.rs-on .wrap .header.depth2 + .container {
    margin-top: 0;
  }

  /* ------------------------------------------------------------ 상단 줄: 로고 · 환경 표시 · ☰ */
  html.rs-on .wrap > .header {
    height: 56px;
    padding: 0 8px 0 16px;
    align-items: center;
  }
  html.rs-on .wrap > .header .logo {
    flex: 0 0 auto;
    margin: 0;
  }
  html.rs-on .wrap > .header .logo a {
    width: 99px;
    height: 22px;
  }
  html.rs-on .wrap > .header .header_menu {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 10px;
    text-align: left;
  }
  html.rs-on .wrap > .header .header_menu ul {
    display: block;
    width: auto !important;
    min-width: 0 !important;
  }
  html.rs-on .wrap > .header .header_menu ul > li {
    display: none;
    height: auto;
    text-align: left;
  }
  html.rs-on .wrap > .header .header_menu ul > li.rs-env {
    display: block;
  }
  html.rs-on .wrap > .header .header_menu ul > li.rs-env > div {
    overflow: hidden;
    font-size: 13px !important;
    line-height: 56px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  html.rs-on .wrap > .header .user_manage {
    display: none;
  }

  /* ☰ 버튼 (펼치면 ✕) */
  html.rs-on .wrap > .header .rs-menu-btn {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  html.rs-on .wrap > .header .rs-menu-btn span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background-color: #35394c;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s, top 0.2s;
  }
  html.rs-on .wrap > .header .rs-menu-btn span:nth-child(1) { top: 15px; }
  html.rs-on .wrap > .header .rs-menu-btn span:nth-child(2) { top: 21px; }
  html.rs-on .wrap > .header .rs-menu-btn span:nth-child(3) { top: 27px; }
  html.rs-on .wrap > .header.rs-open .rs-menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  html.rs-on .wrap > .header.rs-open .rs-menu-btn span:nth-child(2) { opacity: 0; }
  html.rs-on .wrap > .header.rs-open .rs-menu-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  /* ------------------------------------------------------------ 펼친 메뉴: 화면 전체를 덮는다 */
  html.rs-on .wrap > .header.rs-open {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    overflow-y: auto;
    flex-wrap: wrap;
    align-content: flex-start;
    background-color: #fff;
    z-index: 1000;
  }
  html.rs-on .wrap > .header.rs-open .logo {
    height: 56px;
    display: flex;
    align-items: center;
  }
  html.rs-on .wrap > .header.rs-open .rs-menu-btn {
    order: 2;
  }
  html.rs-on .wrap > .header.rs-open .header_menu {
    order: 3;
    flex: 0 0 100%;
    padding: 0 8px 0 0;
    border-top: 1px solid #eee;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li {
    display: block;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li.rs-sep {
    display: none;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li.rs-env > div {
    line-height: 36px !important;
    color: #8a8c90;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li > a {
    display: block;
    height: 50px;
    margin: 0 !important;
    padding: 0 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 50px;
    transition: none;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li > a.on {
    border-bottom: 1px solid #f0f0f0;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li.rs-has-sub > a::after {
    content: '+';
    float: right;
    width: 24px;
    color: #8a8c90;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li.rs-sub-open > a::after {
    content: '\2212';
  }

  /* 하위 메뉴: 마우스 올림 대신 눌러서 펼친 것만 보인다 */
  html.rs-on .wrap > .header .depth2_box {
    position: static;
    display: none !important;
    width: auto;
    padding: 4px 0 8px 12px;
    background-color: #f8f9fb;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
  }
  html.rs-on .wrap > .header.rs-open .header_menu ul > li.rs-sub-open > .depth2_box {
    display: block !important;
  }
  html.rs-on .wrap > .header .depth2_box a {
    display: block;
    height: 44px;
    padding: 0 8px;
    font-size: 15px;
    line-height: 44px;
  }

  /* 이름·로그아웃은 펼친 메뉴 맨 아래 */
  html.rs-on .wrap > .header.rs-open .user_manage {
    order: 4;
    display: block;
    flex: 0 0 100%;
    height: auto;
    padding: 18px 8px 24px 4px;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
  }
  html.rs-on .wrap > .header.rs-open .user_manage > * {
    height: auto;
    line-height: 1.5;
  }
  html.rs-on .wrap > .header.rs-open .user_manage button {
    height: 35px;
    margin-left: 12px;
    line-height: 33px;
  }

  /* ------------------------------------------------------------ 본문 여백 25px → 16px */
  html.rs-on .page_title {
    height: auto;
    padding: 20px 16px 0;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.5;
  }
  html.rs-on .page_subtit {
    padding-right: 16px;
    padding-left: 16px;
  }
  html.rs-on .box_white,
  html.rs-on .tab_box,
  html.rs-on .cont_search_area {
    margin-right: 16px;
    margin-left: 16px;
  }
  html.rs-on .tab_box .tab_box,
  html.rs-on .tab_box .box_white,
  html.rs-on .box_white .box_white {
    margin-right: 0;
    margin-left: 0;
  }
  html.rs-on .cb-wrap {
    margin-right: 16px;
    margin-left: 16px;
  }
  html.rs-on .total_tbl_sort {
    padding: 16px 16px 10px;
  }

  /* ------------------------------------------------------------ 검색 영역: 여러 줄로 */
  html.rs-on .cont_search_area {
    flex-direction: column;
    padding: 8px 0;
  }
  html.rs-on .cont_search_area .cont_search_box {
    padding-right: 0;
  }
  html.rs-on .cont_search_area .cont_search_box .search_itm {
    flex-wrap: wrap;
    max-width: calc(100% - 32px);
    margin: 0 16px;
  }
  html.rs-on .cont_search_area .cont_search_box .search_itm.full {
    width: calc(100% - 32px);
  }
  html.rs-on .cont_search_area .cont_search_btn {
    justify-content: flex-end;
    padding: 8px 13px 4px;
  }

  /* ------------------------------------------------------------ 표: 표 상자 안에서만 옆으로 밀어 보기 */
  html.rs-on .tbl_area {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  html.rs-on .tbl_area > table {
    min-width: 960px;
  }
  html.rs-on .tbl_area table thead tr th:first-child,
  html.rs-on .tbl_area table tbody tr td:first-child,
  html.rs-on .tbl_area table tbody tr th:first-child {
    padding-left: 16px;
  }
  html.rs-on .tbl_area table thead tr th:last-child,
  html.rs-on .tbl_area table tbody tr td:last-child,
  html.rs-on .tbl_area table tbody tr th:last-child {
    padding-right: 16px;
  }
}

/* 휴대폰 폭 */
@media (max-width: 599px) {
  html.rs-on .page_title {
    padding-top: 16px;
    font-size: 20px;
  }
  html.rs-on .contents_box input:not([type=checkbox]):not([type=radio]),
  html.rs-on .contents_box select,
  html.rs-on .contents_box textarea {
    max-width: 100%;
  }
  /* 3-2 에서 바꿈: 항목명을 왼쪽 76px 에 두고 선택칸·입력칸은 오른쪽(넘치면 다음 줄) → 세로 길이 절반 */
  html.rs-on .cont_search_area .cont_search_box .search_itm {
    row-gap: 6px;
  }
  html.rs-on .cont_search_area .cont_search_box .search_itm .itm_label {
    flex: 0 0 76px;
    min-width: 0;
    height: auto;
    font-size: 13px;
    line-height: 1.3;
    word-break: keep-all;
  }
  html.rs-on .cont_search_area .cont_search_box .search_itm .itm_box {
    flex: 1 1 160px;
    flex-wrap: wrap;
    min-width: 0;
  }
  html.rs-on .cont_search_area .cont_search_box .search_itm .itm_box input:not([type=checkbox]):not([type=radio]) {
    min-width: 0;
    flex: 1 1 0;
  }
  /* 2026-11-11: 체크칸만 있는 줄은 최소 160px 대신 내용만큼 → 체크가 2개뿐인 줄(단일 콘텐츠 '형태': 유료·무료)이
     160px 보다 좁아 항목명 아래로 떨어지던 것. 날짜·입력칸·선택칸이 있는 줄은 위 160px 그대로 */
  html.rs-on .cont_search_area .cont_search_box .search_itm .itm_box:not(:has(input:not([type=checkbox]):not([type=radio]), select, textarea)) {
    flex: 1 1 auto;
  }
  /* 2026-11-11: 입력칸 하나·선택칸 하나만 있는 줄(챌린지 목록 '첼린지명'·'노출')은 줄 전체 폭을 쓴다
     → 입력칸·선택칸이 160px 보다 좁아 항목명 아래로 떨어지던 것. 입력칸은 남은 폭만큼 넓어진다 */
  html.rs-on .cont_search_area .cont_search_box .search_itm:has(> .itm_label + .itm_box > :is(input, select):only-child) {
    width: calc(100% - 32px);
  }
  html.rs-on .cont_search_area .cont_search_btn a {
    flex: 1 1 0;
  }
  html.rs-on .total_tbl_sort .sort_left,
  html.rs-on .total_tbl_sort .sort_right {
    float: none;
  }
  html.rs-on .total_tbl_sort .sort_right {
    margin-top: 6px;
  }
  html.rs-on .detail_btn_area .left,
  html.rs-on .detail_btn_area .right {
    display: block;
    width: 100%;
    text-align: center;
  }
  html.rs-on .detail_btn_area .right {
    margin-top: 8px;
  }
  html.rs-on .tab_box .tab_btnbox button {
    min-width: 0;
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* ======================================================================
 * 2단계 — 화면별 (2026-11)
 * ====================================================================== */

/* ---------------------------------------------------- 단일 콘텐츠 상세 개선 시안 (contents/single/edit2.html, .ce2)
 * 화면 안 <style> 은 그대로 두고 여기서만 덮어쓴다 */
@media (max-width: 1279px) {
  html.rs-on .ce2 {
    padding: 0 12px 20px;
  }
  html.rs-on .ce2 .ce2-top {
    margin: 0 -12px 10px;
    padding: 8px 12px;
  }
}
@media (max-width: 899px) {
  /* 2단 → 1단 (왼쪽 묶음: 기본 정보·파일·재생 옵션·분류, 그 아래 오른쪽 묶음: 이미지·내용·운영) */
  html.rs-on .ce2 .ce2-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 카드 안 2열 → 1열, 둘째 줄부터 위 선 */
  html.rs-on .ce2 .ce2-two {
    grid-template-columns: minmax(0, 1fr);
  }
  html.rs-on .ce2 .ce2-two .ce2-row:nth-child(2) {
    border-top: 1px solid #f4f5f8;
  }
  /* 연관 콘텐츠 표는 카드 안에서 옆으로 밀어 보기 */
  html.rs-on .ce2 .ce2-rel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  html.rs-on .ce2 .ce2-rel .ce2-tbl {
    min-width: 780px;
  }
}
@media (max-width: 599px) {
  /* 위 고정 줄: 제목 아래로 버튼 줄을 내리고, 스크롤해도 [저장] 이 보이게(원래 sticky) */
  html.rs-on .ce2 .ce2-top {
    flex-wrap: wrap;
    gap: 6px;
  }
  html.rs-on .ce2 .ce2-top-main {
    flex: 0 0 100%;
  }
  html.rs-on .ce2 .ce2-crumb {
    flex-wrap: wrap;
    row-gap: 2px;
  }
  html.rs-on .ce2 .ce2-crumb > * {
    white-space: nowrap;
  }
  html.rs-on .ce2 .ce2-title {
    height: 32px;
    font-size: 18px;
    line-height: 30px;
  }
  html.rs-on .ce2 .ce2-actions {
    flex: 0 0 100%;
  }
  html.rs-on .ce2 .ce2-actions .ce2-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
  }
  html.rs-on .ce2 .ce2-card-bd {
    padding: 4px 10px 8px;
  }
  html.rs-on .ce2 .ce2-lb {
    flex-basis: 64px;
  }
  html.rs-on .ce2 .ce2-opts {
    gap: 12px 18px;
  }
  /* 이미지 가로 4개 → 2개 */
  html.rs-on .ce2 .ce2-imgs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.rs-on .ce2 .ce2-img-pv {
    height: 110px;
  }
}

/* ======================================================================
 * 3단계 3-1 — 공통 처리 (2026-11): 입력표·팝업·날짜 고르기·편집기·버튼 줄·페이지 번호
 * 입력표 판별(rs-form / rs-data)은 responsive.js 가 표 모양을 보고 붙인다
 * ====================================================================== */
@media (max-width: 1279px) {

  /* ---------------------------------------------- 입력표: 가로 밀기 해제 (1단계의 표 최소 960px 에서 제외) */
  html.rs-on .tbl_area > table.rs-form {
    min-width: 0;
  }

  /* ---------------------------------------------- 검색·선택 팝업 (layer/*.html, .alert_area) */
  html.rs-on .alert_area .alert_inner {
    padding: 12px;
  }
  html.rs-on .alert_area .alert_box {
    max-width: calc(100vw - 24px) !important;
    min-width: 0;
  }
  /* 팝업 안 표는 1단계 최소 960px 때문에 잘리지 않도록 가로 밀기 허용 (layer 쪽 overflow-x:hidden 덮어쓰기) */
  html.rs-on .alert_area .tbl_area {
    overflow-x: auto !important;
  }
  html.rs-on .alert_area .alert_box .tit {
    padding-right: 56px;
    padding-left: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  html.rs-on .alert_area .alert_box .tit .btn_close {
    right: 14px;
  }
  html.rs-on .alert_area .alert_box > div.layer_cont .layer_box {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  /* ---------------------------------------------- 날짜 고르기(jQuery UI) */
  html.rs-on .ui-datepicker {
    max-width: calc(100vw - 16px);
  }

  /* ---------------------------------------------- 편집기(CKEditor) */
  html.rs-on .ck.ck-editor {
    max-width: 100%;
  }
  html.rs-on .ck.ck-toolbar .ck-toolbar__items {
    flex-wrap: wrap;
  }

  /* ---------------------------------------------- 등록·수정 화면 하단 버튼 줄: 아래에 붙어 따라오게 (저장 버튼이 있는 줄만) */
  html.rs-on .contents_box .detail_btn_area:has(.btn_ok) {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 16px 0 0;
    padding: 10px 16px;
    background-color: #fff;
    border-top: 1px solid #e6e7ec;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
  }

  /* ---------------------------------------------- 페이지 번호 줄: 왼쪽·오른쪽 버튼은 위, 번호는 아래 한 줄 */
  html.rs-on .pagenation_area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 10px;
    padding: 12px 16px 16px;
  }
  html.rs-on .pagenation_area > .left,
  html.rs-on .pagenation_area > .right {
    float: none;
    min-width: 0;
    height: auto;
  }
  html.rs-on .pagenation_area > .right {
    margin-left: auto;
  }
  html.rs-on .pagenation_area > .center {
    order: 3;
    flex: 0 0 100%;
    width: 100% !important;
    text-align: center;
  }
}

/* 900px 미만: 입력표 항목명 칸 좁히기 */
@media (max-width: 899px) {
  html.rs-on .tbl_area > table.rs-form > colgroup > col:nth-child(odd) {
    width: 96px !important;
  }
  html.rs-on .tbl_area > table.rs-form > tbody > tr > th {
    padding-right: 6px;
    padding-left: 12px;
    word-break: keep-all;
  }
}

/* 600px 미만: 입력표 쌓기(항목명 위, 입력칸 아래), 화면 안 고정 너비 넘침 방지 */
@media (max-width: 599px) {
  html.rs-on .tbl_area > table.rs-form,
  html.rs-on .tbl_area > table.rs-form > tbody,
  html.rs-on .tbl_area > table.rs-form > tbody > tr {
    display: block;
    width: 100%;
  }
  html.rs-on .tbl_area > table.rs-form > colgroup {
    display: none;
  }
  html.rs-on .tbl_area > table.rs-form > tbody > tr > th,
  html.rs-on .tbl_area > table.rs-form > tbody > tr > td {
    display: block;
    width: auto !important;
    text-align: left;
  }
  /* 칸마다 붙은 pl0·pr0 같은 여백 클래스보다 우선 (쌓인 모양에서는 좌우 여백을 맞춘다) */
  html.rs-on .tbl_area > table.rs-form > tbody > tr > th {
    padding: 12px 16px 4px !important;
    border-top: 1px solid #ececec;
    font-size: 13px;
  }
  html.rs-on .tbl_area > table.rs-form > tbody > tr > td {
    padding: 4px 16px 12px !important;
    border-top: 0;
  }
  html.rs-on .tbl_area > table.rs-form > tbody > tr > td:only-child {
    padding-top: 12px !important;
    border-top: 1px solid #ececec;
  }
  /* 입력칸 안에 직접 적힌 고정 너비(style="width:…px")가 화면 밖으로 나가지 않게 */
  html.rs-on .tbl_area > table.rs-form td [style*="width"] {
    max-width: 100%;
  }
  /* 입력칸은 '너비 100% + 안쪽 여백'이라 칸 밖으로 넘친다(PC 는 넓은 여백에 가려 안 보임) → 여백 포함 너비로 */
  html.rs-on .tbl_area > table.rs-form td input:not([type=checkbox]):not([type=radio]),
  html.rs-on .tbl_area > table.rs-form td select,
  html.rs-on .tbl_area > table.rs-form td textarea {
    box-sizing: border-box;
    max-width: 100%;
  }
  /* 이미지 미리보기 + 파일 입력(preview_box): 미리보기 아래로 입력 줄을 내린다 */
  html.rs-on .tbl_area > table.rs-form td .preview_box {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  html.rs-on .tbl_area > table.rs-form td .preview_box > .preview_input {
    flex: 1 1 100%;
    min-width: 0;
  }
  /* '입력칸 + 버튼' 묶음(w_btn): 입력칸이 남은 폭을 쓰고 버튼은 옆에 고정 (표 밖, style="width:400px" 같은 것도 포함) */
  html.rs-on .contents_box .def_input.w_btn {
    display: flex;
    max-width: 100%;
  }
  html.rs-on .contents_box .def_input.w_btn input,
  html.rs-on .contents_box .def_input.w_btn select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  html.rs-on .contents_box .def_input.w_btn .btn_gray {
    flex: 0 0 auto;
    min-width: 64px;
    width: auto;
    padding: 0 10px;
  }
  html.rs-on .tbl_area > table.rs-form td .def_input.w_204 input,
  html.rs-on .tbl_area > table.rs-form td .def_input.w_204 select {
    width: 100%;
  }
  /* 등록·수정 하단 버튼: 한 줄에 나란히 */
  html.rs-on .contents_box .detail_btn_area:has(.btn_ok) .left,
  html.rs-on .contents_box .detail_btn_area:has(.btn_ok) .right {
    display: inline-block;
    width: auto;
    margin-top: 0;
  }
  html.rs-on .contents_box .detail_btn_area:has(.btn_ok) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }
  /* 번호 10개가 한 줄에 들어오게 간격만 줄인다 */
  html.rs-on .pagenation_area > .center .number {
    min-width: 18px;
    margin: 0 1px;
    padding: 0 4px;
  }
}

/* ======================================================================
 * 3단계 3-2 — 1순위 화면 (2026-11): 회원 목록, 단일 콘텐츠 목록, 챌린지 목록, 스토어 리뷰
 * 표 표시(data-rs-hide / data-rs-card)는 각 화면 <table> 에, 칸 클래스는 responsive.js 가 붙인다
 * ====================================================================== */
@media (max-width: 599px) {
  /* 열 숨김 표: 남은 열만으로 화면 폭에 맞춘다(가로 밀기 없음) */
  html.rs-on .tbl_area > table[data-rs-hide] {
    min-width: 0;
    table-layout: auto;
  }
  html.rs-on table[data-rs-hide] .rs-h {
    display: none;
  }
  html.rs-on table[data-rs-hide] > colgroup > col {
    width: auto !important;
  }
  html.rs-on table[data-rs-hide] > thead > tr > th,
  html.rs-on table[data-rs-hide] > tbody > tr > td {
    padding-right: 6px;
    padding-left: 6px;
    word-break: keep-all;      /* '가입(문진)' 같은 낱말은 붙여 두고, 날짜·시각은 띄어쓰기에서 줄바꿈 */
    overflow-wrap: break-word;
  }
  html.rs-on table[data-rs-hide] > tbody > tr > td a.title {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;   /* 긴 제목만 아무 데서나 줄바꿈 */
  }

  /* 카드형 표: 한 줄(tr)이 카드 하나, 칸마다 왼쪽에 머리글 */
  html.rs-on .tbl_area > table[data-rs-card] {
    min-width: 0;
  }
  html.rs-on table[data-rs-card],
  html.rs-on table[data-rs-card] > tbody,
  html.rs-on table[data-rs-card] > tbody > tr {
    display: block;
    width: 100%;
  }
  html.rs-on table[data-rs-card] > colgroup,
  html.rs-on table[data-rs-card] > thead {
    display: none;
  }
  html.rs-on table[data-rs-card] > tbody > tr {
    padding: 8px 0;
    border-bottom: 8px solid #f4f5f8;
  }
  html.rs-on table[data-rs-card] > tbody > tr > td {
    position: relative;
    display: block;
    min-height: 30px;
    padding: 5px 16px 5px 96px !important;
    border: 0 !important;
    text-align: left !important;
  }
  html.rs-on table[data-rs-card] > tbody > tr > td::before {
    content: attr(data-rs-label);
    position: absolute;
    top: 5px;
    left: 16px;
    width: 72px;
    color: #8a8c90;
    font-size: 12px;
    line-height: 20px;
  }
  html.rs-on table[data-rs-card] > tbody > tr > td[colspan] {
    padding: 24px 16px !important;
    text-align: center !important;
  }
}

/* ======================================================================
 * 3단계 3-2 — 3순위 화면 (2026-11): APP 관리·B2B·외부 API·가이드·통계 목록에 data-rs-hide
 * 아래는 3순위 점검에서 찾은 공통 보완
 * ====================================================================== */
@media (max-width: 1279px) {
  /* 표 안의 숨은 선택 단추(라디오·체크 input, position:absolute)가 표 상자 밖 .container 를 기준으로 놓여
     페이지 폭을 늘리던 문제(예: B2B 그룹 수정 937px) → 표 상자를 기준으로 삼아 가로 스크롤 안에 가둔다 */
  html.rs-on .tbl_area {
    position: relative;
  }
}
@media (max-width: 599px) {
  /* 체크 묶음(chk_box, 한 줄 inline-flex)이 입력표 칸 밖으로 나가던 것(예: 마음 챙김 수정의 노출 대상) → 줄바꿈 */
  html.rs-on .tbl_area > table.rs-form td .chk_box,
  html.rs-on .tbl_area > table.rs-form td .toggle_box {
    flex-wrap: wrap;
    row-gap: 6px;
    max-width: 100%;
  }
}


/* ======================================================================
 * 휴대폰 확인 보완 (2026-11-11, 개발자님 휴대폰 캡처로 찾은 것)
 * ====================================================================== */
@media (max-width: 1279px) {
  /* 눌린 열(responsive.js 가 찾아 rs-squeezed 표시): 표 안에서 가로 밀기 + 밀 수 있다는 그림자 */
  html.rs-on .tbl_area.rs-scrollable {
    background:
      linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 24px 100% no-repeat local,
      linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 24px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)) left center / 10px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)) right center / 10px 100% no-repeat scroll;
  }
}
@media (max-width: 599px) {
  /* A·B. 표 위 버튼 줄(total_tbl_sort): 32px 높이 고정·넘침 숨김 때문에 두 줄이 되면 잘리던 것 */
  html.rs-on .total_tbl_sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
  }
  html.rs-on .total_tbl_sort .sort_left,
  html.rs-on .total_tbl_sort .sort_right {
    float: none;
    height: auto;
    min-height: 32px;
    margin-top: 0;
  }
  html.rs-on .total_tbl_sort .sort_left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  html.rs-on .total_tbl_sort .sort_right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    line-height: normal;
  }
  html.rs-on .total_tbl_sort .sort_right > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* C. 소제목 줄(page_subtit): 안내문이 여러 줄이면 잘리고, 오른쪽에 뜬 버튼이 글자 위에 얹히던 것 */
  html.rs-on .page_subtit {
    overflow: visible;
  }
  html.rs-on .page_subtit .chk_box label.tit {
    display: inline-block;
    height: auto;
    line-height: 1.4;
    white-space: normal;
  }
  html.rs-on .page_subtit .chk_box label.tit span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
  }
  html.rs-on .page_subtit .btn_right.align_right {
    float: none;
    display: inline-block;
    margin: 8px 0 0;
  }

  /* 검색 영역 체크 묶음: 줄이 넘어갈 때 앞 칸 간격 때문에 들여쓰기가 어긋나던 것 */
  html.rs-on .cont_search_area .cont_search_box .search_itm .itm_box {
    gap: 6px 14px;
  }
  html.rs-on .cont_search_area .cont_search_box .search_itm .itm_box .chk_box + .chk_box {
    margin-left: 0;
  }
}
@media (max-width: 599px) {
  /* 기존 단일 콘텐츠 상세 등: 입력칸 옆 빨간 안내문(UPCOMING 날짜/시간 등록하기)이 두 줄로 끊기던 것 → 다음 줄에 한 줄로 */
  html.rs-on .tbl_area > table.rs-form td .def_input > span[style*="color: red"] {
    display: block;
    margin: 6px 0 0 !important;
  }
}

/* ------------------------------------------------------------ 2026-11-11 휴대폰 입력칸 자동 확대 막기
   아이폰(사파리·크롬)은 글자가 16px 보다 작은 입력칸에 커서가 들어가면 화면을 자동으로 확대한다.
   팝업이 열리며 검색어 칸에 커서를 넣는 화면(콘텐츠·명상가·회원 검색 등)에서 팝업이 화면보다 커져 보이던 것.
   터치 기기(손가락 화면)에서만 입력칸 글자를 16px 로. PC 브라우저를 줄여 보는 화면은 그대로, 손가락 확대는 그대로 됨 */
@media (max-width: 1279px) and (hover: none) and (pointer: coarse) {
  html.rs-on input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=file]):not([type=hidden]):not([type=image]),
  html.rs-on select,
  html.rs-on textarea {
    font-size: 16px !important;
  }
}
