/* ════════════════════════════════════════════════════════════
   sent-list.css (수정본) — 보낸편지함 목록 + 상세 (#pageSent / #sentList / #sentDetail)
   * common.css 와 함께 사용

   [수정 내용]
   - 태블릿(501~900px) 규칙이 PC(501px 이상) 규칙에 덮여서 적용되지 않던 문제 수정
     → 태블릿 블록을 PC 블록 "뒤"로 이동
   - 목록용/상세용으로 중복 선언되던 규칙을 하나로 통합
   - 사용하지 않는 주석 처리 코드, 불필요한 중복 미디어쿼리 제거

   [목차]
   1. 공통 (PC 기본값 · 모바일에서도 적용)
      1-1. body 보정 · 변수
      1-2. 목록: 헤더 · 검색 · 아이템 · 뱃지 · 빈 화면
      1-3. 상세: 헤더 · 카드 · 배송조회 · 섹션 · 버튼
      1-4. 확인 모달 (#appModal)
   2. PC / 태블릿
      2-1. PC (501px 이상)
      2-2. 태블릿 (501px ~ 900px)  ← 반드시 2-1 뒤에 둘 것 (같은 우선순위는 나중 선언이 이김)
   3. 모바일 (max-width: 500px)
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   1. 공통 (PC 기본값 · 모바일에서도 적용)
   ════════════════════════════════════════════════════════════ */

/* ── 1-1. body 보정 · 변수 ──
   이 페이지는 support.php 같은 앱셸(app-container) 구조가 아닌 일반 페이지라
   common.css의 body 고정(height:100vh; position:fixed; overflow:hidden)을
   해제해서 PC에서도 페이지 전체 스크롤이 되도록 함 */
body { height: auto; position: static; width: auto; overflow: visible; }

:root {
  --primary: #26C6DA;
  --text: #37474F;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #FAFBFC; color: var(--text);
}


/* ── 1-2. 목록 (보낸편지함) ── */

/* 페이지 헤더 아이콘 (파란색) */
body.content-style-v17 #pageSent .page-header-icon {
  background: #E3F2FD; box-shadow: 0 3px 10px rgba(30,136,229,0.18);
}
body.content-style-v17 #pageSent .page-header-icon svg { stroke: #1E88E5 !important; }

/* 검색창 */
.sent-search-wrap { padding: 16px 36px 4px; flex-shrink: 0; }
.faq-search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: #ffffff; border: 1.5px solid rgb(239,229,255);
  border-radius: 12px; padding: 0 14px;
  box-shadow: 0 2px 7px rgba(126,87,194,0.07);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-search-input-wrap:focus-within { border-color: #B39DDB; box-shadow: 0 3px 12px rgba(126,87,194,0.13); }
.faq-search-input-wrap svg { stroke: #90A4AE; flex-shrink: 0; }
.faq-search-input-wrap:focus-within svg { stroke: #9575CD; }
.faq-search-input {
  flex: 1; height: 46px; border: none; outline: none;
  font-family: "Pretendard", sans-serif; font-size: 14px; color: #37474F; background: transparent;
}
.faq-search-input::placeholder { color: #B0BEC5; }

/* 목록 본문 · 아이템 내용 */
.notice-body { padding: 28px 36px; display: flex; flex-direction: column; gap: 10px; }
.notice-content { flex: 1; }
.notice-preview { font-family: "Pretendard", sans-serif; font-size: 13px; color: #78909C; line-height: 1.55; }
.notice-date { font-family: "Pretendard", sans-serif; font-size: 12px; color: #90A4AE; flex-shrink: 0; margin-top: 2px; }

/* 썸네일 */
.sent-thumb-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.sent-thumb {
  width: 68px; height: 96px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(237,232,248,0.8);
}
.sent-thumb-name {
  font-family: "Pretendard", sans-serif;
  font-size: 9px; font-weight: 500; color: #B0BEC5;
  text-align: center; line-height: 1.3;
  word-break: keep-all; max-width: 68px;
}

/* 받는사람 · 메타 · 가격 */
.sent-recipient {
  font-family: "Pretendard", sans-serif;
  font-size: 15px; font-weight: 700; color: #2E3A42;
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.sent-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: "Pretendard", sans-serif;
  font-size: 12px; color: #90A4AE; margin-bottom: 5px;
}
.sent-meta-item { display: flex; align-items: center; gap: 3px; }
.sent-meta-item svg { width: 13px; height: 13px; stroke: #B0BEC5; flex-shrink: 0; }
.sent-price { font-family: "Pretendard", sans-serif; font-size: 13px; font-weight: 700; color: #E91E63; margin-top: 2px; }

/* 상태 뱃지 */
.sent-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; margin-left: 10px; }
.notice-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: "Pretendard", sans-serif; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; flex-shrink: 0;
}
.notice-badge svg { flex-shrink: 0; stroke-linecap: round; stroke-linejoin: round; }
.nb-sw-waiting  { background: #FFF8E1; color: #F9A825; }
.nb-sw-done     { background: #E8F5E9; color: #388E3C; }
.nb-sw-printing { background: #E3F2FD; color: #1E88E5; }
.nb-sw-ready    { background: #FFF3E0; color: #FB8C00; }
.nb-sw-edit     { background: #EDE7F6; color: #7E57C2; }
.nb-sw-cancel   { background: #F5F5F5; color: #9E9E9E; }  /* 주문취소 */
.my-spin { animation: spin 1.2s linear infinite; display: block; }

/* 빈 화면 */
.sent-empty { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center;  }
.sent-empty-icon { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: #eff6ff; border-radius: 24px; margin-bottom: 22px; }
.sent-empty-icon svg { width: 40px; height: 40px; stroke: #2563eb; fill: none; }
.sent-empty-title { font-family: "Pretendard", sans-serif; font-size: 18px; font-weight: 700; color: #292524; margin-bottom: 8px; }
.sent-empty-desc  { font-family: "Pretendard", sans-serif; font-size: 14px; color: #a8a29e; line-height: 1.55; }

/* 스크롤바 */
::-webkit-scrollbar-thumb { background: #E3E8EF; border-radius: 2px; }


/* ── 1-3. 상세 (보낸편지함 상세) ── */

/* 상세 카드 · 헤더 */
/*.nd-card-wrap {
  width: 100%; max-width: none; margin: 0; flex-shrink: 0;
  background: transparent; border: none; box-shadow: none;
  border-radius: 0; overflow: visible;
}*/
.notice-detail-header {
  height: 60px; background: #ffffff; border-bottom: 1px solid #E8E4F0;
  padding: 0 28px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nd-back-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: none; cursor: pointer;
  font-family: "Pretendard", sans-serif; font-size: 14px; font-weight: 600; color: #546E7A;
  padding: 0; transition: color 0.15s;
}
.nd-back-btn:hover { color: #2E3A42; }
.nd-back-btn svg { stroke: currentColor; width: 16px; height: 16px; flex-shrink: 0; }
.nd-header-sep { width: 1px; height: 15px; background: #D8DFE6; margin: 0 6px; }
.nd-header-label {
  font-family: "Pretendard", sans-serif; font-size: 14px; font-weight: 600; color: #78909C;
}
.notice-detail-body { padding: 28px 28px 36px; }

/* 상세 뷰 */
.sent-detail-view { flex-direction: column;  background: #ffffff; }
.sent-detail-view.active { display: flex;  }

/* 주문번호 · 상단 */
.sd-top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.sd-order-num {
  font-family: "Pretendard", sans-serif;
  font-size: 18px; font-weight: 700; color: #3b82f6;
  letter-spacing: 0.3px; margin-bottom: 20px;
}
.sd-order-label {
  font-family: "Pretendard", sans-serif;
  font-size: 11px; color: #90A4AE; margin-bottom: 3px;
}

/* 퀵 버튼 */
.sd-quick-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.sd-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; border-radius: 12px;
  background: #F9F7FD; border: 1px solid rgba(237,232,248,1.00);
  cursor: pointer; transition: all 0.18s;
  font-family: "Pretendard", sans-serif; font-size: 13px; font-weight: 500; color: #546E7A;
}
.sd-quick-btn:hover { box-shadow: 0 4px 16px rgba(126,87,194,0.1); border-color: #B39DDB; }
.sd-quick-btn svg { stroke: #78909C; width: 22px; height: 22px; transition: stroke 0.18s; }
.sd-quick-btn.active { background: #5189EF; border-color: #5189EF; color: #ffffff; }
.sd-quick-btn.active svg { stroke: #ffffff; }

/* 배송조회 (아코디언) */
.sd-delivery {
  border: 1px solid rgba(237,232,248,1.00); border-radius: 14px;
  box-shadow: 0 2px 7px rgba(126,87,194,0.07);
  overflow: hidden; margin-bottom: 14px;
}
.sd-delivery-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; background: #ffffff; transition: background 0.15s;
}
.sd-delivery-header:hover { background: #F9F7FD; }
.sd-delivery-title {
  display: flex; align-items: center; gap: 8px;
  font-family: "Pretendard", sans-serif; font-size: 15px; font-weight: 700; color: #2E3A42;
}
.sd-delivery-title svg { stroke: #3b82f6; width: 16px; height: 16px; }
.sd-delivery-sub {
  font-family: "Pretendard", sans-serif;
  font-size: 13px; color: #90A4AE; margin-top: 3px;
}
.sd-delivery-chevron { stroke: #90A4AE; transition: transform 0.25s; flex-shrink: 0; }
.sd-delivery.open .sd-delivery-chevron { transform: rotate(180deg); }
.sd-delivery-body { display: none; padding: 4px 20px 20px; background: #ffffff; }
.sd-delivery.open .sd-delivery-body { display: block; }

/* 배송 추적 타임라인 */
.sd-track-list { display: flex; flex-direction: column; }
.sd-track-item { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.sd-track-item:last-child { padding-bottom: 0; }
.sd-track-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 14px; }
.sd-track-dot {
  width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
  background: #ffffff; border: 2px solid #CFD8DC;
}
.sd-track-line { flex: 1; width: 2px; background: #ECEFF1; margin-top: 4px; }
.sd-track-item:last-child .sd-track-line { display: none; }
.sd-track-content { flex: 1; }
.sd-track-name { font-family: "Pretendard", sans-serif; font-size: 14px; font-weight: 700; color: #2E3A42; }
.sd-track-place { font-family: "Pretendard", sans-serif; font-size: 13px; color: #90A4AE; margin-top: 2px; }
.sd-track-time { font-family: "Pretendard", sans-serif; font-size: 11px; color: #90A4AE; text-align: right; flex-shrink: 0; line-height: 1.6; }

/* 수정 · 취소 버튼 */
.sd-action-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sd-edit-btn, .sd-cancel-btn {
  width: 100%; padding: 15px; border-radius: 12px; border: none; cursor: pointer;
  font-family: "Pretendard", sans-serif; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
}
.sd-edit-btn:hover, .sd-cancel-btn:hover { opacity: 0.88; }
.sd-edit-btn:active, .sd-cancel-btn:active { transform: scale(0.98); }
/* [2026-11-25] 색 변경: 수정하기 = 사이트 기본 파랑, 주문취소 = 흰 바탕 빨간 테두리 (예전 노랑/빨강 채움은 동글과 비슷) */
.sd-edit-btn { background: #1B7CFB; color: #ffffff; }
.sd-edit-btn svg { stroke: #ffffff; flex-shrink: 0; }
.sd-cancel-btn { background: #ffffff; color: #E53935; border: 1.5px solid #EF9A9A; }

/* 정보 섹션 (받는분 · 주문정보 · 결제) */
.sd-section {
  border: 1px solid rgba(237,232,248,1.00); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 2px 7px rgba(126,87,194,0.07);
  margin-bottom: 12px;
}
.sd-section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: "Pretendard", sans-serif; font-size: 14px; font-weight: 700; color: #2E3A42;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #F0F3F7;
}
.sd-section-title svg { width: 15px; height: 15px; flex-shrink: 0; }
.sd-recipient-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.sd-recipient-row + .sd-recipient-row { border-top: 1px solid #F8F8FC; }
.sd-recipient-icon {
  width: 30px; height: 30px; border-radius: 8px; background: #F5F7FA;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.sd-recipient-icon svg { stroke: #90A4AE; width: 13px; height: 13px; }
.sd-recipient-sub { font-family: "Pretendard", sans-serif; font-size: 10px; color: #B0BEC5; margin-bottom: 2px; }
.sd-recipient-main { font-family: "Pretendard", sans-serif; font-size: 14px; font-weight: 500; color: #2E3A42; line-height: 1.5; }
.sd-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sd-row + .sd-row { border-top: 1px solid #F8F8FC; }
.sd-label { font-family: "Pretendard", sans-serif; font-size: 13px; color: #90A4AE; flex-shrink: 0; }
.sd-value { font-family: "Pretendard", sans-serif; font-size: 14px; font-weight: 700; color: #2E3A42; text-align: right; }
.sd-value.blue { color: #3b82f6; font-weight: 700; }
.sd-sep { color: #CFD8DC; margin: 0 7px; font-weight: 300; font-size: 12px; }
#sdProduct, #sdCompose { font-weight: 500 !important; }
.sd-total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; margin-top: 4px; border-top: 1px solid #E8E4F0;
}
.sd-total-label { font-family: "Pretendard", sans-serif; font-size: 15px; font-weight: 700; color: #2E3A42; }

/* 하단 운송장 박스 */
.sd-footer-track {
  background: #2E3A42; border-radius: 14px; margin-top: 16px;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: background 0.15s;
}
.sd-footer-track:hover { background: #37474F; }
.sd-footer-track-label { font-family: "Pretendard", sans-serif; font-size: 10px; color: #78909C; margin-bottom: 5px; }
.sd-footer-track-num { font-family: "Pretendard", sans-serif; font-size: 16px; font-weight: 700; color: #ffffff; letter-spacing: 0.8px; }
.sd-footer-track-icon {
  width: 36px; height: 36px; border-radius: 10px; border: none;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.15s;
}
.sd-footer-track:hover .sd-footer-track-icon { background: rgba(255,255,255,0.22); }

/* 상세 상태 뱃지 */
#sentDetail #sdStatusBadge {
  font-size: 13px; padding: 5px 13px; border-radius: 20px;
  gap: 5px;
}
#sentDetail #sdStatusBadge svg { width: 15px; height: 15px; }


/* ── 1-4. 확인 모달 (#appModal) ── */
#appModalOverlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(28,25,23,0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
#appModalOverlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
#appModal {
  background: #ffffff; border-radius: 20px;
  width: calc(100% - 48px); max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: modalPop 0.22s cubic-bezier(0.34,1.56,0.64,1) both;
}
.modal-body {
  padding: 32px 24px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.modal-icon-wrap {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #FEE2E2;
}
.modal-icon-wrap svg { stroke: #EF5A62; width: 26px; height: 26px; }
.modal-title {
  font-family: "Pretendard", sans-serif;
  font-size: 16px; font-weight: 700; color: #1E2930;
  margin-bottom: 10px; line-height: 1.55; letter-spacing: -0.3px;
  word-break: keep-all;
}
.modal-message {
  font-family: "Pretendard", sans-serif;
  font-size: 13px; font-weight: 600; color: #90A4AE;
  line-height: 1.7;
  word-break: keep-all;
}
.modal-footer {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid #F0F3F7;
}
.modal-btn {
  padding: 16px 12px; border: none; cursor: pointer;
  font-family: "Pretendard", sans-serif; font-size: 14px; font-weight: 600;
  transition: background 0.15s;
}
.modal-btn-cancel {
  background: #ffffff; color: #90A4AE;
  border-right: 1px solid #F0F3F7;
}
.modal-btn-cancel:hover { background: #F5F7FA; }
.modal-btn-confirm {
  background: #EF5350; color: #ffffff;
}
.modal-btn-confirm:hover { background: #E53935; }

/* #appModal 전용 (버튼 둥글게 · 간격) */
#appModal .modal-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  border-top: none; padding: 16px 22px 22px;
}
#appModal .modal-btn {
  padding: 15px 12px; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
#appModal .modal-btn:active { transform: scale(0.99); }
#appModal .modal-btn-cancel {
  background: #F3F5F7; color: #37474F; border-right: none;
}
#appModal .modal-btn-cancel:hover { background: #E8ECEF; }
#appModal .modal-btn-confirm {
  background: #EF5A62; color: #ffffff;
  box-shadow: 0 8px 16px -4px rgba(239,90,98,0.30);
}
#appModal .modal-btn-confirm:hover { background: #E0454E; }


/* ════════════════════════════════════════════════════════════
   2. PC / 태블릿
   ════════════════════════════════════════════════════════════ */

/* ── 2-1. PC (501px 이상) : 목록 + 상세 ── */
@media (min-width: 501px) {
  #pageSent, #pageAddr { background: #f0f2f5; }

  /* 목록 카드 박스 (860px 고정) */
  #sentList,  #inboxList,  #draftList,  #addrList,  #pointList, #sentDetail {
    width: 860px;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    margin: 40px auto;
    flex-shrink: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  }

  /* 상세 뷰 · 카드 */
  .sent-detail-view { background: #f0f2f5; }


  /* 페이지 헤더 */
  body.content-style-v17 .page-header {
    height: 80px; padding: 0 56px; justify-content: center; position: relative;
    border-bottom: 1px solid #e7e5e4; box-shadow: none;
  }
  body.content-style-v17 .page-header-title {
    font-size: 22px; font-weight: 900; letter-spacing: -0.4px;
    background: none; -webkit-text-fill-color: #292524; color: #292524;
  }
  body.content-style-v17 .page-header-sub {
    position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
    margin-left: 0; color: #a8a29e; font-size: 13px;
  }
  body.content-style-v17 #pageSent .page-header-icon {
    width: 36px; height: 36px; border-radius: 10px; background: #eff6ff; box-shadow: none;
  }
  body.content-style-v17 #pageSent .page-header-icon svg { stroke: #2563eb !important; }
  #pageSent .page-header .back-btn { position: absolute; left: 40px; top: 0; bottom: 0; margin: auto 0; }

  /* 검색창 */
  .sent-search-wrap { padding: 28px 56px 4px; }
  .faq-search-input-wrap {
    border: 1.5px solid #e7e5e4; border-radius: 10px; background: #fafaf9; box-shadow: none;
  }
  .faq-search-input-wrap:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; background: #ffffff; }
  .faq-search-input { height: 56px; color: #292524; font-size: 16px; }
  .faq-search-input::placeholder { color: #a8a29e; }
  .faq-search-input-wrap svg { stroke: #a8a29e; }

  /* 목록 아이템 */
  .notice-body { padding: 20px 56px 56px; }
  .notice-item {
    background: #ffffff; border: 1px solid #e7e5e4 !important;
    border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; padding: 26px 26px;
  }
  .notice-item:hover { box-shadow: 0 5px 16px rgba(0,0,0,0.12) !important; border-color: #93c5fd !important; }
  .sent-thumb { border: 1px solid #e7e5e4; }
  .sent-thumb-name { color: #a8a29e; font-size: 11px; }
  .sent-recipient { color: #292524; font-size: 17px; font-weight: 700; }
  .notice-preview { color: #57534e; font-size: 15px; font-weight: 400; margin-right: -28px; }
  .notice-date { color: #a8a29e; font-size: 14px; }
  .sent-meta { gap: 8px; font-size: 14px; }
  .sent-meta-item {
    background: #eff6ff; border-radius: 7px; padding: 3px 9px; gap: 4px;
    color: #1d4ed8; font-weight: 600;
  }
  .sent-meta-item svg { stroke: #2563eb; width: 14px; height: 14px; }
  .sent-price { color: #ec4899; font-size: 15px; }

  /* 상태 뱃지 */
  .notice-badge { border-radius: 9999px; padding: 5px 13px; font-size: 14px; font-weight: 700; }
  .nb-sw-waiting  { background: #ff8d63de; color: #ffffff; }
  .nb-sw-edit     { background: #fdc245; color: #ffffff; }
  .nb-sw-done     { background: #3cc4c4c7; color: #ffffff; }
  .nb-sw-printing { background: #787dfed1; color: #ffffff; }
  .nb-sw-ready    { background: #404040b5; color: #ffffff; }
  .nb-sw-cancel   { background: #d6d3d1; color: #ffffff; }  /* 주문취소 */

  /* 상세: 본문 · 주문번호 · 퀵버튼 */
  .notice-detail-body { padding: 28px 56px 56px; }
  .sd-order-num { color: #2563eb; font-size: 20px; }
  .sd-order-label { color: #a8a29e; }
  .sd-quick-btn { background: #fafaf9; border: 1px solid #e7e5e4; color: #57534e; font-size: 15px; }
  .sd-quick-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #93c5fd; }
  .sd-quick-btn svg { stroke: #78716c; width: 23px; height: 23px; }
  .sd-quick-btn.active { background: #4276E8; border-color: #4276E8; color: #ffffff; }
  .sd-quick-btn.active svg { stroke: #ffffff; }

  /* 상세: 배송조회 */
  .sd-delivery { border: 1px solid #e7e5e4; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .sd-delivery-header:hover { background: #fafaf9; }
  .sd-delivery-title { color: #292524; font-size: 16px; }
  .sd-delivery-title svg { stroke: #2563eb; width: 17px; height: 17px; }
  .sd-delivery-sub { color: #a8a29e; }
  .sd-delivery-chevron { stroke: #a8a29e; }
  .sd-delivery-body { background: #ffffff; }
  .sd-track-dot { border: 2px solid #d6d3d1; }
  .sd-track-line { background: #e7e5e4; }
  .sd-track-name { color: #292524; font-size: 15px; }
  .sd-track-place, .sd-track-time { color: #a8a29e; }

  /* 상세: 정보 섹션 */
  .sd-section { border: 1px solid #e7e5e4; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .sd-section-title { color: #292524; font-size: 16px; border-bottom: 1px solid #f5f5f4; }
  .sd-section-title svg { width: 16px; height: 16px; stroke: #2563eb; }
  .sd-recipient-row + .sd-recipient-row { border-top: 1px solid #f5f5f4; }
  .sd-recipient-icon { background: #f5f5f4; }
  .sd-recipient-icon svg { stroke: #78716c; width: 14px; height: 14px; }
  .sd-recipient-sub { color: #a8a29e; font-size: 12px; }
  .sd-recipient-main { color: #292524; font-size: 16px; }
  .sd-row + .sd-row { border-top: 1px solid #f5f5f4; }
  .sd-label { color: #a8a29e; font-size: 14px; }
  .sd-value { color: #292524; font-size: 16px; }
  .sd-value.blue { color: #2563eb; }
  .sd-sep { color: #d6d3d1; }
  .sd-total-row { border-top: 1px solid #e7e5e4; }
  .sd-total-label { color: #292524; font-size: 17px; }

  /* 상세: 하단 운송장 박스 */
  .sd-footer-track { background: #292524; }
  .sd-footer-track:hover { background: #1c1917; }
  .sd-footer-track-label { color: #a8a29e; }
  .sd-footer-track-num { font-size: 16px; }

  /* 확인 모달 */
  #appModal { max-width: 460px; border-radius: 24px; }
  .modal-body { padding: 44px 40px 32px; }
  .modal-icon-wrap { width: 68px; height: 68px; border-radius: 20px; margin-bottom: 22px; }
  .modal-icon-wrap svg { width: 34px; height: 34px; }
  .modal-title { font-size: 20px; margin-bottom: 14px; }
  .modal-message { font-size: 15px; }
  .modal-btn { padding: 20px 16px; font-size: 16px; }

  /* 빈 화면 */
  .sent-empty { padding: 88px 24px 104px; }
  .sent-empty-icon { width: 96px; height: 96px; border-radius: 28px; }
  .sent-empty-icon svg { width: 46px; height: 46px; }
  .sent-empty-title { font-size: 20px; }
  .sent-empty-desc  { font-size: 15px; }
}

/* ── 2-2. 태블릿 (501px ~ 900px) ──
   ※ 반드시 2-1(PC) 뒤에 위치해야 PC 값을 덮어씀 */
@media (min-width: 501px) and (max-width: 900px) {
  /* 페이지 헤더 */
  body.content-style-v17 .page-header { padding: 0 28px; }
  body.content-style-v17 .page-header-sub { right: 28px; }
  #pageSent .page-header .back-btn { left: 12px; }

  /* 목록 · 상세 카드 */
  #sentList { margin: 24px auto; }
  #sentDetail .nd-card-wrap {
    width: 100%; max-width: 720px; margin: 24px auto;
    border: 1px solid rgb(239,229,255);
    box-shadow: 0 5px 14px 2px rgba(120,106,144,0.167);
  }

  /* 여백 */
  .sent-search-wrap { padding-left: 28px; padding-right: 28px; }
  .notice-body { padding-left: 28px; padding-right: 28px; }
  .notice-detail-body { padding-left: 28px; padding-right: 28px; }
  .notice-preview { margin-right: -73px; }
}


/* ════════════════════════════════════════════════════════════
   3. 모바일 (max-width: 500px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 500px) {

  /* ── 공통: 햄버거 · 탭바 · 검색창 · 헤더 ── */
  .mobile-hamburger { width: 32px; height: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: none; background: transparent; cursor: pointer; flex-shrink: 0; border-radius: 8px; }
  .mobile-hamburger:active { background: #F2F1F6; }
  .mobile-hamburger span { width: 18px; height: 2px; background: #2E3A42; border-radius: 1px; }

  .notice-tab-bar {
    display: flex !important; overflow-x: auto !important;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 0 12px; border-bottom: none;
    background: #ffffff; flex-shrink: 0;
    position: relative; z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .notice-tab-bar::-webkit-scrollbar { display: none; }

  .faq-search-input-wrap { border: 1.5px solid #B39DDB !important; box-shadow: 0 2px 8px rgba(126,87,194,0.12) !important; }
  .faq-search-input-wrap:focus-within { border: 2px solid #B39DDB !important; box-shadow: 0 4px 14px rgba(126,87,194,0.16) !important; padding: 0 13px !important; }

  /* 페이지 헤더 숨김 (모바일은 .mobile-header 사용) */
  #pageSent .page-header { display: none !important; }

  /* ── 목록 ── */
  #sentList {
    flex: 1 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch;
    width: 100% !important; background: #F7F7F7 !important;
    border-radius: 0 !important; border: none !important;
    box-shadow: none !important; margin: 0 !important;
  }
  #sentList .notice-body { padding: 12px 12px 120px !important; gap: 8px !important; }
  #sentList .sent-search-wrap { padding: 12px 12px 4px !important; }
  #sentList .notice-item { border-radius: 14px !important; }
  #sentList .notice-item .notice-preview { margin-right: -86px; padding-right: 4px; }
  #sentList .notice-item .sent-price { margin-top: 6px; }

  /* ── 상세 ── */
  .nd-card-wrap {
    width: 100% !important; margin: 0 !important;
    border-radius: 0 !important; border: none !important;
    box-shadow: none !important; 
  }
  .notice-detail-header { display: none !important; }
  .notice-detail-body { padding: 16px 16px 120px !important; }

  /* 상세 뷰 전체화면 */
  .sent-detail-view.active {
    position: fixed !important; inset: 0 !important;
    width: 100% !important; height: 100% !important;
    display: flex !important; flex-direction: column !important;
    overflow: hidden !important; z-index: 1000;
  }
  #sentDetail .mobile-header { flex-shrink: 0; position: relative; z-index: 1; }
  #sentDetail .nd-card-wrap { flex: 1 !important; overflow-y: auto !important; }
}