@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --bg: #f6f7fb;
  --card: rgba(255,255,255,.88);
  --solid: #fff;
  --text: #101828;
  --muted: #667085;
  --line: rgba(16,24,40,.08);
  --primary: #2563eb;
  --primary-soft: #e8efff;
  --success: #12b76a;
  --warning: #f79009;
  --danger: #f04438;
  --purple: #7c3aed;
  --shadow: 0 24px 80px rgba(15,23,42,.08);
  --radius-xl: 28px;
  --header-h: 60px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Noto Sans KR', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 36%),
    radial-gradient(circle at top right, rgba(124,58,237,.10), transparent 34%),
    var(--bg);
  color: var(--text);
  letter-spacing: -.03em;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
body.auth-boot #loginScreen, body.auth-boot #appScreen { visibility:hidden; }
.screen { display: none; }
.screen.active { display: block; }
.page { display: none; }
.page.active { display: block; }

/* 버튼 */
.btn { border:0; border-radius:999px; padding:10px 16px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  transition:.2s ease; font-size:13px; white-space:nowrap; }
.btn-primary { background:var(--text); color:#fff; box-shadow:0 10px 24px rgba(16,24,40,.18); }
.btn-primary:hover { transform:translateY(-1px); }
.btn-soft { background:#fff; color:var(--text); border:1px solid var(--line); }
.btn-danger { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.btn-danger:hover { background:#fee2e2; }
/* 테스트 발신 모달 */
.cs-test-phone-input { width:100%; padding:10px 14px; border:1px solid var(--line); border-radius:12px; font-size:18px; font-family:inherit; letter-spacing:.08em; box-sizing:border-box; margin-top:6px; }
.cs-test-phone-input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.cs-test-voice-info { display:flex; align-items:center; gap:10px; padding:10px 14px; background:#f0f9ff; border:1px solid #bae6fd; border-radius:12px; font-size:13px; color:#0369a1; }
.cs-test-msg-preview { margin-top:6px; padding:12px 14px; background:#f9fafb; border:1px solid var(--line); border-radius:12px; font-size:13px; line-height:1.65; white-space:pre-wrap; max-height:120px; overflow-y:auto; color:var(--text); }
.cs-test-result-ok  { background:#dcfce7; border:1px solid #bbf7d0; color:#15803d; }
.cs-test-result-err { background:#fef2f2; border:1px solid #fecaca; color:#dc2626; }
.btn-blue { background:var(--primary); color:#fff; box-shadow:0 10px 24px rgba(37,99,235,.18); }

/* 상태 뱃지 */
.status { display:inline-flex; align-items:center; gap:5px; padding:5px 9px;
  border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.status.blue   { color:var(--primary); background:var(--primary-soft); }
.status.green  { color:var(--success); background:#ecfdf3; }
.status.orange { color:var(--warning); background:#fff7ed; }
.status.red    { color:var(--danger);  background:#fef3f2; }
.status.purple { color:var(--purple);  background:#f5f3ff; }
.muted { color:var(--muted); }

/* ══ 랜딩 페이지 (새 디자인) ══ */
.lp-wrap {
  min-height:100vh; background:#edf2ff;
  display:flex; flex-direction:column; align-items:center;
  padding:0 22px 80px;
}

/* 히어로 */
.lp-hero {
  width:100%; max-width:720px;
  text-align:center;
  padding:80px 0 60px;
  display:flex; flex-direction:column; align-items:center; gap:0;
}
.lp-brand {
  font-size:15px; font-weight:600; letter-spacing:.06em;
  color:var(--primary); margin-bottom:28px;
  text-transform:uppercase;
}
.lp-title {
  margin:0 0 20px;
  font-size:clamp(32px,6vw,58px); line-height:1.15; letter-spacing:-.06em;
  color:var(--text);
}

/* 타이틀 롤링 워드 */
.lp-rotate-wrap {
  display:inline-block;
  position:relative;
  /* 가장 긴 단어 기준으로 너비 확보 — 실제 단어들이 모두 absolute라 0이 되지 않게 */
  min-width:6em;
  min-height:1.2em;
}
.lp-rotate-word {
  display:inline-block;
  position:absolute; left:0; top:0;
  white-space:nowrap;
  font-weight:900;
  opacity:0;
  transform:translateY(20px);
  transition:opacity .4s ease, transform .4s ease;
  /* JS가 data-color로 색상 주입 */
}
.lp-rotate-word.active {
  opacity:1;
  transform:translateY(0);
  position:relative; /* active만 흐름에 참여 */
}
.lp-rotate-word.exit {
  opacity:0;
  transform:translateY(0); /* 제자리에서 그냥 사라짐 */
  transition:opacity .3s ease;
  position:absolute;
}

.lp-sub {
  margin:0 0 40px;
  color:var(--muted); font-size:16px; line-height:1.7;
}
.lp-login-btn { padding:14px 36px; font-size:16px; }

/* 데모 섹션 */
.lp-demos {
  width:100%; max-width:900px;
}
.lp-demos-title {
  text-align:center; font-size:18px; font-weight:700;
  letter-spacing:-.04em; margin:0 0 24px; color:var(--text);
}
.lp-demo-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px;
}
.lp-demo-card {
  aspect-ratio:4/3;
  display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--line);
  border-radius:18px; padding:12px;
  box-shadow:0 4px 16px rgba(15,23,42,.05);
  transition:.15s ease; overflow:hidden;
}
.lp-demo-card:hover { box-shadow:0 6px 24px rgba(37,99,235,.10); border-color:rgba(37,99,235,.2); }

/* 아이콘 — 좌측 상단 */
.lp-demo-icon { font-size:20px; line-height:1; align-self:flex-start; }

/* 텍스트 — 중간 공간 채움 */
.lp-demo-info {
  flex:1; display:flex; flex-direction:column; justify-content:flex-end; padding-bottom:8px;
}
.lp-demo-info strong {
  display:block; font-size:14px; font-weight:800; line-height:1.3;
  letter-spacing:-.03em; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.lp-demo-info span {
  display:block; font-size:12px; color:var(--muted); margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* 하단 플레이어 바 */
.lp-player-bar {
  display:flex; align-items:center; gap:7px;
  background:rgba(37,99,235,.06); border-radius:8px; padding:5px 8px;
}
.lp-play-btn {
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  border:0; background:var(--primary); color:#fff;
  font-size:9px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:.15s ease; box-shadow:0 2px 6px rgba(37,99,235,.35);
}
.lp-play-btn:hover { background:#1d4ed8; transform:scale(1.08); }
.lp-play-btn.playing { background:#f04438; }
.lp-progress-track {
  flex:1; height:3px; background:rgba(37,99,235,.15); border-radius:2px; overflow:hidden;
}
.lp-progress-fill {
  height:100%; width:0%; background:var(--primary); border-radius:2px;
  transition:width .1s linear;
}

/* 로그인 모달 */
.modal-sm { max-width:400px !important; }
.login-error {
  background:#fff5f5; border:1px solid rgba(240,68,56,.2);
  border-radius:10px; padding:10px 13px;
  font-size:13px; color:var(--danger); margin-bottom:14px;
}
.login-remember {
  display:flex; align-items:center; gap:7px;
  font-size:13px; color:var(--muted); cursor:pointer;
  margin-bottom:4px;
}

/* 기존 로그인 스타일 (하위 호환) */
.login-hero { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.landing { width:min(1160px,100%); display:grid; grid-template-columns:1.15fr .85fr; gap:22px; align-items:stretch; }
.landing-main, .login-card, .floating-demo, .panel, .stat-card {
  border:1px solid var(--line); background:var(--card); backdrop-filter:blur(24px); box-shadow:var(--shadow); }
.landing-main, .login-card, .floating-demo { border-radius:36px; padding:34px; }
.badge { display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border-radius:999px;
  background:#fff; border:1px solid var(--line); font-weight:700; font-size:13px; color:var(--primary); }
.landing-main h1 { margin:24px 0 18px; font-size:clamp(42px,7vw,78px); line-height:.94; letter-spacing:-.09em; }
.landing-main p { color:var(--muted); font-size:17px; line-height:1.65; margin:0; max-width:670px; }
.landing-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:28px; }
.features { margin-top:34px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.feature { background:rgba(255,255,255,.72); border:1px solid var(--line); border-radius:20px; padding:16px; }
.feature strong { display:block; margin-bottom:6px; }
.feature span { color:var(--muted); font-size:13px; line-height:1.4; }
.login-side { display:grid; gap:22px; }
.login-card { display:flex; flex-direction:column; justify-content:center; }
.login-card h2 { margin:0 0 8px; font-size:30px; letter-spacing:-.06em; }
.login-card p { margin:0 0 24px; color:var(--muted); }
.mini-row { display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:12px 0; border-bottom:1px solid var(--line); }
.mini-row:last-child { border-bottom:0; }
.mini-row strong { display:block; font-size:14px; }
.mini-row span { color:var(--muted); font-size:12px; }


/* ──── 스티키 헤더 ──── */
.sticky-header {
  position:sticky; top:0; z-index:40;
  height:var(--header-h);
  background:#edf2ff;
  border-bottom:1px solid rgba(37,99,235,.10);
  display:flex; align-items:center;
  padding:0 22px; gap:18px;
  box-shadow:0 2px 12px rgba(37,99,235,.06);
}
.header-brand-text { font-weight:400; font-size:17px; letter-spacing:-.05em; flex-shrink:0; color:var(--text); }
.header-brand { display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; cursor:pointer; }
.header-brand-mark {
  width:34px; height:34px; border-radius:11px;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  display:grid; place-items:center; color:#fff; font-weight:900; font-size:14px;
  box-shadow:0 6px 16px rgba(37,99,235,.25);
}
.header-brand-name { font-weight:800; font-size:16px; letter-spacing:-.04em; }
.header-org { font-size:12px; color:var(--muted); font-weight:500; }

/* ──── 헤더 메뉴 드롭다운 ──── */
.header-menu-select {
  position:relative; display:flex; align-items:center; gap:6px;
  cursor:pointer; padding:7px 12px; border-radius:10px;
  transition:.15s ease; user-select:none; flex-shrink:0;
  background:rgba(37,99,235,.07);
}
.header-menu-select:hover { background:rgba(37,99,235,.13); }
.header-menu-label { font-weight:700; font-size:15px; letter-spacing:-.04em; }
.header-chevron { color:var(--muted); font-size:12px; transition:transform .2s ease; }
.header-menu-select .header-chevron { font-size:22px; font-weight:900; color:var(--text); }
.header-menu-select.open .header-chevron,
.header-user-btn.open .header-chevron { transform:rotate(180deg); }
.header-nav-dropdown {
  display:none; position:absolute; top:calc(100% + 8px); left:0;
  min-width:176px; background:rgba(255,255,255,.98);
  border:1px solid var(--line); border-radius:16px;
  box-shadow:0 16px 48px rgba(15,23,42,.14); padding:6px; z-index:200;
}
.header-menu-select.open .header-nav-dropdown { display:block; }
.nav-drop-item {
  display:grid; grid-template-columns:28px 1fr; align-items:center; column-gap:10px; width:100%;
  padding:8px 10px; border-radius:10px; color:#344054;
  font-weight:600; font-size:13px; background:transparent;
  border:0; cursor:pointer; text-align:left; transition:.12s ease; white-space:nowrap;
}
.nav-drop-item:hover { background:rgba(37,99,235,.07); color:var(--primary); }
.nav-drop-item.active { background:var(--text); color:#fff; }
.nav-icon {
  width:28px; height:28px; border-radius:8px;
  display:grid; place-items:center; flex-shrink:0;
  background:rgba(37,99,235,.08); color:var(--primary);
  font-size:15px; line-height:1; font-weight:800;
}
.nav-drop-item.active .nav-icon { background:rgba(255,255,255,.16); color:#fff; }
.nav-label { min-width:0; line-height:1.2; }

/* 유저 드롭다운 */
.header-user-btn {
  position:relative; display:flex; align-items:center; gap:6px;
  padding:7px 11px; border-radius:999px; cursor:pointer; transition:.15s ease;
  border:1px solid var(--line); background:rgba(255,255,255,.8); user-select:none; flex-shrink:0;
}
.header-user-btn:hover { background:#fff; }
.header-online-dot {
  width:8px; height:8px; border-radius:50%;
  background:#d1d5db; flex-shrink:0;
  transition: background .3s, box-shadow .3s;
}
.header-online-dot.sip-online {
  background:#12b76a;
  box-shadow:0 0 0 2px rgba(18,183,106,.25);
}
.header-user-name { font-size:13px; font-weight:700; }
.user-dropdown {
  display:none; position:absolute; top:calc(100% + 8px); right:0;
  min-width:150px; background:rgba(255,255,255,.98);
  border:1px solid var(--line); border-radius:14px;
  box-shadow:0 16px 48px rgba(15,23,42,.14); padding:6px; z-index:200;
}
.header-user-btn.open .user-dropdown { display:block; }
.user-drop-item {
  display:block; width:100%; padding:9px 12px; border-radius:9px;
  background:transparent; border:0; font-size:13px; font-weight:600;
  color:#344054; cursor:pointer; text-align:left; transition:.12s ease;
}
.user-drop-item:hover { background:rgba(37,99,235,.07); color:var(--primary); }

.header-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.pill { display:none; }

/* 본문 */
.main { padding:24px 22px; min-width:0; max-width:1440px; margin:0 auto; }
.topbar { display:flex; justify-content:space-between; align-items:center;
  gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.title-block h2 { margin:0; font-size:clamp(18px,2.6vw,28px); letter-spacing:-.06em; line-height:1.05; }
.title-block p { margin:7px 0 0; color:var(--muted); font-size:13px; }
.top-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; justify-content:flex-end; }

/* 참여자 메인 탭 */
.pt-main-tabs { display:flex; gap:4px; background:rgba(16,24,40,.05); border-radius:14px; padding:4px; }
.pt-main-tab {
  padding:8px 20px; border:0; border-radius:10px; background:transparent;
  font-size:14px; font-weight:700; color:var(--muted); cursor:pointer;
  transition:.15s ease; white-space:nowrap;
}
.pt-main-tab.active { background:#fff; color:var(--text); box-shadow:0 2px 8px rgba(16,24,40,.1); }
.pt-main-tab:not(.active):hover { color:var(--text); }

/* 그리드 */
.grid { display:grid; gap:16px; }
.stats { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:16px; }
.stat-card { border-radius:var(--radius-xl); padding:20px; min-height:130px; position:relative; overflow:hidden; }
.stat-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:18px; }
.stat-name { color:var(--text); font-weight:700; font-size:15px; }
.stat-icon { width:34px; height:34px; border-radius:11px; display:grid; place-items:center;
  background:var(--primary-soft); color:var(--primary); }
.stat-value { font-size:30px; font-weight:900; letter-spacing:-.07em; }
.stat-desc { margin-top:5px; color:var(--muted); font-size:12px; font-weight:600; }
.layout { grid-template-columns:1.2fr .8fr; align-items:start; }
.two-col { grid-template-columns:.95fr 1.05fr; align-items:start; }
.panel { border-radius:var(--radius-xl); overflow:hidden; }
.panel-head { padding:16px 20px; display:flex; align-items:center;
  justify-content:space-between; gap:14px; border-bottom:1px solid var(--line); }
.panel-head h3 { margin:0; font-size:17px; letter-spacing:-.05em; }
.panel-head p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.panel-body { padding:14px; }
.segment { display:inline-flex; padding:3px; background:#f2f4f7; border-radius:999px; gap:3px; flex-shrink:0; }
.segment button { border:0; background:transparent; border-radius:999px;
  padding:6px 10px; color:var(--muted); font-weight:700; font-size:12px; }
.segment button.active { background:#fff; color:var(--text); box-shadow:0 5px 12px rgba(16,24,40,.08); }

/* 콜 아이템 */
.call-list, .task-list { padding:7px; }
.call-item, .task-item { display:grid; grid-template-columns:36px 1fr auto;
  align-items:center; gap:11px; padding:11px; border-radius:16px; transition:.15s ease; cursor:pointer; }
.call-item:hover, .task-item:hover { background:rgba(37,99,235,.05); }
.stt-btn {
  width:36px; height:36px; border-radius:10px; border:1.5px solid #cbd5e1;
  background:#f8fafc; color:#64748b; font-size:10px; font-weight:800;
  display:grid; place-items:center; cursor:pointer; flex-shrink:0;
  transition:.15s ease;
}
.stt-btn.has-stt { border-color:#2563eb; background:#eff6ff; color:#2563eb; }
.stt-btn.has-stt:hover { background:#2563eb; color:#fff; }
.stt-btn:disabled { opacity:.35; cursor:default; }
.item-title { font-weight:700; font-size:15px; }
.item-sub { margin-top:3px; color:var(--muted); font-size:12px; }
.call-mgr {
  display:inline-flex; align-items:center;
  font-size:13px; font-weight:700; color:#1d4ed8;
  background:#eff6ff; border:1px solid #bfdbfe;
  border-radius:999px; padding:3px 11px;
  white-space:nowrap;
}
.call-mgr.muted { color:#6b7280; background:#f3f4f6; border-color:#e5e7eb; font-weight:500; }

.quick-grid { padding:14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.quick-card { min-height:110px; padding:15px; border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fafc); border:1px solid var(--line); transition:.2s ease; cursor:pointer; }
.quick-card:hover { transform:translateY(-2px); box-shadow:0 14px 32px rgba(15,23,42,.08); }
.quick-card .emoji { font-size:20px; margin-bottom:12px; }
.quick-card strong { display:block; font-size:14px; letter-spacing:-.04em; }
.quick-card span { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.35; }
.campaign-list { padding:7px; }
.campaign-item { padding:9px 11px; border-radius:14px; }
.campaign-item:not(:last-child) { margin-bottom:2px; }
.campaign-top { display:flex; align-items:center; gap:7px; margin-bottom:7px; }
.campaign-type-icon { font-size:12px; color:var(--muted); }
.campaign-name { font-size:14px; font-weight:600; flex:1; }
.campaign-foot { display:flex; align-items:center; gap:9px; }
.campaign-bar { flex:1; height:7px; background:#eef2f6; border-radius:999px; overflow:hidden; }
.campaign-bar span { display:block; height:100%; background:linear-gradient(90deg,#2563eb,#7c3aed); border-radius:999px; }
.campaign-count { font-size:11px; color:var(--muted); white-space:nowrap; }
.progress-box { padding:16px 20px 20px; }
.progress-row { margin-bottom:16px; }
.progress-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; font-weight:600; margin-bottom:7px; }
.bar { height:9px; background:#eef2f6; border-radius:999px; overflow:hidden; }
.bar span { display:block; height:100%; background:linear-gradient(90deg,#2563eb,#7c3aed); border-radius:999px; }

/* ──── 전화함 탭 ──── */
.calltab-wrap { display:flex; gap:8px; margin-bottom:14px; }
.calltab { display:inline-flex; align-items:center; gap:6px; padding:7px 16px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; transition:.15s ease; }
.calltab.active { background:#1d4ed8; color:#fff; border-color:#1d4ed8; }
.calltab:not(.active):hover { color:var(--text); border-color:#c7d2dc; }
.calltab-count { font-size:11px; font-weight:700; background:rgba(0,0,0,.08); border-radius:999px; padding:1px 6px; }
.calltab.active .calltab-count { background:rgba(255,255,255,.25); }
.call-card-list { display:flex; flex-direction:column; gap:8px; }
.call-card { display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:11px; padding:14px 16px; border-radius:16px; background:#fff; border:1px solid var(--line); box-shadow:0 1px 4px rgba(16,24,40,.05); cursor:pointer; transition:.15s ease; }
.call-card:hover { border-color:#c7d2dc; box-shadow:0 2px 8px rgba(16,24,40,.08); }
.call-card-simple { grid-template-columns:1fr auto; cursor:default; }
.call-card-simple .call-card-left { grid-column:auto; min-width:0; }
.call-card-status { display:inline-block; width:10px; height:10px; border-radius:50%; background:#16a34a; flex-shrink:0; }
.call-card-status.is-missed { background:#ef4444; }
.call-card-time { color:var(--muted); font-size:13px; font-weight:700; white-space:nowrap; }
.call-card-time.is-missed { color:#dc2626; }
.call-route { display:flex; align-items:center; gap:0; min-width:0; }
.call-route-caller { color:var(--text); font-weight:800; }
.call-route-manager { color:var(--muted); font-weight:650; }
.call-route-arrow { color:#94a3b8; font-weight:800; margin:0 12px; }
.call-done-icon { width:36px; height:36px; border-radius:50%; background:#f0fdf4; border:1px solid #bbf7d0; display:flex; align-items:center; justify-content:center; font-size:14px; color:#16a34a; flex-shrink:0; }

/* ──── 캠페인 폼 공통 ──── */
.campaign-form-wrap { display:flex; flex-direction:column; gap:10px; max-width:780px; }
.cs-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); padding:14px 18px; }
.cs-label { font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; display:flex; align-items:center; gap:10px; }

/* 캠페인명 인라인 카드 */
.cs-card-inline { display:flex; align-items:center; gap:14px; }
.cs-card-inline .cs-label { flex-shrink:0; margin-bottom:0; font-size:12px; }
.cs-name-input { width:100%; box-sizing:border-box; padding:9px 12px; border:1px solid var(--line); border-radius:10px; font-size:14px; font-weight:600; font-family:inherit; }
.cs-name-input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.1); }

/* ──── 발송대상 드롭다운 2-col ──── */
.cs-tgt-selrow { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.cs-tgt-sel { flex:1; min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:10px; font-size:13px; font-family:inherit; background:#fff; cursor:pointer; }
.cs-tgt-sel:focus { outline:none; border-color:#2563eb; }
.cs-tgt-sel:disabled { background:#f9fafb; color:#9ca3af; cursor:default; }
.cs-tgt-rows { display:flex; flex-direction:column; gap:6px; }
.cs-tgt-row { display:flex; align-items:center; gap:10px; padding:8px 12px; background:#f8fafc; border:1px solid var(--line); border-radius:10px; font-size:13px; }
.cs-tgt-row-label { flex:1; font-weight:600; color:var(--text); }
.cs-tgt-row-count { color:#1d4ed8; font-weight:700; font-size:12px; white-space:nowrap; }
.cs-tgt-row-del { border:0; background:none; color:#9ca3af; font-size:16px; cursor:pointer; padding:0 2px; line-height:1; flex-shrink:0; }
.cs-tgt-row-del:hover { color:#ef4444; }
.cs-count-badge { background:#eff6ff; color:#1d4ed8; font-size:11px; font-weight:700; border-radius:999px; padding:2px 9px; border:1px solid #bfdbfe; }
.cs-target-tabs { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:12px; }
.cs-target-tab { padding:6px 14px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; transition:.15s; }
.cs-target-tab.active { background:#1d4ed8; color:#fff; border-color:#1d4ed8; }
.cs-target-sub { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.cs-all-note { font-size:13px; color:var(--text); }
.cs-tag-wrap { display:flex; flex-wrap:wrap; gap:6px; min-height:24px; }
.cs-tag { display:inline-flex; align-items:center; gap:5px; background:#eff6ff; border:1px solid #bfdbfe; color:#1d4ed8; font-size:12px; font-weight:600; border-radius:999px; padding:4px 10px; }
.cs-tag button { border:0; background:none; color:#93c5fd; cursor:pointer; font-size:15px; line-height:1; padding:0 0 0 2px; }
.cs-person-search { position:relative; flex:1; }
.cs-person-search input { width:100%; box-sizing:border-box; padding:8px 12px; border:1px solid var(--line); border-radius:10px; font-size:13px; font-family:inherit; }
.cs-search-drop { position:absolute; top:calc(100% + 4px); left:0; right:0; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 4px 16px rgba(0,0,0,.1); z-index:300; max-height:200px; overflow-y:auto; display:none; }
.cs-search-drop.open { display:block; }
.cs-drop-item { padding:9px 14px; font-size:13px; cursor:pointer; }
.cs-drop-item:hover { background:#f5f7ff; }
.cs-drop-item:not(:last-child) { border-bottom:1px solid var(--line); }
.cs-inner-tabs { display:flex; gap:3px; background:rgba(16,24,40,.05); border-radius:12px; padding:3px; margin-bottom:14px; }
.cs-inner-tab { flex:1; padding:7px 8px; border-radius:10px; border:0; background:none; font-size:12px; font-weight:600; color:var(--muted); cursor:pointer; transition:.15s; white-space:nowrap; }
.cs-inner-tab.active { background:#fff; color:var(--text); box-shadow:0 2px 8px rgba(16,24,40,.1); }
.cs-voice-head { justify-content:space-between; align-items:center; gap:12px; }
.cs-voice-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.cs-voice-search { width:150px; height:31px; border:1px solid var(--line); border-radius:8px; background:#fff; padding:0 10px; font-size:12px; font-family:inherit; color:var(--text); outline:none; }
.cs-voice-search:focus { border-color:rgba(37,99,235,.45); box-shadow:0 0 0 3px rgba(37,99,235,.09); }
.cs-saved-list { display:flex; flex-direction:column; gap:0; max-height:172px; overflow-y:auto; border:1px solid var(--line); border-radius:14px; }
.cs-saved-item { min-height:57px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 12px; background:#fff; cursor:pointer; transition:.1s; }
.cs-saved-item:not(:last-child) { border-bottom:1px solid var(--line); }
.cs-saved-item:hover { background:#f5f8ff; }
.cs-saved-item.selected { background:#eff6ff; }
.cs-saved-item-radio { position:absolute; opacity:0; pointer-events:none; }
.cs-saved-name { font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cs-selected-badge { display:none; flex-shrink:0; border:1px solid #93c5fd; background:#dbeafe; color:#1d4ed8; border-radius:999px; padding:3px 8px; font-size:11px; font-weight:700; white-space:nowrap; }
.cs-saved-item.selected .cs-selected-badge { display:inline-flex; }
.cs-voice-play-btn { flex-shrink:0; width:58px; height:31px; border:1px solid var(--line); background:#fff; color:#374151; border-radius:8px; font-size:12px; font-weight:700; font-family:inherit; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.cs-voice-play-btn:hover { border-color:#bfdbfe; background:#f8fbff; color:#1d4ed8; }
.cs-voice-play-btn.is-playing { border-color:#2563eb; background:#2563eb; color:#fff; }
.cs-mini-wave { display:none; align-items:center; gap:3px; height:18px; }
.cs-mini-wave i { display:block; width:3px; height:8px; border-radius:999px; background:currentColor; animation:voiceWave .72s ease-in-out infinite; }
.cs-mini-wave i:nth-child(2) { animation-delay:.1s; }
.cs-mini-wave i:nth-child(3) { animation-delay:.2s; }
.cs-mini-wave i:nth-child(4) { animation-delay:.3s; }
.cs-voice-play-btn.is-playing .cs-play-label { display:none; }
.cs-voice-play-btn.is-playing .cs-mini-wave { display:flex; }
.cs-saved-empty { padding:18px 12px; color:var(--muted); font-size:13px; text-align:center; }
@keyframes voiceWave { 0%,100% { transform:scaleY(.45); } 50% { transform:scaleY(1.45); } }
/* ── 모달 ── */
.cs-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9000; display:flex; align-items:center; justify-content:center; padding:20px; }
.cs-modal { background:#fff; border-radius:20px; width:100%; max-width:520px; box-shadow:0 20px 60px rgba(0,0,0,.18); overflow:hidden; }
.cs-modal-head { display:flex; align-items:center; justify-content:space-between; padding:18px 22px 0; }
.cs-modal-head strong { font-size:16px; font-weight:700; }
.cs-modal-close { border:0; background:none; font-size:20px; color:var(--muted); cursor:pointer; line-height:1; }
.cs-modal-body { padding:16px 22px; }
.cs-modal-tab-panels { min-height:240px; }
.cs-modal-panel { display:flex; flex-direction:column; }
.cs-modal-save { display:flex; gap:8px; padding:12px 22px 22px; align-items:center; border-top:1px solid var(--line); }
.cs-modal-save input { flex:1; min-width:0; padding:9px 12px; border:1px solid var(--line); border-radius:10px; font-size:13px; font-family:inherit; }
/* ── 예약 캠페인 카드 ── */
.cs-reserve-card { background:#fff; border:1px solid #bfdbfe; border-left:4px solid #2563eb; border-radius:14px; padding:16px 18px; }
.cs-reserve-card-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.cs-reserve-badge { background:#dbeafe; color:#1d4ed8; font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px; white-space:nowrap; }
.cs-reserve-card-foot { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
.cs-tts-area { width:100%; box-sizing:border-box; padding:12px; border:1px solid var(--line); border-radius:12px; font-size:13px; resize:none; font-family:inherit; line-height:1.6; }
.cs-tts-opts { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; align-items:center; }
.cs-save-row { display:flex; gap:8px; margin-top:12px; align-items:center; }
.cs-save-row input { flex:1; padding:8px 12px; border:1px solid var(--line); border-radius:10px; font-size:13px; font-family:inherit; }
.cs-file-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:28px; border:2px dashed var(--line); border-radius:14px; cursor:pointer; transition:.15s; text-align:center; font-size:13px; }
.cs-file-drop:hover { border-color:#2563eb; background:#f5f8ff; }
.cs-file-name { font-size:13px; color:#1d4ed8; font-weight:600; margin-top:8px; }
.cs-record-area { display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px 20px 20px; }
.cs-record-btn { width:72px; height:72px; border-radius:50%; border:3px solid #ef4444; background:#fff; font-size:26px; cursor:pointer; transition:background .15s, box-shadow .15s; flex-shrink:0; }
@keyframes bc-pulse { 0%{box-shadow:0 0 0 0 rgba(239,68,68,.45)} 70%{box-shadow:0 0 0 14px rgba(239,68,68,0)} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0)} }
.cs-record-btn.recording { background:#fef2f2; animation:bc-pulse 1.2s ease-out infinite; }
.cs-mic-status { font-size:12px; font-weight:600; padding:4px 14px; border-radius:20px; margin:8px 0 0; text-align:center; align-self:stretch; }
.cs-mic-checking { background:#f3f4f6; color:#6b7280; }
.cs-mic-granted  { background:#dcfce7; color:#16a34a; }
.cs-mic-denied   { background:#fef2f2; color:#dc2626; }
#bcWaveCanvas { width:100%; border-radius:10px; background:#f0f9ff; }
.cs-msg-toolbar { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.cs-var-btn { font-size:12px; padding:4px 10px; border-radius:8px; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; cursor:pointer; font-weight:600; font-family:inherit; }
.cs-char-count { margin-left:auto; font-size:11px; color:var(--muted); }
.cs-msg-area { width:100%; box-sizing:border-box; padding:12px; border:1px solid var(--line); border-radius:12px; font-size:14px; resize:none; font-family:inherit; line-height:1.65; }
.cs-mms-img { width:100%; border-radius:12px; margin-bottom:10px; max-height:300px; object-fit:contain; border:1px solid var(--line); }
.cs-preview-wrap { background:#e8e8e8; border-radius:16px; padding:16px; max-width:300px; }
.cs-preview-sender { font-size:11px; color:#666; margin-bottom:8px; font-weight:600; }
.cs-preview-bubble { background:#fff; border-radius:12px 12px 12px 4px; padding:12px 14px; font-size:13px; line-height:1.65; box-shadow:0 1px 4px rgba(0,0,0,.1); word-break:keep-all; }
.cs-schedule-toggle { display:flex; gap:24px; margin-bottom:14px; }
.cs-radio { display:flex; align-items:center; gap:7px; font-size:14px; font-weight:600; cursor:pointer; }
.cs-radio input[type=radio] { width:16px; height:16px; cursor:pointer; accent-color:#2563eb; }
.cs-sched-fields { margin-bottom:14px; }
.cs-action-row { display:flex; justify-content:flex-end; gap:10px; }
.cs-submit-btn { min-width:130px; }
.cs-hist-list { display:flex; flex-direction:column; gap:8px; }
.cs-hist-item { display:flex; align-items:center; gap:12px; padding:11px 14px; border:1px solid var(--line); border-radius:12px; }
.cs-hist-main { flex:1; }

/* ──── 캠페인 페이지 탭 ──── */
.cs-page-tabs { display:flex; gap:4px; margin-bottom:18px; background:rgba(16,24,40,.05); border-radius:14px; padding:4px; max-width:780px; }
.cs-page-tab { flex:1; padding:9px 14px; border:0; border-radius:11px; background:none; font-size:14px; font-weight:600; color:var(--muted); cursor:pointer; transition:.15s; }
.cs-page-tab.active { background:#fff; color:var(--text); box-shadow:0 2px 8px rgba(16,24,40,.1); }

/* ──── 히스토리 카드 ──── */
.cs-hist-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px 20px; }
.cs-hist-card-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.cs-hist-card-name { font-size:15px; font-weight:700; flex:1; }
.cs-hist-date { font-size:12px; color:var(--muted); font-weight:500; white-space:nowrap; flex-shrink:0; }
.cs-type-badge { font-size:11px; font-weight:700; border-radius:999px; padding:3px 10px; flex-shrink:0; }
.cs-type-badge.bc  { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.cs-type-badge.sms { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.cs-type-badge.lms { background:#fefce8; color:#a16207; border:1px solid #fde68a; }
.cs-type-badge.mms { background:#fdf4ff; color:#9333ea; border:1px solid #e9d5ff; }
.cs-hist-card-meta { display:flex; flex-wrap:wrap; gap:6px 20px; margin-bottom:14px; }
.cs-hist-meta-item { font-size:13px; color:var(--muted); }
.cs-hist-meta-item strong { color:var(--text); font-weight:600; }
.cs-hist-card-foot { display:flex; justify-content:flex-end; }

/* ──── 예약발신 날짜/시각 균등 그리드 ──── */
.cs-sched-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cs-sched-input {
  width:100%; box-sizing:border-box;
  height:40px; padding:0 12px;
  border:1px solid var(--line); border-radius:10px;
  font-size:14px; font-family:inherit; background:#fff;
  -webkit-appearance:none; appearance:none;
  display:flex; align-items:center;
}
.cs-sched-input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.1); }
input[type="date"].cs-sched-input {
  -webkit-appearance:none; appearance:none;
  background-image:none;
  line-height:1;
}



.progress-row { margin-bottom:16px; }
.progress-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; font-weight:600; margin-bottom:7px; }
.bar { height:9px; background:#eef2f6; border-radius:999px; overflow:hidden; }
.bar span { display:block; height:100%; background:linear-gradient(90deg,#2563eb,#7c3aed); border-radius:999px; }

/* ──── 참여자 툴바 ──── */
.pt-search-row {
  display:flex; align-items:center; gap:8px;
  margin-bottom:6px;
}
.pt-toolbar-top {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 2px;
  margin-top:10px;
  margin-bottom:8px;
}
.pt-total-count { font-size:13px; font-weight:700; color:var(--text); margin-left:8px; }
.pt-search-row .search { flex:1; max-width:none; }
.search { position:relative; }
.pt-filter-btn {
  position:relative; display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  border:1px solid var(--line); background:#fff; color:var(--muted);
  cursor:pointer; transition:.15s ease;
}
.pt-filter-btn:hover { border-color:var(--primary); color:var(--primary); }
.pt-filter-btn.has-filter { border-color:var(--primary); color:var(--primary); background:var(--primary-soft); }
.pt-filter-badge {
  position:absolute; top:-5px; right:-5px;
  min-width:16px; height:16px; border-radius:999px;
  background:var(--primary); color:#fff;
  font-size:10px; font-weight:800; line-height:16px; text-align:center; padding:0 4px;
}
.pt-filter-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; min-height:0; }
.pt-filter-tag {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 10px 3px 10px; border-radius:999px;
  background:var(--primary-soft); color:var(--primary);
  font-size:12px; font-weight:700; border:1px solid rgba(37,99,235,.2);
}
.pt-filter-tag button {
  background:none; border:0; color:var(--primary); font-size:13px;
  line-height:1; padding:0; cursor:pointer; font-weight:900;
}
/* 필터 모달 */
.filter-section { margin-bottom:18px; }
.filter-section:last-child { margin-bottom:0; }
.filter-section-label { font-size:12px; font-weight:700; color:var(--muted); margin-bottom:8px; }
.select-soft.w-full { width:100%; border-radius:10px; padding:9px 12px; }
.search input { width:100%; border:1px solid var(--line); background:rgba(255,255,255,.9);
  border-radius:999px; padding:8px 13px 8px 36px; outline:none; font-size:13px; }
.search input:focus { border-color:rgba(37,99,235,.4); box-shadow:0 0 0 3px rgba(37,99,235,.09); }
.search::before { content:''; position:absolute; left:12px; top:50%;
  transform:translateY(-50%); width:16px; height:16px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:contain; }
.select-soft { border:1px solid var(--line); background:#fff; border-radius:999px;
  padding:8px 11px; color:var(--text); font-weight:600; font-size:13px; cursor:pointer; }
.select-soft:focus { outline:none; border-color:rgba(37,99,235,.4); }

/* 출근 필터 토글 */
.att-group { display:inline-flex; background:#f2f4f7; border-radius:999px; padding:3px; gap:2px; }
.att-btn { border:0; background:transparent; border-radius:999px;
  padding:6px 11px; font-weight:700; font-size:12px; color:var(--muted); white-space:nowrap; transition:.15s ease; }
.att-btn.active { background:#fff; color:var(--text); box-shadow:0 4px 10px rgba(16,24,40,.08); }
.att-btn.active.green  { color:var(--success); }
.att-btn.active.orange { color:var(--warning); }

/* 뷰 모드 토글 (요약/상세) */
.view-group { display:inline-flex; background:#f2f4f7; border-radius:999px; padding:3px; gap:2px; }
.view-btn { border:0; background:transparent; border-radius:999px;
  padding:6px 11px; font-weight:700; font-size:12px; color:var(--muted); white-space:nowrap; transition:.15s ease; }
.view-btn.active { background:#fff; color:var(--text); box-shadow:0 4px 10px rgba(16,24,40,.08); }

/* 검색결과 카운트 */
.result-count { font-size:12px; color:var(--muted); font-weight:600; white-space:nowrap; margin-left:auto; }

/* ──── 참여자 카드 뷰 (요약) ──── */
.pt-cards { display:flex; flex-direction:column; gap:5px; }
.pt-card {
  display:grid; grid-template-columns:28px 1fr auto;
  align-items:center; gap:10px;
  background:rgba(255,255,255,.78); border:1px solid var(--line);
  border-radius:14px; padding:10px 13px; min-height:54px;
}
.pt-card-info { min-width:0; }
.pt-card-name { font-size:14px; font-weight:700; letter-spacing:-.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.name-phone { color:#667085; font-weight:600; }
.name-phone-plain { color:var(--text); font-weight:400; font-size:13px; }
.field-muted { color:#667085; font-weight:500; font-size:12px; }
.pt-card-biz  {
  display:inline-block; font-size:11px; color:var(--muted); font-weight:600;
  border:1px solid var(--line); border-radius:5px;
  padding:1px 6px; margin-top:4px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}
.pt-loading { text-align:center; color:var(--muted); font-size:13px; padding:36px 0; }

/* ──── 참여자 상세 카드 뷰 ──── */
.pt-detail-cards { display:flex; flex-direction:column; gap:8px; }
.pt-detail-card { background:rgba(255,255,255,.82); border:1px solid var(--line); border-radius:16px; overflow:hidden; position:relative; }
.pt-detail-header {
  display:flex; align-items:center; gap:10px;
  padding:12px 14px 10px; border-bottom:1px solid rgba(234,179,8,.18);
  background:rgba(254,252,232,.72); border-radius:14px 14px 0 0;
  user-select:none;
}
.pt-detail-header:active { background:rgba(254,240,138,.6); }
.pt-detail-fields { display:grid; grid-template-columns:1fr; cursor:pointer; }
.pt-detail-fields:hover { background:rgba(37,99,235,.025); border-radius:0 0 14px 14px; }
.pt-detail-name {
  flex:1; font-size:14px; font-weight:800; letter-spacing:-.03em;
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pt-staff-stats {
  flex-shrink:0; font-size:12px; font-weight:500; color:#111827;
  white-space:nowrap; padding:0 6px;
}
.pt-detail-seq {
  flex-shrink:0; font-size:12px; font-weight:600; color:#9ca3af;
  background:rgba(156,163,175,.12); border-radius:8px;
  padding:2px 7px; line-height:1.6;
}
.pt-call-btn { display:none; } /* deprecated - 모달로 대체 */
.pt-phone-click { cursor:pointer; transition:color .15s; }
.pt-phone-click:hover { color:#2563eb; }
.pt-phone-call-icon { margin-left:4px; font-size:12px; color:#2563eb; opacity:.8; }
.sip-call-status {
  display:inline-block; padding:6px 18px; border-radius:20px;
  font-size:14px; font-weight:600; letter-spacing:.3px;
}
.sip-call-idle    { background:#f1f5f9; color:#64748b; }
.sip-call-ringing { background:#fef9c3; color:#92400e; animation:sip-pulse 1s ease-in-out infinite; }
.sip-call-active  { background:#dcfce7; color:#166534; }
.sip-call-ended   { background:#f1f5f9; color:#64748b; }
.sip-call-failed  { background:#fee2e2; color:#991b1b; }
@keyframes sip-pulse { 0%,100%{opacity:1} 50%{opacity:.55} }
.btn-danger {
  background:#ef4444; color:#fff; border:none;
  border-radius:10px; padding:10px 18px; font-size:14px;
  font-weight:700; cursor:pointer; transition:background .15s;
}
.btn-danger:hover { background:#dc2626; }
.tel-btn {
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink:0; width:26px; height:26px; border-radius:50%;
  color:var(--primary); background:var(--primary-soft);
  text-decoration:none; transition:.15s ease;
}
.tel-btn:hover { background:var(--primary); color:#fff; }
.pt-detail-field {
  display:flex; flex-direction:row; align-items:baseline;
  justify-content:space-between; gap:12px;
  padding:9px 14px; border-bottom:1px solid var(--line);
}
.pt-detail-field:last-child { border-bottom:0; }
.pt-field-label { font-size:12px; color:var(--muted); font-weight:700; flex-shrink:0; }
.pt-field-value { font-size:13px; font-weight:600; text-align:right; word-break:break-all; }
.pt-detail-field--ext { background:rgba(99,102,241,.04); }
.pt-detail-field--ext .pt-field-label,
.pt-detail-field--ext .pt-field-value { color:var(--primary); }
.pt-detail-field--direct { background:rgba(16,185,129,.05); }
.pt-detail-field--direct .pt-field-label { color:#059669; }
.pt-detail-field--direct .pt-field-value { color:#047857; font-size:12px; }

/* ──── 플로팅 액션 버튼 ──── */
.pt-fab-wrap {
  position:fixed; right:24px; bottom:28px;
  display:flex; flex-direction:column; align-items:flex-end; gap:10px; z-index:50;
}
.fab-main {
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px 22px; border-radius:999px;
  background:var(--text); color:#fff; border:0;
  font-size:17px; font-weight:800;
  box-shadow:0 8px 24px rgba(16,24,40,.22);
  cursor:pointer; transition:.2s ease; white-space:nowrap;
}
.fab-main:hover { transform:translateY(-2px); }
.fab-main.selection { background:var(--primary); }
.fab-action {
  display:flex; align-items:center; gap:7px;
  padding:11px 18px; border-radius:999px;
  background:#fff; border:1px solid var(--line);
  font-size:13px; font-weight:700; color:var(--text);
  box-shadow:0 4px 16px rgba(16,24,40,.1); cursor:pointer;
  opacity:0; pointer-events:none; transform:translateY(12px);
  transition:opacity .18s ease, transform .18s ease; white-space:nowrap;
}
.pt-fab-wrap.expanded .fab-action { opacity:1; pointer-events:auto; transform:translateY(0); }

/* ──── 참여자 테이블 ──── */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:separate; border-spacing:0 7px; min-width:680px; }
th { text-align:left; color:var(--muted); font-size:11px; padding:0 11px; font-weight:700; white-space:nowrap; }
td { background:rgba(255,255,255,.78); border-top:1px solid var(--line);
  border-bottom:1px solid var(--line); padding:0 11px;
  font-size:13px; height:50px; vertical-align:middle;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:140px; }
td:first-child { border-left:1px solid var(--line); border-radius:14px 0 0 14px; max-width:none; width:40px; }
td:last-child  { border-right:1px solid var(--line); border-radius:0 14px 14px 0; max-width:none; }
.check { width:15px; height:15px; accent-color:var(--primary); }

/* 이름 셀 (아바타 제거) */
.namecell { display:flex; flex-direction:column; gap:1px; }
.namecell strong { font-size:13px; font-weight:700; }
.namecell .muted { font-size:11px; line-height:1.2; }

/* 페이지네이션 */
.pagination { display:flex; align-items:center; justify-content:center; gap:5px; padding:14px 0; }
.page-btn { border:1px solid var(--line); background:#fff; border-radius:9px;
  padding:6px 11px; font-size:12px; font-weight:600; color:var(--text); min-width:34px; text-align:center; }
.page-btn.active { background:var(--text); color:#fff; border-color:var(--text); }
.page-btn:disabled { opacity:.35; cursor:default; }
.page-info { font-size:12px; color:var(--muted); padding:0 6px; }

/* 폼 */
.field { margin-bottom:12px; }
.field label { display:block; color:var(--muted); font-size:13px; font-weight:700; margin-bottom:6px; }
.field input, .field select, .field textarea { width:100%; border:1px solid var(--line); background:#fff;
  border-radius:13px; padding:11px 13px; outline:none; transition:.2s ease;
  font-size:14px; font-family:inherit; color:var(--text); }
.field textarea { min-height:108px; resize:vertical; line-height:1.5; }
.field select.form-select { appearance:auto; cursor:pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color:rgba(37,99,235,.42); box-shadow:0 0 0 4px rgba(37,99,235,.1); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.full { grid-column:1/-1; }
.target-box { border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.68); padding:11px; display:grid; gap:8px; }
.target-row { display:flex; justify-content:space-between; align-items:center; gap:11px;
  padding:10px; border-radius:13px; background:#fff; border:1px solid var(--line); }

/* 출근 관리 */
.attendance-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.attendance-card { border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.76); padding:15px; }
.attendance-card strong { display:block; font-size:14px; margin-bottom:7px; }
.attendance-number { font-size:30px; font-weight:900; letter-spacing:-.06em; }

/* 설정 */
.settings-tabs { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:14px; }
.settings-tab { border:1px solid var(--line); background:rgba(255,255,255,.78);
  border-radius:14px; padding:10px 18px; font-weight:700; color:#344054; text-align:left; }
.settings-tab.active { background:var(--text); color:#fff; box-shadow:0 10px 24px rgba(16,24,40,.16); }
.stab-panel { }
.schedule-days { display:flex; flex-wrap:wrap; gap:7px; }
.day-chip { border:1px solid var(--line); background:#fff; border-radius:999px; padding:6px 12px; font-weight:700; color:var(--muted); cursor:pointer; }
.day-chip.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* 전화설정: 담당자 내선표 */
.staff-ext-list { overflow-x:auto; }
.simple-table { width:100%; border-collapse:collapse; font-size:13px; }
.simple-table th { text-align:left; padding:8px 10px; background:#f9fafb; border-bottom:1px solid var(--line); color:var(--muted); font-weight:600; }
.simple-table td { padding:8px 10px; border-bottom:1px solid var(--line); }
.td-input { border:1px solid var(--line); border-radius:8px; padding:5px 8px; font-size:13px; width:100%; box-sizing:border-box; }
.td-input:focus { outline:none; border-color:var(--primary); }

/* 근무 스케쥴 */
.bulk-sched-card { background:#f9fafb; border-radius:14px; border:1px solid var(--line); padding:14px 18px; margin-bottom:16px; }
.bulk-sched-card strong { display:block; margin-bottom:10px; font-size:13px; }
.bulk-sched-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.schedule-list { display:flex; flex-direction:column; gap:10px; }
.schedule-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.schedule-mgr-name { font-weight:700; min-width:60px; }

/* 휴무일 달력 */
.holiday-cal-wrap { display:flex; flex-direction:column; gap:14px; }
.holiday-cal-head { display:flex; align-items:center; gap:10px; }
.holiday-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.hol-cal-dh { text-align:center; font-size:11px; font-weight:700; color:var(--muted); padding:4px; }
.hol-cal-cell { text-align:center; padding:8px 4px; font-size:13px; border-radius:8px; cursor:pointer; transition:.15s; }
.hol-cal-cell:hover { background:#f0f4ff; }
.hol-cal-cell.empty { cursor:default; }
.hol-cal-cell.hol-wknd { color:#ef4444; }
.hol-cal-cell.hol-saved { background:#fef2f2; color:#b91c1c; font-weight:700; }
.hol-cal-cell.hol-sel { background:#1d4ed8; color:#fff !important; font-weight:700; border-radius:8px; }
.holiday-cal-legend { display:flex; gap:14px; font-size:12px; }
.hol-legend-item { display:flex; align-items:center; gap:4px; }
.hol-legend-sel { color:#1d4ed8; }
.hol-legend-wknd { color:#ef4444; }
.hol-legend-saved { color:#b91c1c; }
.holiday-actions { display:flex; align-items:center; gap:8px; }
.holiday-list-panel { margin-top:8px; }
.holiday-list { display:flex; flex-direction:column; gap:6px; }
.holiday-list-row { display:flex; align-items:center; gap:10px; padding:8px 12px; background:#f9fafb; border-radius:10px; border:1px solid var(--line); }
.holiday-date { font-weight:700; min-width:100px; }
.holiday-desc { flex:1; }

/* 부재중 전환 모달 */
.absence-active-msg { background:#fef2f2; border:1px solid #fecaca; border-radius:10px; padding:10px 14px; color:#b91c1c; font-weight:600; font-size:13px; }
.absence-inactive-msg { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:10px; padding:10px 14px; color:#166534; font-size:13px; }

/* 수신전화 카드 (동적) */
.call-card-left { display:flex; align-items:center; gap:10px; grid-column:1/3; }
.call-card-right { display:flex; align-items:center; }
.call-card-status { font-size:16px; }
.call-card-info { display:flex; flex-direction:column; gap:2px; }
.call-card-name { font-weight:700; font-size:14px; }
.call-card-biz { font-weight:400; color:var(--muted); font-size:13px; margin-left:4px; }
.call-card-meta { font-size:12px; color:var(--muted); }
.call-card-missed { border-left:3px solid #ef4444; }
.call-empty { padding:24px; text-align:center; color:var(--muted); font-size:13px; }
.pt-loading { padding:24px; text-align:center; color:var(--muted); font-size:13px; }
.message-preview { border:1px solid var(--line); background:#fff; border-radius:20px; padding:14px; min-height:200px; }
.phone-bubble { background:#f2f4f7; border-radius:18px 18px 18px 5px; padding:12px; line-height:1.55; color:#344054; margin-top:10px; }
.fax-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.fax-card { border:1px solid var(--line); background:rgba(255,255,255,.78); border-radius:20px; overflow:hidden; }
.fax-preview { height:150px; background:linear-gradient(145deg,#f8fafc,#e5e7eb);
  display:grid; place-items:center; color:#98a2b3; font-weight:900; font-size:36px; }
.fax-info { padding:13px; }
.fax-info strong { display:block; margin-bottom:5px; }
.timeline { display:grid; gap:8px; }
.timeline-item { display:grid; grid-template-columns:34px 1fr auto; gap:10px; align-items:center;
  padding:11px; border:1px solid var(--line); background:rgba(255,255,255,.76); border-radius:14px; }
.dot { width:34px; height:34px; border-radius:11px; background:var(--primary-soft); color:var(--primary);
  display:grid; place-items:center; font-weight:900; }

/* 모달 */
.modal-backdrop { position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  padding:20px; background:rgba(15,23,42,.38); backdrop-filter:blur(10px); z-index:100; }
.modal-backdrop.active { display:flex; }
.modal { width:min(720px,100%); max-height:88vh; overflow:auto; background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.7); border-radius:28px; box-shadow:0 26px 72px rgba(15,23,42,.26); }
.modal-head { padding:16px 20px 13px; display:flex; align-items:center; justify-content:space-between;
  gap:14px; border-bottom:1px solid var(--line); }
.modal-head h3 { margin:0; font-size:16px; font-weight:700; letter-spacing:-.04em; }
.modal-head p { margin:5px 0 0; color:var(--muted); }
.close { border:0; width:34px; height:34px; border-radius:50%; background:#f2f4f7; font-size:17px; }
.modal-body { padding:18px 20px 20px; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-bottom:13px; }
.detail-box { border:1px solid var(--line); background:#fff; border-radius:14px; padding:11px; }
.detail-box span { color:var(--muted); font-size:11px; font-weight:700; display:block; margin-bottom:4px; }
.transcript { border:1px solid var(--line); background:#fff; border-radius:18px; padding:14px; line-height:1.65; color:#344054; font-size:14px; }
.missed-caller-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0 4px; }
.missed-caller-name { font-size:15px; font-weight:700; color:#111827; }
.missed-done-btn { width:100%; margin-top:18px; }
.audio-bar { margin:11px 0; border-radius:14px; background:#f2f4f7; padding:11px; display:flex; align-items:center; gap:10px; }
.play { width:38px; height:38px; border-radius:50%; border:0; background:var(--text); color:#fff; }
.wave { flex:1; height:30px; border-radius:999px;
  background:repeating-linear-gradient(90deg,rgba(37,99,235,.42) 0 4px, transparent 4px 10px); opacity:.8; }
.modal-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; justify-content:flex-end; }
.modal-actions .btn { min-width:90px; padding-left:22px; padding-right:22px; }

/* 읽기전용 필드 */
.read-only-field {
  padding:10px 13px; background:#f9fafb; border:1px solid var(--line);
  border-radius:13px; font-size:14px; color:var(--muted); line-height:1.6;
  min-height:42px;
}
.label-note { font-size:11px; color:var(--muted); font-weight:400; }

/* 담당자 목록 (사업 수정 모달) */
.mgr-list { display:flex; flex-direction:column; gap:6px; }
.mgr-row { display:flex; align-items:center; gap:8px; }
.mgr-row input {
  flex:1; border:1px solid var(--line); background:#fff; border-radius:13px;
  padding:10px 13px; font-size:14px; font-family:inherit; color:var(--text); outline:none;
  transition:.15s ease;
}
.mgr-row input:focus { border-color:rgba(37,99,235,.4); box-shadow:0 0 0 3px rgba(37,99,235,.09); }
.mgr-delete {
  flex-shrink:0; width:34px; height:34px; border:1px solid var(--line); background:#fff;
  border-radius:9px; color:var(--muted); font-size:14px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:.15s ease;
}
.mgr-delete:hover { border-color:var(--danger); color:var(--danger); background:#fff5f5; }
.btn-sm { padding:7px 14px; font-size:13px; }

/* 로딩 */
.loading-row td { text-align:center; color:var(--muted); font-size:13px; height:80px; }
.empty-state { text-align:center; padding:40px 20px; color:var(--muted); }
.empty-state .emoji { font-size:32px; margin-bottom:10px; }

/* 반응형 */
@media (max-width:900px) {
  .stats { grid-template-columns:repeat(2,1fr); }
  .layout, .two-col { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .main { padding:14px 22px; }
  .landing { grid-template-columns:1fr; }
  .login-side { display:none; }
  .stats { grid-template-columns:1fr 1fr; }
  /* 모바일: 툴바 축소 */
  .toolbar { gap:6px; flex-wrap:wrap; }
  .select-soft { font-size:12px; padding:7px 9px; }
  /* 카드 뷰: 콤팩트 */
  .pt-card { padding:9px 11px; }
  /* 상세 카드: 모바일 그대로 1열 사용 */
  /* 랜딩 */
  .lp-demo-grid { grid-template-columns:repeat(2,1fr); }
  .lp-hero { padding:50px 0 40px; }
  .lp-title { font-size:clamp(28px,8vw,42px); }
}
