/* ==========================================================================
   모바일(720px 이하) — 캔버스 "MO_반응형" 디자인, 17_Mobile_UIUX_Spec.md
   모든 화면이 맨 마지막에 불러옵니다(화면별 CSS 를 덮으려고). 규칙은 전부 720px 안 — 태블릿 · 데스크톱은 그대로.
   모양만 바꾸고 동작은 지금 코드 그대로. 탭 바 · 시트 · 모바일 전용 모양은 mobile.js 가 그립니다.
   색 · 그림자 · 둥글기는 디자인 시스템 토큰만(디자인 m.css 와 같은 이름).
   ========================================================================== */
.m-tabbar, .m-sheet-wrap { display: none; }
@keyframes m-up { from { transform: translateY(28px); } }   /* 위치만 — 반투명으로 시작하면 뒤 화면 글자가 비침 */
@media (max-width: 720px) {
  .sidebar, .sidebar.is-collapsed { display: none; }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* 아래 탭 바 — 홈 · 보고서 · ＋만들기 · 소재 · 더보기. 볼 수 없는 칸은 사이드바처럼 숨고 나머지가 폭을 나눕니다 */
  .m-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-surface); box-shadow: 0 -1px 0 var(--hairline);
  }
  .m-tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 0; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 700;
    color: var(--text-muted); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .m-tab[hidden] { display: none; }
  .m-tab.is-on { color: var(--text-primary); }
  .m-tab:focus-visible { outline: 2px solid var(--signal); outline-offset: -6px; border-radius: 14px; }
  .m-tab--fab { justify-content: flex-start; color: var(--text-secondary); }
  .m-tab--fab i {
    width: 52px; height: 52px; margin-top: -18px; border-radius: 18px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--signal-solid); color: #fff;
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--signal-solid) 60%, transparent);
  }

  /* 아래 시트 — ＋만들기 */
  body.m-locked { overflow: hidden; }
  .m-sheet-wrap { display: block; position: fixed; inset: 0; z-index: 70; }
  .m-dim { position: absolute; inset: 0; background: var(--overlay-bg); }
  .m-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px;
    padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
    background: var(--bg-elevated); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-popover);
    animation: m-up .2s ease-out;
  }
  .m-sheet > * { flex: none; }   /* 화면이 낮을 때(주소창이 보이는 폰) 줄어들며 잘리지 않고 시트가 스크롤되게 — overflow:hidden 인 .m-list 가 찌그러졌음 */
  .m-grab { width: 40px; height: 5px; flex: none; align-self: center; border-radius: 3px; background: var(--border-strong); }
  .m-sheet__head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
  .m-opts { display: flex; flex-direction: column; gap: 10px; }
  .m-opt {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 16px; border-radius: 16px;
    background: var(--bg-surface); box-shadow: var(--shadow-card); color: var(--text-primary); text-decoration: none;
  }
  .m-opt__ic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-inset); color: var(--text-secondary); }
  .m-opt b { display: block; font-size: 15px; font-weight: 800; }
  .m-opt small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }

  /* 더보기 — 화면 전체(탭 바는 보임) · 묶음 목록 */
  .m-sheet-wrap--more { z-index: 55; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .m-sheet-wrap--more .m-dim, .m-sheet-wrap--more .m-grab { display: none; }
  .m-sheet-wrap--more .m-sheet { top: 0; max-height: none; padding-top: 16px; border-radius: 0; background: var(--bg-base); box-shadow: none; animation: none; }
  .m-sheet-wrap--more .m-sheet__head h2 { font-size: 22px; letter-spacing: -.03em; }
  .m-who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); font-size: 14px; font-weight: 700; }
  .m-who .user-avatar { width: 36px; height: 36px; border-radius: 10px; }
  .m-group { margin: 4px 0 -4px; font-size: 12px; font-weight: 800; color: var(--text-muted); }
  .m-list { overflow: hidden; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
  .m-row {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px;
    border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; text-align: left;
    color: var(--text-primary); text-decoration: none; cursor: pointer;
  }
  .m-row + .m-row { border-top: 1px solid var(--hairline); }
  .m-row.is-on { color: var(--signal); }
  .m-row__ic { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg-inset); color: var(--text-secondary); }
  .m-row__ic svg { width: 18px; height: 18px; }
  .m-row__go { margin-left: auto; display: flex; color: var(--text-muted); }

  /* 머리줄 — 화면 이름 크게, 오른쪽은 둥근 사각 아이콘 버튼 */
  .topbar-label { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
  .topbar-right #themeToggle { width: 38px; height: 38px; border-radius: 12px; background: var(--bg-inset); border: 0; }
  .topbar-right .user-chip { padding: 0; border: 0; background: none; }
  .topbar-right .user-chip > span:not(.user-avatar) { display: none; }   /* 이름 · 등급은 더보기 맨 위에 */
  .topbar-right .user-chip .user-avatar { width: 38px; height: 38px; border-radius: 12px; }

  /* ? 설명 — 탭 바 바로 위 알림 띠로(디자인의 토스트 모양). 버튼 옆에 띄우면 화면 밖으로 잘리고, 안 보일 때도 자리를 차지해 페이지가 옆으로 밀렸음 */
  .help-tip::after {
    position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 65;
    width: auto; padding: 12px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  }

  /* 가운데 창 → 아래 시트 모양(CSS 만 — 닫기 · Esc · 바깥 누르면 닫힘은 그대로). 수집 중 팝업(가운데 유지) · 업로드 서랍은 제외 */
  .modal-overlay:not(.busy-overlay):not(.cb-drawer-overlay) { align-items: flex-end; padding: 0; }
  .modal-overlay:not(.busy-overlay):not(.cb-drawer-overlay) > .modal-card {
    width: 100%; max-width: none; max-height: 92%;
    border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom);
    animation: m-up .2s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) { .m-sheet, .modal-card { animation: none !important; } }

/* ==========================================================================
   공용 부품 — 디자인 m.css 와 같은 모양(.hd · .scope/.chip · .seg · .kc · .card2 · .mini · .sh)
   ========================================================================== */
.m-chips, .m-hd-sub, .m-seg, .m-donut, .m-sheet-head, .m-demo, .m-hours, .m-icb { display: none; }
@media (max-width: 720px) {
  .content { gap: 12px; padding-top: 14px; background: var(--bg-base); }
  .content-heading { display: none; }                               /* 화면 이름은 머리줄이 — 같은 제목을 두 번 보이지 않게 */

  /* 머리줄(.hd) — 위 작은 줄(거래처) · 화면 이름 22px · 오른쪽 38px 아이콘 버튼, 아래 칩 줄(.scope) */
  .topbar { position: static; padding: 6px 16px 0; background: var(--bg-surface); box-shadow: 0 1px 0 var(--hairline); }
  .topbar-row { flex-wrap: nowrap; gap: 10px; min-height: 52px; padding-bottom: 10px; }
  .topbar-left { flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
  .topbar-crumb, .topbar-sep, .sync-stamp { display: none; }
  .topbar-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-hd-sub {
    display: block; max-width: 62vw; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 700; color: var(--text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .topbar-right { flex-wrap: nowrap; gap: 6px; margin-left: auto; }
  .topbar-right #syncAllBtn {                                         /* 매체 데이터 재수집 — 글자 대신 새로고침 아이콘(누르면 지금과 같음) */
    position: relative; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 12px;
    background: var(--bg-inset); font-size: 0; color: var(--text-secondary);
  }
  .topbar-right #syncAllBtn::before {
    content: ''; position: absolute; inset: 9px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .topbar-right #syncAllBtn:disabled { opacity: .5; }

  /* 칩 줄(.scope) — 머리줄 아래, 넘치면 옆으로 밂 */
  .m-chips {
    display: flex; gap: 6px; margin: 0 -16px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none;
  }
  .m-chips::-webkit-scrollbar { display: none; }
  .m-chip, .section-tabs a {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 0; border-radius: 999px; background: var(--bg-inset); box-shadow: none;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; cursor: pointer; text-decoration: none;
  }
  .m-chip b { font-weight: 800; color: var(--text-primary); }
  .m-chip.is-on, .section-tabs a.is-active { background: var(--text-primary); color: var(--bg-surface); box-shadow: none; font-weight: 700; }
  .m-chip.is-on b { color: inherit; }
  /* 표 머리 [자동 끄기] — 데스크톱의 테두리 버튼(btn-ghost) 대신 모바일 칩(.m-chip)과 같은 알약 모양.
     옆 [전체 통합 | 매체별 분리] 막대와 높이(36px)를 맞춤 */
  .campaign-toolbar .auto-head-btn {
    flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
    border: 0; border-radius: 999px; background: var(--bg-inset); box-shadow: none;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); white-space: nowrap;
  }
  .campaign-toolbar .auto-head-btn.is-set { background: var(--signal-tint); color: var(--signal); }
  .campaign-toolbar .auto-head-btn.is-warn { background: var(--warning-tint); color: var(--warning); }
  /* 버튼이 보일 때는 체크박스를 첫 줄에 따로 두어, 둘째 줄이 [자동 끄기] [전체 통합 | 매체별 분리] 가 되게(전체 통합 바로 왼쪽).
     버튼이 없는 등급(뷰어)은 예전처럼 체크박스와 막대가 한 줄 */
  .campaign-toolbar:has(.auto-head-btn:not([hidden])) .toolbar-check { flex-basis: 100%; }

  /* 전환 막대(.seg) */
  .m-seg, .filter-period .toggle-group {
    display: flex; gap: 0; padding: 3px; border: 0; border-radius: 12px; background: var(--bg-inset);
    flex: 1 1 auto; width: 100%; overflow: visible;
  }
  .m-seg button, .filter-period .toggle-group .toggle-btn {
    flex: 1 1 0; min-width: 0; height: auto; padding: 8px 0; border: 0; border-radius: 9px; background: none; box-shadow: none;
    font: inherit; font-size: 13px; font-weight: 700; color: var(--text-muted); white-space: nowrap; cursor: pointer;
  }
  .m-seg button.is-on, .filter-period .toggle-group .toggle-btn.is-active { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-card); }

  /* 카드(.card2) — 패널은 흰 카드 16px 둥글게 */
  .content > .panel, .content > section.panel, .content form > .panel {
    --panel-pad: 14px;                                                /* 머리 영역이 이 값만큼 바깥으로 당겨지는 구조라 여백은 이 값으로 */
    border: 0; border-radius: 16px; box-shadow: var(--shadow-card); background: var(--bg-surface); padding: var(--panel-pad);
  }
  .panel-head { gap: 8px; margin-bottom: 10px; padding-top: 14px; padding-bottom: 12px; }
  /* 흰 판을 걷어낸 패널(카드가 회색 바탕 위에 바로) — 머리 영역도 바깥으로 당기지 않음 */
  .content > section.panel.m-bare { --panel-pad: 0px; padding: 0; background: none; box-shadow: none; }
  .content > section.panel.m-bare > .panel-head { padding: 0; border: 0; margin: 0 0 10px; }
  .panel-title h2 { font-size: 16px; }
  .panel-desc { font-size: 12px; }

  /* 섹션 머리 — 번호 · 설명 없이 작게(디자인은 섹션 칩이 위치를 알려 줌) */
  .section-head { margin: 10px 0 0; padding: 0; }
  .section-head__num, .section-head__desc { display: none; }
  .section-head__title { font-size: 18px; }

  /* 지금 패널을 아래 시트로(.sh) — 조회 조건 상자 · 목록 상자 · 달력. 요소는 제자리, 위치만 화면 아래 */
  body.m-scope-open { overflow: hidden; }
  .m-has-scope .filter-card .scope-panel, .m-has-scope .content > .cb-scope { display: none; }   /* 칩 줄이 붙은 화면만 — 칩을 누르면 시트로 */
  body.m-scope-open .filter-card .scope-panel, body.m-scope-open .content > .cb-scope,
  .listbox-popover:not([hidden]), .calendar-popover:not([hidden]) {
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 75; width: auto; max-width: none; min-width: 0;
    max-height: 82vh; overflow-y: auto; margin: 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
    border: 0; border-radius: 24px 24px 0 0; background: var(--bg-elevated);
    box-shadow: 0 0 0 100vmax var(--overlay-bg), var(--shadow-popover);           /* 뒤판(어둡게) — 바깥을 누르면 지금처럼 닫힘 */
    transform: none;                                                               /* 넓은 화면의 가운데 맞춤(translateX) 끔 */
    animation: m-up .2s ease-out;
  }
  .listbox-popover:not([hidden]), .calendar-popover:not([hidden]) { z-index: 80; }   /* 조회 조건 시트 안에서 연 목록은 그 위로 */
  .m-sheet-head { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 12px; }
  .m-sheet-head .m-grab { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: block; }
  .m-sheet-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
  .m-sheet-close { margin-left: auto; padding: 6px 4px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
  /* 시트 안 칸 → 줄(.frow): 이름 왼쪽, 고른 값 오른쪽 */
  .scope-panel .scope-grid { flex-direction: column; align-items: stretch; gap: 8px; }
  .scope-panel .scope-pair { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .scope-panel .scope-field, .scope-panel .scope-pair .scope-field--popover {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px;
    padding: 0 6px 0 14px; border-radius: 14px; background: var(--bg-inset);
    font-size: 13px; font-weight: 600; color: var(--text-muted);
  }
  .scope-panel .scope-field .cxd-obox, .scope-panel .scope-popover-wrap { flex: 0 1 auto; min-width: 0; width: auto; }
  .scope-panel .scope-popover-btn, .scope-panel .cxd-obox__field {
    width: auto; min-width: 0; max-width: 58vw; height: 40px; border: 0; background: none; box-shadow: none;
    font-size: 14px; font-weight: 800; color: var(--text-primary); text-align: right;
  }
  .scope-panel .scope-field--check { justify-content: space-between; color: var(--text-primary); font-weight: 700; padding-right: 14px; }
  .scope-panel .scope-field--check input { order: 2; width: 22px; height: 22px; }
  /* 목록 상자 안 — 큰 줄 */
  .listbox-popover .listbox-row { min-height: 44px; font-size: 14px; }
  .listbox-popover .listbox-search { height: 40px; font-size: 14px; }

  /* 기간 — 전환 막대(.seg) 한 줄, 직접 지정은 달력 시트 */
  .filter-card { display: block; padding: 0; border: 0; background: none; box-shadow: none; }
  .filter-card__row { display: block; }
  .filter-card__label { display: none; }
  .filter-period { width: 100%; }
  .calendar-popover .calendar-footer { flex-wrap: wrap; gap: 10px; }
  .calendar-popover .calendar-actions { display: flex; gap: 8px; width: 100%; }
  .calendar-popover .calendar-actions button { flex: 1; height: 50px; border-radius: 14px; font-size: 15px; }
  .calendar-popover .calendar-actions #calApply { flex: 2; }
}

/* ==========================================================================
   ① 홈 · ⑦ 대시보드 상세 (dashboard.html)
   ========================================================================== */
@media (max-width: 720px) {
  /* 섹션 칩(요약 · 추이 · 성과 상세 · 타겟 · 매체별) — 위에 붙어 다님 */
  .section-tabs {
    position: sticky; top: 0; z-index: 30; display: flex; gap: 6px; margin: 0 -16px; padding: 10px 16px;
    overflow-x: auto; scrollbar-width: none; background: var(--bg-base); border: 0; box-shadow: none;
  }
  .section-tabs::-webkit-scrollbar { display: none; }

  /* 지표 고르기 — 칩(보라) 하나, 누르면 시트 */
  .metric-picker-bar { margin: 0; padding: 0; background: none; border: 0; }
  .metric-picker-bar__label { display: none; }
  .metric-picker-bar #metricDropdownBtn { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--signal-tint); color: var(--signal); font-size: 12.5px; font-weight: 700; }

  /* KPI — 옆으로 넘기는 카드(.kcar). 첫 장은 크게 · 진하게(.kc.big) */
  .kpi-grid {
    display: flex; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-padding-inline: 16px;                                      /* 넘겨도 카드가 화면 왼쪽 여백 16px 에 맞춰 멈춤 */
  }
  .kpi-grid::-webkit-scrollbar { display: none; }
  .kpi-grid .kpi-card {
    flex: none; width: 150px; min-width: 0; padding: 14px; scroll-snap-align: start;
    border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; gap: 4px;
  }
  .kpi-grid .kpi-card__label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
  .kpi-grid .kpi-card__value { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .kpi-grid .kpi-card__delta { padding: 0; background: none; font-size: 12px; font-weight: 800; }
  .kpi-grid .kpi-card__delta-note, .kpi-grid .kpi-card__hint { display: none; }
  .kpi-grid .kpi-card:first-child { width: 300px; background: var(--text-primary); color: var(--bg-surface); }
  .kpi-grid .kpi-card:first-child .kpi-card__label { color: color-mix(in srgb, var(--bg-surface) 65%, transparent); }
  .kpi-grid .kpi-card:first-child .kpi-card__value { font-size: 30px; color: var(--bg-surface); }
  .kpi-grid .kpi-card:first-child .kpi-card__hint { display: block; margin: 6px 0 0; font-size: 12px; color: color-mix(in srgb, var(--bg-surface) 65%, transparent); }
  .kpi-grid .empty-state { width: 100%; }

  /* 베스트 요약 — 카드 쌓기 */
  .winner-summary-panel .best-grid { display: flex; flex-direction: column; gap: 10px; }
  .winner-summary-panel .best-block { padding: 12px; border-radius: 14px; background: var(--bg-inset); border: 0; }

  /* 매체 구성 — 도넛 + 비율 목록 */
  .panel--mix { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .panel--mix > :not(.m-donut):not(.platform-list) { grid-column: 1 / -1; }
  .panel--mix .m-donut { display: flex; justify-content: center; }
  .panel--mix .platform-list { display: flex; flex-direction: column; gap: 0; min-width: 0; grid-template-columns: none; }
  .platform-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel--mix .platform-list .platform-row { padding: 8px 0; border-radius: 0; background: none; box-shadow: none; }
  .platform-row {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "chip roas" "spend spend"; gap: 2px 8px;
    width: auto; min-width: 0; padding: 8px 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; box-shadow: none;
  }
  .platform-row:first-child { border-top: 0; }
  .platform-row .platform-chip { grid-area: chip; font-size: 14px; font-weight: 800; }
  .platform-row .platform-roas { grid-area: roas; font-size: 14px; font-weight: 800; color: var(--text-primary); }
  .platform-row .platform-spend { grid-area: spend; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .platform-row .platform-bar-track { display: none; }                /* 비율은 위 도넛이 보여 줌 */

  /* 일별 추이 · 매체별 지표 — 그림 높이 고정(358px 폭에서 납작해지지 않게), 지표 고르기는 한 줄 */
  .combo-chart-list svg, #trendChart svg { height: 200px; }
  .chart-metric-controls { flex-wrap: wrap; gap: 8px; }

  /* 성과 상세 — 캠페인 · 광고세트 · 소재 전환 막대, 고른 것 하나만 */
  .m-seg--detail { display: flex; }
  .content[data-m-detail] section[data-m-tab] { display: none; }
  .content[data-m-detail="campaign"] section[data-m-tab="campaign"],
  .content[data-m-detail="adset"] section[data-m-tab="adset"],
  .content[data-m-detail="creative"] section[data-m-tab="creative"] { display: block; }

  /* 표 → 카드 목록(③ 표 → 카드) — 이름 줄 + 고른 지표 3개(.mini). 머리줄 정렬 버튼은 칩 줄 */
  .perf-table, .perf-table thead, .perf-table tbody { display: block; width: auto; min-width: 0; table-layout: auto; }
  .table-scroll--paged, .split-table-list .table-scroll, .panel .table-scroll:has(> .perf-table) { max-height: none; overflow: visible; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  /* 카드는 회색 바탕 위에 바로(디자인) — 성과 상세 패널의 흰 판은 걷어냄 */
  .content > section.panel[data-m-tab] { --panel-pad: 0px; padding: 0; background: none; box-shadow: none; }
  .content > section.panel[data-m-tab] > .panel-head { margin: 0 0 10px; padding: 0; border: 0; }
  .data-table.perf-table tbody tr + tr td { border-top: 0; }
  .perf-table thead tr { display: flex; gap: 6px; padding: 0 0 10px; overflow-x: auto; scrollbar-width: none; }
  .perf-table thead tr::-webkit-scrollbar { display: none; }
  .perf-table thead th {
    position: static; flex: none; width: auto !important; height: 30px; padding: 0 10px; border: 0; border-radius: 999px;
    background: var(--bg-inset); font-size: 12px; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 2px;
  }
  .data-table.sortable.perf-table thead th.is-sorted { background: var(--text-primary); color: var(--bg-surface); }
  .data-table.sortable.perf-table thead th.is-sorted .sort-arrow { color: inherit; }
  .perf-table thead th.thumb-th, .perf-table thead th[data-sort="rowBudget"] { display: none; }
  .perf-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .perf-table tbody tr {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
    padding: 14px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card);
  }
  .perf-table tbody tr + tr td { border-top: 0; }
  .data-table.perf-table tbody td, .data-table.perf-table thead th { position: static; }
  .perf-table tbody td { display: block; min-width: 0; padding: 0; border: 0; background: none; text-align: left; box-shadow: none; }
  .perf-table tbody td.ad-name-cell, .perf-table tbody td.cb-list__name { grid-column: 1 / -1; max-width: none; white-space: normal; margin-bottom: 4px; overflow: visible; }
  .perf-table tbody td[data-label] {
    padding: 8px 10px; border-radius: 10px; background: var(--bg-inset);
    font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis;
  }
  .perf-table tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); }
  .perf-table tbody td[data-label]:nth-child(n+5) { display: none; }   /* 이름 칸 + 지표 3개(소재 표는 썸네일 칸 하나 더 — 아래) */
  .perf-table tbody td.cb-list__act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; text-align: left; }
  .perf-table tbody td.cb-list__act:empty { display: none; }
  .perf-table tbody td.cb-list__act .cb-link-btn { margin: 0; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--bg-inset); font-size: 12px; text-decoration: none; }
  .perf-table thead th.cb-list__act { display: none; }
  .perf-table .cb-list__name b { font-size: 14px; font-weight: 800; white-space: normal; }
  .perf-table .cb-list__name small { white-space: normal; overflow: visible; }
  .perf-table tbody tr:has(> td.thumb-cell) td.cb-list__name { padding-left: 64px; min-height: 64px; }
  .perf-table tbody tr:has(> td.thumb-cell) td[data-label]:nth-child(5) { display: block; }
  .perf-table tbody tr:has(> td.thumb-cell) td[data-label]:nth-child(n+6) { display: none; }
  .perf-table tbody td.thumb-cell { position: absolute; left: 14px; top: 14px; width: 52px !important; height: 64px; padding: 0 !important; }
  .perf-table tbody td.thumb-cell .thumb-img { width: 52px; height: 64px; border-radius: 8px; object-fit: cover; }
  .perf-table tbody tr:has(> td.thumb-cell) td.ad-name-cell { padding-left: 64px; min-height: 64px; }
  .perf-table tbody tr.kw-row { display: none; }
  .perf-table tbody tr.sec-row { display: block; padding: 6px 2px 0; border-radius: 0; background: none; box-shadow: none; }
  .perf-table tbody tr.sec-row[data-sec] td.sec-row__name { padding: 10px 12px; border-radius: 12px; background: var(--bg-surface); box-shadow: var(--shadow-card); font-size: 14px; }   /* 폰: 눌러서 여는 줄이라 카드처럼 크게 */
  .perf-table tbody tr.sec-row td:not(.sec-row__name) { display: none; }   /* 소계는 폰에서 숨김 — 이름 · 개수만 소제목처럼 */
  .perf-table tbody tr.is-empty { display: block; }
  .perf-table .nm-line { flex-wrap: wrap; row-gap: 6px; }
  .perf-table .nm-text { flex-basis: 100%; font-size: 14px; font-weight: 800; white-space: normal; }
  .perf-table .ad-subtext { font-size: 12px; font-weight: 600; }

  /* 매체별 성과 표(#dataTable) — 매체마다 카드, 지표는 이름 붙은 칸 */
  #dataTable, #dataTable thead, #dataTable tbody { display: block; }
  #dataTable thead { display: none; }
  #dataTable tbody { display: flex; flex-direction: column; gap: 10px; }
  #dataTable tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 14px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
  #dataTable tbody td { position: static; display: block; padding: 0; border: 0; background: none; text-align: left; }
  #dataTable tbody td:first-child { grid-column: 1 / -1; font-size: 15px; font-weight: 800; }
  #dataTable tbody td[data-label] { padding: 8px 10px; border-radius: 10px; background: var(--bg-inset); font-size: 14px; font-weight: 800; }
  #dataTable tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); }
  #dataTable tbody tr.total-row { background: var(--signal-tint); }
  .panel .table-scroll:has(> #dataTable) { max-height: none; overflow: visible; border: 0; box-shadow: none; padding: 0; }
}

/* 타겟 · 시간대 — 나이 · 성별 가로 막대 · 24칸(⑦ 04). 같은 숫자의 큰 그림 · 표는 휴대폰에서 숨김(디자인은 막대 · 칸만) */
@media (max-width: 720px) {
  .m-demo, .m-hours { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
  .m-demo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .m-demo__head b { font-size: 15px; font-weight: 800; }
  .m-demo__head span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
  .m-demo__head i { width: 10px; height: 10px; border-radius: 3px; }
  .m-demo .is-f { background: var(--signal-solid); }
  .m-demo .is-m { background: var(--border-strong); }
  .m-demo__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
  .m-demo__row > span:first-child { width: 56px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-demo__bar { flex: 1; display: flex; gap: 2px; min-width: 0; }
  .m-demo__bar i { height: 14px; border-radius: 4px; min-width: 2px; }
  .m-demo__pct { width: 40px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
  .m-demo__note { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--signal-tint); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
  .m-demo__note b { color: var(--signal); }
  .m-hours__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
  .m-hours__grid i { aspect-ratio: 1; border-radius: 4px; background: var(--signal-solid); }
  .m-hours__axis { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-muted); }
  #demoChartsWrap, #demoMatrixWrap, #hourlyHeatmapWrap, #demoMatrixRangeNote { display: none; }
}

/* ==========================================================================
   ② 보고서 · ⑧ 자동 보고서 (report.html) — 만들기 = 큰 선택 줄 3개(.opt), 생성 목록 = 카드, 보고서 안 숫자 = 옆으로 넘기는 카드(.kcar)
   ========================================================================== */
@media (max-width: 720px) {
  .content > section.panel[aria-label="보고서 만들기"] { --panel-pad: 0px; padding: 0; background: none; box-shadow: none; }
  .content > section.panel[aria-label="보고서 만들기"] > .panel-head { margin: 0 0 8px; padding: 0; border: 0; }
  #reportMetricDropdownBtn { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--signal-tint); color: var(--signal); font-size: 12.5px; font-weight: 700; }
  .report-toolbar { display: flex; flex-direction: column; gap: 10px; }
  .report-toolbar .report-quota { align-self: flex-start; }
  .report-toolbar [data-report] {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: auto; min-height: 72px; padding: 16px;
    border: 2px solid transparent; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card);
    font-size: 15px; font-weight: 800; color: var(--text-primary); text-align: left; white-space: normal;
  }
  .report-toolbar [data-report]::before {                             /* 아이콘 칸(.oi) — 옵션 박스 화살표와 같은 회색 선 그림 */
    content: ''; width: 40px; height: 40px; flex: none; border-radius: 12px;
    background: var(--bg-inset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E") center / 20px no-repeat;
  }
  .report-toolbar [data-report]::after { content: '›'; margin-left: auto; font-size: 22px; font-weight: 600; color: var(--text-muted); }
  .report-toolbar [data-report]:disabled { opacity: .5; }

  /* 생성된 보고서 — 카드. 제목 굵게 · 거래처 작게, 할 일 버튼은 작은 칩 줄 */
  .report-list { display: flex; flex-direction: column; gap: 10px; }
  .report-item { border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); padding: 14px; }
  .report-head { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 0; }
  .report-toggle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; padding: 0; text-align: left; }
  .report-toggle .report-title { font-size: 15px; font-weight: 800; }
  .report-toggle .report-scope { flex-basis: 100%; padding-left: 18px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .report-head .report-actions { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .report-head .report-actions::-webkit-scrollbar { display: none; }
  .report-head .report-actions button { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg-inset); font-size: 12.5px; font-weight: 700; }
  .report-head .report-actions [data-act="del"] { color: var(--negative); }
  .report-body { padding: 12px 0 0; }

  /* 보고서 안 숫자 — 옆으로 넘기는 카드(디자인 02 점수 카드) */
  .rm-kpis { display: flex; gap: 10px; margin: 0 -14px; padding: 2px 14px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scrollbar-width: none; }
  .rm-kpis::-webkit-scrollbar { display: none; }
  .rm-kpi { flex: none; width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--bg-inset); }
  .rm-kpi:first-child { background: var(--signal-tint); }
  .rm-kpi__l { font-size: 12px; font-weight: 700; color: var(--text-muted); }
  .rm-kpi b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .rm-kpi .rm-delta { font-size: 12px; font-weight: 800; background: none; padding: 0; }
  .report-summary { border-radius: 14px; background: var(--positive-tint); padding: 12px 14px; }
  .report-media-nav { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .report-media-nav::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   지표 베스트 소재 (best.html) — 지표마다 1위 소재를 크게 한 장씩, 옆으로 넘김(② 03)
   ========================================================================== */
@media (max-width: 720px) {
  .content .bs-grid {
    display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
    grid-template-columns: none;
  }
  .content .bs-grid::-webkit-scrollbar { display: none; }
  .content .bs-grid .bs-slot {
    flex: none; width: calc(100vw - 48px); max-width: 360px; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 8px; padding: 12px;
    border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card);
  }
  .bs-slot__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .bs-slot__metric { margin: 0; font-size: 15px; font-weight: 800; }
  .bs-slot__dir { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .content .bs-grid .bs-img { height: 330px; aspect-ratio: auto; border-radius: 12px; background: var(--bg-inset); }
  .content .bs-grid .bs-img img { width: 100%; height: 100%; object-fit: contain; }
  .bs-slot__name { margin: 0; font-size: 14px; font-weight: 800; white-space: normal; }
  .bs-slot__kv { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--signal-tint); font-size: 11px; font-weight: 700; color: var(--text-muted); }
  .bs-slot__kv b { font-size: 16px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .bs-slot__other { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
  .bs-slot__note { margin: 0; font-size: 12px; color: var(--text-muted); }
}

/* ==========================================================================
   공용 — 머리줄 아이콘 버튼(.icb) · 패널을 아래 시트로(mobile.js panelSheet)
   ========================================================================== */
@media (max-width: 720px) {
  .m-icb {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px;
    padding: 0; border: 0; border-radius: 12px; background: var(--bg-inset); color: var(--text-secondary); cursor: pointer;
  }
  .m-has-filter .m-psheet--filter { display: none; }
  body.m-open-filter .m-psheet--filter {
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 75; max-height: 82vh; overflow-y: auto; margin: 0;
    padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; background: var(--bg-elevated);
    box-shadow: 0 0 0 100vmax var(--overlay-bg), var(--shadow-popover); animation: m-up .2s ease-out;
  }
  body.m-open-filter { overflow: hidden; }
}

/* ==========================================================================
   ⑩ 소재 저장 (assets.html) — 상태 칩 줄 · 가로 카드(썸네일 · 이름 · 오른쪽 상태 배지) · 할 일 버튼은 작은 칩
   ========================================================================== */
@media (max-width: 720px) {
  .m-psheet--filter .cx-bar__filters, .m-psheet--filter .cx-bar__actions { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .m-psheet--filter .field { margin: 0; }
  .m-psheet--filter > *, .m-psheet--filter .cx-bar__filters > *, .m-psheet--filter .cx-bar__actions > * { flex: none; width: 100%; max-width: none; }
  #cxGrid { display: flex; flex-direction: column; gap: 10px; grid-template-columns: none; }
  #cxGrid .cx-card {
    position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: center;
    padding: 14px; border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card);
  }
  #cxGrid .cx-card__img { position: static; grid-row: 1; width: 52px; height: 64px; aspect-ratio: auto; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--bg-inset); }
  #cxGrid .cx-card__img img { width: 100%; height: 100%; object-fit: cover; }
  #cxGrid .cx-badge { position: absolute; right: 14px; top: 14px; left: auto; bottom: auto; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
  #cxGrid .cx-card__body { grid-column: 2; min-width: 0; padding: 0 76px 0 0; }
  #cxGrid .cx-card__body h3 { margin: 0; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #cxGrid .cx-card__copy { display: none; }
  #cxGrid .cx-card__meta { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  #cxGrid .cx-card__foot, #cxGrid .cx-card__more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
  #cxGrid .cx-card__foot .btn-ghost, #cxGrid .cx-card__more .link-btn {
    height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--bg-inset); font-size: 12px; font-weight: 700; color: var(--text-secondary); text-decoration: none;
  }
  #cxGrid .cx-card__more .cx-danger { color: var(--negative); }
}

/* ==========================================================================
   ③ 소재 허브 · ⑩ 컬렉션 (collection.html) — 전환 막대로 한 묶음씩, 2열 갤러리(이름은 그림 위), 담기 상자는 시트
   ========================================================================== */
@media (max-width: 720px) {
  .m-seg--cl { display: flex; }
  .content[data-m-cl] section[data-m-cl] { display: none; }
  .content[data-m-cl="popular"] section[data-m-cl="popular"]:not([hidden]),
  .content[data-m-cl="top"] section[data-m-cl="top"],
  .content[data-m-cl="boards"] section[data-m-cl="boards"] { display: block; }
  .content > section.panel[data-m-cl] { --panel-pad: 0px; padding: 0; background: none; box-shadow: none; }
  .content > section.panel[data-m-cl] > .panel-head { margin: 0 0 10px; padding: 0; border: 0; }
  .cl-tools { display: flex; flex-direction: column; gap: 8px; }
  .content .cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  /* 갤러리 칸(.tile) — 그림 4:5, 순위는 흰 알약(왼쪽 위), 이름은 그림 아래쪽 어두운 띠 위(같은 칸에 겹침) */
  .content .cl-grid .cl-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--bg-surface); box-shadow: var(--shadow-card); }
  .content .cl-grid .cl-card__img { grid-row: 1; grid-column: 1; aspect-ratio: 4 / 5; height: auto; border-radius: 0; }
  .content .cl-grid .cl-card__img img { width: 100%; height: 100%; object-fit: cover; }
  .content .cl-grid .cl-card__body { display: contents; }
  .content .cl-grid .cl-card h3 {
    grid-row: 1; grid-column: 1; align-self: end; z-index: 1; margin: 0; padding: 22px 10px 8px;
    background: linear-gradient(transparent, rgba(16, 18, 24, .7)); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .content .cl-grid .cl-rank { top: 8px; left: 8px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--text-primary); font-size: 11px; font-weight: 800; display: flex; align-items: center; }
  .content .cl-grid .cl-card__row { grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 0; }
  .content .cl-grid .cl-card__meta { grid-row: 3; margin: 2px 0 0; padding: 0 10px; font-size: 11px; color: var(--text-muted); }
  .content .cl-grid .cl-card__kpi { grid-row: 4; display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; padding: 2px 10px 10px; font-size: 11.5px; }
  #clPicker:not([hidden]) {
    position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: auto !important; max-width: none !important;
    z-index: 75; max-height: 82vh; overflow-y: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    border: 0; border-radius: 24px 24px 0 0; background: var(--bg-elevated); box-shadow: 0 0 0 100vmax var(--overlay-bg), var(--shadow-popover);
  }
}

/* ==========================================================================
   공용 — 큰 입력 칸(.inp2: 52px · 16px 글자 — 휴대폰이 확대하지 않게) · 아래 고정 주 버튼(.foot .cta)
   ========================================================================== */
@media (max-width: 720px) {
  .content input[type="text"], .content input[type="search"], .content input[type="email"], .content input[type="number"],
  .content input[type="url"], .content input[type="tel"], .content input[type="password"], .content textarea,
  .modal-card input[type="text"], .modal-card input[type="email"], .modal-card input[type="number"], .modal-card input[type="url"], .modal-card textarea,
  .content .cxd-obox__field, .modal-card .cxd-obox__field {
    min-height: 48px; border-radius: 14px; font-size: 16px;
  }
  .content textarea, .modal-card textarea { min-height: 96px; }
  /* 화면의 주 버튼 — 탭 바 바로 위에 붙어 다님(엄지 닿는 곳) */
  #csSubmit, #utmGenerateBtn {
    position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5;
    width: 100%; height: 54px; border-radius: 16px; font-size: 16px; font-weight: 800;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--signal-solid) 55%, transparent);
  }
}

/* ==========================================================================
   ⑨ 소재 카피 제작 (copy-studio.html) — 카드 모양 칸 · 3안 카드
   ========================================================================== */
@media (max-width: 720px) {
  .cs-opt { border-radius: 14px; }
  .cs-variant { border: 2px solid transparent; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); padding: 14px; }
  .cs-variant.is-selected { border-color: var(--signal); background: var(--signal-tint); }
}

/* ==========================================================================
   ④ 캠페인 업로드 (campaign-builder.html) — 단계 칩 · 카드 목록(표 → 카드는 위 공용 규칙) · 서랍은 전체 화면 단계
   ========================================================================== */
@media (max-width: 720px) {
  .content > section.cb-list { --panel-pad: 0px; padding: 0; background: none; box-shadow: none; }
  .cb-list__bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; }
  .cb-level-tabs { display: flex; gap: 6px; padding: 0; border: 0; background: none; box-shadow: none; overflow-x: auto; scrollbar-width: none; }
  .cb-level-tabs .toggle-btn {
    flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg-inset); box-shadow: none;
    font-size: 12.5px; font-weight: 700; color: var(--text-secondary);
  }
  .cb-level-tabs .toggle-btn b { font-weight: 800; color: var(--text-primary); }
  .cb-level-tabs .toggle-btn.is-active { background: var(--text-primary); color: var(--bg-surface); }
  .cb-level-tabs .toggle-btn.is-active b { color: inherit; }
  .cb-list__tools { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 6px; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .cb-list__tools::-webkit-scrollbar { display: none; }
  .cb-list__tools > * { flex: none; margin-left: 0; }
  .cb-list__tools > .cb-create { margin-left: auto; }
  .cb-list__tools .metric-picker-bar__label, .cb-vsep { display: none; }
  #cbCreateBtn { white-space: nowrap; height: 36px; padding: 0 14px; border-radius: 12px; }
  .cb-list .table-scroll { padding: 0; }
  .cb-list__note { padding: 0; }
}

/* ── ④ 캠페인 업로드 서랍(03 한 화면 한 질문 · 04 큰 입력 칸 · 05 검토) — 단계 · 검사 · 등록은 campaign-builder.js 그대로 ── */
@media (max-width: 720px) {
  .cb-drawer { background: var(--bg-base); }
  .cb-drawer__head { padding: 14px 16px 8px; gap: 10px; background: var(--bg-surface); }
  .cb-drawer__x { top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 12px; }
  .cb-drawer__head h2 { order: 2; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; padding-right: 44px; }
  .cb-drawer__head .field-hint { order: 3; font-size: 12.5px; }
  /* 단계 이름 줄 → 위 진행 막대(4칸) */
  .cb-drawer .cb-steps { order: 1; display: flex; flex-wrap: nowrap; gap: 4px; margin: 0 44px 0 0; }
  .cb-drawer .cb-steps li { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-inset); font-size: 0; gap: 0; }
  .cb-drawer .cb-steps li + li::before { content: none; }
  .cb-drawer .cb-steps li i { display: none; }
  .cb-drawer .cb-steps li.is-on, .cb-drawer .cb-steps li.is-done { background: var(--signal-solid); }
  .cb-drawer .cb-steps li.is-skip { background: var(--border-strong); text-decoration: none; }
  .cb-drawer__body { padding: 16px; }
  /* 목적 · 전환 위치 → 선택 카드(.opt) */
  .cb-drawer .objective-card-grid { grid-template-columns: 1fr; gap: 8px; }
  .cb-drawer .objective-card { padding: 16px; border-radius: 16px; background: var(--bg-surface); border: 2px solid transparent; box-shadow: var(--shadow-card); text-align: left; }
  .cb-drawer .objective-card.is-active { border-color: var(--signal); background: var(--signal-tint); box-shadow: none; }
  .cb-drawer .objective-card strong { font-size: 15px; font-weight: 700; }
  .cb-drawer .objective-card span { font-size: 12.5px; font-weight: 600; }
  /* 종료 날짜 체크 → 스위치 줄 */
  .cb-drawer .scope-field--check:has(#cbHasEnd) { display: flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--bg-surface); box-shadow: var(--shadow-card); font-size: 14px; color: var(--text-primary); }
  #cbHasEnd { order: 2; appearance: none; -webkit-appearance: none; width: 46px; height: 28px; margin: 0 0 0 auto; border-radius: 14px; flex: none; cursor: pointer;
    background: radial-gradient(circle at 14px 50%, var(--bg-surface) 10px, transparent 11px), var(--border-strong); transition: background-color .15s; }
  #cbHasEnd:checked { background: radial-gradient(circle at 32px 50%, var(--bg-surface) 10px, transparent 11px), var(--signal-solid); }
  #cbHasEnd:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
  /* 검토 → 단계별 요약 카드 */
  .cb-review__card { border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
  .cb-review__card header { background: none; padding: 14px 16px 6px; font-size: 15px; }
  .cb-review__no { background: var(--signal-tint); color: var(--signal); }
  .cb-confirm { padding: 14px; border-radius: 14px; background: var(--bg-surface); box-shadow: var(--shadow-card); font-size: 13.5px; font-weight: 600; align-items: flex-start; }
  .cb-confirm input { width: 22px; height: 22px; }
  /* 아래 고정 버튼(.foot · .cta) */
  .cb-drawer__foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 0; box-shadow: 0 -1px 0 var(--hairline); background: var(--bg-surface); }
  .cb-drawer__btns { display: flex; gap: 8px; }
  .cb-drawer__btns button { flex: 1; height: 54px; border-radius: 16px; font-size: 16px; font-weight: 800; }
  .cb-drawer__btns #cbPrevBtn { flex: 0 0 34%; background: var(--bg-inset); border: 0; color: var(--text-primary); }
  .cb-drawer__btns button[hidden] { display: none; }
}

/* 캠페인 업로드 요약 — 홈 KPI 넘기기와 같은 줄, 첫 장도 같은 회색 카드(홈만 첫 장 크게) */
@media (max-width: 720px) {
  .cb-summary .cb-summary__grid .kpi-card, .cb-summary .cb-summary__grid .kpi-card:first-child {
    width: 140px; padding: 14px; border: 0; border-radius: 16px; background: var(--bg-inset); color: var(--text-primary);
  }
  .cb-summary .cb-summary__grid .kpi-card:first-child .kpi-card__label { color: var(--text-muted); }
  .cb-summary .cb-summary__grid .kpi-card:first-child .kpi-card__value { font-size: 22px; color: var(--text-primary); }
  .cb-summary .cb-summary__grid { gap: 8px; }
  .cb-summary .cb-summary__grid .kpi-card:first-child .kpi-card__hint { display: none; }
}

/* ── ⑤ 대량 올리기(02 검토 · 문제만 빨갛게) — 검사 · 제외 · 저장 · 반영은 assets.js 그대로. 표 줄 → 카드 ── */
@media (max-width: 720px) {
  .cxm--xl > .modal-card { height: 92%; display: flex; flex-direction: column; }
  .cxm--xl > .modal-card > .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
  .cxm--xl .modal-sub { display: none; }
  #cxbFoot { flex: none; flex-wrap: wrap; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--hairline); }
  #cxbFoot .modal-actions__count { flex: 1 0 100%; font-size: 12.5px; }
  #cxbFoot button { flex: 1; height: 50px; border-radius: 16px; font-size: 15px; font-weight: 800; }
  .cxb-method { display: flex; flex-direction: column; gap: 8px; }
  .cxb-opt { padding: 14px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
  .cxb-drops, .cxb-drops.is-one { grid-template-columns: 1fr; }
  .cxb-drop { border-radius: 16px; }
  .cxb-batch { flex-direction: column; align-items: stretch; border-radius: 16px; }
  .cxb-batch input, .cxb-batch select, .cxb-batch .cxd-obox { flex: none; width: 100%; height: 44px; font-size: 16px; }
  .cxb-sum { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }

  .cxb-scroll { max-height: none; overflow: visible; border-radius: 0; box-shadow: none; }
  .cxb-table, .cxb-table thead, .cxb-table tbody { display: block; min-width: 0; }
  .cxb-table thead tr { display: flex; }
  .cxb-table thead th { display: none; position: static; }
  .cxb-table thead th.cxb-c-sel { display: flex; flex: 1; align-items: center; gap: 8px; width: auto; max-width: none; padding: 0 14px; background: none; }
  .cxb-table thead th.cxb-c-sel::after { content: '모두 선택'; position: static; width: auto; height: auto; font-size: 13px; color: var(--text-secondary); }
  .cxb-table tr.cxb-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; margin-top: 10px; padding: 14px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
  .cxb-table tr.cxb-row.is-bad { background: var(--negative-tint); box-shadow: none; }
  .cxb-table td, .cxb-row.is-bad td { display: block; grid-column: 1 / -1; width: auto; min-width: 0; padding: 0; border: 0; background: none; }
  .cxb-table td.cxb-c-sel { grid-column: 1; align-self: center; text-align: left; }
  .cxb-table td.cxb-c-file { grid-column: 2; display: flex; align-items: center; }
  .cxb-c-file > div { max-width: none; min-width: 0; }
  .cxb-thumb { width: 48px; height: 48px; border-radius: 12px; flex: none; }
  .cxb-c-body::before, .cxb-c-head::before, .cxb-c-cta::before, .cxb-c-url::before, .cxb-c-adset::before {
    display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted);
  }
  .cxb-c-body::before { content: '본문'; }
  .cxb-c-head::before { content: '헤드라인'; }
  .cxb-c-cta::before { content: '버튼'; }
  .cxb-c-url::before { content: '랜딩 URL'; }
  .cxb-c-adset::before { content: '대상 광고세트'; }
  .cxb-table textarea, .cxb-table input:not([type="checkbox"]), .cxb-table select { min-height: 44px; padding: 10px 12px; border-radius: 12px; font-size: 16px; }
  .cxb-table td.cxb-checks { display: flex; flex-wrap: wrap; gap: 6px; }
  .cxb-chip { margin: 0; max-width: 100%; white-space: normal; }
  .cxb-table td.cxb-c-act { display: flex; gap: 18px; }
  .cxb-c-act .link-btn { display: inline; margin: 0; font-size: 13px; }
}

/* ── ⑥ UTM 만들기(03) — 흰 판 없이 큰 입력 칸(.inp2)이 회색 바탕 위에, 완성 주소는 카드. 생성 · 복사는 utm.js 그대로 ── */
@media (max-width: 720px) {
  .content > .utm-layout { gap: 12px; }
  .utm-form-panel { --panel-pad: 0px; padding: 0; background: none; box-shadow: none; }
  .utm-form-panel > .panel-head { padding: 0; border: 0; margin: 0 0 6px; }
  .utm-form-panel form { gap: 12px; }
  .utm-pair { gap: 12px; }
  .utm-form-panel .field > label, .utm-form-panel .field > span:first-child { font-size: 12px; font-weight: 800; color: var(--text-muted); }
  .utm-form-panel input:not([type="checkbox"]), .utm-form-panel .cxd-obox__field { min-height: 52px; background: var(--bg-surface); border: 1.5px solid var(--border-strong); }
  .utm-field-error:empty { display: none; }
  .utm-select-row button { height: 52px; border-radius: 14px; font-size: 13px; }
  .utm-campaign-rule { border: 0; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); padding: 14px; gap: 12px; }
  .utm-campaign-rule input:not([type="checkbox"]), .utm-campaign-rule .cxd-obox__field { background: var(--bg-inset); border-color: transparent; }
  .utm-result-panel code, .utm-preview code { word-break: break-all; }
}
@media (max-width: 720px) {
  /* 떠 있는 주 버튼이 꺼져 있을 때 — 반투명 대신 옅은 색(뒤 글자가 비치지 않게) */
  #utmGenerateBtn.is-disabled, #csSubmit:disabled { opacity: 1; background: color-mix(in srgb, var(--signal-solid) 38%, var(--bg-surface)); box-shadow: none; }
}

/* ── ⑪ 매체 연동(01 준비 상태 · 04 관리) — 연결 · 저장 · 수집은 app.js 그대로. 매체 줄 = 이름 · 방식 왼쪽, 상태 배지 오른쪽 ── */
@media (max-width: 720px) {
  .readiness-list .readiness-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 12px 0; }
  .readiness-list .readiness-row > span { grid-column: 1; min-width: 0; }
  .readiness-row > .platform-chip { font-size: 15px; font-weight: 800; }
  .readiness-row > span:nth-child(2), .readiness-row > .readiness-note { font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .readiness-list .readiness-row > .status-badge { grid-column: 2; grid-row: 1 / span 3; width: auto; justify-self: end; }
  .integration-card__head { align-items: center; }
  .integration-card__head h2 { font-size: 17px; }
  .client-conn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg-inset); border: 0; }
  .client-conn-row__main { flex: 1 1 160px; min-width: 0; }
  .client-conn-row__warn { flex: 1 1 100%; }
  .client-conn-row__actions { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .credential-guide { border-radius: 14px; }
}
@media (max-width: 720px) {
  /* 연동할 거래처 → 줄(.frow): 이름 왼쪽, 고른 거래처 오른쪽 */
  .credential-target > label { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 4px 0 14px; border-radius: 14px; background: var(--bg-inset); font-size: 13px; font-weight: 600; color: var(--text-muted); }
  .credential-target .cxd-obox__field { min-height: 44px; border: 0; background: none; box-shadow: none; font-size: 15px; font-weight: 800; color: var(--text-primary); }
}

/* ── ⑫ 설정(01 묶음 카드 · 02 표시 설정 · 03 회원) — 저장 · 역할 변경 · 초대는 app.js 그대로 ── */
@media (max-width: 720px) {
  /* 표시 설정 줄 → 이름(+풀이) 위, 고르기 칸 아래 전체 폭 */
  .settings-toggle-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .settings-toggle-row > span:first-child { font-size: 14px; font-weight: 800; color: var(--text-primary); }
  .settings-toggle-row .settings-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }
  .settings-toggle-row .cxd-obox { width: 100%; }
  .settings-toggle-row .cxd-obox__field { width: 100%; }
  /* 저장 · 기본값 — 탭 바 위에 붙은 아래 버튼 줄(.foot) */
  .settings-actions {
    position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5;
    display: flex; gap: 8px; margin: 0; padding: 10px; border-radius: 20px;
    background: var(--bg-elevated); box-shadow: var(--shadow-popover);
  }
  .settings-actions button { flex: 1; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 800; }
  #settingsReset { flex: 0 0 38%; background: var(--bg-inset); border: 0; }
  /* 회원 표 → 사람 카드: 이름 · 권한 배지 / 이메일 / 권한 바꾸기 / 관리 */
  #memberPanel .table-scroll { max-height: none; overflow: visible; box-shadow: none; }
  #inviteOpenBtn { width: 100%; height: 46px; margin-top: 6px; border-radius: 14px; font-size: 14px; font-weight: 800; }
  #memberPanel .data-table, #memberPanel .data-table tbody { display: block; width: 100%; min-width: 0; }
  #memberPanel .data-table thead { display: none; }
  #memberPanel .data-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  #memberPanel .data-table tbody tr:last-child { border-bottom: 0; }
  #memberPanel .data-table tbody td { display: block; padding: 0; border: 0; min-width: 0; text-align: left !important; background: none; position: static; }
  #memberPanel .data-table tbody td:nth-child(2) { grid-row: 1; grid-column: 1; font-size: 15px; font-weight: 800 !important; }
  #memberPanel .data-table tbody td:nth-child(1) { grid-row: 1; grid-column: 2; }
  #memberPanel .data-table tbody td:nth-child(1) strong { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--signal-tint); color: var(--signal); font-size: 11.5px; }
  #memberPanel .data-table tbody td:nth-child(1) .ad-subtext { display: none; }
  #memberPanel .data-table tbody td:nth-child(3) { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-muted); word-break: break-all; }
  #memberPanel .data-table tbody td:nth-child(n+4) { grid-column: 1 / -1; }
  #memberPanel .data-table tbody td .cxd-obox, #memberPanel .data-table tbody td .cxd-obox__field { width: 100%; }
}
@media (max-width: 720px) {
  /* 알림 켜고 끄기 — 체크 칸을 오른쪽 스위치(.tg) 모양으로(값 · change 는 그대로) */
  .settings-toggle-row:has(> input[type="checkbox"]) { flex-direction: row; align-items: center; justify-content: space-between; }
  .settings-toggle-row > input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 14px; cursor: pointer;
    background: radial-gradient(circle at 14px 50%, var(--bg-surface) 10px, transparent 11px), var(--border-strong); transition: background-color .15s;
  }
  .settings-toggle-row > input[type="checkbox"]:checked { background: radial-gradient(circle at 32px 50%, var(--bg-surface) 10px, transparent 11px), var(--signal-solid); }
  .settings-toggle-row > input[type="checkbox"]:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
}
@media (max-width: 720px) {
  /* 초대 시트 — 볼 수 있는 브랜드는 칩(.chk3), 아래 버튼은 큰 버튼(.cta) */
  .invite-brands { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .member-brand-option { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg-inset); font-size: 14px; font-weight: 700; cursor: pointer; }
  .member-brand-option:has(input:checked) { background: var(--signal-tint); color: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal); }
  .member-brand-option input, #inviteBrands .member-brand-option input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--signal-solid); }
  #inviteBrands { max-height: none; padding: 0; border: 0; }
  #inviteBrands .member-brand-option { flex: none; }
  .modal-overlay:not(.busy-overlay):not(.cb-drawer-overlay) > .modal-card > .modal-actions { gap: 8px; }
  .modal-overlay:not(.busy-overlay):not(.cb-drawer-overlay) > .modal-card > .modal-actions > button { flex: 1; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 800; }
}

/* ── ⑬ 로그인 · 가입 · 재설정 · 가입 마무리(01 · 02) — 흰 바탕 한 장, 큰 입력 칸 · 큰 버튼. 로그인 · 검사는 그대로 ── */
@media (max-width: 720px) {
  .login-shell, .login-page { background: var(--bg-surface); }
  .login-panel { align-items: flex-start; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
  .login-card { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .login-card h1 { font-size: 26px; letter-spacing: -.03em; line-height: 1.3; }
  .login-sub { font-size: 14px; }
  .login-card .field > label, .login-card .field-label-row label { font-size: 12px; font-weight: 800; color: var(--text-muted); }
  .login-card input:not([type="checkbox"]):not([type="radio"]) { min-height: 56px; padding: 0 14px; border: 1.5px solid var(--border-strong); border-radius: 14px; font-size: 16px; }
  .login-card .btn-primary, .login-card .btn-ghost:not(.btn-sm), .login-card .btn-social { width: 100%; height: 54px; border-radius: 16px; font-size: 16px; font-weight: 800; }
  .login-card .btn-ghost:not(.btn-sm), .login-card .btn-social { border: 0; background: var(--bg-inset); color: var(--text-primary); }
  /* 가입 마무리 — 대행사 · 브랜드사 전환 막대 → 선택 카드(.opt) */
  .role-toggle { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 8px; padding: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
  .login-card .inline-row .btn-sm { height: 56px; padding: 0 14px; border-radius: 14px; }
  .role-toggle .toggle-btn { justify-content: flex-start; height: auto; min-height: 56px; padding: 0 16px; border: 2px solid var(--border-strong); border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card); font-size: 15px; font-weight: 800; text-align: left; }
  .role-toggle .toggle-btn.is-active { border-color: var(--signal); background: var(--signal-tint); color: var(--signal); box-shadow: none; }
}

/* ── ⑬ 상태 — 불러오는 중은 카드 자리표시(.skel), 빈 상태 · 오류 띠는 카드 모양. 언제 켜지는지는 app.js 그대로(.is-loading) ── */
@media (max-width: 720px) {
  @keyframes m-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
  .content.is-loading::before { margin: 0; text-align: center; font-size: 13px; font-weight: 600; }
  .content.is-loading > .kpi-grid { opacity: 1; }
  .content.is-loading > .kpi-grid .kpi-card, .content.is-loading > .kpi-grid .kpi-card:first-child {
    background: linear-gradient(90deg, var(--hairline), var(--bg-inset), var(--hairline)); background-size: 200% 100%;
    animation: m-shimmer 1.2s linear infinite; box-shadow: none;
  }
  .content.is-loading > .kpi-grid .kpi-card > * { visibility: hidden; }
  .empty-state { padding: 32px 24px; border: 0; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
  .source-banner--error { border-radius: 16px; padding: 14px; font-size: 13px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .content.is-loading .kpi-card { animation: none !important; } }
@media (max-width: 720px) {
  /* 컬렉션 보기 조건 — 세로로 쌓일 때 검색 칸이 220px 높이로 늘어나던 것(flex-basis 가 높이로 쓰임) */
  .cl-tools { align-items: stretch; gap: 10px; }
  .cl-tools .cl-search { flex: none; width: 100%; }
  .cl-tools .toggle-group { align-self: flex-start; }
}

/* ── 캠페인 소재 관리(campaign-creatives) — 줄 하나 = 카드 하나. 캠페인 카드 아래로 광고세트 · 소재 카드가 들여쓰기로 이어짐.
   칸은 이름 · 광고 목표 · 예산 · 타겟 · 소재 유형 · 랜딩 · 노출 기간(해당 없는 칸은 공란이라 카드에서 숨김) ── */
@media (max-width: 720px) {
  .cc-tools { gap: 8px 12px; }
  .cc-tools #ccExpandAll { flex: none; }
  .cc-search-field { flex: 1 1 100%; max-width: none; order: 9; }
  .cc-search-field input[type="search"] { font-size: 16px; }
  .cc-panel .table-scroll { max-height: none; overflow: visible; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .cc-table, .cc-table thead, .cc-table tbody { display: block; width: auto; min-width: 0; }
  .cc-table thead tr { display: flex; gap: 6px; padding: 0 0 10px; }
  .cc-table thead th { position: static; flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg-inset); font-size: 12px; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; }
  .cc-table thead th:not(:first-child) { display: none; }
  .cc-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .cc-table tbody tr.cc-plat { display: block; }
  .cc-table tbody tr.cc-plat td { display: block; padding: 4px 2px 0; background: none; font-size: 13px; }
  .cc-table tbody tr.cc-sec { display: block; }
  .cc-table tbody tr.cc-sec td { display: block; padding: 6px 2px 0; background: none; border: 0; font-size: 13px; }
  .cc-table tbody tr.cc-more { display: block; }
  .cc-table tbody tr.cc-more td { display: flex; align-items: center; gap: 10px; padding: 0; background: none; }
  .cc-table tbody tr.cc-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px;
    border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-card);
  }
  .cc-table tbody tr.cc-row--adset { margin-left: 14px; }
  .cc-table tbody tr.cc-row--ad { margin-left: 28px; }
  .data-table.cc-table tbody tr.cc-row td, .data-table.cc-table tbody tr.cc-row:hover td { display: block; position: static; min-width: 0; max-width: none; padding: 0; border: 0; background: none; text-align: left; }
  .data-table.cc-table tbody tr.cc-row td.cc-name { grid-column: 1 / -1; white-space: normal; }
  .cc-row--adset td.cc-name .cc-cell, .cc-row--ad td.cc-name .cc-cell { padding-left: 0; }
  .cc-table tbody td[data-label]:not(.cc-name)::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
  .data-table.cc-table tbody tr.cc-row td:not(.cc-name) { padding: 8px 10px; border-radius: 12px; background: var(--bg-inset); font-size: 13px; white-space: normal; overflow: visible; }
  .data-table.cc-table tbody tr.cc-row td:not(.cc-name):empty { display: none; }        /* 해당 없는 칸은 카드에서 숨김 */
  .data-table.cc-table tbody tr.cc-row td.cc-tgt, .data-table.cc-table tbody tr.cc-row td.cc-copy, .data-table.cc-table tbody tr.cc-row td.cc-land, .data-table.cc-table tbody tr.cc-row td.cc-run { grid-column: 1 / -1; }
  .cc-copy__t { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .cc-pop { display: none !important; }
  .data-table.cc-table tbody tr.cc-row td.cc-land a { word-break: break-all; }
  .cc-table td.cc-name .cc-nm { white-space: normal; overflow: visible; font-size: 14px; }
  .cc-tg { width: 32px; height: 32px; margin: -4px 0 0 -6px; }
  .cc-tg--none { display: none; }
  .cc-thumb { width: 48px; height: 48px; }
}
