@media (max-width: 640px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  * {
    box-sizing: border-box !important;
  }

  /* ===== 상단 네비게이션 ===== */

  .tm-nav,
  .tm73-nav {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    overflow: visible !important;
  }

  .tm-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .tm73-logo,
  .tm-brand img {
    max-width: 190px !important;
    height: auto !important;
  }

  .tm-daily-visits {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  .tm-support,
  .tm-login,
  .tm-logout,
  .tm73-moon {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .tm-support {
    padding: 9px 11px !important;
    font-size: 13px !important;
  }

  .tm-login,
  .tm-logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 11px !important;
    font-size: 13px !important;
  }

  .tm-logout.hidden {
    display: none !important;
  }

  .tm73-moon {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
  }


  /* ===== 메인 ===== */

  .tm-home,
  .tm73-home,
  .tm73-hero,
  .tm73-sections,
  .tm73-section,
  .tm73-bottom {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tm73-home {
    overflow-x: hidden !important;
  }

  .tm73-hero {
    display: block !important;
    padding: 30px 20px 22px !important;
    overflow: hidden !important;
  }

  .tm73-heading,
  .tm73-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tm73-heading h1,
  .tm73-heading h2,
  .tm73-heading p,
  .tm73-copy h1,
  .tm73-copy h2,
  .tm73-copy p {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }


  /* ===== 검색창 ===== */

  .tm73-search,
  .tm814-search,
  .tm712-local-search,
  .public-search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tm73-search {
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .tm73-search input,
  .tm814-search input,
  .tm712-local-search input,
  .public-search input {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .tm73-search button,
  .tm814-search button,
  .tm712-local-search button,
  .public-search button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }


  /* ===== 검색 아래 필터/칩 ===== */

  .tm-chips,
  .tm73-chips,
  .tm822-catfilters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tm-chips::-webkit-scrollbar,
  .tm73-chips::-webkit-scrollbar,
  .tm822-catfilters::-webkit-scrollbar {
    display: none;
  }

  .tm-chips > *,
  .tm73-chips > *,
  .tm822-catfilters > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }


  /* ===== 메인 통계 2 x 2 ===== */

  .tm73-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }

  .tm73-stat,
  .tm-metric {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }


  /* ===== 홈 섹션 ===== */

  .tm73-sections {
    display: block !important;
    padding: 0 18px !important;
  }

  .tm73-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 20px !important;
    margin: 0 0 18px !important;
    overflow: hidden !important;
  }

  /* 제목을 카드 옆에 놓지 않고 위에 배치 */
  .tm73-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .tm73-title .tm73-heading {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .tm73-title h2 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }

  .tm73-title p {
    width: auto !important;
    max-width: 100% !important;
    margin: 5px 0 0 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }

  .tm73-section-icon {
    flex: 0 0 auto !important;
  }

  .tm73-row-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: max-content !important;
  }

  .tm73-viewall,
  .tm73-arrow {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* 실제 카드 스크롤 영역 */
  .tm73-track,
  .tm-card-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tm73-track::-webkit-scrollbar,
  .tm-card-track::-webkit-scrollbar {
    display: none;
  }

  .tm73-card {
    flex: 0 0 82% !important;
    width: 82% !important;
    min-width: 250px !important;
    max-width: 330px !important;
  }

  .tm73-cardcopy {
    min-width: 0 !important;
  }

  .tm73-cardcopy h3,
  .tm73-cardcopy b,
  .tm73-cardcopy p,
  .tm73-cardcopy span {
    word-break: keep-all !important;
  }


  /* ===== 카테고리 바로가기 ===== */

  .tm73-bottom {
    display: block !important;
    padding: 0 18px 24px !important;
  }

  .tm73-bottom > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tm811-cathead {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .tm811-cathead h2 {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    word-break: keep-all !important;
    white-space: normal !important;
  }

  .tm811-catnav {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    overflow: visible !important;
    gap: 6px !important;
  }

  .tm811-cat-arrow {
    flex: 0 0 auto !important;
  }

  .tm73-cat {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  .tm73-cat > button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 125px !important;
    text-align: center !important;
  }

  .tm73-cat > button i,
  .tm73-cat > button b,
  .tm73-cat > button small {
    width: auto !important;
    word-break: keep-all !important;
    white-space: normal !important;
  }


  /* ===== 오늘의 통계 ===== */

  .tm73-today {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tm73-todayhead {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .tm73-todaygrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .tm73-todaygrid > * {
    width: 100% !important;
    min-width: 0 !important;
  }


  /* ===== 일반 안전장치 ===== */

  img {
    max-width: 100% !important;
    height: auto;
  }

  button,
  input,
  select,
  textarea {
    max-width: 100% !important;
  }

  h1,
  h2,
  h3,
  p {
    word-break: keep-all;
  }
}


/* ===== 아주 좁은 아이폰 ===== */

@media (max-width: 430px) {

  .tm-nav,
  .tm73-nav {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 5px !important;
  }

  .tm73-logo,
  .tm-brand img {
    max-width: 155px !important;
  }

  .tm-daily-visits {
    font-size: 10px !important;
  }

  .tm-support,
  .tm-login,
  .tm-logout {
    padding: 8px 8px !important;
    font-size: 11px !important;
  }

  .tm73-moon {
    width: 30px !important;
    height: 30px !important;
  }

  .tm73-title {
    align-items: flex-start !important;
  }

  .tm73-row-actions {
    gap: 4px !important;
  }

  .tm73-viewall {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .tm73-arrow {
    width: 34px !important;
    min-width: 34px !important;
  }
}


/* TELEMOA_MOBILE_SEARCH_RESULTS_FIX_START */
@media (max-width: 768px) {

  /* 검색/전체보기 페이지 자체가 화면 밖으로 나가지 않게 */
  .tm711-search,
  .tm711-results,
  .tm711-list {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* 검색 입력창 */
  .tm711-search input,
  .tm711-search input[type="text"],
  .tm711-search input[type="search"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;

    padding: 0 15px !important;
    margin: 0 0 10px 0 !important;

    font-size: 16px !important;
    line-height: 52px !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;

    background: #071827 !important;
    border: 1px solid rgba(78,160,255,.45) !important;
    border-radius: 14px !important;

    box-sizing: border-box !important;
    outline: none !important;
  }

  .tm711-search input::placeholder {
    color: rgba(220,230,240,.55) !important;
    -webkit-text-fill-color: rgba(220,230,240,.55) !important;
  }

  /* 검색 버튼 */
  .tm711-search button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 52px !important;
    margin: 0 !important;

    font-size: 17px !important;
    white-space: nowrap !important;

    box-sizing: border-box !important;
  }

  /* 검색 결과의 각 그룹 카드 */
  .tm711-room {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .tm711-room > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* 긴 방 이름/설명 때문에 카드가 밖으로 밀리지 않게 */
  .tm711-room b,
  .tm711-room strong,
  .tm711-room small,
  .tm711-room span,
  .tm711-room p {
    min-width: 0 !important;
    max-width: 100% !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

}
/* TELEMOA_MOBILE_SEARCH_RESULTS_FIX_END */

