/* 뉴스카드 — 어드민 인증 창 · ⚙️ 설정 창 (news-admin.js) */

/* 상단 고정 헤더 오른쪽 「어드민 인증」 */
.admin-auth-link {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-family: 'NPSfont', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .18s;
}
.admin-auth-link:hover { background: rgba(255,255,255,.28); }
.admin-auth-link i { font-size: 18px; }
/* 폰: 「우.아.금 보드게임」 제목이 두 줄로 꺾이지 않게 아이콘만(인증 전 자물쇠 · 인증 뒤 방패) */
/* 「⚙️ 설정」 = 상단 헤더의 「어드민 인증됨」 바로 오른쪽(10/20 사장님) · 어드민 인증 뒤에만 보인다 */
.news-settings-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--text);
  font-family: 'NPSfont', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .18s;
}
.news-settings-btn:hover { background: #f5c22e; }
.news-settings-btn[hidden] { display: none; }
.news-settings-btn .ns-emoji { font-size: 16px; }
@media (max-width: 599px) {
  .admin-auth-link { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .news-settings-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .news-settings-btn .ns-text { display: none; }
  .admin-auth-link span { display: none; }
  .admin-auth-link i { font-size: 20px; }
}

/* 창 */
.na-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(26,26,46,.45);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.na-modal.open { display: flex; }
.na-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(43,75,177,.25);
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.na-box.wide { max-width: 1080px; height: calc(100vh - 32px); }
/* 설정 목록 = 표 영역 고정 규칙(머리글·줄이 쪽 넘김·거르기에 움직이지 않게)
   · 상자 높이를 고정하지 않는다(한 쪽 10줄이 스크롤 없이 다 보이고 쪽 번호는 마지막 줄 바로 아래)
   · 줄 수가 바뀌어도 창이 통째로 움직이지 않게 위쪽에 붙인다 · 화면이 낮으면 바깥(어두운 바탕)이 스크롤 */
.na-box.wide.list { height: auto; max-height: none; overflow: visible; }
.na-modal:has(.na-box.list) { align-items: flex-start; overflow-y: auto; scrollbar-gutter: stable; }   /* ★1030 스크롤바 자리를 늘 비워 둔다 — 줄 수(거르기)에 따라 스크롤바가 생겼다 없어지며 표가 7px 옆으로 움직였다 */
#na-set-body, #na-auth-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.na-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;   /* 오른쪽 X 끝 = 본문 오른쪽 끝(20px) */
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.na-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}
/* 아이콘과 제목 글자의 세로 가운데를 맞춘다(둘 다 line-height 1 의 블록) */
.na-title i { display: block; font-size: 22px; line-height: 1; color: var(--blue-deep); }
.na-title > span { display: block; line-height: 1.2; }
.na-x {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.na-x:hover { background: var(--border); }

/* 단추·칸 */
.na-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: var(--blue-deep);
  color: #fff;
  font-family: 'NPSfont', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.na-btn:hover:not(:disabled) { background: #22409a; }
.na-btn:disabled { opacity: .5; cursor: default; }
.na-btn.ghost { background: var(--bg); color: var(--text); }
.na-btn.ghost:hover:not(:disabled) { background: var(--border); }
.na-btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.na-btn.sm i { font-size: 15px; }
.na-btn.danger { background: #e8435a; }
.na-btn.danger:hover:not(:disabled) { background: #d23048; }
.na-btn.danger-t { color: #d23048; }
.na-input, .na-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: 'NPSfont', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}
.na-select { width: auto; min-width: 140px; text-align: center; text-align-last: center; cursor: pointer; }
.na-input:focus, .na-select:focus { outline: none; border-color: var(--blue-deep); }
.na-input.big { height: 52px; font-size: 20px; text-align: center; letter-spacing: 1px; }
.na-msg { min-height: 20px; font-size: 13px; color: #d23048; }
.na-msg:not(.err) { color: var(--text-muted); }
#na-auth-msg { color: #d23048; text-align: center; margin: 6px 0 2px; }
.na-note { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0 0 12px; word-break: keep-all; }
.na-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* 인증 창 본문 */
#na-auth-body > :not(.na-head) { margin-left: 20px; margin-right: 20px; }
/* ⚠️입력칸은 width:100% + 좌우 여백이면 상자 밖으로 20px 튀어나가고, focus() 가 상자를 옆으로 밀어
   내용 전체가 왼쪽으로 붙는다(10/20 사장님 캡처) → 폭은 여백을 뺀 나머지로 */
#na-auth-body > .na-input { width: auto; }
#na-auth-body .na-note:first-of-type { margin-top: 18px; }
#na-auth-body .na-actions { margin-bottom: 20px; }
.na-auth-done {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: #eef2ff;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}
.na-auth-done i { display: block; font-size: 36px; color: var(--blue-deep); margin-bottom: 4px; }
.na-auth-done span { color: var(--text-muted); font-size: 14px; }
.na-auth-done + .na-note { margin-top: 12px; text-align: center; }

/* 설정 — 목록 */
.na-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  flex-shrink: 0;
}
.na-label { font-size: 14px; font-weight: 700; color: var(--text); }
/* ★1030 「카드 n장 · …」 = 쪽 번호 » 바로 오른쪽(단추 묶음 밖으로 붙어 쪽 번호 가운데 자리는 안 움직인다) · 「카드 추가」는 줄 오른쪽 끝 */
.na-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.na-pg-group { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.na-pg-group > .na-count { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); }
.na-pg-group > .na-count:only-child { position: static; transform: none; }
.na-bar .na-add { margin-left: auto; }
.na-table-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px; }
.na-box.list .na-table-wrap { flex: none; overflow: visible; }
.na-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; --row-h: 64px; }
.na-table th {
  position: sticky;
  top: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  height: 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.na-table td {
  height: var(--row-h);
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  padding: 6px 8px;
  overflow: hidden;
}
.na-table td.c-title b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.na-table td.c-title span { display: block; margin-top: 4px; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.na-table td.c-games { font-size: 13px; color: var(--text-muted); line-height: 1.4; word-break: keep-all; }
/* ★1029 나오는 게임 = 한 줄에 둘까지(.na-gl 한 줄씩 · 가운데) · 사용 체크칸 · 끈 카드는 흐리게(체크칸은 그대로) */
.na-table td.c-games .na-gl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.na-table td.c-use input { width: 18px; height: 18px; margin: 0; vertical-align: middle; accent-color: var(--blue-deep); cursor: pointer; }
.na-table td.c-use input:disabled { cursor: default; opacity: .4; }
.na-table tr.is-off td:not(.c-use) { opacity: .45; }
.na-table td.c-act { white-space: nowrap; }
.na-table td.c-act .na-btn + .na-btn { margin-left: 6px; }
.na-table tr.empty td { height: 120px; color: var(--text-muted); font-size: 14px; }
.na-thumb { width: 30px; height: 52px; object-fit: contain; border-radius: 6px; background: var(--bg); display: block; margin: 0 auto; }
.na-dir {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.na-dir.up { background: #e8435a; }
.na-dir.down { background: #4f95d6; }
.na-confirm { font-size: 13px; color: #d23048; font-weight: 700; margin-right: 6px; }
/* 쪽 번호 = 표 마지막 줄 바로 아래 가운데 */
.na-pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 14px 0 4px; }
.na-pg {
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1.5px solid var(--border); border-radius: 9px; background: #fff;
  font-family: 'NPSfont', sans-serif; font-size: 14px; font-weight: 700; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; cursor: pointer;
}
.na-pg i { font-size: 16px; }
.na-pg:hover:not(:disabled) { border-color: var(--blue-light); }
.na-pg.on { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.na-pg:disabled { opacity: .35; cursor: default; }
/* ★1030 사장님 지시 — « ‹ › » = 서브 파란색(클래스 사이트 쪽 번호와 같은 약속 · 10/27) · 잠긴 것은 색만 흐리게(⛔opacity — 테두리까지 흐려진다) */
.na-pg.ic { color: var(--blue-light); }
.na-pg.ic:disabled { opacity: 1; color: rgba(131, 172, 221, .45); }
.na-foot { flex-shrink: 0; padding: 12px 20px 16px; margin: 0; font-size: 13px; color: var(--text-muted); }
.na-foot.err { color: #d23048; }

/* 설정 — 만들기·고치기 */
.na-edit {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 340px 1fr;
}
.na-pv {
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow-y: auto;
}
.na-pv-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 32px; }
.na-pv-tabs button {
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-family: 'NPSfont', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.na-pv-tabs button.on { border-color: var(--blue-deep); color: var(--blue-deep); background: #eef2ff; }
.na-pv-card { width: 280px; aspect-ratio: 638 / 1110; flex-shrink: 0; }
.na-pv-card img { width: 100%; height: 100%; display: block; border-radius: 14px; box-shadow: 0 6px 20px rgba(43,75,177,.18); }
.na-pv-cap { font-size: 12px; color: var(--text-muted); }
.na-form { overflow-y: auto; padding: 8px 24px 20px; }
.na-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; padding: 10px 0; }
.na-row-l { font-size: 14px; font-weight: 700; color: var(--text); min-height: 40px; display: flex; align-items: center; }
.na-hint { margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.na-seg { display: inline-flex; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.na-seg button {
  width: 96px;
  height: 38px;
  border: none;
  background: #fff;
  font-family: 'NPSfont', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.na-seg button + button { border-left: 1.5px solid var(--border); }
.na-seg button.up.on { background: #e8435a; color: #fff; }
.na-seg button.down.on { background: #4f95d6; color: #fff; }
.na-checks { display: flex; gap: 16px; flex-wrap: wrap; min-height: 40px; align-items: center; }
.na-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.na-checks input { width: 18px; height: 18px; accent-color: var(--blue-deep); }
.na-amt { display: flex; align-items: center; gap: 8px; }
.na-amt span:first-child { width: 16px; text-align: center; font-size: 18px; font-weight: 700; }
.na-amt .na-input { width: 140px; text-align: center; }
.na-sec-t {
  margin: 16px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 900;
  color: var(--blue-deep);
}
.na-sec-t span { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.na-sec-t.first { margin-top: 8px; padding-top: 6px; border-top: none; }
.na-seg.type button.on { background: var(--blue-deep); color: #fff; }
.na-table td.c-type { font-size: 13px; font-weight: 700; color: var(--text); }
.na-table tr.orig td.c-title b { font-weight: 700; color: var(--text); }
.na-orig { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg); color: var(--text-muted); font-size: 12px; font-weight: 700; }
.na-arts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
}
.na-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: 'NPSfont', sans-serif;
}
.na-art img { width: 64px; height: 64px; object-fit: contain; }
.na-art span { font-size: 11px; color: var(--text-muted); line-height: 1.3; text-align: center; word-break: keep-all; }
.na-art:hover { border-color: var(--blue-light); }
.na-art.on { border-color: var(--blue-deep); background: #eef2ff; }
.na-auto { margin: 4px 0 0 162px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.na-auto-t { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.na-auto-t em { font-style: normal; color: #d23048; }
.na-auto p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--text); word-break: keep-all; }
.na-edit-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.na-edit-foot .na-msg { flex: 1; }

@media (max-width: 760px) {
  .na-edit { grid-template-columns: 1fr; overflow-y: auto; }
  .na-pv, .na-form { overflow: visible; }
  .na-row { grid-template-columns: 1fr; gap: 4px; }
  .na-auto { margin-left: 0; }
}
/* ★1029 표 최소 폭 = 760px 하나(그보다 좁으면 팝업 안에서만 옆으로 밀어 본다 · 머리글·관리·수정 칸이 팝업 밖으로 나가지 않게)
   ⚠️목록 화면 규칙(.na-box.list .na-table-wrap = overflow visible)보다 세게 — 그 규칙이 760px 이하의 옆 스크롤을 꺼서 표가 127~482px 밖으로 나갔다(10/29 실측) */
.na-table { min-width: 760px; }
.na-table-wrap, .na-box.list .na-table-wrap { overflow-x: auto; }

/* ── 10/20 원래 카드 관리 · 산업/나라 추가 ── */
.na-badge { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 48px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.na-badge.old { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.na-badge.new { background: #eef2ff; color: var(--blue-deep); border: 1px solid #c9d6ff; }
.na-table td.c-edit .na-btn:disabled { opacity: .4; cursor: default; }
.na-checks label.off { color: #b8bfcc; cursor: not-allowed; }
.na-checks label.off input { cursor: not-allowed; }
.na-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.na-sub { margin-top: 10px; padding: 12px; border: 1.5px dashed var(--border); border-radius: 12px; background: #fafbff; display: flex; flex-direction: column; gap: 8px; }
.na-sub[hidden] { display: none; }
.na-sub-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.na-sub-row[hidden] { display: none; }
.na-sub-row .na-input { flex: 1; min-width: 140px; }
.na-sub-row .na-select { min-width: 150px; }
#ni-pv { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.na-btn.armed { background: #e8435a; color: #fff; }
.na-edit-foot .danger-t { margin-right: auto; }
/* 산업 추가 = 이름 · 짧은 이름 · 그림 만들기 한 줄 */
.na-sub-row.one { flex-wrap: nowrap; }
.na-sub-row.one .na-input { flex: 1 1 0; min-width: 0; padding: 8px 10px; font-size: 14px; }
.na-sub-row.one #ni-ko { flex-grow: 1.15; }
.na-sub-row.one { align-items: stretch; }
.na-sub-row.one .na-btn { flex: none; height: auto; white-space: nowrap; }
.na-sub > .na-msg:empty { display: none; }
/* 저장 토스트 */
#na-toast { position: fixed; left: 50%; bottom: 32px; z-index: 100000; transform: translate(-50%, 16px); padding: 12px 22px; border-radius: 12px; background: #1f2a44; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
#na-toast.err { background: #d23048; }
#na-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ══ ★1126 뉴스 설정 · 카드 설정 탭 ══ */
.na-tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--border); flex-shrink: 0; height: 51px; box-sizing: border-box; }
.na-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; margin-bottom: -1px;
  border: 1px solid transparent; border-bottom: none; border-radius: 10px 10px 0 0;
  background: none; color: var(--text-muted);
  font-family: 'NPSfont', sans-serif; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
}
.na-tab i { font-size: 18px; }
.na-tab:hover { color: var(--text); }
.na-tab.on { background: #fff; color: var(--blue-deep); border-color: var(--border); box-shadow: inset 0 3px 0 var(--blue-deep); }
.na-bar-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.na-select.sm { min-width: 104px; }
.na-select.xs { min-width: 0; width: 100%; min-height: 34px; height: 34px; padding: 0 6px; font-size: 14px; }
.na-btn .na-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #d23048; color: #fff; font-size: 12px; }
.na-dash { color: var(--text-muted); font-size: 13px; }
.na-badge.fresh { background: #fff6d6; color: #8a6400; border: 1px solid #ffd252; }
.na-src { display: inline-flex; align-items: center; gap: 2px; color: var(--blue-deep); text-decoration: none; vertical-align: middle; }
.na-src i { font-size: 14px; }
.na-src:hover { text-decoration: underline; }
.na-foot .ti { font-size: 13px; vertical-align: -2px; }
.na-ro { min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text); line-height: 1.5; }
.na-fixed { min-height: 40px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; color: var(--blue-deep); }
.na-fixed span { font-size: 12px; font-weight: 400; color: var(--text-muted); }
/* 뉴스 표 — 줄 높이·열 폭은 카드 표와 같은 약속(--row-h · th style) · 카드 표 실측 줄 높이 65px(썸네일)에 맞춘다 */
.na-table.nw-table { --row-h: 65px; }
.nw-table td.c-title { text-align: center; }
.nw-table td.c-title span { display: flex; align-items: center; justify-content: center; gap: 4px; }
.nw-table td.c-use input, .nw-table th input { width: 18px; height: 18px; margin: 0; vertical-align: middle; accent-color: var(--blue-deep); cursor: pointer; }
.nw-table tr.is-sel td { background: #f3f6ff; }
.nw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-height: 48px; overflow: hidden; }
.nw-chip { display: inline-flex; align-items: center; gap: 1px; height: 22px; padding: 0 6px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.nw-chip i { font-size: 13px; }
.nw-chip.up { background: #fde8eb; color: #c42f45; }
.nw-chip.down { background: #e5f0fa; color: #2f6fae; }
.nw-kind { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.nw-kind.up { background: #e8435a; }
.nw-kind.down { background: #4f95d6; }
.nw-kind.mixed { background: #8b6fd6; }
.nw-kind.none { background: #9aa1ad; }
/* 위에 뜨는 창(뉴스 수정 · 뉴스 생성 · 뉴스 수집) */
.na-box.mid { max-width: 780px; }
#na-pop-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.np-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 24px 16px; }
.np-body .na-row { grid-template-columns: 130px 1fr; }
.np-body .na-sec-t.first { margin-top: 10px; }
/* 움직이는 산업 고르기 = 산업 · 상승 · 하락 · 간편사기 · 주식 */
.ne-eff { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.ne-eff-h, .ne-eff-r { display: grid; grid-template-columns: minmax(120px, 1fr) 64px 64px 104px 104px; align-items: center; gap: 8px; padding: 0 12px; }
.ne-eff-h { height: 34px; background: var(--bg); font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: center; }
.ne-eff-h span:first-child { text-align: left; }
.ne-eff-r { height: 46px; border-top: 1px solid var(--border); }
.ne-eff-r.off { background: #fafbfc; }
.ne-eff-r.off .ne-name span { color: var(--text-muted); }
.ne-eff-r.off select { opacity: .45; }
.ne-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.ne-name input, .ne-dir input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-deep); cursor: pointer; }
.ne-dir { display: flex; justify-content: center; }
.ne-dir.up input { accent-color: #e8435a; }
.ne-dir.down input { accent-color: #4f95d6; }
.ne-dir input:disabled, .ne-name input:disabled { cursor: default; opacity: .4; }
/* 뉴스 수집 */
.cl-inds { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.cl-ind { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 4px 0 12px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; }
.cl-ind label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cl-ind input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-deep); }
.cl-del { width: 28px; height: 28px; border: none; border-radius: 999px; background: none; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cl-del:hover:not(:disabled) { background: var(--bg); color: #d23048; }
.cl-del.armed { width: auto; padding: 0 10px; background: #e8435a; color: #fff; font-size: 12px; font-weight: 700; font-family: 'NPSfont', sans-serif; }
.cl-del:disabled { opacity: .4; cursor: default; }
.cl-add .na-input { width: 220px; }
.cl-mix { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 6px 0 4px; font-size: 14px; }
.cl-mix th, .cl-mix td { height: 36px; border-bottom: 1px solid var(--border); text-align: center; }
.cl-mix thead th { background: var(--bg); color: var(--text-muted); font-size: 12px; }
.cl-mix tbody th { font-size: 13px; color: var(--text-muted); }
.cl-note { margin: 6px 0 0; line-height: 1.6; }
.cl-prog { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f3f6ff; }
.cl-bar { height: 10px; border-radius: 999px; background: #dfe6fb; overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--blue-deep); border-radius: 999px; transition: width .4s; }
.cl-prog-t { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--blue-deep); }
.cl-prog-t.err { color: #d23048; }
.cl-foot { display: flex; align-items: center; gap: 8px; width: 100%; }
.cl-foot .na-msg { flex: 1; }
@media (max-width: 760px) {
  .np-body .na-row { grid-template-columns: 1fr; }
  .ne-eff-h, .ne-eff-r { grid-template-columns: minmax(80px, 1fr) 44px 44px 84px 84px; gap: 4px; padding: 0 8px; }
}
/* ★1127 수집 기간 · 이 기간 시황 */
.cl-period { margin: 6px 0 4px; }
.cl-period .na-input[type="date"] { width: 170px; }
.cl-range { font-size: 13px; color: var(--text-muted); }
.cl-mkt { margin: 6px 0 4px; padding: 12px 14px; border-radius: 12px; background: #f6f8ff; border: 1px solid #e1e8fb; }
.cl-mkt.empty { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.cl-mkt.empty span { flex: 1; }
.cl-mkt-r { display: flex; align-items: center; gap: 10px; }
.cl-mkt-r b { font-size: 15px; font-weight: 900; color: var(--blue-deep); }
.cl-mkt-r span { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); }
.cl-mkt p { margin: 8px 0 6px; font-size: 13px; line-height: 1.6; color: var(--text); word-break: keep-all; }
.cl-tones { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tone { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cl-tone.up { background: #fde8eb; color: #c42f45; }
.cl-tone.down { background: #e5f0fa; color: #2f6fae; }
.cl-tone.flat { background: var(--bg); color: var(--text-muted); }
.cl-mix td.cl-tbd { color: var(--text-muted); font-size: 13px; }
