/* ============================================================
   host-news-v3.css — 호스트 소식(브랜드 소식 관리) v3 (Wanted DS 클론)
   원본: claude.ai/design "호스트 대시보드 UI 리뉴얼 v2 / 호스트 소식.dc.html"
   셸: css/host-shell-v3.css · 토큰: css/wanted-ds.css
   기존 brand-news.js/brand-news-supabase.js DOM 계약 유지 재스킨.
   ============================================================ */

.hn-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px 28px 32px; }
.hn-wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ── KPI ── */
.hn-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hn-kpi {
  background: #FFFFFF; border-radius: 16px; box-shadow: var(--ws-shadow-emphasize);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
}
.hn-kpi-label { font-size: 14px; color: var(--ws-text-alternative); font-weight: 500; white-space: nowrap; }
.hn-kpi-value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ws-text-strong); }
.hn-kpi-sub { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--ws-text-alternative); }
.hn-kpi-sub .ph { font-size: 13px; }
.hn-kpi-sub.warn { color: #E8A23D; }

/* ── toolbar ── */
.hn-toolbar { display: flex; align-items: center; gap: 12px; }
.hn-tabs { display: flex; gap: 2px; background: var(--ws-fill-alt); border-radius: 12px; padding: 3px; overflow-x: auto; }
.hn-tabs button {
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 9px; cursor: pointer;
  white-space: nowrap; border: none; background: transparent; color: var(--ws-text-alternative);
  font-family: var(--font-sans); transition: all .12s ease;
}
.hn-tabs button.on { background: #fff; color: #171717; box-shadow: var(--ws-shadow-emphasize); }
.hn-search { margin-left: auto; position: relative; }
.hn-search .ph { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--ws-text-assistive); }
.hn-search input {
  width: 220px; height: 40px; border: 1px solid var(--ws-line); border-radius: 12px;
  background: #FFFFFF; padding: 0 12px 0 34px; font-size: 13px; color: #171717; font-family: var(--font-sans); outline: none;
}
.hn-search input:focus { border-color: #3366FF; box-shadow: 0 0 0 3px rgba(51,102,255,.16); }
.hn-sort { position: relative; }
.hn-sort select {
  height: 40px; border: 1px solid var(--ws-line); border-radius: 12px; background: #FFFFFF;
  padding: 0 34px 0 14px; font-size: 13px; font-weight: 600; color: var(--ws-text-alternative);
  font-family: var(--font-sans); appearance: none; cursor: pointer; outline: none;
}
.hn-sort .ph { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ws-text-alternative); pointer-events: none; }

/* ── featured hero ── */
.hn-hero {
  background: #FFFFFF; border-radius: 22px; box-shadow: var(--ws-shadow-emphasize);
  overflow: hidden; cursor: pointer; transition: box-shadow .16s ease;
}
.hn-hero:hover { box-shadow: var(--ws-shadow-strong); }
.hn-hero-inner { display: flex; align-items: stretch; }
.hn-hero-thumb {
  width: 360px; min-height: 212px; flex: none; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.hn-hero-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hn-hero-thumb .ph-fill { font-size: 64px; }
.hn-hero-badge {
  position: absolute; top: 16px; left: 16px; font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(27,29,37,.55); border-radius: 9999px; padding: 4px 11px; backdrop-filter: blur(4px); z-index: 1;
}
.hn-hero-body { flex: 1; min-width: 0; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.hn-hero-meta-top { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.hn-hero h2 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; text-wrap: pretty; word-break: keep-all; }
.hn-hero p { margin: 0 0 18px; font-size: 14px; color: var(--ws-text-alternative); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-meta-row { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ws-text-alternative); }
.hn-meta-row .mi { display: inline-flex; align-items: center; gap: 6px; }
.hn-meta-row .mi .ph { font-size: 15px; }

/* ── cards grid ── */
.hn-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.hn-card {
  background: #FFFFFF; border-radius: 18px; box-shadow: var(--ws-shadow-emphasize);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .16s ease, transform .1s ease;
}
.hn-card:hover { box-shadow: var(--ws-shadow-strong); transform: translateY(-2px); }
.hn-card:hover .hn-thumb-zoom { transform: scale(1.05); }
.hn-thumb-zoom { transition: transform .3s ease; }
.hn-card-act { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; opacity: 0; transition: opacity .14s ease; }
.hn-card:hover .hn-card-act { opacity: 1; }
.hn-card-act button {
  width: 30px; height: 30px; border: none; border-radius: 9px; background: rgba(255,255,255,.92);
  box-shadow: var(--ws-shadow-emphasize); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hn-card-act button:hover { background: #fff; }
.hn-card-act .ph { font-size: 15px; color: #5A5F69; }
.hn-card-act .ph-trash { color: #E5484D; }
.hn-card-thumb { height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.hn-card-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hn-card-thumb .ph-fill { font-size: 44px; }
.hn-badge {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700;
  border-radius: 9999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 4px; z-index: 1;
}
.hn-badge.draft { color: #5A5F69; background: rgba(255,255,255,.9); }
.hn-badge.popular { color: #fff; background: #3366FF; }
.hn-badge .ph-fill { font-size: 12px; }
.hn-card-body { padding: 15px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.hn-card-meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.hn-cat-chip { font-size: 11px; font-weight: 600; border-radius: 9999px; padding: 3px 9px; white-space: nowrap; }
.hn-cat-chip.lg { font-size: 12px; padding: 4px 11px; }
.hn-pin { font-size: 12px; color: #E5484D; }
.hn-card-title {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; word-break: keep-all;
}
.hn-card-excerpt {
  margin: 0 0 14px; font-size: 12.5px; color: var(--ws-text-alternative); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.hn-card-foot {
  display: flex; align-items: center; justify-content: space-between; font-size: 12px;
  color: var(--ws-text-alternative); border-top: 1px solid var(--ws-line-alt); padding-top: 11px;
}
.hn-card-foot .views { display: inline-flex; align-items: center; gap: 5px; }
.hn-card-foot .views .ph { font-size: 14px; }

/* ── empty ── */
.hn-empty {
  text-align: center; padding: 64px 10px; color: var(--ws-text-alternative);
  background: #FFFFFF; border-radius: 18px; box-shadow: var(--ws-shadow-emphasize);
}
.hn-empty .ph { font-size: 38px; color: var(--ws-text-assistive); }
.hn-empty p { margin: 12px 0 16px; font-size: 14px; text-wrap: pretty; }
.hn-empty button {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border: none; border-radius: 12px; background: var(--ws-fill); color: var(--ws-text-neutral);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer;
}
.hn-empty button:hover { background: var(--ws-fill-strong); }

/* ── skeleton ── */
@keyframes hn-sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.hn-sk { background: linear-gradient(90deg, var(--ws-fill) 25%, var(--ws-fill-alt) 37%, var(--ws-fill) 63%); background-size: 400% 100%; animation: hn-sk 1.4s ease infinite; border-radius: 8px; }
.hn-sk-card { background: #FFFFFF; border-radius: 18px; box-shadow: var(--ws-shadow-emphasize); overflow: hidden; }

/* ══ 읽기 모달 ══ */
.hn-modal-dim {
  position: fixed; inset: 0; background: var(--ws-dimmer, rgba(23,23,25,.52));
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.hn-modal-dim.open { opacity: 1; pointer-events: auto; }
.hn-read {
  width: 680px; max-width: 100%; max-height: 90vh; background: #FFFFFF; border-radius: 22px;
  box-shadow: 0 0 1px rgba(0,0,0,.12), 0 8px 28px rgba(23,23,23,.18);
  overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(8px); transition: transform .18s ease;
}
.hn-modal-dim.open .hn-read { transform: translateY(0); }
.hn-read-thumb { height: 180px; display: flex; align-items: center; justify-content: center; flex: none; position: relative; overflow: hidden; }
.hn-read-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hn-read-thumb .ph-fill { font-size: 60px; }
.hn-read-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: none; border-radius: 10px;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1;
}
.hn-read-x .ph { font-size: 18px; color: #5A5F69; }
.hn-read-body { padding: 24px 28px; overflow-y: auto; }
.hn-read-tags { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.hn-read-tags .tag { font-size: 12px; color: var(--ws-text-alternative); }
.hn-read h2 { margin: 0 0 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; text-wrap: pretty; word-break: keep-all; }
.hn-read-meta {
  display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ws-text-alternative);
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--ws-line);
}
.hn-read-excerpt { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: #171717; line-height: 1.7; }
.hn-rbody { font-size: 14px; color: #3A3E46; line-height: 1.85; }
.hn-rbody img { max-width: 100%; border-radius: 12px; }
.hn-rbody h1, .hn-rbody h2, .hn-rbody h3, .hn-rbody h4 { color: #171717; line-height: 1.4; margin: 1.2em 0 .5em; }
.hn-rbody blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--ws-line-strong); background: var(--ws-bg-alt); border-radius: 0 10px 10px 0; }
.hn-rbody table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.hn-rbody th, .hn-rbody td { border: 1px solid var(--ws-line); padding: 8px 10px; font-size: 13.5px; }
.hn-rbody pre { background: var(--ws-bg-alt); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.hn-rbody iframe { max-width: 100%; border-radius: 12px; }
.hn-read-foot { padding: 14px 28px; border-top: 1px solid var(--ws-line); display: flex; justify-content: flex-end; gap: 10px; flex: none; }

/* 공용 버튼 */
.hn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: 12px; font-size: 14px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; border: none;
}
.hn-btn.ghost { background: var(--ws-fill); color: var(--ws-text-neutral); }
.hn-btn.ghost:hover { background: var(--ws-fill-strong); }
.hn-btn.primary { background: var(--ws-primary); color: #fff; }
.hn-btn.primary:hover { background: var(--ws-primary-strong); }
.hn-btn .ph, .hn-btn .ph-bold { font-size: 15px; }

/* ══ 작성 모달 (#newsFormContainer 재스킨 — DOM 계약 유지) ══ */
.news-form-container {
  position: fixed; inset: 0; background: var(--ws-dimmer, rgba(23,23,25,.52));
  display: none; align-items: flex-start; justify-content: center; z-index: 110;
  padding: 24px; overflow-y: auto;
}
.news-form-container.show { display: flex; }
.hn-compose {
  width: 720px; max-width: 100%; background: #FFFFFF; border-radius: 22px;
  box-shadow: 0 0 1px rgba(0,0,0,.12), 0 8px 28px rgba(23,23,23,.18); margin: 0 auto;
  /* 모달을 뷰포트 높이로 bound + overflow:hidden 으로 둥근 모서리가 실제로 콘텐츠를 클립 */
  display: flex; flex-direction: column; max-height: calc(100vh - 48px); overflow: hidden;
}
.hn-compose .form-header {
  padding: 20px 26px; border-bottom: 1px solid var(--ws-line);
  display: flex; align-items: center; justify-content: space-between;
  flex: 0 0 auto; background: #FFFFFF; border-radius: 22px 22px 0 0;
}
.hn-compose .form-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.hn-compose .form-close-btn {
  width: 32px; height: 32px; border: none; border-radius: 9px; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ws-text-alternative);
}
.hn-compose .form-close-btn:hover { background: rgba(112,115,124,.08); }
/* #newsForm 은 form-header 의 형제이자 body+foot 래퍼 — flex 사슬을 이어 body만 스크롤되게 함 */
#newsForm { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hn-compose-body { padding: 22px 26px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.hn-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #171717; }
.hn-label small { font-weight: 500; color: var(--ws-text-alternative); }
.hn-label .required { color: var(--ws-negative); }
.hn-field { margin-bottom: 18px; }
.hn-input, .hn-textarea {
  width: 100%; height: 46px; border: 1px solid var(--ws-line-strong); border-radius: 12px;
  background: var(--ws-bg-alt); padding: 0 14px; font-size: 14.5px; color: #171717; font-family: var(--font-sans); outline: none;
}
.hn-textarea { height: 64px; padding: 12px 14px; resize: vertical; }
.hn-input:focus, .hn-textarea:focus { border-color: #3366FF; box-shadow: 0 0 0 3px rgba(51,102,255,.16); }

/* 이미지 업로드 (기존 구조: #newsImageUpload > .upload-placeholder + #newsImagePreview) */
#newsImageUpload {
  border: 2px dashed var(--ws-line-strong); border-radius: 14px; background: var(--ws-bg-alt);
  cursor: pointer; overflow: hidden; position: relative;
}
#newsImageUpload.drag-over { border-color: #3366FF; background: #EFF3FF; }
#newsImageUpload .upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; text-align: center; }
#newsImageUpload .upload-placeholder i { font-size: 30px; color: var(--ws-text-assistive); }
#newsImageUpload .upload-placeholder p { margin: 0; font-size: 13px; color: var(--ws-text-alternative); }
#newsImagePreview { display: none; position: relative; }
#newsImagePreview img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
#newsImagePreview .remove-image {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: none; border-radius: 9px;
  background: rgba(27,29,37,.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* 카테고리 칩 (기존 #categoryButtons .category-btn 계약 유지) */
#categoryButtons { display: flex; flex-wrap: wrap; gap: 8px; }
#categoryButtons .category-btn {
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 9999px;
  border: 1px solid var(--ws-line-strong); background: #FFFFFF; color: var(--ws-text-alternative);
  font-family: var(--font-sans); cursor: pointer; transition: all .12s ease;
}
#categoryButtons .category-btn.selected { border-color: #3366FF; background: #EBF1FF; color: #2A4FD6; font-weight: 600; }

/* Tiptap 에디터 재스킨 (기존 .tiptap-* 계약 유지) */
.tiptap-wrapper {
  border: 1px solid var(--ws-line-strong); border-radius: 14px; overflow: hidden; background: #FFFFFF;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.tiptap-wrapper:focus-within { border-color: #3366FF; box-shadow: 0 0 0 3px rgba(51,102,255,.16); }
.tiptap-toolbar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 7px 9px;
  background: var(--ws-bg-alt); border-bottom: 1px solid var(--ws-line);
}
.tiptap-btn {
  min-width: 30px; height: 30px; padding: 0 6px; border: none; border-radius: 8px; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #5A5F69;
  font-size: 13px; font-weight: 600; font-family: var(--font-sans); transition: background .1s ease, color .1s ease;
}
.tiptap-btn:hover { background: #ECEFF3; color: #171717; }
.tiptap-btn.active, .tiptap-btn.on { background: #EBF1FF; color: #2A4FD6; }
.tiptap-btn svg { width: 17px; height: 17px; }
.tiptap-divider { width: 1px; height: 20px; background: var(--ws-line-strong); margin: 0 5px; flex: none; }
.tiptap-editor {
  min-height: 240px; max-height: 480px; overflow-y: auto; padding: 16px 18px;
  font: 400 16px/1.72 var(--font-sans); color: var(--ws-text-strong); outline: none;
}
.tiptap-editor:empty::before { content: attr(data-placeholder); color: var(--ws-text-assistive); }
/* 프로즈 — 발행 상세(.bn-body)와 동일 타이포그래피(WYSIWYG). 작성 화면=발행 결과 일치 */
.tiptap-editor > *:first-child { margin-top: 0; }
.tiptap-editor p { margin: 0 0 18px; }
.tiptap-editor h1 { font: 700 32px/1.3 var(--font-sans); color: var(--ws-text-strong); letter-spacing: -0.02em; margin: 46px 0 16px; word-break: keep-all; }
.tiptap-editor h2 { font: 700 26px/1.3 var(--font-sans); color: var(--ws-text-strong); letter-spacing: -0.02em; margin: 44px 0 16px; word-break: keep-all; }
.tiptap-editor h3 { font: 600 20px/1.4 var(--font-sans); color: var(--ws-text-strong); margin: 30px 0 12px; word-break: keep-all; }
.tiptap-editor h4 { font: 600 17px/1.4 var(--font-sans); color: var(--ws-text-strong); margin: 24px 0 10px; word-break: keep-all; }
.tiptap-editor a { color: var(--ws-primary); text-decoration: none; font-weight: 600; }
.tiptap-editor strong, .tiptap-editor b { font-weight: 700; color: var(--ws-text-strong); }
.tiptap-editor em, .tiptap-editor i { font-style: italic; }
.tiptap-editor mark { background: var(--blue-95); color: var(--ws-primary); padding: 0 3px; border-radius: 4px; }
.tiptap-editor ul, .tiptap-editor ol { margin: 0 0 18px; padding-left: 22px; }
.tiptap-editor li { margin: 0 0 8px; }
.tiptap-editor li::marker { color: var(--ws-text-neutral); }
.tiptap-editor hr { border: none; border-top: 1px solid var(--ws-line); margin: 32px 0; }
.tiptap-editor code { font-family: var(--ws-font-mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: .9em; background: var(--ws-fill); padding: 2px 6px; border-radius: 6px; }
.tiptap-editor pre { background: var(--ws-fill); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 20px 0; box-shadow: inset 0 0 0 1px var(--ws-line); }
.tiptap-editor pre code { background: none; padding: 0; font-size: 14px; line-height: 1.6; }
.tiptap-editor img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
/* 대표 이미지 선택기 (본문 이미지 썸네일 픽커) */
.bn-cover-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.bn-cp-item {
  position: relative; width: 96px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--ws-line-strong); background: var(--ws-bg-alt); cursor: pointer;
  padding: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; color: var(--ws-text-alternative); font-size: 12px; font-weight: 600;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.bn-cp-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.bn-cp-item.bn-cp-none i { font-size: 22px; }
.bn-cp-item.selected { border-color: #3366FF; box-shadow: 0 0 0 3px rgba(51,102,255,.18); }
.bn-cp-check {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 9999px;
  background: #3366FF; color: #fff; display: none; align-items: center; justify-content: center;
  font-size: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.bn-cp-item.selected .bn-cp-check { display: flex; }
.bn-cp-item.bn-cp-none .bn-cp-check { display: none !important; }
/* 유튜브 임베드 반응형 (16:9) — 래퍼 있으면 aspect-ratio, 없으면 bare iframe 폴백 */
.tiptap-editor div[data-youtube-video] { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 12px 0; }
.tiptap-editor div[data-youtube-video] iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.tiptap-editor iframe { max-width: 100%; border-radius: 10px; }
.tiptap-editor blockquote { margin: 22px 0; padding: 18px 20px; border-radius: 12px; background: var(--blue-95); color: var(--ws-text-strong); font: 500 18px/1.6 var(--font-sans); }
.tiptap-editor blockquote p:last-child { margin-bottom: 0; }
.tiptap-editor table { border-collapse: collapse; }
.tiptap-editor th, .tiptap-editor td { border: 1px solid var(--ws-line); padding: 6px 9px; }
.hn-editor-foot {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 14px;
  border-top: 1px solid var(--ws-line-alt); background: var(--ws-bg-alt);
  font-size: 11px; color: var(--ws-text-alternative);
}
.hn-editor-foot .mi { display: inline-flex; align-items: center; gap: 6px; }

/* 색상/폰트크기 팔레트 (기존 계약) */
.color-picker-palette, .font-size-palette {
  position: absolute; z-index: 10; background: #fff; border-radius: 12px;
  box-shadow: 0 0 1px rgba(0,0,0,.12), 0 6px 20px rgba(23,23,23,.14);
  padding: 8px; display: flex; gap: 6px; flex-wrap: wrap;
}
.color-picker-palette .color-option { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--ws-line); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.font-size-palette { max-width: 210px; }
.font-size-palette .font-size-option { min-width: 34px; height: 30px; border: none; border-radius: 8px; background: var(--ws-fill-alt); cursor: pointer; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: #171717; }
.font-size-palette .font-size-option:hover { background: #EBF1FF; color: #2A4FD6; }

/* SEO 접기 */
.seo-advanced summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ws-text-alternative); }
.seo-advanced[open] summary { color: #171717; }

/* footer */
.hn-compose-foot {
  padding: 16px 26px; border-top: 1px solid var(--ws-line);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  flex: 0 0 auto; background: #FFFFFF; border-radius: 0 0 22px 22px;
}

/* ── 반응형 ── */
@media (max-width: 1080px) {
  .hn-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hn-kpi-grid { grid-template-columns: 1fr 1fr; }
  .hn-hero-inner { flex-direction: column; }
  .hn-hero-thumb { width: 100%; height: 200px; min-height: 0; }
}
@media (max-width: 760px) {
  .hn-scroll { padding: 16px 14px calc(92px + var(--app-safe-bottom, env(safe-area-inset-bottom, 0px))); }
  .hn-cards { grid-template-columns: 1fr; }
  .hn-kpi-grid { grid-template-columns: 1fr 1fr; }
  .hn-toolbar { flex-wrap: wrap; }
  .hn-search { margin-left: 0; width: 100%; order: 3; }
  .hn-search input { width: 100%; }
  .hn-hide-sm { display: none !important; }
  .news-form-container { padding: 0; }
  .hn-compose { border-radius: 0; height: 100dvh; max-height: 100dvh; }
  .hn-compose .form-header { border-radius: 0; }
  .hn-compose-foot { border-radius: 0; flex-wrap: wrap; }
}
