/* 폰 화면 새 디자인 (2026-10-27 — 대표님 모바일 시안 ai-comms/from-director/모바일_UI_시안.html)
   720px 이하에서만 쓰인다. 넓은 화면(PC)은 style.css 그대로다.
   흰 카드 · 연회색 바탕 · 둥근 칩 · 파란 주 버튼 하나 · 아래 고정 막대 · 단계 머리(뒤로 · 진행 막대).
   색 · 반경은 tokens.css 의 변수만 쓴다 (시안의 색과 같은 값이다). */
.top-brand, .m-step, .m-home, .m-only, .m-image-modes, .m-when, .m-pcs, .m-fix, .m-edit-btn, .kw-more-btn, .m-detail-btn { display: none; }

/* 더보기 (넓은 화면에서 주소로 열었을 때도 보이게 — 아이콘만 빼고 같은 목록) */
.more-group h2 { font-size: 15px; margin: 18px 0 6px; }
.more-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.more-row:hover { text-decoration: none; color: var(--primary-press); }
.more-row.off { color: var(--faint); }
.more-ic { display: none; }
.more-body { flex: 1; min-width: 0; }
.more-t { font-size: 15.5px; font-weight: 600; }
.more-s { color: var(--muted); font-size: 13px; }
.more-go { color: var(--faint); }

@media (max-width: 720px) {
  body.app { background: var(--bg); }
  .m-only { display: revert; }
  .d-only { display: none !important; }

  /* ---------- 머리줄 · 아래 탭 ---------- */
  .top-brand { display: inline-flex; width: 32px; height: 32px; border-radius: var(--r-md); border: 1px solid var(--line); align-items: center; justify-content: center; flex: none; overflow: hidden; background: var(--surface); }
  .top-brand img { width: 24px; height: 24px; object-fit: contain; }
  body:has(.bottom-nav) .menu-button { display: none; }      /* 아래 탭의 [더보기]가 왼쪽 메뉴를 대신한다 */
  header.top { min-height: 56px; padding: 0 16px; }
  header.top .top-name { font-size: 15.5px; }
  header.top .tokens { height: 32px; padding: 0 12px; font-size: 13.5px; border: 1px solid var(--primary-200); }
  .bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 6px; }
  .bottom-nav a, .bottom-nav button { font-size: 11.5px; font-weight: 700; color: var(--faint); min-height: 52px; }
  .bottom-nav .ic { width: 23px; height: 23px; stroke-width: 1.8; }
  .bottom-nav .on { color: var(--primary); }

  /* ---------- 단계 머리 (새 글 1~4단계): 위 머리줄 · 동그라미 단계 대신 ---------- */
  body:has(#m-step) header.top, body:has(#m-step) .stepper { display: none; }
  .m-step { display: block; position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); padding: 4px 16px 12px; }
  .m-step-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; min-height: 48px; }
  .m-step-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; color: var(--text); border-radius: var(--r-pill); }
  .m-step-back:hover { background: var(--bg); text-decoration: none; }
  .m-step-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .m-step-title { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-step-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 0 8px; }
  .m-step-name { font-size: 13px; font-weight: 700; color: var(--primary); }
  .m-step-count { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .m-step-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .m-step-bars i { height: 4px; border-radius: 2px; background: var(--line); }
  .m-step-bars i.done { background: var(--ok); }
  .m-step-bars i.cur { background: var(--primary); }

  /* ---------- 아래 고정 막대: 한 줄 안내 + 꽉 찬 파란 버튼 ---------- */
  .actionbar { position: sticky; bottom: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -4px 14px rgba(11, 26, 59, .06); }
  .actionbar .grow { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .actionbar .grow b { font-size: 15px; }
  .actionbar .picked { color: var(--text); }
  .actionbar button, .actionbar a.button, .actionbar button.lg, .actionbar a.button.lg { min-height: 56px; border-radius: var(--r-xl); font-weight: 700; }
  .actionbar button.primary, .actionbar a.button.primary { font-size: 18px; box-shadow: 0 6px 16px rgba(45, 76, 224, .22); }
  .actionbar button:not(.primary), .actionbar a.button:not(.primary) { border-color: var(--primary-300); color: var(--primary-press); background: var(--surface); flex: 0 1 auto; }
  .actionbar .credit-hint { display: none; }      /* 크레딧은 막대의 한 줄이 말한다 */
  .actionbar .bar-left { color: var(--faint); }

  /* ---------- 공통 ---------- */
  main { padding: 16px 16px 24px; }
  .card { border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: none; }
  .hint { font-size: 13px; }
  .m-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; }
  .m-chip.season { background: var(--gold-bg); color: var(--gold-text); border: 1px solid var(--gold-line); }
  .m-chip.warn { background: var(--warn-bg); color: var(--warn-text); }
  .m-chip.blue { background: var(--primary-100); color: var(--primary-press); }
  .m-chip.bad { background: var(--danger-bg); color: var(--danger-text); }
  .m-chip.ok { background: var(--ok-bg); color: var(--ok-text); }
  .m-chip.premium { background: var(--gold-bg); color: var(--gold-text); }
  .m-sec-title { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }

  /* ---------- 홈 (시안 01) ---------- */
  .d-home { display: none; }
  .m-home { display: flex; flex-direction: column; gap: 12px; }
  .m-greet h1 { font-size: 22px; line-height: 1.35; margin: 4px 0 4px; }
  .m-greet p { margin: 0; font-size: 14.5px; color: var(--muted); }
  .m-season { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: var(--r-2xl); background: var(--primary-50); border: 1px solid var(--primary-200); color: var(--text-2); text-decoration: none; }
  .m-season:hover { text-decoration: none; }
  .m-season-t { font-size: 16px; font-weight: 700; color: var(--primary-press); }
  .m-season-s { font-size: 13.5px; color: var(--text-2); }
  .m-cta { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 0 18px; border-radius: var(--r-2xl); background: var(--primary); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(45, 76, 224, .22); }
  .m-cta:hover { color: #fff; text-decoration: none; background: var(--primary-hover); }
  .m-cta-ic { width: 44px; height: 44px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; flex: none; }
  .m-cta-ic .ic { width: 24px; height: 24px; }
  .m-cta-t { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
  .m-cta-s { display: block; font-size: 13px; color: rgba(255, 255, 255, .82); margin-top: 2px; }
  .m-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-two a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; }
  .m-two a .ic { color: var(--primary); }
  .m-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
  .m-stats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 0 14px; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .m-stats a:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .m-stats a:nth-last-child(-n+2) { border-bottom: 0; }
  .m-stats b { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
  .m-stats b small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 1px; }
  .m-stats b.warn { color: var(--warn-text); }
  .m-stats b.blue { color: var(--primary); }
  .m-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 4px 0; }
  .m-card-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; }
  .m-card-head h2 { margin: 0; font-size: 16px; }
  .m-card-head a { font-size: 14px; font-weight: 700; }
  .m-recent-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line-soft); color: var(--text); text-decoration: none; }
  .m-recent-row:hover { background: var(--surface-hover); text-decoration: none; color: var(--text); }
  .m-recent-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .m-recent-day { margin-left: auto; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .m-recent-t { font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
  .m-recent-why { font-size: 13px; color: var(--danger-text); }
  .m-empty { padding: 8px 16px 12px; margin: 0; color: var(--muted); font-size: 14px; }
  .m-pc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); color: var(--text); text-decoration: none; }
  .m-pc:hover { text-decoration: none; color: var(--text); }
  .m-pc > span:nth-child(2) { flex: 1; min-width: 0; }
  .m-pc-lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
  .m-pc.on .m-pc-lamp { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 158, 107, .15); }
  .m-pc.off .m-pc-lamp { background: var(--danger-text); }
  .m-pc-t { display: block; font-size: 15px; font-weight: 700; }
  .m-pc.on .m-pc-t { color: var(--ok-text); }
  .m-pc.off .m-pc-t { color: var(--danger-text); }
  .m-pc-s { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-go { color: var(--faint); font-size: 22px; line-height: 1; }
  .m-warn { margin: 0; padding: 10px 14px; border-radius: var(--r-lg); background: var(--danger-bg); color: var(--danger-text); font-size: 13.5px; font-weight: 600; }
  .m-line-link { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; text-decoration: none; }
  .m-line-link span:last-child { margin-left: auto; color: var(--faint); font-size: 20px; }

  /* ---------- 더보기 ---------- */
  .more-title { font-size: 22px; margin: 4px 0 14px; }
  .more-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); margin: 0 0 14px; overflow: hidden; }
  .more-group h2 { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0; padding: 12px 16px 4px; }
  .more-row { min-height: 58px; padding: 8px 16px; border-top: 1px solid var(--line-soft); }
  .more-group h2 + .more-row { border-top: 0; }
  .more-ic { width: 36px; height: 36px; border-radius: var(--r-lg); background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
  .more-row.off .more-ic { background: var(--bg); color: var(--faint); }
  .more-s { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .more-go { color: var(--faint); font-size: 22px; }
  .more-logout button { width: 100%; min-height: 52px; border-radius: var(--r-xl); color: var(--danger-text); font-weight: 700; background: var(--surface); }
  .more-version { text-align: center; }
  body:has(.more-group) footer.site { display: none; }
}

/* ---------- 새 글 1 · 2단계 (시안 02 · 03) ---------- */
@media (max-width: 720px) {
  .m-h1 { font-size: 20px; margin: 4px 0 14px; }
  .form-page .group-title { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
  .form-page .group-title .hint { font-size: 13px; font-weight: 500; margin: 0; }
  .form-page h2.group-title .hint { color: var(--text); font-size: 15px; font-weight: 700; }
  #step-2 h2.group-title .hint { color: var(--muted); font-size: 13.5px; font-weight: 500; }
  #type-hint { display: none; }
  .style-chips { margin-bottom: 4px; }

  /* 라디오 카드 목록: 한 장의 흰 카드 안에 줄마다 (왼쪽 동그라미) */
  .choices, .choices.c2, .choices.c3, .choices.c4, .choices.c5 { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
  .choice, .choice.compact { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 14px 16px 14px 50px; min-height: 56px; }
  .choice:last-child { border-bottom: 0; }
  .choice .dot { display: none; }
  .choice:has(input[type="radio"])::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
  .choice:has(input[type="radio"]:checked)::before { border: 7px solid var(--primary); }
  .choice:has(input:checked) { background: var(--primary-50); border-color: var(--line-soft); }
  .choice-title, .choice.compact .choice-title { font-size: 16px; font-weight: 700; }
  .choice-desc, .choice.compact .choice-desc { font-size: 13px; margin-top: 2px; }
  a.choice.promo-choice { padding-left: 16px; }

  /* 과목 칩: 한 줄로 옆으로 밀기 */
  .subject-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 6px -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .subject-chips::-webkit-scrollbar { display: none; }
  .subject-chips > .hint { flex: 0 0 auto; }
  .chip { position: relative; min-height: 40px; padding: 0 16px; font-size: 15px; }      /* 숨긴 체크 칸이 옆으로 밀린 칩을 따라가게 (가로 넘침 막기) */
  .chip:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
  #subject-area > .hint { margin: 2px 0 0; }

  /* 주제 추천: 꽉 찬 테두리 버튼 · 그 아래 작은 버튼들 */
  #suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
  #suggest-button { width: 100%; min-height: 52px; background: var(--surface); color: var(--primary-press); border: 1.5px solid var(--primary); border-radius: var(--r-xl); font-size: 16px; font-weight: 700; box-shadow: none; }
  #suggest-button:hover { background: var(--primary-50); }
  #suggest > .hint { display: none; }
  #suggest .credit-hint { flex-basis: 100%; }
  .premium-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  #suggestions { margin-top: 12px; }
  #suggestions .suggest-row { position: relative; padding: 14px 16px 14px 50px; border-left: 0; font-size: 15.5px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  #suggestions .suggest-row .suggest-title { flex-basis: 100%; order: 2; }
  #suggestions .suggest-row .badge { order: 1; font-size: 11.5px; padding: 2px 8px; }
  #suggestions .suggest-row .suggest-reason { order: 3; flex-basis: 100%; font-size: 13px; font-weight: 500; }
  #suggestions .suggest-row small { order: 4; font-size: 13px; }
  #suggestions .suggest-row:not(.pending)::before { content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line-strong); }
  #suggestions .suggest-row.picked { background: var(--primary-50); }
  #suggestions .suggest-row.picked::before { border: 7px solid var(--primary); }
  .m-more-suggest { display: none; }
  #suggestions:not(:empty) + .m-more-suggest { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px; border: 1px dashed var(--line-strong); border-radius: var(--r-xl); background: var(--surface); color: var(--primary-press); font-weight: 700; }

  /* 직접 적기 · 키워드 1 · 2 · 3 */
  .kw-card { margin-top: 14px; gap: 12px; }
  .m-or { font-weight: 700; color: var(--text); }
  .kw-card .opt { display: none; }
  .kw-card input { font-size: 16px; }
  .kw-more-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--primary-press); font-weight: 700; font-size: 14.5px; }
  .kw-slots.kw-open .kw-more-btn { display: none; }
  .kw-slots:not(.kw-open) .kw-body { display: none; }

  /* 2단계: 고른 주제 카드 · 분량 · 이미지 */
  .picked-line { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.45; }
  .picked-line .badge { font-size: 12px; }
  .seg { gap: 8px; }
  .seg label { min-height: 58px; border-radius: var(--r-xl); font-size: 15.5px; }
  #step-2 .choices.c2 { background: none; border: 0; border-radius: 0; overflow: visible; gap: 0; }
  #image-modes, #image-cost { display: none; }
  .m-image-modes { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
  .m-image-modes .choice { display: block; }
  .m-image-modes .choice-title { justify-content: space-between; }
  .m-price { font-size: 13.5px; font-weight: 700; color: var(--primary-press); white-space: nowrap; }
  .m-price.free { color: var(--ok-text); }
  .m-ai-scope { display: none; padding: 0 16px 14px 50px; background: var(--primary-50); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-image-modes:has(input[name="m_image"][value="ai"]:checked) .m-ai-scope { display: grid; }
  .m-ai-scope label { min-height: 52px; font-size: 14.5px; }
  .m-ai-scope small { color: var(--primary-press); }
  .m-detail-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text-2); font-size: 14.5px; font-weight: 600; }
  .m-detail-btn[aria-expanded="true"] { color: var(--primary-press); border-color: var(--primary-200); }
  #step-2:has(input[name="image_mode"][value="photo"]:checked) .m-detail-btn { display: none; }
  .m-detail:not(.open) { display: none; }
  .save-style { margin-top: 14px; }
}
@media (max-width: 720px) {
  #style-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  #style-chips .style-chip { display: inline-flex; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; }
  #style-chips .style-chips-title { font-size: 13px; color: var(--muted); font-weight: 600; }
  #style-chips .badge, #style-chips > .hint { font-size: 12px; }
  .premium-btns { width: 100%; }
  .premium-btns .premium-btn { flex: 1 1 0; min-height: 46px; font-size: 14px; padding: 0 10px; }
}
@media (max-width: 720px) {
  #to-step1, #to-edit { display: none !important; }      /* 앞 단계로는 단계 머리의 [←] 로 간다 */
  body.app footer.site { display: none; }      /* 약관 · 사업자 정보는 [더보기] 맨 아래에 있다 */
  .more-legal { text-align: center; font-size: 12.5px; color: var(--faint); line-height: 1.7; margin: 6px 0 0; }
  .more-legal a { color: var(--muted); }
}

/* ---------- 새 글 3단계 미리보기 · 수정 (시안 04) · 4단계 발행 (시안 05) ---------- */
@media (max-width: 720px) {
  body:has(.actionbar) .help-fab { bottom: calc(150px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .view-edit .page-head { margin-bottom: 10px; }
  .view-edit .page-head .meta { margin: 0; }
  .m-fix { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 14px 16px; border-radius: var(--r-xl); background: var(--warn-bg-card); border: 1px solid var(--warn-line); color: var(--warn-text-2); font-size: 13.5px; }
  .m-fix strong { font-size: 15px; color: var(--warn-text); }
  .m-fix button { margin-top: 6px; min-height: 46px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--warn-line-strong); color: var(--warn-text); font-weight: 700; }
  .blogview-bar { display: none; }
  .blogview { border-radius: var(--r-xl); }
  .blogview-body { padding: 18px 16px 24px; }
  .m-edit-row { display: flex; align-items: flex-start; gap: 10px; }
  .m-edit-row .title { flex: 1; min-width: 0; }
  .m-edit-btn { display: inline-flex; align-items: center; flex: none; min-height: 30px; height: 30px; padding: 0 10px; border-radius: var(--r-md); border: 1px solid var(--primary-200); background: var(--primary-50); color: var(--primary-press); font-size: 13px; font-weight: 700; }
  .slot-view { position: relative; }
  .slot-view .m-edit-btn { position: absolute; right: 10px; bottom: 10px; background: var(--surface); box-shadow: 0 2px 6px rgba(11, 26, 59, .18); }
  .sec-head { display: flex; align-items: center; gap: 8px; }
  .sec-head .h { flex: 1; min-width: 0; }
  #m-issues { display: block; scroll-margin-top: 12px; }
  .side-panel { margin-top: 12px; }

  /* 4단계 */
  .view-publish .pub-grid { display: flex; flex-direction: column; gap: 12px; }
  .pub-summary { order: -1; display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0; }
  .pub-summary img { width: 64px; height: 64px; border-radius: var(--r-lg); object-fit: cover; flex: none; }
  .pub-summary .body { flex: 1; min-width: 0; padding: 0; }
  .pub-summary .t { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 4px; }
  .pub-summary dl { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
  .pub-summary dt { display: none; }
  .pub-summary dd { margin: 0; }
  .pub-summary dd + dt + dd::before { content: "· "; }
  #publish-form .group-title { font-size: 17px; margin: 18px 0 10px; }
  #publish-form [data-schedule-box] > .choices.c2 { display: none; }
  .m-when { display: block; }
  .m-when-dates { display: flex; flex-wrap: wrap; gap: 8px; }
  .m-date { flex: 1 1 calc(33% - 8px); min-height: 48px; padding: 0 8px; border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
  .m-date.reco, .m-date.more { flex-basis: 100%; }
  .m-date.on { background: var(--primary); border-color: var(--primary); color: #fff; }
  .m-when-tip { margin: 8px 0 0; }
  #publish-form .schedule-pick { margin-top: 10px; }
  #publish-form .schedule-pick .row-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #publish-form:not(.m-date-open) .schedule-pick label:has(input[type="date"]) { display: none; }
  #publish-form.m-date-open .schedule-pick label:has(input[type="date"]) { grid-column: 1 / -1; }
  #publish-form .schedule-pick > .hint { display: none; }
  .m-pcs, .m-pcs.choices { display: grid; }
  .m-pcs .choice-title { justify-content: space-between; }
  .m-pc-select { display: none; }
  .m-send-line { text-align: center; font-weight: 600; color: var(--text-2) !important; }
  .m-detail.open { display: block; }
}
@media (max-width: 720px) {
  .app main { word-break: keep-all; overflow-wrap: anywhere; }      /* 한글 낱말 중간에서 줄이 바뀌지 않게 */
  .blogview.card { padding: 0; }
}
@media (max-width: 720px) {
  .pub-summary { align-self: stretch; width: 100%; }
  .m-when { margin-top: 14px; }
  .actionbar a.button[href*="/package"] { display: none; }      /* 발행 파일 받기는 PC 화면에서 */
  #publish-form [data-publish-modes] .tip { display: none; }
}

/* ---------- 그 밖의 화면 (내 작업 · 발행 센터 · 키워드 나침반 · 순위 · 자동 기획 …): 같은 카드 · 칩 모양 ---------- */
@media (max-width: 720px) {
  .page-head { align-items: center; margin-bottom: 12px; }
  .page-head h1 { font-size: 22px; }
  .page-head .button { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: var(--r-pill); }
  .card > h2 { font-size: 17px; }
  /* 표는 줄마다 한 칸짜리 카드로: 첫 칸(제목)은 한 줄 전체, 나머지는 옆으로 이어서 */
  main table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 0; }
  main table tbody td { padding: 0; font-size: 13.5px; color: var(--text-2); }
  main table tbody td:first-child { flex-basis: 100%; font-size: 15px; font-weight: 600; color: var(--text); }
  main table tbody td:last-child:not(:first-child) { color: var(--faint); font-size: 12.5px; }
  main table.made-posts td.pick { flex-basis: auto; }
  main table.made-posts td.pick + td { flex: 1 1 0; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); }
  .status { font-size: 12px; border-radius: var(--r-pill); }
  body:has(#made-posts) section.card > p.hint ~ p.hint { display: none; }      /* 긴 안내는 첫 줄만 (나머지는 사용 방법에) */
  body:has(#made-posts) .notice.season { display: none; }
}
@media (max-width: 720px) {
  .cc-panel-head { flex-wrap: wrap; row-gap: 8px; }
  .cc-panel-head b { white-space: nowrap; }
  .cc button.cc-q { align-items: flex-start; }
  .cc-q-body { overflow: hidden; }
  .cc-q-sub { white-space: normal; }
  .cc-q-badge { align-self: flex-start; }
  .cc-pc-head + p, .cc .lead { font-size: 13.5px; }
}
@media (max-width: 720px) {
  .cc-scroll { max-height: none; overflow: visible; }      /* 폰: 칸 안의 작은 스크롤 대신 화면 전체로 */
}
@media (max-width: 720px) {
  .choice, .choice.compact { padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .choice:has(input[type="radio"])::before { top: 14px; }
  #step-1 > .notice.season { display: none; }      /* 시즌은 추천 주제의 "시즌" 칩으로 보인다 */
  #style-chips #style-badge, #style-chips > .hint { display: none; }
}
@media (max-width: 720px) {
  .style-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }      /* 글 스타일 세 칸: 한 줄 칩으로 */
  .style-slot { padding: 10px 8px; align-items: center; text-align: center; border-radius: var(--r-xl); }
  .style-slot-name { font-size: 15px; }
  .style-slot-note { display: none; }
  .style-slot:hover { text-decoration: none; }
}
@media (max-width: 720px) {
  .actionbar button.primary:disabled { box-shadow: none; }
}
@media (max-width: 720px) {
  body:has(#m-step) .launch-note:not(.closed) { display: none; }      /* 새 글 단계 화면: 런칭 뒤 안내 줄은 홈에서만 (런칭 전의 빨간 줄은 그대로) */
}

/* 키워드 나침반 카드 (2026-10-27): 폰은 한 줄짜리 세로 목록 — 키워드 · ★ · [글쓰기] (표시 · ⓘ 는 숨긴다, ✕ 는 맨 끝에 작게) */
@media (max-width: 720px) {
  .radar-list { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--surface); overflow: hidden; }
  .radar-card { flex-direction: row; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 10px 8px 12px; background: transparent; }
  .radar-card:last-child { border-bottom: 0; }
  .radar-card.locked { background: var(--gold-bg); }
  .radar-top { flex: 1 1 auto; padding-right: 0; order: 1; }
  .radar-kw { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .radar-top .tip, .radar-chips { display: none; }
  .radar-level { order: 2; flex: none; }
  .radar-level .kw-level { font-size: 0; gap: 0; padding: 3px 6px; }
  .radar-actions { order: 3; flex: none; margin: 0; padding: 0; }
  .radar-card .radar-actions .button, .radar-card .radar-actions button { width: auto; min-height: 32px; padding: 0 10px; font-size: 13px; }
  .radar-x { order: 4; position: static; flex: none; }
}

/* AI 홍보글의 템플릿 스타일 칩: 폰에서도 반반 두 줄 (칸 폭에 맞춰 줄인다 — 2026-11-08) */
@media (max-width: 720px) {
  .pi-families { grid-template-columns: repeat(var(--pi-cols, 5), minmax(0, 1fr)); gap: 6px; }
  .pi-family { width: auto; padding: 4px; }
  .pi-family img { width: 100%; height: auto; aspect-ratio: 1; }
  .pi-fam-basic { width: 100%; height: auto; aspect-ratio: 1; }
  .pi-fam-name { font-size: 11px; }
  .pi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
