﻿/* ── 변수 ──────────────────────────────────────── */
:root {
  --color-primary:     #00559D;
  --color-primary-dk:  #004480;
  --color-primary-lt:  #e8f1f9;
  --color-bg:          #F8F9FB;
  --color-surface:     #FFFFFF;
  --color-border:      #E5E7EB;
  --color-text:        #172B4D;
  --color-muted:       #6B778C;
  --color-confirmed:   #00875A;
  --color-reviewing:   #0065FF;
  --color-submitted:   #6B778C;
  --color-rejected:    #DE350B;
  --color-draft:       #97A0AF;
  --color-warning:     #FF8B00;
  --color-warning-dk:  #D97706;
  --radius:            10px;
  --shadow-sm:         0 1px 3px rgba(0,0,0,.08);
}

/* ── 리셋 ─────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { font-size: 22px; }
body {
  margin: 0;
  font-family: 'Pretendard', system-ui, sans-serif;
  font-size: 20px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── 레이아웃 ─────────────────────────────────── */
.app-layout { display: flex; height: 100vh; position: relative; }
.main-content { flex: 1; overflow: auto; }
.content-inner { padding: 20px 60px 56px; }

/* ── 로고 이미지 ──────────────────────────────── */
.brand-logo-full { display: none; }
.brand-logo-icon {
  width: 28px; height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.app-layout.sidebar-collapsed .brand-logo-icon { display: block; }

/* 로그인 로고 */
.login-logo-img {
  width: 140px; height: auto;
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
}

/* ── 모바일 탑바 & 오버레이 ─────────────────────── */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #1a2d4a;
  position: sticky;
  top: 0;
  z-index: 99;
  flex-shrink: 0;
}
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 7px;
  flex-shrink: 0;
}
.hamburger-line {
  display: block;
  width: 18px; height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
}
.mobile-topbar-logo {
  height: 26px; width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
}
.app-layout.sidebar-open .sidebar-overlay { display: block; }

/* ── 사이드바 ─────────────────────────────────── */
/* sidebar 자체는 overflow: visible — 토글 버튼이 오른쪽으로 돌출 */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: #1a2d4a;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 110;  /* cover-bar(100)보다 높여 stacking context 확보 */
  transition: width .22s ease;
  overflow: visible;
  flex-shrink: 0;
}

/* 내부 영역별로 overflow 제어 */
.sidebar-header {
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.sidebar-brand:hover { background: rgba(255,255,255,.05); }
.brand-logo {
  width: 30px; height: 30px;
  background: var(--color-primary);
  border-radius: 7px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-brand-text { overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #fff; white-space: nowrap; }
.brand-sub  { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 1px; white-space: nowrap; }
.app-layout.sidebar-collapsed .sidebar-brand-text { display: none; }

/* 네비게이션 */
.sidebar-nav { flex: 1; padding: 10px 8px; overflow-y: auto; overflow-x: hidden; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 19px;
  color: rgba(255,255,255,.75);
  margin-bottom: 2px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover  { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.active { background: var(--color-primary); color: #fff; font-weight: 500; }
.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(.6);
  transition: filter .15s;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { filter: brightness(0) invert(1); }
.nav-text { overflow: hidden; text-overflow: ellipsis; }

/* 푸터 */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-footer-user { margin-bottom: 8px; }
.user-role { font-size: 17px; color: rgba(255,255,255,.45); white-space: nowrap; }
.user-name-row { display: flex; align-items: center; gap: 6px; }
.user-name { font-size: 19px; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap; }
.profile-edit-btn {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 4px;
  opacity: .5; transition: opacity .15s;
}
.profile-edit-btn:hover { opacity: 1; }
.profile-edit-btn img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

/* 접힘: 정보수정 아이콘 버튼 */
.profile-icon-btn {
  display: none;
  align-items: center; justify-content: center;
  padding: 6px;
}
.profile-icon-btn:hover .logout-icon { filter: brightness(0) invert(.85); }
.logout-btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: none; padding: 4px 0;
  font-size: 18px; color: rgba(255,255,255,.45);
  cursor: pointer; white-space: nowrap;
}
.logout-btn:hover { color: rgba(255,255,255,.85); }
.logout-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  filter: brightness(0) invert(.45);
}
.logout-btn:hover .logout-icon { filter: brightness(0) invert(.85); }

/* ── 사이드바 경계 토글 버튼 (탭 형태) ───────────────── */
.sidebar-toggle {
  position: absolute;
  top: 69px;          /* sidebar-header(~59px) + nav padding-top(10px) */
  right: -20px;       /* 완전히 사이드바 바깥 */
  z-index: 200;
  width: 20px;
  height: 36px;       /* nav-item 행 높이와 동일 */
  border-radius: 0 6px 6px 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: none;
  box-shadow: 2px 1px 4px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.sidebar-toggle:hover { background: var(--color-bg); }
.sidebar-toggle-icon {
  width: 10px; height: 10px;
  filter: brightness(0) invert(.45);
  flex-shrink: 0;
}
.sidebar-toggle:hover .sidebar-toggle-icon { filter: brightness(0) invert(.15); }

/* ── 사이드바 접힘 상태 ────────────────────────────────── */
.app-layout.sidebar-collapsed .sidebar { width: 56px; min-width: 56px; }
/* 버튼은 right: -14px 고정이므로 sidebar 너비 변경만으로 자동 이동 */

/* 브랜드: 아이콘만 */
.app-layout.sidebar-collapsed .sidebar-brand { padding: 12px; justify-content: center; }

/* 네비: 아이콘만, 가운데 정렬 */
.app-layout.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 10px;
  gap: 0;
}
.app-layout.sidebar-collapsed .nav-text { display: none; }
.app-layout.sidebar-collapsed .nav-icon { width: 20px; height: 20px; }

/* 푸터: 정보수정 아이콘 + 로그아웃 아이콘만 */
.app-layout.sidebar-collapsed .sidebar-footer {
  padding: 8px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.app-layout.sidebar-collapsed .sidebar-text { display: none; }
.app-layout.sidebar-collapsed .sidebar-footer-user { display: none; }
.app-layout.sidebar-collapsed .profile-icon-btn {
  display: flex;
  width: 40px; height: 40px;
  justify-content: center; align-items: center;
  padding: 0;
}
.app-layout.sidebar-collapsed .logout-btn {
  width: 40px; height: 40px;
  justify-content: center; align-items: center;
  padding: 0;
}
.app-layout.sidebar-collapsed .logout-icon { filter: brightness(0) invert(.5); }

/* ── 로그인 ───────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.login-box {
  width: 100%; max-width: 360px;
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.login-header { text-align: center; margin-bottom: 24px; }
.login-logo {
  width: 48px; height: 48px;
  background: var(--color-primary);
  border-radius: 12px;
  color: #fff;
  font-size: 28px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.login-title { font-size: 24px; font-weight: 700; margin: 0; }
.login-sub   { font-size: 18px; color: var(--color-muted); margin: 4px 0 0; }
.login-form  { display: flex; flex-direction: column; gap: 16px; }

/* ── 공통 컴포넌트 ────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.page-header-left { display: flex; align-items: center; gap: 10px; }
.page-title { font-size: 26px; font-weight: 700; margin: 0; }
.back-link { color: var(--color-muted); font-size: 24px; line-height: 1; }
.article-title-link { color: inherit; text-decoration: none; }
.article-title-link:hover { color: var(--color-primary); text-decoration: underline; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-stack { display: flex; flex-direction: column; gap: 16px; }
.card-title { font-size: 19px; font-weight: 600; margin: 0 0 12px; color: #344563; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-header-row .card-title { margin-bottom: 0; }
.excluded-search-input { max-width: 260px; }

/* ── 버튼 ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px;
  font-family: inherit; font-size: 19px; font-weight: 500;
  border-radius: 6px; border: none;
  box-sizing: border-box; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-primary   { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dk); }
.btn-secondary { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-lt); }
.btn-danger    { background: var(--color-rejected); color: #fff; }
.btn-danger:hover { background: #b52a00; }
.btn-warning   { background: var(--color-warning); color: #fff; }
.btn-warning:hover { background: var(--color-warning-dk); }
.btn-outline-danger { background: #fff; color: var(--color-rejected); border: 1px solid var(--color-rejected); }
.btn-outline-danger:hover { background: #fff3f0; }
.btn-ghost     { background: transparent; color: var(--color-muted); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }
.btn-sm { padding: 5px 10px; font-size: 18px; }
.btn-lg { padding: 12px 24px; font-size: 21px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-group { display: flex; gap: 8px; }
.link-btn { background: none; border: none; padding: 0; font-size: 19px; color: var(--color-primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ── 폼 ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 19px; font-weight: 500; color: var(--color-text); }
.required { color: var(--color-rejected); }
.label-hint { font-size: 17px; color: var(--color-muted); font-weight: 400; margin-left: 4px; }
.form-input, .form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 19px; font-family: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,85,157,.12);
}
.form-textarea { resize: vertical; line-height: 1.7; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.form-actions-right { display: flex; align-items: center; gap: 12px; }
.input-counter { font-size: 17px; color: var(--color-muted); text-align: right; margin: 2px 0 0; }

/* ── 탭 ───────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--color-border); margin-bottom: 16px; gap: 0; }
.mobile-tabs-select { display: none; }
.tab {
  padding: 8px 16px;
  font-size: 19px; font-weight: 500;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--color-text); }
.tab.active { color: var(--color-primary); border-color: var(--color-primary); }
.tab-count {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 17px;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ── 테이블 ───────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 19px; }
.table thead { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.table th {
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
  font-size: 17px;
  font-size: 17px; font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.table td { padding: 11px 14px; border-bottom: 1px solid #F3F4F6; text-align: center; }
.table td.col-title, .table th.col-title { text-align: left; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #FAFBFF; }
.table tbody tr.row-toc td { background: var(--color-primary-lt); }
.table tbody tr.row-toc:hover td { background: #d6e8f5; }
.text-right { text-align: right; }
.col-drag { width: 28px; padding: 0 !important; }
.col-order { width: 50px; white-space: nowrap; text-align: center !important; font-size: 15px; }
.author-cell, .category-cell, .date-cell, .col-action { white-space: nowrap; font-size: 17px; }
.col-title, .author-cell, .category-cell { font-size: 16px; }
.col-title { width: 100%; }
.col-title .article-link { display: block; word-break: break-word; }
.badge-cell { font-size: 14px; }
.badge-cell .badge { font-size: 13px; }
.table td.date-cell { font-size: 12px; }

/* ── 배지 ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 17px; font-weight: 500;
  white-space: nowrap;
}
.badge-gray   { background: #F3F4F6; color: #6B778C; }
.badge-slate  { background: #F1F3F5; color: #5C6B7A; }
.badge-amber  { background: #FEF3C7; color: #92400E; }
.badge-blue   { background: #EFF4FF; color: #1055C4; }
.badge-green  { background: #E3F5EE; color: #0A6E47; }
.badge-red    { background: #FFEEE9; color: #C0280E; }
.badge-purple { background: #F3EEFF; color: #6B21A8; }
.badge-teal   { background: #E0F7FA; color: #00697A; }
.badge-orange { background: #FFF3E0; color: #B45309; }
.badge-teal   { background: #E6FAF8; color: #0D7C6D; }
.badge-orange { background: #FFF0E6; color: #C2410C; }

/* ── 스타일 태그 툴바 ─────────────────────────── */
.tag-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.tag-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 18px; color: var(--color-text);
  transition: background .1s;
}
.tag-btn:hover { background: var(--color-bg); border-color: #bbb; }
.tag-sym { font-family: 'IBM Plex Mono', monospace; font-size: 19px; }
.tag-label { color: var(--color-muted); font-size: 16px; }

.tag-photo    .tag-sym, .tag-photo    .tag-label { color: #16a34a; }
.tag-caption  .tag-sym, .tag-caption  .tag-label { color: #0891b2; }
.tag-subtitle .tag-sym, .tag-subtitle .tag-label { color: #e11d48; }
.tag-question .tag-sym, .tag-question .tag-label { color: #d97706; }
.tag-bold     .tag-sym, .tag-bold     .tag-label { color: #1d4ed8; }
.tag-font     .tag-sym, .tag-font     .tag-label { color: #ea580c; }
.tag-emphasis .tag-sym, .tag-emphasis .tag-label { color: #7c3aed; }
.char-count { font-size: 18px; color: var(--color-muted); }
.page-badge {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary-dk);
  background: var(--color-primary-lt);
  border: 1px solid #c3d9ef;
  border-radius: 20px;
  padding: 1px 10px;
  white-space: nowrap;
}
.page-badge::after {
  content: ' / A4 텍스트 기준';
  font-size: 10px;
  font-weight: 400;
  color: var(--color-muted);
}

/* ── 본문 미리보기 ───────────────────────────── */
.content-preview {
  margin-top: 12px;
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fafafa;
  font-size: 19px;
  line-height: 2;
  color: var(--color-text);
  min-height: 80px;
}
/* 태그 스타일 — 에디터 미리보기 + 조회화면 공통 */
.content-preview .pv-subtitle,
.content-body .pv-subtitle {
  font-weight: 700;
  font-size: 21px;
  color: var(--color-primary);
}
.content-preview .pv-caption,
.content-body .pv-caption {
  display: block;
  font-size: 17px;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 2px;
}
.content-preview .pv-question,
.content-body .pv-question {
  font-weight: 600;
  color: var(--color-warning-dk);
}
.content-preview .pv-bold,
.content-body .pv-bold { font-weight: 700; }
.content-preview .pv-font,
.content-body .pv-font { font-family: 'IBM Plex Mono', monospace; }
.content-preview .pv-emphasis,
.content-body .pv-emphasis { font-weight: 700; color: var(--color-primary-dk); }
.content-preview .pv-unmatched,
.content-body .pv-unmatched {
  opacity: .35;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
}
/* 에디터 미리보기 사진: 인라인 썸네일 */
.content-preview .pv-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-lt);
  border: 1px solid #c3d9ef;
  border-radius: 6px;
  padding: 2px 8px 2px 4px;
  font-size: 16px;
  color: var(--color-primary-dk);
  vertical-align: middle;
  margin: 0 2px;
}
.content-preview .pv-photo img {
  height: 32px; width: 40px;
  object-fit: cover;
  border-radius: 3px;
}
/* 조회화면: 최대 500px */
.content-body .pv-photo {
  display: block;
  margin: 12px 0;
  background: none;
  border: none;
  padding: 0;
}
.content-body .pv-photo img {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.content-body .pv-photo span {
  display: block;
  font-size: 16px;
  color: var(--color-muted);
  margin-top: 4px;
}
.content-body .pv-photo-missing {
  display: block;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 10px 14px;
  color: #92400e;
  font-size: 16px;
  margin: 8px 0;
}
.content-preview .pv-photo-missing {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}
.btn.is-active { background: var(--color-primary-lt); color: var(--color-primary); border-color: var(--color-primary); }

/* ── 이미지 섹션 안내 ────────────────────────── */
.image-section-guide {
  font-size: 17px;
  color: var(--color-muted);
  margin: 0 0 12px;
  line-height: 1.6;
  padding: 8px 12px;
  background: var(--color-bg);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
}

/* ── 사진 태그 피커 ───────────────────────────── */
.photo-tag-picker {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  margin-bottom: 8px;
  overflow: hidden;
}
.photo-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.photo-picker-title { font-size: 17px; font-weight: 500; color: var(--color-muted); }
.photo-picker-close {
  background: none; border: none; cursor: pointer;
  font-size: 17px; color: var(--color-muted); padding: 0 2px;
  line-height: 1;
}
.photo-picker-close:hover { color: var(--color-text); }
.photo-picker-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px;
}
.photo-picker-empty {
  font-size: 17px; color: var(--color-muted); margin: 0;
  padding: 4px 0;
}
.photo-picker-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  width: 90px;
}
.photo-picker-item:hover { border-color: var(--color-primary); background: var(--color-primary-lt); }
.photo-picker-item img {
  width: 74px; height: 60px;
  object-fit: cover; border-radius: 4px;
}
.photo-picker-item span { font-size: 15px; color: var(--color-muted); }

/* ── 이미지 그리드 ────────────────────────────── */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.image-item {
  border: 1px solid var(--color-border);
  border-radius: 8px; overflow: hidden;
  background: #fff; position: relative;
}
.image-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.image-item-body { padding: 8px; }
.image-name { font-size: 17px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.image-cover-badge { position: absolute; top: 4px; right: 4px; background: var(--color-primary); color: #fff; font-size: 16px; padding: 2px 6px; border-radius: 3px; }
.image-drag-handle { position: absolute; top: 4px; left: 4px; background: rgba(255,255,255,.8); padding: 3px; border-radius: 4px; cursor: grab; font-size: 17px; color: #555; display: none; }
.image-item:hover .image-drag-handle { display: flex; }
.dropzone {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 6px;
  height: 80px;
  border: 2px dashed var(--color-border);
  border-radius: 8px; cursor: pointer;
  font-size: 19px; color: var(--color-muted);
  transition: border-color .15s;
}
.dropzone:hover { border-color: var(--color-primary); }
.dropzone-hint { font-size: 17px; }
.dropzone-hint::before { content: '·'; margin-right: 2px; }
@media (max-width: 1023px) {
  .dropzone { flex-direction: row; gap: 5px; font-size: 14px; height: 56px; }
  .dropzone-hint { font-size: 14px; margin-top: 0; }
  .dropzone-hint::before { content: '·'; margin-right: 1px; }
}

/* ── 대시보드 통계 카드 ────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  padding: 16px;
}
.stat-submitted { border-left-color: var(--color-submitted); }
.stat-reviewing { border-left-color: var(--color-reviewing); }
.stat-confirmed { border-left-color: var(--color-confirmed); }
.stat-label { font-size: 17px; color: var(--color-muted); font-weight: 500; margin: 0; }
.stat-value { font-size: 34px; font-weight: 700; margin: 4px 0 0; }
.filter-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.filter-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.filter-btn {
  padding: 6px 14px;
  border-radius: 6px; border: 1px solid var(--color-border);
  background: #fff; font-size: 18px; color: var(--color-muted);
  transition: all .15s;
}
.filter-btn:hover { border-color: #aaa; }
.filter-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.filter-btn[data-filter="submitted"]        { color: #92400E; }
.filter-btn[data-filter="submitted"]:hover  { border-color: #d97706; }
.filter-btn[data-filter="submitted"].active { background: #d97706; border-color: #d97706; color: #fff; }

.filter-btn[data-filter="reviewing"]        { color: #1e40af; }
.filter-btn[data-filter="reviewing"]:hover  { border-color: #2563eb; }
.filter-btn[data-filter="reviewing"].active { background: #2563eb; border-color: #2563eb; color: #fff; }

.filter-btn[data-filter="confirmed"]        { color: #166534; }
.filter-btn[data-filter="confirmed"]:hover  { border-color: #16a34a; }
.filter-btn[data-filter="confirmed"].active { background: #16a34a; border-color: #16a34a; color: #fff; }

.filter-btn[data-filter="rejected"]         { color: #991b1b; }
.filter-btn[data-filter="rejected"]:hover   { border-color: #dc2626; }
.filter-btn[data-filter="rejected"].active  { background: #dc2626; border-color: #dc2626; color: #fff; }

.filter-btn[data-filter="draft"]            { color: #374151; }
.filter-btn[data-filter="draft"]:hover      { border-color: #6b7280; }
.filter-btn[data-filter="draft"].active     { background: #6b7280; border-color: #6b7280; color: #fff; }
.drag-handle { color: #ccc; cursor: grab; user-select: none; font-size: 22px; padding: 0 4px; }
.drag-handle:hover { color: #888; }
.article-link:hover { color: var(--color-primary); }

/* ── 원고 상세 ────────────────────────────────── */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.detail-main   { display: flex; flex-direction: column; gap: 16px; }
.detail-side   { }
.meta-card .meta-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.meta-card .meta-grid.meta-grid-col1 {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}
.meta-card .meta-grid.meta-grid-col1 > div {
  flex: 1;
}
.meta-label { font-size: 17px; color: var(--color-muted); margin: 0 0 2px; }
.meta-value { font-size: 19px; font-weight: 500; margin: 0; }
.meta-updated { color: var(--color-warning-dk); }
.view-char-count { font-size: 17px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.card-meta-right { display: flex; align-items: center; gap: 8px; }
.btn-copy { background: none; border: none; padding: 4px; cursor: pointer; color: var(--color-muted); border-radius: 4px; line-height: 0; transition: color .15s, background .15s; }
.btn-copy:hover { color: var(--color-primary); background: var(--color-primary-lt); }
.btn-copy svg { width: 18px; height: 18px; }
.btn-copy .icon-check { display: none; }
.btn-copy.copied { color: #0A6E47; }
.btn-copy.copied .icon-copy { display: none; }
.btn-copy.copied .icon-check { display: inline; }
.content-body  { font-size: 19px; line-height: 1.9; color: var(--color-text); }
.credit-line   { font-size: 19px; margin: 4px 0; }
.thumb-item    { position: relative; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.thumb-img     { width: 100%; height: 120px; object-fit: cover; display: block; }
.thumb-cover-badge { position: absolute; top: 4px; left: 4px; background: var(--color-primary); color: #fff; font-size: 16px; padding: 2px 6px; border-radius: 3px; }
.thumb-tag-label { display: block; font-size: 11px; font-weight: 700; color: var(--color-primary); padding: 3px 8px 4px; pointer-events: none; }
.photo-tag-sync-notice { font-size: 14px; color: var(--color-primary); margin: 6px 0 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.photo-tag-sync-notice.is-visible { opacity: 1; }
.thumb-name    { font-size: 17px; color: var(--color-muted); padding: 6px 8px; }

/* ── 다운로드 페이지 ───────────────────────────── */
.summary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; background: var(--color-bg); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.summary-label { font-size: 17px; color: var(--color-muted); margin: 0 0 2px; }
.summary-value { font-size: 28px; font-weight: 700; margin: 0; }
.issue-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.issue-input { width: 100px; }
.package-info { background: #EFF4FF; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.package-title { font-size: 19px; font-weight: 600; color: #1055C4; margin: 0 0 8px; }
.package-tree  { font-family: 'IBM Plex Mono', monospace; font-size: 18px; color: #3B5CC4; margin: 0; white-space: pre; }

/* ── 유틸 ─────────────────────────────────────── */
.hidden { display: none !important; }
.file-hidden { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; }
.text-muted { color: var(--color-muted); }
.text-xs    { font-size: 17px; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.alert { padding: 10px 14px; border-radius: 6px; font-size: 19px; margin-bottom: 14px; }
.alert-error { background: #FFEEE9; color: var(--color-rejected); border: 1px solid #FFCFC7; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--color-muted); }
.empty-link  { display: inline-block; margin-top: 8px; font-size: 19px; color: var(--color-primary); }
.empty-link:hover { text-decoration: underline; }

/* ── 크레딧 편집 ──────────────────────────────── */
.credit-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.credit-row .form-input { flex: 1; }
.credit-type-wrap { display: flex; gap: 6px; flex: 1.2; }
.credit-type-wrap .credit-type-sel { flex: 1; padding-right: 28px; }
.credit-type-wrap .credit-type-custom { flex: 1; }
.credit-type-wrap .credit-type-custom.hidden { display: none; }
.credit-del { color: var(--color-muted); font-size: 18px; white-space: nowrap; }

/* ── 썸네일 컨트롤 (에디터) ──────────────────── */
.thumb-item[draggable] { cursor: grab; }
.thumb-drag-handle {
  position: absolute; top: 4px; right: 4px;
  background: rgba(255,255,255,.85); border-radius: 4px;
  padding: 2px 5px; font-size: 20px; line-height: 1; color: #666;
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.thumb-item:hover .thumb-drag-handle { opacity: 1; }
.thumb-drag-over { outline: 2px solid var(--color-primary); outline-offset: -2px; background: var(--color-primary-lt); }
.thumb-controls { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; }
.thumb-cover-label { display: flex; align-items: center; gap: 4px; font-size: 17px; color: var(--color-muted); cursor: pointer; }
.thumb-del-btn { background: none; border: none; color: var(--color-muted); font-size: 18px; padding: 2px 4px; cursor: pointer; }
.thumb-del-btn:hover { color: var(--color-rejected); }

/* ── 드래그앤드롭 상태 ────────────────────────── */
.drag-dragging { opacity: .4; }
.article-row.drag-over td:first-child { border-left: 3px solid var(--color-primary); }
.dropzone.drag-over { border-color: var(--color-primary); background: var(--color-primary-lt); }

/* ── text-right ───────────────────────────────── */
.text-right { text-align: right; }

/* ── 표지 배너 (sticky, 레이아웃 고정) ──────── */
.cover-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  background: #1a2d4a; color: #fff;
  padding: 0 60px; height: 52px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.cover-bar-left  { display: flex; align-items: center; gap: 12px; }
.cover-bar-right { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cover-bar-issue-link {
  display: flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none;
}
.cover-bar-issue-link:hover { opacity: .8; }
.cover-bar-no    { font-size: 20px; font-weight: 700; }
.cover-bar-title { font-size: 14px; color: rgba(255,255,255,.72); }
.cover-bar-status {
  font-size: 12px; font-weight: 600; border-radius: 4px;
  padding: 2px 8px;
}
.cover-bar-status.is-open   { background: rgba(34,197,94,.25); color: #86efac; }
.cover-bar-status.is-closed { background: rgba(255,255,255,.15); color: rgba(255,255,255,.65); }
.cover-bar-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  background: rgba(255,255,255,.18); padding: 2px 7px; border-radius: 3px; flex-shrink: 0;
}
.cover-bar-text { opacity: .75; }
.cover-bar.has-cover .cover-bar-text { opacity: 1; }
.cover-bar-thumb {
  width: 32px; height: 32px; object-fit: cover;
  border-radius: 3px; border: 1px solid rgba(255,255,255,.4); flex-shrink: 0;
}
.cover-bar-back {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: 20px; line-height: 1; padding-right: 4px; flex-shrink: 0;
}
.cover-bar-back:hover { color: #fff; }
.cover-bar-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.2); flex-shrink: 0;
}
.cover-bar .btn-ghost {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.2);
}
.cover-bar .btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

/* ── 목차 ─────────────────────────────────────── */
.toc-content { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.toc-row {
  display: grid; grid-template-columns: 28px 80px 1fr auto;
  gap: 12px; align-items: center; padding: 8px 12px;
  background: var(--color-bg); border-radius: 6px; font-size: 19px;
}
.toc-num { font-weight: 700; color: var(--color-primary); text-align: center; }
.toc-cat { color: var(--color-muted); font-size: 17px; }
.toc-title { font-weight: 500; }
.toc-author { font-size: 18px; }

/* ── 페이지 헤더 액션 ────────────────────────── */
.page-header-actions { display: flex; align-items: center; gap: 12px; }

/* ── 표지 이미지 선택 (라디오) ───────────────── */
.cover-select-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cover-select-header .card-title { margin-bottom: 0; }
.cover-select-hint { font-size: 16px; color: var(--color-muted); margin: 0 0 12px; }
.cover-radio-list { display: flex; flex-direction: column; gap: 8px; }
.cover-radio-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--color-border); transition: border-color .15s, background .15s;
  position: relative;
}
.cover-radio-item:hover { border-color: var(--color-primary); background: var(--color-primary-lt); }
.cover-radio-item.is-cover { border-color: var(--color-primary); background: var(--color-primary-lt); }
.cover-radio-item input[type="radio"] { flex-shrink: 0; accent-color: var(--color-primary); width: 16px; height: 16px; }
.cover-radio-thumb-wrap { position: relative; flex-shrink: 0; width: 48px; height: 48px; }
.cover-radio-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; display: block; }
.cover-order-badge { position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; pointer-events: none; line-height: 1; }
.cover-radio-name { flex: 1; font-size: 16px; color: var(--color-text); }
.cover-radio-badge {
  font-size: 14px; font-weight: 700; color: #fff;
  background: var(--color-primary); padding: 2px 8px; border-radius: 4px; flex-shrink: 0;
}

/* ── 호 관리 ──────────────────────────────────── */
.issue-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.issue-main   { display: flex; flex-direction: column; gap: 16px; }
.issue-side   { display: flex; flex-direction: column; gap: 16px; }

.member-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--color-border);
}
.member-row:last-child { border-bottom: none; }
.member-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.member-name { font-weight: 500; }
.member-email { font-size: 15px; }
.member-id { font-size: 16px; }
.text-danger { color: var(--color-rejected); }

.member-actions { display: flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; }
.member-action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  padding: 0;
}
.member-action-btn:hover { background: var(--color-bg); border-color: #c5cad3; }
.member-action-btn img { width: 15px; height: 15px; filter: brightness(0) invert(.5); }
.member-action-btn:hover img { filter: brightness(0) invert(.2); }
.member-action-btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* 링크: 파란색 */
.btn-view-invite img { filter: brightness(0) saturate(100%) invert(23%) sepia(80%) saturate(800%) hue-rotate(185deg) brightness(95%); }
.btn-view-invite:hover { background: var(--color-primary-lt); border-color: var(--color-primary); }
.btn-view-invite:hover img { filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(900%) hue-rotate(185deg); }

/* 재발송: 초록색 */
.btn-resend-invite img { filter: brightness(0) saturate(100%) invert(38%) sepia(70%) saturate(500%) hue-rotate(100deg); }
.btn-resend-invite:hover { background: #f0fdf4; border-color: #16a34a; }
.btn-resend-invite:hover img { filter: brightness(0) saturate(100%) invert(30%) sepia(80%) saturate(600%) hue-rotate(105deg); }

/* 제거: 빨간색 */
.btn-remove-member img { filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(700%) hue-rotate(340deg); }
.member-action-danger:hover { background: #fff3f0; border-color: var(--color-rejected); }
.member-action-danger:hover img { filter: brightness(0) saturate(100%) invert(15%) sepia(90%) saturate(800%) hue-rotate(340deg); }

.invite-row { display: flex; gap: 8px; }
.invite-row .form-input { flex: 1; }

/* ── 제외 원고 섹션 ──────────────────────────── */
.col-action { width: 36px; text-align: center; }
.excluded-section { margin-top: 16px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.excluded-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--color-bg);
  border: none; cursor: pointer; font-size: 18px; font-weight: 500;
  color: var(--color-muted); text-align: left;
  transition: background .12s;
}
.excluded-toggle:hover { background: #eef0f3; }
.excluded-count {
  background: var(--color-border); color: var(--color-muted);
  font-size: 14px; font-weight: 600; border-radius: 10px; padding: 1px 7px;
}
.excluded-chevron { width: 14px; height: 14px; margin-left: auto; filter: brightness(0) invert(.5); transition: transform .2s; }
.excluded-list { padding: 12px 16px; border-top: 1px solid var(--color-border); }
.excluded-empty { font-size: 17px; color: var(--color-muted); margin: 0; }
.excluded-count-badge {
  font-size: 15px; font-weight: 600;
  color: var(--color-muted);
  background: var(--color-border);
  border-radius: 10px;
  padding: 1px 9px;
}

/* ── 페이지네이션 ─────────────────────────────── */
.pagination-bar { display: flex; gap: 4px; justify-content: center; padding: 16px 0 4px; flex-wrap: wrap; }
.pagination-btn {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 17px; color: var(--color-text);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.pagination-btn:hover { background: var(--color-bg); border-color: #bbb; }
.pagination-btn.is-current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 600; }
.excluded-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--color-border);
}
.excluded-row:last-child { border-bottom: none; }
.excluded-info { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.excluded-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.divider { border: none; border-top: 1px solid var(--color-border); margin: 14px 0; }

.new-writer-details summary { margin-bottom: 0; }
.new-writer-details[open] summary { margin-bottom: 12px; }
.new-writer-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--color-bg); border-radius: 8px; }

/* ── 빈 상태 ──────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state-title { font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--color-text); }
.empty-state-desc  { font-size: 18px; color: var(--color-muted); margin: 0; }

/* ── font-weight utility ──────────────────────── */
.font-medium { font-weight: 500; }

/* ── 사이드바 프로필 링크 ──────────────────────── */
.profile-link { display: block; font-size: 17px; color: var(--color-muted); margin-bottom: 6px; }
.profile-link:hover { color: var(--color-primary); text-decoration: underline; }

/* ── 설정 페이지 ───────────────────────────────── */
.settings-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.settings-readonly { margin: 0; padding: 8px 12px; background: var(--color-bg); border-radius: 6px; font-size: 19px; color: var(--color-muted); }

/* ── 탭 네비게이션 ─────────────────────────────── */
.tab-nav { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: 20px; }
.tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 10px 22px; margin-bottom: -2px;
  font-size: 19px; font-weight: 500; color: var(--color-muted);
  cursor: pointer; transition: color 0.15s;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-panel.hidden { display: none; }
.articles-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

/* ── 페이지네이션 ──────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: 4px;
  margin-top: 16px; flex-wrap: wrap;
}
.pagination.hidden { display: none; }
.pager-btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--color-border); border-radius: 6px;
  background: var(--color-surface); color: var(--color-text);
  font-size: 14px; cursor: pointer; transition: background 0.12s;
}
.pager-btn:hover:not(:disabled) { background: var(--color-primary-lt); color: var(--color-primary); }
.pager-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-ellipsis { font-size: 14px; color: var(--color-muted); padding: 0 4px; }
.pager-total { font-size: 13px; color: var(--color-muted); margin-right: 8px; }

/* ── 모달 ──────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-backdrop.hidden { display: none; }
.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  width: 100%; max-width: 500px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.modal-title { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.modal-notice {
  display: flex; gap: 12px;
  background: #fff8f0;
  border: 1px solid #ffd591;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.modal-notice-icon { font-size: 22px; flex-shrink: 0; margin: 0; }
.modal-notice-list { margin: 0; padding-left: 18px; font-size: 17px; line-height: 1.8; }
.modal-section { margin-bottom: 20px; }
.modal-section-label { font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }

/* ── 최종 PDF 섹션 ─────────────────────────────── */
.pdf-file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.pdf-file-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.icon-doc-download { width: 22px; height: 22px; display: block; }
.pdf-file-name { flex: 1; font-size: 17px; word-break: break-all; }
.pdf-upload-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
}

/* ── 호 목록 카드 그리드 ───────────────────────── */
.issue-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.issue-card-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-muted);
  padding: 48px 0;
}
.issue-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: box-shadow 0.15s, transform 0.15s;
}
.issue-card { cursor: pointer; }
.issue-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.16); transform: translateY(-2px); }
.issue-card.is-open { border: 2px solid var(--color-confirmed); box-shadow: 0 2px 12px rgba(0,135,90,.25); }
.issue-card.is-open:hover { box-shadow: 0 6px 24px rgba(0,135,90,.40); }

.issue-card-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-bg);
  text-decoration: none;
}
.issue-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.issue-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-lt) 0%, #dce8f4 100%);
  color: var(--color-primary);
  font-size: 22px; font-weight: 700;
}
.issue-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 14px;
  padding: 4px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.issue-card-body {
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.issue-card-no-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.issue-card-no {
  font-size: 20px; font-weight: 700; color: var(--color-text);
}
.issue-card-title {
  font-size: 16px; color: var(--color-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.issue-card-meta {
  display: flex; gap: 10px;
  font-size: 14px; color: var(--color-muted);
  margin-top: 4px;
}

/* ── 호 컨텍스트 바 (원고 상세/수정 페이지 상단 고정) ── */
.issue-context-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
  background: var(--color-primary-lt);
  border: 1px solid #c8ddf0;
  border-radius: var(--radius);
}
.issue-context-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.issue-context-link:hover .issue-context-no { text-decoration: underline; }
.issue-context-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.issue-context-title {
  font-size: 13px;
  color: var(--color-muted);
}

/* ── 원고 상태 프로세스 플로우 바 ──────────────────────── */
.status-flow-wrap {
  margin-bottom: 20px;
}
.status-flow-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 48px;
}
.flow-steps {
  display: flex;
  align-items: flex-start;
  flex: 1;
}
.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  position: relative;
}
.flow-step + .flow-step::before {
  content: '';
  position: absolute;
  top: 27px;
  left: -50%;
  width: 100%;
  height: 4px;
  background: var(--color-border);
  z-index: 0;
}
.flow-step.is-done + .flow-step::before {
  background: #10b981;
}
.flow-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-muted);
  position: relative;
  z-index: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.flow-label {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
}
.flow-step.is-done .flow-dot {
  background: #d1fae5;
  border-color: #10b981;
  color: #059669;
}
.flow-step.is-done .flow-label { color: #059669; }
.flow-step.is-active .flow-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  animation: flow-pulse 1.8s ease-in-out infinite;
}
.flow-step.is-active .flow-label {
  color: var(--color-primary);
  font-weight: 600;
}
@keyframes flow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}
.flow-step.status-btn { cursor: pointer; }
.flow-step.status-btn:not(.is-active):not(.is-done):hover .flow-dot {
  border-color: var(--color-primary);
  background: var(--color-primary-lt);
  color: var(--color-primary);
}
.flow-step.status-btn:not(.is-active):not(.is-done):hover .flow-label {
  color: var(--color-primary);
}
.flow-reject-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  border: 2px solid #ef4444;
  border-radius: var(--radius);
  background: none;
  color: #ef4444;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.flow-reject-btn:hover { background: #fef2f2; }

/* ── 하단 고정 안내 가이드 ────────────────── */
.guide-fixed {
  position: fixed;
  bottom: 0;
  left: 220px;
  right: 0;
  background: #eef5fd;
  border-top: 2px solid var(--color-primary);
  z-index: 90;
  font-size: 14px;
  color: #1e3a5f;
  line-height: 1.6;
}
.guide-fixed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 60px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.guide-fixed-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.guide-toggle-icon {
  font-size: 11px;
  color: var(--color-primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.guide-fixed.is-open .guide-toggle-icon { transform: rotate(180deg); }
.guide-fixed-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.guide-fixed.is-open .guide-fixed-content { max-height: 300px; }
.guide-fixed-list {
  margin: 0;
  padding: 0 60px 10px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}
.guide-fixed-list li {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 16px;
}
.guide-fixed-list li::before {
  content: '▸';
  color: var(--color-primary);
  font-size: 11px;
  flex-shrink: 0;
}
.guide-fixed strong { font-weight: 700; }

/* ── 호 상세 페이지 헤더 sticky ── */
.page-header--sticky {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 60px;
  padding-right: 60px;
  margin-left: -60px;
  margin-right: -60px;
  margin-bottom: 20px;
}

/* ── 맞춤법 검사 패널 ───────────────────────────────────── */
.spell-panel {
  margin-top: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}
.spell-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  font-weight: 600;
}
.spell-panel-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}
.spell-ok {
  padding: 16px 14px;
  color: #16a34a;
  font-size: 14px;
  margin: 0;
}
.spell-item {
  padding: 8px 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity .2s;
}
.spell-item:last-child { border-bottom: none; }
.spell-item.spell-done { opacity: .35; pointer-events: none; }
.spell-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.spell-org {
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
  text-decoration: line-through;
}
.spell-arr { font-size: 13px; color: #888; }
.spell-cands { display: flex; gap: 4px; flex-wrap: wrap; }
.spell-cand {
  padding: 2px 10px;
  font-size: 13px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.spell-cand:hover { background: #333; }
.spell-skip { font-size: 12px; color: #aaa; margin-left: auto; }
.spell-help {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.5;
}

/* ── 호 레이아웃 풀 너비 (작성자 패널 없는 권한) ── */
.issue-layout-full { grid-template-columns: 1fr; }

/* ── 사이드바 접힘 → 하단 가이드 위치 보정 ──────── */
.app-layout.sidebar-collapsed .guide-fixed { left: 56px; }

/* ─────────────────────────────────────────────────
   반응형: 태블릿 + 모바일 (1023px 이하)
───────────────────────────────────────────────── */
@media (max-width: 1023px) {

  /* 사이드바: fixed 슬라이드 드로어 */
  .sidebar {
    position: fixed !important;
    top: 0; left: 0;
    height: 100% !important;
    z-index: 300;
    width: 220px !important;
    min-width: 220px !important;
    transform: translateX(-100%);
    transition: transform .25s ease !important;
    box-shadow: none;
  }
  .app-layout.sidebar-open .sidebar {
    transform: translateX(0) !important;
    box-shadow: 4px 0 24px rgba(0,0,0,.3);
  }
  /* 태블릿/모바일: 접힘 상태와 무관하게 항상 full 사이드바 표시 */
  .app-layout.sidebar-collapsed .sidebar {
    width: 220px !important;
    min-width: 220px !important;
  }
  .app-layout.sidebar-collapsed .brand-logo-icon { display: block; }
  .app-layout.sidebar-collapsed .sidebar-brand { padding: 14px 16px; justify-content: flex-start; }
  .app-layout.sidebar-collapsed .sidebar-brand-text { display: flex; }
  .app-layout.sidebar-collapsed .nav-item { justify-content: flex-start; padding: 8px 10px; gap: 10px; }
  .app-layout.sidebar-collapsed .nav-text { display: block; }
  .app-layout.sidebar-collapsed .nav-icon { width: 18px !important; height: 18px !important; }
  .app-layout.sidebar-collapsed .sidebar-text { display: block; }
  .app-layout.sidebar-collapsed .sidebar-footer-user { display: block; }
  .app-layout.sidebar-collapsed .sidebar-footer { padding: 12px 16px; display: flex; flex-direction: column; align-items: flex-start; }
  .app-layout.sidebar-collapsed .profile-icon-btn { display: none !important; }
  .app-layout.sidebar-collapsed .logout-btn { width: auto; height: auto; justify-content: flex-start; padding: 4px 0; }

  .sidebar-toggle { display: none !important; }

  /* 모바일 탑바 표시 */
  .mobile-topbar { display: flex; }

  /* 콘텐츠 영역 */
  .content-inner { padding: 12px 16px 56px; }
  .cover-bar { padding: 0 14px; height: 44px; }
  .cover-bar-title { display: none; }
  .page-header--sticky {
    padding: 12px 16px;
    margin-left: -16px; margin-right: -16px;
  }

  /* 그리드 */
  .issue-layout,
  .issue-layout-full { grid-template-columns: 1fr !important; }
  .issue-card-grid   { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .detail-layout     { grid-template-columns: 1fr !important; }
  .form-row-2        { grid-template-columns: 1fr; }
  .stat-grid         { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .summary-grid      { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .summary-label     { font-size: 12px; white-space: nowrap; }
  .summary-value     { font-size: 18px; white-space: nowrap; }
  .package-info      { overflow-x: auto; }
  .package-title     { font-size: 15px; }
  .package-tree      { font-size: 13px; }
  .meta-card .meta-grid { grid-template-columns: 1fr 1fr; }

  /* 카드 & 테이블 — 카드형 레이아웃으로 전환됨 (v4 테이블 섹션 참조) */
  .card { padding: 14px; }

  /* 필터 바 수평 스크롤 */
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; font-size: 16px; }
  .filter-bar-actions { flex-shrink: 0; }

  /* 하단 가이드 */
  .guide-fixed { left: 0; }
  .guide-fixed-header { padding: 8px 16px; }
  .guide-fixed-list { flex-direction: column; gap: 2px; padding: 0 16px 10px; }
  .guide-fixed-list li { font-size: 14px; }
  /* 탭 숨기고 드롭다운 표시 */
  .tabs { display: none !important; }
  .mobile-tabs-select { display: block; width: 100%; margin-bottom: 16px; }

  /* 모달 */
  .modal-box { margin: 16px; padding: 20px; max-width: calc(100% - 32px); }

  /* 버튼 / 텍스트 */
  .btn { font-size: 17px; }
  .btn-sm { font-size: 15px; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 15px; }

  /* 로그인 */
  .login-box { padding: 24px 20px; }
}

/* ─────────────────────────────────────────────────
   소형 모바일 (480px 이하)
───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .issue-card-grid { grid-template-columns: 1fr !important; }
  .stat-value { font-size: 24px; }
  .stat-grid { gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   반응형 세부 보완 v2
═══════════════════════════════════════════════════════════ */

/* ── 모바일 탑바 로고 링크 ──────────────────────── */
.mobile-topbar-brand { display: flex; align-items: center; }

/* ── 필터 버튼 스크롤 래퍼 (데스크탑) ──────────── */
.filter-btn-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}
.filter-btn-scroll::-webkit-scrollbar { display: none; }

/* 모바일 드롭다운: 데스크탑에서 숨김 */
.mobile-filter-select { display: none; }

@media (max-width: 1023px) {
  /* ── 1. 페이지 헤더: 제목 좌측 · 버튼 우측 (한 줄 유지) ──── */
  .page-header { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .page-title  { font-size: 21px; flex-shrink: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-header-left { flex: 1; min-width: 0; }
  .page-header > .btn-group { flex-shrink: 0; flex-wrap: nowrap; gap: 6px; }
  .page-header > .btn-group .form-input { flex: 1; min-width: 0; width: auto !important; }

  /* ── 2. 통계 카드 (3개 한 줄 맞춤) ──────── */
  .stat-grid  { gap: 6px; }
  .stat-card  { padding: 10px 8px; }
  .stat-value { font-size: 20px !important; }
  .stat-label { font-size: 12px; }

  /* ── 3. 필터바: 드롭다운 표시 / 버튼 숨김 ── */
  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible !important;
    align-items: center;
  }
  .filter-btn-scroll { display: none; }
  .mobile-filter-select {
    display: block;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    padding: 6px 10px;
  }
  .filter-bar-actions { margin-left: 0 !important; flex-shrink: 0; }

  /* ── 4. 원고 상세 상태 플로우바 ─────────── */
  .status-flow-bar {
    flex-direction: column;
    padding: 14px 12px;
    gap: 10px;
  }
  .flow-steps {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    width: 100%;
  }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-step { min-width: 56px; }
  .flow-dot  { width: 38px; height: 38px; font-size: 14px; }
  .flow-step + .flow-step::before { top: 19px; }
  .flow-label { font-size: 10px; white-space: nowrap; }
  .flow-reject-btn { width: 100%; padding: 10px; text-align: center; }

  /* ── 5. 원고 상세 메타 정보 1열 개행 ─────── */
  .meta-card .meta-grid.meta-grid-col1 { flex-wrap: wrap; gap: 12px; }
  .meta-card .meta-grid.meta-grid-col1 > div { flex: 0 0 calc(50% - 6px); }

  /* ── 6. 카드 헤더 줄바꿈 & 글자수 보호 ─── */
  .card-header-row { flex-wrap: wrap; gap: 6px; }
  .excluded-search-input { max-width: 100%; }
  .char-count, .page-badge { white-space: nowrap; flex-shrink: 0; }

  /* ── 7. 꼬리말 크레딧 줄바꿈 ────────────── */
  .credit-row { flex-wrap: wrap; gap: 6px; }
  .credit-type-wrap { flex: none; width: 100%; }
  .credit-row .form-input { flex: 1; min-width: calc(50% - 22px); }
  .credit-del { flex: none; margin-left: auto; }

  /* ── 8. 이슈 레이아웃 사이드 패널 ────────── */
  .issue-side { width: 100%; }
  .invite-row { flex-wrap: nowrap; }
  .invite-row .form-input { min-width: 0; }

  /* ── 9. 테이블 카드 스크롤 (강화) ───────── */
  .card { overflow-x: auto !important; }
  .table { min-width: 500px; }

  /* ── 10. 하단 폼 액션 줄바꿈 ─────────────── */
  .form-actions { flex-wrap: wrap; gap: 10px; }
  .form-actions-right { flex-wrap: nowrap; }

  /* ── 11. 커버바 오른쪽 숨김 (너무 좁음) ─── */
  .cover-bar-right { display: none; }
}

@media (max-width: 480px) {
  /* ── 메타정보 1열 (매우 좁은 화면) ──────── */
  .meta-card .meta-grid.meta-grid-col1 > div { flex: 0 0 100%; }
  /* ── 탭 버튼 ─────────────────────────────── */
  .tab-btn { padding: 8px 14px; font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════════
   반응형 보완 v3
═══════════════════════════════════════════════════════════ */

/* ── 호 관리 검색 입력 (항상) ─────────────────── */
.issues-header { margin-bottom: 20px; }
.issues-search-input { width: 300px; display: block; }

/* ── 오버플로우 차단: min-width 0 전역 ─────────── */
.main-content    { min-width: 0; }
.content-inner   { min-width: 0; max-width: 100%; }
.issue-layout,
.issue-layout-full,
.issue-main,
.issue-side      { min-width: 0; }
.card            { min-width: 0; }

@media (max-width: 1023px) {
  /* ── 1. 호 관리 헤더: 검색 전체 너비 ───────── */
  .issues-search-input { width: 100%; margin-top: 4px; }

  /* ── 2. 호 카드 ~ 안내문구 사이 여백 ────────── */
  .content-inner { padding-bottom: 56px; }
  .issue-card-grid { margin-bottom: 16px; }

  /* ── 3. 안내문구 텍스트 정상 개행 ───────────── */
  .guide-fixed { word-break: keep-all; overflow-wrap: break-word; }
  .guide-fixed.is-open .guide-fixed-content { max-height: 500px; }
  .guide-fixed-list { flex-direction: column; gap: 4px; }
  .guide-fixed-list li {
    display: block;
    position: relative;
    padding-left: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .guide-fixed-list li::before {
    position: absolute;
    left: 0;
    top: 3px;
    flex-shrink: unset;
  }
  .guide-fixed-title { font-size: 13px; }

  /* ── 4. 통계 카드 1행 3열 (세로 배치) ────────── */
  .stat-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .stat-card { display: block; padding: 10px 8px; border-left-width: 3px; }
  .stat-label { font-size: 13px; margin: 0 0 4px; white-space: nowrap; }
  .stat-value { font-size: 24px !important; margin: 0; }

  /* ── 5. 드롭다운 + 액션 세로 배치 (오버플로우 방지) */
  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .mobile-filter-select { width: 100% !important; flex: none !important; }
  .filter-bar-actions { width: 100%; margin-left: 0 !important; justify-content: flex-end; }

  /* ── 6. 테이블 → 카드형 세로 전개 ──────────── */
  /* 카드 overflow 해제 */
  .card { overflow: visible !important; }
  .table { display: block !important; width: 100%; min-width: 0 !important; font-size: 15px; }

  /* thead 숨기기 */
  .table thead { display: none; }

  /* tbody: block + 100% — table 내부 block 요소가 너비를 잃지 않도록 */
  .table tbody { display: block; width: 100%; }

  /* tr → 카드 블록 */
  .table tbody tr {
    display: block;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .table tbody tr:hover td { background: transparent !important; }
  .table tbody tr.row-toc { background: var(--color-primary-lt); }

  /* td → flex 행 (width: auto로 col-order 등의 고정폭 재정의) */
  .table td {
    display: flex !important;
    width: auto !important;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px !important;
    border-bottom: 1px solid #f3f4f6;
    text-align: left !important;
    font-size: 15px;
    min-width: 0;
    gap: 10px;
  }
  .table td:last-child { border-bottom: none; }

  /* ::before 레이블 */
  .table td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    min-width: 44px;
  }

  /* colspan 셀(빈 상태) → 블록 중앙 */
  .table td[colspan] {
    display: block !important;
    text-align: center !important;
    border-bottom: none;
    color: var(--color-muted);
    font-size: 15px;
  }

  /* 드래그 핸들 셀 숨기기 */
  /* 드래그 핸들: 모바일에서 표시 (핸들 전용 드래그) */
  .table .col-drag {
    display: flex !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    background: rgba(0,0,0,.025);
    cursor: grab;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  .table .col-drag .drag-handle {
    font-size: 18px;
    color: #c0c4cc;
    touch-action: none;
    user-select: none;
  }
  /* 모바일 카드 드래그 상태 */
  .article-row.drag-over { outline: 2px solid var(--color-primary) !important; }
  /* 제외 버튼 셀: 레이블 좌측, 버튼 우측 */
  .table td.exclude-cell { justify-content: space-between; }

  /* 제외원고 제목 셀: 줄바꿈 허용 */
  .excl-title-cell { white-space: normal !important; word-break: break-word; }

  /* ── 7. 원고 상세 제목 + 배지 오버플로우 방지 ── */
  .page-header { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .page-header-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .page-header-left .page-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    font-size: 18px;
  }
  .page-header-left .badge { flex-shrink: 0; }
  .page-header > .btn-group { flex-shrink: 0; }

  /* ── 8. 카드 패딩 조정 ──────────────────────── */
  .card { padding: 10px 12px; }
}
