/* ── 사내 연락처(#/contacts — views/contacts.js, 사용자 승인 2026-10-10) ─────────────────
   읽기 쉬움이 먼저(사용자 요구): 글자 PC 16px · 휴대폰 17px 이상, 누르는 곳 48px 이상, 한 번에 걸기 · 메일.
   PC: 왼쪽 찾기 · 본부 → 팀 트리 + 오른쪽 사람 줄. 휴대폰(720px 아래): 찾기 고정 · 본부 칩 · 사람 줄(줄을 누르면 아래 창).
   앱 색은 짙은 초록(--contacts) — 앱 전환 · 빠른 메뉴의 그림 칸에만. */
:root { --contacts: #0F766E; --contacts-d: #0B5C56; --contacts-t: #E3F4F1; }
.appicon.contacts { background: var(--contacts); }
.tile.contacts { background: var(--contacts-t); color: var(--contacts-d); }
.quick-app i.contacts { background: var(--contacts); }

.cx-page { max-width: 1360px; gap: 18px; font-size: 16px; }
.cx-crumb { font-size: 15px; color: var(--ink3); }
.cx-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.cx-head .grow { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cx-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.cx-summary { font-size: 16px; color: var(--ink2); }
.cx-page .notice { font-size: 16px; padding: 14px 16px; }

.cx-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.cx-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cx-searchbox { position: relative; }
.cx-searchbox > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink3); pointer-events: none; }
.cx-search.input { height: 52px; padding-left: 44px; font-size: 17px; border-radius: 12px; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 700; white-space: nowrap; }
.cx-chip:hover { background: var(--soft); }
.cx-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.cx-chip.vac[aria-pressed="false"] { border-color: #F2C76E; color: #78350F; }
.cx-chip.m-only { display: none; }
.cx-tree { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; border-top: 1px solid var(--line); }
.cx-node { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: none; border-radius: 10px; background: none; color: var(--ink); font-size: 16px; text-align: left; }
.cx-node:hover { background: var(--soft); }
.cx-node .grow { flex: 1; min-width: 0; }
.cx-node b { font-size: 15px; color: var(--ink3); font-weight: 700; }
.cx-node.l0 { font-weight: 700; }
.cx-node.l1 { font-weight: 700; }
.cx-node.l2 { padding-left: 30px; color: var(--ink2); }
.cx-node[aria-pressed="true"] { background: var(--contacts-t); color: var(--contacts-d); }
.cx-node[aria-pressed="true"] b { color: var(--contacts-d); }

.cx-main { min-width: 0; }
.cx-list { display: flex; flex-direction: column; gap: 18px; }
.cx-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cx-dept { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px 8px 20px; background: #F7F9FB; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 700; }
.cx-dept .grow, .cx-sec-head .grow { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.cx-count { font-size: 15px; font-weight: 700; color: var(--ink3); }
.cx-sec-head { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 6px 12px 6px 20px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink2); }
.cx-save { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.cx-save:hover { background: var(--soft); }
.cx-rows { margin: 0; padding: 0; list-style: none; }
.cx-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 190px minmax(0, 1.2fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 8px 12px 8px 8px; border-top: 1px solid #EEF1F5; }
.cx-rows:first-child .cx-row:first-child { border-top: none; }
.cx-row.me { background: #F6FBFA; }
.cx-open { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 60px; padding: 6px 10px; border: none; border-radius: 12px; background: none; color: var(--ink); text-align: left; }
.cx-open:hover { background: var(--soft); }
.cx-avatar { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--contacts-t); color: var(--contacts-d); font-size: 19px; font-weight: 700; }
.cx-avatar.l { width: 64px; height: 64px; font-size: 26px; }
.cx-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cx-name b { font-size: 18px; }
.cx-pos { font-size: 16px; color: var(--ink2); font-weight: 400; }
.cx-me { padding: 1px 8px; border-radius: 999px; background: var(--contacts); color: #fff; font-size: 13px; font-weight: 700; }
.cx-vac.badge { padding: 4px 10px; font-size: 14px; }
.cx-sub { font-size: 16px; color: var(--ink3); }
.cx-phone, .cx-mail { min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.cx-mail { font-size: 16px; }
.cx-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.cx-phone a:hover, .cx-mail a:hover { text-decoration: underline; }
/* 휴대폰의 번호 글자 줄(views/contacts.js — 링크가 아니다, 누르면 사람 창). PC 는 위 tel 링크(.cx-num)만 */
.cx-num-m { display: none; }
.cx-mail a { color: var(--ink2); }
.cx-nophone { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink3); font-size: 16px; }
.cx-fix { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--npms-d); text-decoration: underline; }
.cx-acts { display: flex; gap: 8px; }
.cx-act { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); color: var(--ink); }
.cx-act:hover { background: var(--soft); }
.cx-act.call { border-color: var(--contacts); background: var(--contacts); color: #fff; }
.cx-act.call:hover { background: var(--contacts-d); }
.cx-act.off { opacity: .3; }
.cx-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 17px; color: var(--ink2); }
.cx-empty .btn { height: 48px; font-size: 16px; }

/* 사람 창(nas-kit.js#sheet — 휴대폰은 아래에서 올라온다) */
.cx-sheet { gap: 18px; }
.cx-sheet-head { display: flex; align-items: center; gap: 16px; }
.cx-sheet-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cx-sheet-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 24px; font-weight: 700; }
.cx-sheet-head h2 .cx-pos { font-size: 18px; }
.cx-org { font-size: 17px; color: var(--ink2); }
.cx-facts { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 12px; margin: 0; padding: 14px 16px; background: var(--soft); border-radius: 12px; font-size: 17px; }
.cx-facts dt { color: var(--ink3); }
.cx-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cx-facts .cx-num { font-size: 19px; }
.cx-sheet-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-big.btn { height: 56px; border-radius: 12px; font-size: 17px; }
.cx-big.btn:first-child { grid-column: 1 / -1; background: var(--contacts); border-color: var(--contacts); }
.cx-big.btn.ghost:first-child { background: var(--surface); border-color: var(--line2); }
.cx-sheet .nas-sheet-close { height: 52px; font-size: 17px; }

@media (max-width: 1100px) and (min-width: 720px) {
  .cx-row { grid-template-columns: minmax(0, 1fr) 170px auto; }
  .cx-mail { display: none; }
}
@media (max-width: 719px) {
  .cx-page { padding-top: 14px; gap: 14px; font-size: 17px; }
  .cx-crumb { display: none; }
  .cx-head h1 { font-size: 24px; }
  .cx-summary { font-size: 17px; }
  .cx-body { display: block; }
  .cx-side { position: sticky; top: 0; z-index: 5; margin: 0 -16px 14px; padding: 10px 16px 12px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--ground); }
  .cx-tree { display: none; }
  .cx-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .cx-chips::-webkit-scrollbar { display: none; }
  .cx-chip { min-height: 48px; font-size: 17px; }
  .cx-chip.m-only { display: inline-block; }
  .cx-group { border-radius: 14px; }
  .cx-dept { min-height: 56px; padding: 6px 8px 6px 16px; font-size: 19px; }
  .cx-sec-head { padding: 6px 8px 6px 16px; font-size: 17px; }
  .cx-save .pc-only { display: none; }
  .cx-save { min-height: 48px; font-size: 16px; }
  .cx-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who acts' 'num num'; gap: 0 8px; padding: 8px 10px 6px 6px; min-height: 84px; }
  .cx-open { grid-area: who; min-height: 56px; padding: 4px 6px; }
  .cx-phone { grid-area: num; padding-left: 68px; font-size: 17px; }
  /* 번호 줄 — tel 링크를 두지 않는다(이름 버튼 바로 아래의 136×20px 링크를 잘못 눌러 바로 전화가 걸렸다, 2026-10-24). 높이 44px 의 글자 줄이고
     누르면 이름 버튼과 같이 사람 창(전화 걸기 · 번호 복사) — 둘 사이를 잘못 눌러도 같은 일. 바로 거는 곳은 오른쪽 초록 [전화](52px) 하나.
     줄은 [전화] · [메일] 아래까지 한 줄 전체(num num) — 360px 폭에서도 번호가 두 줄로 갈라지지 않게(예전에는 이름 칸 폭만이라 갈라졌다) */
  .cx-phone .cx-num { display: none; }
  .cx-num-m { display: flex; align-items: center; min-height: 44px; margin-left: -68px; padding-left: 68px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); cursor: pointer; }
  .cx-mail { display: none; }
  .cx-acts { grid-area: acts; align-self: center; }
  .cx-act.pc { display: none; }
  .cx-act { width: 52px; height: 52px; border-radius: 14px; }
  .cx-name b { font-size: 19px; }
  .cx-pos, .cx-sub { font-size: 17px; }
  .cx-facts { font-size: 17px; }
}
