@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;
}

.phone-icon { width:1em; height:1em; display:inline-block; vertical-align:-.14em; }

* { box-sizing: border-box; }
html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  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);
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-size:100% 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Noto Sans KR', sans-serif;
  background:transparent;
  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; }
.global-loading-overlay {
  position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center;
  background:rgba(255,255,255,.58); backdrop-filter:blur(2px);
}
.global-loading-overlay.active { display:flex; }
.global-loading-dots { display:flex; align-items:center; justify-content:center; gap:9px; padding:16px 20px; border-radius:999px; background:rgba(17,24,39,.82); box-shadow:0 14px 40px rgba(15,23,42,.18); }
.global-loading-dots span { width:10px; height:10px; border-radius:999px; background:#fff; animation:global-loading-bounce .82s ease-in-out infinite; }
.global-loading-dots span:nth-child(2) { animation-delay:.12s; }
.global-loading-dots span:nth-child(3) { animation-delay:.24s; }
@keyframes global-loading-bounce {
  0%, 80%, 100% { transform:translateY(0); opacity:.58; }
  40% { transform:translateY(-8px); opacity:1; }
}
.screen { display: none; }
.screen.active { display: block; min-height:100vh; }
.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:#fbfcfe; color:#111827; overflow:hidden; }
.lp-nav { position:relative; z-index:10; width:min(1180px,calc(100% - 48px)); height:76px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e9edf3; }
.lp-logo { display:flex; align-items:center; gap:9px; color:#111827; text-decoration:none; }
.lp-logo img { width:38px; height:38px; border-radius:11px; }
.lp-logo strong { font-size:20px; letter-spacing:-.05em; }
.lp-nav-links { display:flex; align-items:center; gap:34px; }
.lp-nav-links a { color:#667085; font-size:14px; font-weight:700; text-decoration:none; }
.lp-nav-links a:hover { color:#111827; }
.lp-nav-login { height:40px; padding:0 18px; border:1px solid #d8dee8; border-radius:10px; background:#fff; color:#111827; font-size:13px; font-weight:800; }
.lp-section { width:min(1180px,calc(100% - 48px)); margin:0 auto; scroll-margin-top:24px; }
.lp-hero { min-height:660px; padding:88px 0 96px; display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.88fr); gap:70px; align-items:center; }
.lp-eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:25px; color:#526174; font-size:13px; font-weight:800; letter-spacing:.01em; }
.lp-eyebrow i { width:7px; height:7px; border-radius:50%; background:#ff4d55; box-shadow:0 0 0 5px rgba(255,77,85,.10); }
.lp-hero h1 { margin:0; color:#111827; font-size:clamp(48px,5.4vw,72px); font-weight:850; line-height:1.08; letter-spacing:-.075em; }
.lp-hero h1 em { color:#ff4d55; font-style:normal; }
.lp-hero-copy > p { max-width:620px; margin:26px 0 0; color:#667085; font-size:17px; line-height:1.75; word-break:keep-all; }
.lp-hero-actions { display:flex; align-items:center; gap:12px; margin-top:36px; }
.lp-primary-action, .lp-start-cta button { display:inline-flex; align-items:center; justify-content:center; gap:20px; height:52px; padding:0 22px; border:0; border-radius:12px; background:#151b26; color:#fff; font-weight:800; box-shadow:0 12px 30px rgba(17,24,39,.18); }
.lp-primary-action span, .lp-start-cta button span { font-size:18px; }
.lp-secondary-action { display:inline-flex; align-items:center; justify-content:center; height:52px; padding:0 21px; border:1px solid #dce2ea; border-radius:12px; background:#fff; color:#344054; font-size:14px; font-weight:800; text-decoration:none; }
.lp-hero-trust { display:flex; gap:18px; margin-top:26px; color:#758195; font-size:12px; font-weight:700; }
.lp-hero-visual { position:relative; padding:22px; border:1px solid #e1e6ed; border-radius:26px; background:rgba(255,255,255,.95); box-shadow:0 28px 80px rgba(25,38,63,.12); transform:rotate(1deg); }
.lp-hero-visual::before { content:""; position:absolute; z-index:-1; inset:-45px -55px; border-radius:50%; background:radial-gradient(circle,rgba(255,77,85,.13),transparent 68%); }
.lp-visual-top { display:flex; justify-content:space-between; align-items:center; padding-bottom:17px; border-bottom:1px solid #edf0f4; }
.lp-visual-top span { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:850; }
.lp-visual-top span i { width:8px; height:8px; border-radius:50%; background:#22c55e; }
.lp-visual-top small { color:#ff4d55; font-weight:800; }
.lp-visual-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0; }
.lp-visual-summary > div { padding:15px; border-radius:15px; background:#f7f9fc; }
.lp-visual-summary small, .lp-visual-summary span { display:block; color:#7a8699; font-size:11px; font-weight:700; }
.lp-visual-summary strong { display:block; margin:7px 0 5px; font-size:27px; line-height:1; }
.lp-visual-summary strong em { margin-left:2px; color:#667085; font-size:12px; font-style:normal; }
.lp-visual-summary span.green { color:#139b57; }.lp-visual-summary span.blue { color:#3672d6; }
.lp-visual-list { display:grid; gap:2px; }
.lp-visual-list > div { display:grid; grid-template-columns:38px 1fr auto; gap:10px; align-items:center; padding:10px 7px; border-bottom:1px solid #f0f2f5; }
.lp-visual-list b { width:36px; height:36px; display:grid; place-items:center; border-radius:12px; font-size:12px; }.lp-visual-list b.pink { background:#fff0f1;color:#ef4e58; }.lp-visual-list b.orange { background:#fff5e8;color:#e98a20; }.lp-visual-list b.blue { background:#eef4ff;color:#3b6fc4; }
.lp-visual-list span strong,.lp-visual-list span small { display:block; }.lp-visual-list span strong { font-size:12px; }.lp-visual-list span small { margin-top:3px;color:#8a94a5;font-size:10px; }.lp-visual-list > div > em { color:#667085;font-size:10px;font-style:normal;font-weight:800; }
.lp-visual-bubble { position:absolute; right:-34px; bottom:-39px; display:flex; align-items:center; gap:10px; width:260px; padding:12px 15px; border:1px solid #ffd8da; border-radius:17px; background:#fff; box-shadow:0 18px 40px rgba(74,32,35,.14); transform:rotate(-1deg); }
.lp-visual-bubble img { width:42px; height:42px; border-radius:12px; }.lp-visual-bubble strong,.lp-visual-bubble small { display:block; }.lp-visual-bubble strong { font-size:12px; }.lp-visual-bubble small { margin-top:4px;color:#7d8797;font-size:10px; }
.lp-section-head { max-width:680px; margin:0 auto 52px; text-align:center; }.lp-section-head.left { margin-left:0; text-align:left; }
.lp-section-head > span,.lp-start-copy > span { display:block; margin-bottom:14px; color:#ff4d55; font-size:11px; font-weight:900; letter-spacing:.13em; }
.lp-section-head h2,.lp-start-copy h2 { margin:0; color:#111827; font-size:clamp(34px,4vw,50px); line-height:1.18; letter-spacing:-.065em; }
.lp-section-head p,.lp-start-copy p { margin:18px 0 0; color:#748094; font-size:15px; line-height:1.7; }
.lp-value { padding:120px 0; border-top:1px solid #eef1f5; }
.lp-value-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.lp-value-grid article { position:relative; min-height:300px; padding:30px; border:1px solid #e7eaf0; border-radius:22px; background:#fff; transition:.2s ease; }.lp-value-grid article:hover { transform:translateY(-4px); box-shadow:0 18px 50px rgba(23,36,60,.08); }
.lp-number { position:absolute; right:25px; top:25px; color:#c9d0db; font-size:11px; font-weight:900; }
.lp-value-icon { width:48px; height:48px; display:grid; place-items:center; margin-bottom:48px; border-radius:15px; font-size:19px; font-weight:900; }.lp-value-icon.blue{background:#edf4ff;color:#3b6fc4}.lp-value-icon.coral{background:#fff0f1;color:#ff4d55}.lp-value-icon.green{background:#eaf9f1;color:#169b58}
.lp-value-grid h3 { margin:0 0 12px; font-size:21px; letter-spacing:-.045em; }.lp-value-grid p { margin:0; color:#758195; font-size:14px; line-height:1.7; word-break:keep-all; }
.lp-features { padding:120px 0; }
.lp-feature-layout { display:grid; grid-template-columns:1.05fr .95fr; gap:18px; }
.lp-feature-main { min-height:450px; padding:48px; border-radius:25px; background:#17202e; color:#fff; }.lp-feature-label { display:inline-block; padding:7px 11px; border:1px solid rgba(255,255,255,.15); border-radius:999px; color:#d8e1ee; font-size:11px; font-weight:800; }.lp-feature-main h3 { margin:55px 0 18px; font-size:34px; line-height:1.2; letter-spacing:-.055em; }.lp-feature-main > p { max-width:470px; margin:0; color:#aeb9c8; font-size:14px; line-height:1.75; }.lp-feature-main ul { display:grid; gap:13px; margin:34px 0 0; padding:0; list-style:none; }.lp-feature-main li { display:flex; gap:10px; color:#e6ebf2; font-size:13px; }.lp-feature-main li i { color:#ff6970;font-style:normal; }
.lp-feature-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.lp-feature-cards article { min-height:219px; padding:25px; display:flex; flex-direction:column; justify-content:space-between; border:1px solid #e6eaf0; border-radius:22px; background:#fff; }.lp-feature-cards article > span { color:#ff6269;font-size:11px;font-weight:900; }.lp-feature-cards h3 { margin:0 0 8px;font-size:18px; }.lp-feature-cards p { margin:0;color:#7c8798;font-size:13px;line-height:1.55; }
.lp-demos { padding:120px 0; }
.lp-demo-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.lp-demo-card { position:relative; min-height:275px; display:flex; flex-direction:column; padding:24px; border:1px solid #e4e8ef; border-radius:22px; background:#fff; transition:.18s ease; }.lp-demo-card:hover { transform:translateY(-4px); border-color:#ffc7ca; box-shadow:0 18px 45px rgba(52,36,38,.08); }
.lp-demo-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:#fff1f2; color:#f34f57; font-size:18px; font-weight:900; }
.lp-demo-tag { position:absolute; right:20px; top:25px; color:#98a2b3; font-size:10px; font-weight:800; }
.lp-demo-info { flex:1; display:flex; flex-direction:column; justify-content:flex-end; padding:35px 0 18px; }.lp-demo-info strong { display:block; color:#17202e; font-size:17px; line-height:1.35; }.lp-demo-info span { display:block; margin-top:8px; color:#7c8798; font-size:12px; line-height:1.55; word-break:keep-all; }
.lp-player-bar { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:11px; background:#f6f8fb; }.lp-play-btn { flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; border:0; border-radius:50%; background:#17202e; color:#fff; font-size:10px; transition:.15s ease; }.lp-play-btn:hover { transform:scale(1.06); }.lp-play-btn.playing { background:#ff4d55; }.lp-progress-track { flex:1; height:3px; overflow:hidden; border-radius:4px; background:#dde3eb; }.lp-progress-fill { width:0; height:100%; border-radius:4px; background:#ff4d55; transition:width .1s linear; }
.lp-start { margin-top:110px; padding:80px; border-radius:30px; background:#f1f4f8; }.lp-start-copy { max-width:690px; }.lp-steps { display:grid; grid-template-columns:1fr 34px 1fr 34px 1fr; align-items:center; gap:13px; margin:55px 0; }.lp-steps > div { display:flex; align-items:flex-start; gap:14px; }.lp-steps b { flex:0 0 32px; width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#ff4d55;font-size:12px;box-shadow:0 4px 14px rgba(20,31,49,.08); }.lp-steps strong,.lp-steps small { display:block; }.lp-steps strong { font-size:14px; }.lp-steps small { margin-top:6px;color:#7b8697;font-size:12px;line-height:1.5; }.lp-steps > i { height:1px;background:#cfd6df; }
.lp-start-cta { display:grid; grid-template-columns:52px 1fr auto; gap:16px; align-items:center; padding:20px 22px; border:1px solid #e0e5ec; border-radius:18px; background:#fff; }.lp-start-cta img { width:52px;height:52px;border-radius:14px; }.lp-start-cta strong,.lp-start-cta > div span { display:block; }.lp-start-cta strong { font-size:15px; }.lp-start-cta > div span { margin-top:5px;color:#7c8798;font-size:12px; }.lp-start-cta button { height:46px;box-shadow:none; }
.lp-footer { width:min(1180px,calc(100% - 48px)); margin:100px auto 0; padding:35px 0 42px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:25px; border-top:1px solid #e3e7ed; }.lp-footer-brand { display:flex;align-items:center;gap:10px; }.lp-footer-brand img { width:38px;height:38px;border-radius:11px; }.lp-footer-brand strong,.lp-footer-brand span { display:block; }.lp-footer-brand strong { font-size:16px; }.lp-footer-brand span { margin-top:3px;color:#8a94a4;font-size:11px; }.lp-footer-links { display:flex;align-items:center;gap:24px; }.lp-footer-links a,.lp-footer-links button { padding:0;border:0;background:transparent;color:#667085;font-size:12px;font-weight:700;text-decoration:none; }.lp-footer p { grid-column:1/-1;margin:4px 0 0;color:#a0a8b5;font-size:11px; }

/* 로그인 모달 */
.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:#ffffff;
  backdrop-filter:none;
  border-bottom:1px solid rgba(15,23,42,.08);
  display:flex; align-items:center;
  padding:0;
  box-shadow:0 2px 12px rgba(15,23,42,.04);
}
.header-inner { position:relative; width:100%; max-width:1440px; height:100%; margin:0 auto; padding:0 22px; display:flex; align-items:center; gap:18px; min-width:0; }
.header-brand-text { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:3px; flex-shrink:0; color:var(--text); line-height:1.05; }
.header-brand-main { display:inline-flex; align-items:center; height:21px; padding:0 6px; border:1px solid rgba(71,84,103,.45); border-radius:4px; font-weight:800; font-size:16px; letter-spacing:0; line-height:1; transform:translateY(-1px); }
.header-brand-sub { display:block; height:auto; padding:0; border:0; border-radius:0; font-size:14px; color:var(--text); font-weight:400; letter-spacing:0; line-height:1.05; background:transparent; }
.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:900; }

/* ──── 헤더 메뉴 드롭다운 ──── */
.header-nav-group { position:absolute; left:50%; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; gap:3px; width:auto; flex:0 0 auto; padding:3px; border:1px solid rgba(15,23,42,.08); border-radius:11px; background:rgba(248,250,252,.8); }
.header-primary-nav-btn {
  height:30px; padding:0 12px; border:0; border-radius:8px;
  background:transparent; color:var(--muted); font:inherit; font-size:14px;
  font-weight:800; cursor:pointer; white-space:nowrap; transition:.15s ease;
}
.header-primary-nav-btn:hover { background:rgba(37,99,235,.07); color:var(--text); }
.header-primary-nav-btn.active { background:var(--text); color:#fff; }
.header-menu-select {
  position:relative; display:flex; align-items:center; justify-content:center; gap:6px; min-width:0;
  height:30px; cursor:pointer; padding:0 10px; border-radius:8px;
  transition:.15s ease; user-select:none; flex-shrink:0;
  background:transparent; color:var(--muted);
}
.header-menu-select:hover { background:transparent; color:var(--text); }
.header-menu-select.open,
.header-menu-select.active { background:var(--text); color:#fff; }
.header-menu-label { font-weight:800; font-size:14px; letter-spacing:0; white-space:nowrap; }
.header-chevron { color:var(--muted); font-size:12px; transition:transform .2s ease; }
.header-menu-select .header-chevron { font-size:16px; font-weight:900; color:currentColor; }
.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); right:0;
  min-width:150px; 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:26px 1fr; align-items:center; column-gap:8px; width:100%;
  padding:8px 8px; 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:26px; height:26px; 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;
  width:36px; height:36px; padding:0; border-radius:10px; cursor:pointer; transition:.15s ease;
  border:1px solid rgba(15,23,42,.10); background:rgba(37,99,235,.04); user-select:none; flex-shrink:0;
  justify-content:center;
}
.header-user-btn:hover { background:rgba(37,99,235,.08); }
.header-online-dot {
  position:absolute; right:5px; bottom:5px; width:7px; height:7px; 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-btn.absence-inactive .header-online-dot {
  background:#12b76a;
  box-shadow:0 0 0 2px rgba(18,183,106,.22);
}
.header-user-btn.absence-active .header-online-dot {
  background:#ef4444;
  box-shadow:0 0 0 2px rgba(239,68,68,.22);
}
.header-user-icon { width:18px; height:18px; display:grid; place-items:center; color:var(--text); }
.header-user-icon svg { width:18px; height:18px; }
.header-user-name { font-size:13px; font-weight:700; }
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.user-dropdown {
  display:none; position:absolute; top:calc(100% + 8px); right:0;
  min-width:138px; 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 9px; 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); }
.user-drop-divider { height:1px; margin:6px 3px; background:var(--line); }

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

@media (max-width:520px) {
  .header-inner { padding:0 24px; gap:8px; }
  .header-brand-text { min-width:48px; }
  .header-nav-group { position:absolute; left:50%; transform:translateX(-50%); gap:3px; width:auto; padding:3px; }
  .header-primary-nav-btn { height:30px; padding:0 9px; font-size:13px; border-radius:8px; }
  .header-menu-select { height:30px; padding:0 8px; border-radius:8px; }
  .header-menu-label { font-size:13px; }
  .header-user-btn { width:34px; height:34px; border-radius:9px; }
}

.home-install-guide { border:1px solid var(--line); background:#f9fafb; border-radius:14px; padding:14px; color:#344054; font-size:14px; line-height:1.65; }
.home-install-guide strong { display:block; color:var(--text); font-size:15px; margin-bottom:6px; }
.home-install-guide ol { margin:8px 0 0; padding-left:20px; }
.home-install-guide li { margin:4px 0; }

/* 본문 */
.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; }
.org-info-head,
.org-balanced-head { height:62px; }
.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; }

/* ──── 전화함 탭 ──── */
#page-calls .topbar { display:block; }
.call-log-actions { display:flex; align-items:center; gap:10px; flex:1 1 100%; width:100%; min-width:0; justify-content:flex-start; flex-wrap:nowrap; }
.call-log-subbar { display:flex; align-items:flex-end; gap:12px; margin:-6px 0 6px; }
.call-list-count { color:var(--text); font-size:15px; font-weight:800; display:inline-flex; align-items:center; gap:7px; min-height:39px; padding-bottom:0; transform:translateX(10px); }
.call-list-count strong { font-size:16px; font-weight:500; letter-spacing:0; }
.call-count-label { color:var(--muted); font-size:14px; font-weight:800; }
.call-count-people { display:inline-flex; align-items:center; color:var(--muted); font-size:13px; font-weight:500; line-height:21px; padding:0 7px; border:1px solid var(--line); border-radius:6px; background:transparent; }
.call-count-person-icon { position:relative; width:14px; height:14px; display:inline-block; color:currentColor; flex:0 0 auto; }
.call-count-person-icon::before { content:""; position:absolute; left:4px; top:1px; width:6px; height:6px; border:1.6px solid currentColor; border-radius:50%; box-sizing:border-box; }
.call-count-person-icon::after { content:""; position:absolute; left:2px; bottom:1px; width:10px; height:6px; border:1.6px solid currentColor; border-radius:8px 8px 3px 3px; box-sizing:border-box; }
.call-period-menu { position:relative; flex:0 0 auto; width:auto; margin-left:auto; }
.call-period-select { min-width:78px; height:39px; border:0; border-radius:0; background:transparent; color:var(--text); font-size:16px; font-weight:500; padding:0 18px 0 0; display:flex; align-items:center; justify-content:flex-end; cursor:pointer; position:relative; white-space:nowrap; text-align:right; }
.call-period-arrow { position:absolute; right:2px; top:50%; width:7px; height:7px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:translateY(-65%) rotate(45deg); opacity:.65; }
.call-period-options { display:none; position:absolute; top:calc(100% + 5px); right:0; width:112px; z-index:30; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.14); overflow:hidden; }
.call-period-menu.open .call-period-options { display:grid; }
.call-period-options button { border:0; background:#fff; color:var(--text); font-size:16px; font-weight:500; padding:10px 10px; cursor:pointer; text-align:right; white-space:nowrap; }
.call-period-options button:hover,
.call-period-options button.active { background:#f3f4f6; }
.call-mode-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; gap:4px; padding:3px; border:1px solid var(--line); border-radius:12px; background:#fff; flex:1 1 auto; min-width:0; }
.call-mode-btn { border:0; border-radius:9px; padding:8px 10px; background:transparent; color:var(--muted); font-size:13px; font-weight:800; cursor:pointer; min-width:0; white-space:nowrap; display:flex; align-items:center; justify-content:center; }
.call-mode-btn.active { background:var(--text); color:#fff; }
.call-direction-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:center; gap:4px; padding:3px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.call-direction-tabs { flex:1 1 auto; min-width:0; }
.call-direction-tabs .call-direction-btn { flex:1 1 0; }
.call-direction-btn { border:0; border-radius:9px; padding:7px 5px; background:transparent; color:var(--muted); font-size:12px; font-weight:800; cursor:pointer; min-width:0; white-space:nowrap; display:flex; align-items:center; justify-content:center; gap:3px; }
.call-direction-btn.active { background:var(--text); color:#fff; }
.call-dir-count { flex:0 0 auto; min-width:24px; padding:1px 4px; border-radius:999px; background:rgba(15,23,42,.08); color:inherit; font-size:10.5px; line-height:16px; text-align:center; font-variant-numeric:tabular-nums; }
.call-direction-btn.active .call-dir-count { background:rgba(255,255,255,.22); }
.call-missed-toggle { border:1px solid #fecaca; border-radius:12px; padding:9px 14px; background:#fff; color:#b91c1c; font-size:13px; font-weight:800; cursor:pointer; display:inline-flex; align-items:center; gap:7px; }
.call-log-subbar .call-missed-toggle { margin-left:auto; }
.call-missed-toggle.active { background:#ef4444; border-color:#ef4444; color:#fff; }
.call-missed-check { width:14px; height:14px; border:1.6px solid currentColor; border-radius:4px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.call-missed-toggle.active .call-missed-check::after { content:""; width:7px; height:4px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg) translate(1px,-1px); }
.calltab-wrap { display:none; 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 14px 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 34px; column-gap:11px; cursor:default; }
.call-card-simple .call-card-left { grid-column:auto; min-width:0; }
.call-card-simple.call-card-inbound .call-card-left { padding-left:0; }
.call-card-status { width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; color:#fff; }
.call-card-status svg { width:15px; height:15px; }
.call-card-status.is-inbound { background:#ef4444; }
.call-card-status.is-outbound { background:#2563eb; }
.call-card-time { color:var(--muted); font-size:14px; font-weight:400; white-space:nowrap; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:3px; }
.call-card-time.is-missed { color:var(--muted); }
.call-card-result { color:#344054; font-weight:800; }
.call-card-result.is-missed { color:#dc2626; }
.call-card-timestamp { color:var(--muted); font-size:14px; font-weight:400; }
.call-card-date { color:var(--muted); font-size:12px; font-weight:400; line-height:1.2; }
.call-card-duration { color:var(--muted); font-size:12px; font-weight:400; line-height:1.2; display:inline-flex; align-items:center; gap:4px; }
.call-duration-icon {
  position:relative; width:10px; height:10px; border:1.4px solid currentColor;
  border-radius:50%; opacity:.75; flex:0 0 auto;
}
.call-duration-icon::before,
.call-duration-icon::after {
  content:""; position:absolute; left:50%; top:50%; width:1.2px;
  background:currentColor; border-radius:999px; transform-origin:50% 0;
}
.call-duration-icon::before { height:3px; transform:translate(-50%,-50%) rotate(0deg); }
.call-duration-icon::after { height:2.8px; transform:translate(-50%,-50%) rotate(120deg); }
.call-card-sub { color:var(--text); font-size:15px; font-weight:400; display:flex; align-items:center; min-width:0; max-width:100%; white-space:nowrap; }
.call-card-biz-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.call-card-direction-icon {
  display:inline-flex; align-items:center; justify-content:center;
  position:relative; width:16px; margin-right:4px; color:#8e8e93; font-size:15px; line-height:1;
  vertical-align:1px;
}
.call-card-direction-icon.is-outbound { top:1px; }
.call-direction-badge { display:inline-flex; align-items:center; height:18px; padding:0 6px; margin-right:6px; border:1px solid #ef4444; border-radius:999px; color:#dc2626; background:#fff; font-size:11px; font-weight:800; line-height:1; vertical-align:1px; }
.call-card-outbound .call-direction-badge { border-color:#93c5fd; color:#2563eb; }
.call-memo-badge { display:inline-flex; align-items:center; margin-right:6px; padding:2px 7px; border-radius:999px; border:1px solid #facc15; color:#854d0e; background:#fef9c3; font-size:11px; font-weight:800; }
.call-card-date { color:var(--muted); font-size:12px; font-weight:400; line-height:1.2; }
.call-card-missed-count {
  display:inline-flex; align-items:center; margin-left:8px; padding:2px 7px;
  border-radius:999px; background:#fee2e2; color:#dc2626;
  font-size:12px; font-weight:700; line-height:1.2; vertical-align:2px;
}
.call-card-dial { width:34px; height:34px; border:0; border-radius:50%; background:#f2f4f7; color:#007aff; font-size:16px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:none; justify-self:end; }
.call-card-dial svg { width:17px; height:17px; }
.call-card-dial:hover { background:#e5e7eb; color:#006ee6; }
.call-dir-count { margin-left:4px; font-size:11px; font-weight:800; color:inherit; opacity:.75; }
.call-card-expandable { grid-template-rows:auto; }
.call-detail-panel { grid-column:1 / -1; display:none; border-top:1px solid var(--line); margin-top:4px; padding-top:12px; cursor:default; }
.call-card.open .call-detail-panel { display:block; }
.call-detail-grid { display:grid; grid-template-columns:1fr; gap:10px; align-items:start; }
.call-detail-grid .field { margin:0; }
.call-detail-grid .field.full { grid-column:1 / -1; }
.call-transfer-note { width:100%; min-height:82px; resize:vertical; }
.call-transfer-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }
.call-transfer-manager-picker {
  min-width:0; width:100%; height:38px; padding:0 12px; border:1px solid var(--line);
  border-radius:10px; background:#fff; color:var(--text); font:inherit; font-size:13px;
  font-weight:700; text-align:left; cursor:pointer; display:flex; align-items:center;
}
.call-transfer-manager-picker:hover { border-color:#bfdbfe; background:#f8fafc; }
.call-transfer-manager-value { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.call-transfer-manager-value.muted { color:var(--muted); }
.call-transfer-submit {
  height:38px; min-width:68px; padding:0 14px; border:1px solid var(--line);
  border-radius:10px; background:#fff; color:var(--text); font:inherit; font-size:13px;
  font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
}
.call-transfer-submit:hover { border-color:#bfdbfe; background:#f8fafc; }
.call-transfer-status { display:block; min-height:18px; margin-top:8px; color:#dc2626; font-size:12px; font-weight:700; }
.call-transfer-status.ok { color:#047857; }
.call-transfer-meta { color:var(--muted); font-size:11px; font-weight:600; }
.call-detail-divider { height:1px; background:var(--line); margin:4px 0 14px; }
.call-missed-complete-btn {
  width:100%; height:42px; border:0; border-radius:10px; background:#ef4444; color:#fff;
  font:inherit; font-size:14px; font-weight:800; cursor:pointer; display:flex;
  align-items:center; justify-content:center;
}
.call-missed-complete-btn:hover { background:#dc2626; }
.call-manager-modal { width:min(640px,100%); }
.call-manager-search { width:100%; height:40px; border:1px solid var(--line); border-radius:10px; padding:0 12px; font:inherit; font-size:14px; margin-bottom:12px; }
.call-manager-list { display:grid; align-content:start; gap:8px; min-height:360px; max-height:58vh; overflow:auto; }
.call-manager-row { border:1px solid var(--line); border-radius:10px; background:#fff; padding:10px 12px; text-align:left; display:grid; gap:4px; cursor:pointer; }
.call-manager-row:hover { border-color:#bfdbfe; background:#eff6ff; }
.call-manager-clear-row { background:#f8fafc; }
.call-manager-row strong { font-size:14px; font-weight:800; color:var(--text); }
.call-manager-row span { font-size:12px; font-weight:600; color:var(--muted); }
.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-selected-voice-summary { margin-bottom:10px; padding:11px 13px; border:1px solid #fde68a; background:#fffbeb; color:#92400e; border-radius:12px; font-size:13px; font-weight:700; }
.cs-selected-voice-summary.has-selection { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.cs-selected-voice-summary strong { color:inherit; font-size:14px; }
.cs-selected-chip { display:inline-flex; align-items:center; height:20px; padding:0 8px; margin-right:8px; border-radius:999px; background:#2563eb; color:#fff; font-size:11px; font-weight:800; vertical-align:1px; }
.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; margin-bottom:5px; }
.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-row-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.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-voice-delete-btn { flex-shrink:0; width:44px; height:31px; border:1px solid #fecaca; background:#fff; color:#dc2626; 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-delete-btn:hover { background:#fef2f2; border-color:#fca5a5; }
.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; }
.bc-test-send-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:92px; text-align:center; }
.bc-test-send-btn .phone-icon { flex-shrink:0; }
/* ── 예약 캠페인 카드 ── */
.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-msg-area-large { min-height:220px; resize:vertical; }
.cs-msg-under-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; flex-wrap:wrap; }
.cs-msg-image-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-left:auto; }
.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; gap:8px; flex-wrap:wrap; }

/* ──── 예약발신 날짜/시각 균등 그리드 ──── */
.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;
}
.staff-title-mini {
  display:inline; margin-left:5px; padding:0; border:0; border-radius:0;
  color:#111827; background:transparent; font-size:inherit; font-weight:400;
}
.staff-ext-inline {
  color:#111827; font-size:inherit; font-weight:400; margin-left:4px;
}
.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, background .15s; }
.pt-phone-click:hover { color:#006ee6; }
.pt-phone-call-icon {
  margin-left:6px; width:26px; height:26px; border:0; border-radius:50%;
  background:#f2f4f7; color:#007aff; display:inline-flex; align-items:center; justify-content:center;
  vertical-align:middle; padding:0; cursor:pointer;
}
.pt-phone-call-icon:hover { background:#e5e7eb; color:#006ee6; }
.pt-phone-call-icon svg { width:14px; height:14px; }
.call-modal { max-width:360px; border-radius:24px; }
.call-modal-head { padding:18px 20px 0; }
.call-modal-body { text-align:center; padding:28px 24px 18px; }
.call-modal-name {
  min-height:31px; font-size:24px; line-height:1.3; font-weight:800;
  color:var(--text); overflow-wrap:anywhere;
}
.call-modal-phone {
  margin-top:6px; min-height:22px; font-size:16px; line-height:1.4;
  color:#64748b; overflow-wrap:anywhere;
}
.call-modal-caller-id {
  min-height:22px; margin-top:14px; font-size:16px; line-height:1.4;
  color:#334155; font-weight:600;
}
.call-device-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:20px 0 12px; }
.call-device-option { border:1px solid #d7dde8; border-radius:12px; background:#fff; color:#475569; padding:11px 8px; font-weight:700; cursor:pointer; }
.call-device-option.active { border-color:#f97316; background:#fff7ed; color:#c2410c; box-shadow:0 0 0 1px #f97316 inset; }
.call-mic-status {
  width:100%; margin-top:14px; border:1px solid var(--line); border-radius:14px;
  background:#f8fafc; color:#475467; padding:10px 12px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:13px; font-weight:700; cursor:pointer;
}
.call-mic-status.is-ready { background:#f0fdf4; border-color:#bbf7d0; color:#15803d; }
.call-mic-status.is-needed { background:#fff7ed; border-color:#fed7aa; color:#c2410c; }
.call-mic-status.is-denied,
.call-mic-status.is-error { background:#fef2f2; border-color:#fecaca; color:#dc2626; }
.call-mic-dot { width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px rgba(100,116,139,.12); }
.sip-call-status {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0;
}
.sip-call-idle,
.sip-call-ended { color:#64748b; }
.sip-call-ringing { color:#2563eb; animation:sip-pulse 1s ease-in-out infinite; }
.sip-call-active { color:#166534; }
.sip-call-failed { color:#dc2626; }
.call-modal-timer {
  min-height:40px; margin-top:20px; font-size:30px; line-height:1.25;
  font-weight:700; color:#111827; font-variant-numeric:tabular-nums;
}
.call-modal-actions {
  justify-content:center; gap:18px; padding:18px 22px 28px;
  border-top:0;
}
.call-round-btn {
  width:72px; height:72px; border:0; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; font-size:30px; line-height:1; cursor:pointer;
  box-shadow:0 10px 22px rgba(15,23,42,.16);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.call-round-btn:hover { transform:translateY(-1px); box-shadow:0 14px 28px rgba(15,23,42,.18); }
.call-round-btn:active { transform:translateY(0) scale(.97); box-shadow:0 7px 18px rgba(15,23,42,.16); }
.call-round-call { background:#22c55e; }
.call-round-call:hover { background:#16a34a; }
.call-round-end { background:#ef4444; }
.call-round-end:hover { background:#dc2626; }
@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:transparent; }

/* ──── 플로팅 액션 버튼 ──── */
.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; text-align:center; }
.attendance-card strong { display:block; font-size:14px; margin-top:6px; color:var(--muted); }
.attendance-number { font-size:26px; font-weight:700; letter-spacing:-.03em; }
.attendance-filter-row { display:flex; justify-content:flex-end; margin-top:12px; }
.attendance-filter-row .btn.active { background:#111827; border-color:#111827; color:#fff; }
.attendance-business-list { margin-top:14px; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; }
.attendance-business-item { border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.76); padding:13px; display:grid; gap:10px; }
.attendance-business-title { font-size:16px; font-weight:800; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attendance-business-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.attendance-business-count { border:1px solid var(--line); border-radius:10px; background:#fff; padding:9px 7px; display:grid; gap:4px; text-align:center; min-width:0; cursor:pointer; transition:.16s ease; }
.attendance-business-count:hover { border-color:#86efac; box-shadow:0 8px 20px rgba(16,185,129,.12); transform:translateY(-1px); }
.attendance-business-count strong { font-size:20px; line-height:1.1; color:var(--text); }
.attendance-business-count span { font-size:12px; color:var(--muted); font-weight:700; }
.attendance-people-modal { width:min(760px,100%); }
.attendance-people-list { display:grid; gap:8px; }
.attendance-people-row { display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; border:1px solid var(--line); border-radius:14px; background:#fff; padding:11px 12px; }
.attendance-people-name { font-size:15px; font-weight:800; color:var(--text); }
.attendance-people-meta { margin-top:3px; font-size:12px; color:var(--muted); }
.attendance-call-btn { width:38px; height:38px; border:0; border-radius:50%; background:#16a34a; color:#fff; display:grid; place-items:center; cursor:pointer; box-shadow:0 8px 18px rgba(22,163,74,.22); }
.attendance-call-btn svg { width:15px; height:15px; }
.attendance-call-btn:hover { background:#15803d; }
.activity-toolbar { display:grid; grid-template-columns:118px minmax(0,1fr) minmax(0,1fr) auto; gap:10px; align-items:end; margin-bottom:14px; }
.activity-toolbar .field { min-width:0; }
.activity-toolbar input, .activity-toolbar select { box-sizing:border-box; }
.activity-toolbar-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.activity-month-field { min-width:0; padding-top:0; }
.activity-month-field input {
  display:flex; align-items:center; width:118px; min-width:0; max-width:118px; height:40px;
  padding:0 8px; font-size:14px; font-weight:800; line-height:40px; text-align:center; box-sizing:border-box;
}
.activity-current-path { align-self:center; min-height:42px; display:flex; align-items:center; border:1px solid var(--line); border-radius:12px; background:#fff; padding:0 14px; color:var(--muted); font-weight:800; }
.activity-editor-panel, .activity-preview-panel { border:1px solid var(--line); border-radius:14px; background:#fff; padding:14px; margin-bottom:14px; }
.activity-panel-head { display:flex; align-items:center; gap:10px; justify-content:space-between; margin-bottom:12px; }
.activity-panel-head strong { flex:1; color:var(--text); font-size:15px; }
.activity-biz-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; }
.activity-biz-card, .activity-person-row { border:1px solid var(--line); background:#fff; text-align:left; cursor:pointer; transition:.16s ease; }
.activity-biz-card { border-radius:14px; padding:14px; display:grid; gap:6px; }
.activity-biz-card:hover, .activity-person-row:hover { border-color:#86efac; box-shadow:0 8px 20px rgba(16,185,129,.12); transform:translateY(-1px); }
.activity-biz-card strong { color:var(--text); font-size:16px; }
.activity-biz-card span, .activity-person-row span { color:var(--muted); font-size:12px; font-weight:700; }
.activity-people-list { display:grid; gap:8px; }
.activity-person-row { border-radius:12px; padding:12px 14px; display:grid; gap:4px; }
.activity-person-row strong { color:var(--text); font-size:14px; }
.activity-summary-list { display:grid; gap:8px; max-height:62vh; overflow:auto; padding-right:2px; }
.activity-more-loading { padding:10px 0; }
.activity-summary-row { width:100%; display:grid; grid-template-columns:minmax(0,1fr) 58px 74px minmax(82px,auto); align-items:center; gap:8px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; text-align:left; cursor:pointer; }
.activity-summary-row:hover { border-color:#86efac; box-shadow:0 8px 20px rgba(16,185,129,.12); transform:translateY(-1px); }
.activity-summary-row strong { display:block; color:var(--text); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.activity-summary-row .name-phone-plain { white-space:nowrap; }
.activity-phone-tail { color:var(--muted); font-size:12px; font-weight:700; }
.activity-summary-row small { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-weight:700; white-space:normal; overflow:visible; text-overflow:clip; line-height:1.35; word-break:keep-all; }
.activity-summary-row em { color:var(--text); font-style:normal; font-size:13px; font-weight:700; text-align:right; font-variant-numeric:tabular-nums; }
.activity-record-modal { width:min(760px,100%); }
.activity-month-field input[type="month"]::-webkit-date-and-time-value { text-align:center; font-weight:800; }
.activity-table-wrap { overflow:hidden; }
.activity-edit-table { width:100%; min-width:0; max-width:100%; border-collapse:collapse; table-layout:fixed; font-size:13px; }
.activity-edit-table th, .activity-edit-table td { border-bottom:1px solid var(--line); padding:8px 6px; text-align:left; vertical-align:middle; white-space:nowrap; }
.activity-edit-table th:nth-child(1), .activity-edit-table td:nth-child(1) { width:64px; }
.activity-edit-table th:nth-child(2), .activity-edit-table td:nth-child(2) { width:auto; }
.activity-edit-table th:nth-child(3), .activity-edit-table td:nth-child(3) { width:72px; text-align:center; }
.activity-edit-table th { color:var(--muted); font-size:12px; background:#f9fafb; }
.activity-edit-table td:first-child strong { display:block; font-size:13px; color:var(--text); }
.activity-edit-table td:first-child span { display:block; margin-top:2px; font-size:11px; color:var(--muted); }
.activity-edit-table td.activity-weekend,
.activity-edit-table td.activity-weekend strong,
.activity-edit-table td.activity-weekend span { color:#dc2626 !important; }
.activity-time-cell { overflow:hidden; text-overflow:ellipsis; }
.activity-edit-table td.activity-time-cell .activity-time-range { display:block; overflow:hidden; color:var(--text); font-size:13px; font-weight:700; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.activity-edit-table td.activity-time-cell .activity-work-duration { display:block; margin-top:2px; color:var(--muted); font-size:11px; font-weight:700; line-height:1.3; white-space:nowrap; }
.activity-pay-cell { font-variant-numeric:tabular-nums; }
.activity-time-pair { display:flex; align-items:center; justify-content:flex-start; gap:4px; white-space:nowrap; min-width:0; }
.activity-time-pair input { min-width:0; }
.activity-time-sep { color:var(--muted); font-size:11px; }
.activity-work-hours { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:700; }
.activity-edit-table input { width:100%; min-width:0; border:1px solid var(--line); border-radius:8px; padding:7px 6px; font:inherit; }
.activity-edit-table input[type="time"] { flex:1 1 0; width:0; max-width:72px; padding:6px 1px; font-size:12px; }
.activity-row-actions { display:flex; gap:6px; justify-content:flex-start; margin-top:5px; }
.activity-row-actions .btn { min-height:28px; padding:0 10px; }
.activity-edit { display:none; }
.activity-edit-table tr.editing .activity-edit { display:inline-flex; }
.activity-edit-table tr.editing input.activity-edit { display:block; }
.activity-edit-table tr.editing .activity-read,
.activity-edit-table tr.editing [data-action="edit-activity-row"] { display:none; }
.activity-location-check { align-items:center; gap:6px; color:var(--text); font-weight:700; }
.activity-location-check input { width:auto; min-width:0; }
.activity-preview-head { display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:12px; margin-bottom:10px; }
.activity-preview-head strong { color:var(--text); font-size:14px; }
.activity-a4-sheet { width:min(794px,100%); aspect-ratio:210/297; margin:0 auto; background:#fff; border:1px solid #d1d5db; box-shadow:0 10px 28px rgba(15,23,42,.12); padding:28px; overflow:hidden; }
.activity-doc { height:100%; display:flex; flex-direction:column; color:#111827; font-family:Arial, sans-serif; }
.activity-doc-title { text-align:center; font-size:24px; font-weight:800; margin-bottom:10px; }
.activity-doc-top { display:grid; grid-template-columns:1fr 1fr; border:1px solid #111827; border-bottom:0; font-size:13px; font-weight:800; }
.activity-doc-top span { padding:8px 10px; border-right:1px solid #111827; }
.activity-doc-top span:last-child { border-right:0; }
.activity-doc-split { display:grid; grid-template-columns:1fr 1fr; align-items:start; }
.activity-doc-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:11px; }
.activity-doc-table th, .activity-doc-table td { border:1px solid #111827; padding:3px 4px; text-align:center; height:26px; word-break:keep-all; }
.activity-doc-table th { background:#f3f4f6; font-weight:800; }
.activity-doc-table .day { width:26px; font-weight:800; font-size:13px; }
.activity-doc-table .sat .day, .activity-doc-table .sat td:nth-child(2) { color:#075985; font-weight:800; }
.activity-doc-table .sun .day, .activity-doc-table .sun td:nth-child(2) { color:#991b1b; font-weight:800; }
.activity-doc-confirm { display:flex; justify-content:flex-end; gap:10px; border:1px solid #111827; border-top:0; padding:7px 10px; font-size:13px; font-weight:800; }
.activity-doc-summary { display:flex; justify-content:flex-end; gap:18px; border:1px solid #111827; border-top:0; padding:7px 8px; font-size:12px; }
.activity-doc-note { margin-top:auto; border:1px solid #111827; display:grid; grid-template-columns:70px 1fr 170px; font-size:11px; }
.activity-doc-note strong, .activity-doc-note span { padding:8px; border-right:1px solid #111827; }
.activity-doc-note span:last-child { border-right:0; }
.activity-pay-list { display:grid; gap:8px; }
.activity-pay-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.activity-pay-tab { border:1px solid var(--line); border-radius:12px; background:#fff; padding:10px 16px; color:var(--muted); font-weight:800; cursor:pointer; }
.activity-pay-tab.active { background:#111827; border-color:#111827; color:#fff; }
.activity-pay-panel { border:1px solid var(--line); border-radius:14px; padding:16px; background:#fff; }
.activity-pay-panel-head { display:grid; gap:4px; margin-bottom:14px; }
.activity-pay-panel-head strong { color:var(--text); font-size:16px; }
.activity-pay-panel-head span { color:var(--muted); font-size:13px; }
.activity-pay-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.activity-pay-grid input { border:1px solid var(--line); border-radius:10px; padding:9px 10px; font:inherit; }
.activity-pay-check { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:10px; padding:10px 12px; color:var(--text); font-weight:700; }
.activity-pay-check input { width:auto; }
.activity-pay-rule { margin-top:12px; border:1px solid #fde68a; background:#fffbeb; color:#92400e; border-radius:10px; padding:10px 12px; font-size:13px; font-weight:700; }
@media print {
  body * { visibility:hidden !important; }
  #activityPdfPreview, #activityPdfPreview * { visibility:visible !important; }
  #activityPdfPreview { position:fixed; inset:0; width:210mm; height:297mm; box-shadow:none; border:0; padding:10mm; }
}
@media (max-width:760px) {
  .activity-toolbar { grid-template-columns:1fr 1fr; }
  .activity-month-field { grid-column:1 / -1; }
  .activity-month-field { width:100%; max-width:100%; overflow:hidden; padding-top:0; }
  .activity-month-field input[type="month"] {
    -webkit-appearance:none; appearance:none; display:flex; align-items:center;
    width:100%; max-width:100%; min-width:0; inline-size:100%; max-inline-size:100%;
    height:40px; line-height:40px; box-sizing:border-box;
  }
  .activity-month-field input[type="month"]::-webkit-date-and-time-value { text-align:center; line-height:40px; font-weight:800; }
  .activity-toolbar-actions { grid-column:1 / -1; justify-content:flex-start; }
  .activity-a4-sheet { padding:14px; }
  .activity-summary-row { grid-template-columns:minmax(0,1fr) 44px 58px minmax(76px,auto); gap:6px; padding:11px 9px; }
  .activity-summary-row em { font-size:12px; }
  .activity-record-modal { width:100%; }
  .activity-record-modal .modal-body { padding-left:10px; padding-right:10px; }
  .activity-edit-table { width:100%; font-size:11px; }
  .activity-edit-table th, .activity-edit-table td { min-width:0; padding:8px 4px; box-sizing:border-box; overflow:hidden; text-overflow:ellipsis; }
  .activity-edit-table th:nth-child(1), .activity-edit-table td:nth-child(1) { width:52px; }
  .activity-edit-table th:nth-child(3), .activity-edit-table td:nth-child(3) { width:58px; text-align:center; }
  .activity-edit-table td:first-child strong { font-size:12px; }
  .activity-edit-table td:first-child span { font-size:10px; }
  .activity-time-range { font-size:12px; }
  .activity-work-duration { font-size:10px; }
}

.fax-topbar { justify-content:flex-end; }
.fax-topbar .top-actions { margin-left:auto; }

/* 설정 */
.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 { }
.settings-panel-actions { display:flex; justify-content:flex-end; margin-top:14px; }
.settings-stats-content { display:block; }
.call-stats-toolbar { display:flex; flex-direction:column; align-items:stretch; gap:10px; margin-bottom:14px; }
.call-stats-toolbar .select-soft { height:38px; }
.call-stats-tabs { display:inline-flex; align-self:center; justify-content:center; padding:3px; background:#f2f4f7; border-radius:999px; gap:3px; }
.call-stats-tab { border:0; background:transparent; color:var(--muted); border-radius:999px; padding:8px 18px; min-width:78px; font-size:13px; font-weight:800; text-align:center; cursor:pointer; }
.call-stats-tab.active { background:#fff; color:var(--text); box-shadow:0 5px 12px rgba(16,24,40,.08); }
.call-stats-filter-row { display:flex; align-items:center; gap:8px; width:100%; }
.call-stats-filter-row #callStatsDays { flex:0 0 112px; }
.call-stats-select { flex:1; min-width:0; max-width:none; }
.call-stats-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.call-stats-summary div { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#f9fafb; text-align:center; }
.call-stats-summary strong { display:block; font-size:24px; color:var(--text); font-weight:800; line-height:1.1; }
.call-stats-summary span { display:block; margin-top:5px; color:var(--muted); font-size:12px; font-weight:700; }
.call-stats-chart-section,
.call-stats-list-section { border:1px solid var(--line); border-radius:14px; padding:14px; background:#fff; margin-top:12px; }
.call-stats-section-title { font-size:14px; font-weight:800; color:var(--text); margin-bottom:12px; }
.call-stats-chart { display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); gap:3px; align-items:end; overflow:hidden; padding:2px 0 4px; }
.call-stats-chart-weekday { grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.call-stats-xbar { min-width:0; display:grid; grid-template-rows:96px 18px; align-items:end; gap:6px; text-align:center; }
.call-stats-xbar-value { display:none; }
.call-stats-xbar-track { height:96px; min-width:0; display:flex; align-items:flex-end; justify-content:center; background:transparent; overflow:hidden; }
.call-stats-xbar-track span { display:block; width:6px; min-height:3px; border-radius:8px 8px 0 0; background:#2563eb; }
.call-stats-xbar-label { color:var(--muted); font-size:9px; font-weight:800; white-space:nowrap; line-height:1; min-height:10px; overflow:hidden; text-overflow:clip; }
.call-stats-chart-weekday .call-stats-xbar-track span { width:100%; max-width:26px; }
.call-stats-chart-weekday .call-stats-xbar-label { font-size:10px; }
.call-stats-list { display:flex; flex-direction:column; gap:8px; }
.call-stats-row { width:100%; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid var(--line); background:#fff; border-radius:12px; padding:10px 12px; text-align:left; cursor:pointer; transition:.15s ease; }
.call-stats-row:hover { border-color:#bfdbfe; background:#eff6ff; }
.call-stats-rank { width:26px; height:26px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:#f2f4f7; color:var(--muted); font-size:12px; font-weight:800; }
.call-stats-row-main { min-width:0; }
.call-stats-row-main strong { display:block; color:var(--text); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.call-stats-row-main small { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:700; }
.call-stats-row-count { color:var(--text); font-size:18px; font-weight:800; }
#page-settings input:disabled {
  background:#f8fafc; color:#475467; -webkit-text-fill-color:#475467;
  cursor:not-allowed;
}
.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); }

/* 안부관리 */
.care-topbar { align-items:flex-start; }
.care-actions { width:100%; margin-left:0; justify-content:center; align-items:center; }
.care-mode-tabs { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:4px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.78); }
.care-mode-tab { width:100%; height:40px; border:0; border-radius:10px; background:transparent; color:var(--muted); font-weight:800; cursor:pointer; }
.care-mode-tab.active { background:var(--text); color:#fff; box-shadow:0 8px 18px rgba(16,24,40,.14); }
.care-routine-panel { display:grid; gap:13px; }
.care-mode-panel { display:none; }
.care-mode-panel.active { display:block; }
.care-summary-row { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.care-target-toggle { height:34px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--muted); font-weight:800; cursor:pointer; }
.care-target-toggle.active { background:var(--text); color:#fff; border-color:var(--text); }
.care-selected-count { margin-left:auto; color:var(--muted); font-size:13px; font-weight:800; }
.care-target-list { display:grid; gap:8px; margin:12px 0; max-height:42vh; overflow:auto; }
.care-target-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.care-target-row strong { display:block; color:var(--text); font-size:14px; }
.care-target-row span { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-weight:700; }
.care-target-status { color:#047857; font-size:12px; font-weight:800; }
.care-send-btn { width:100%; height:44px; border:0; border-radius:11px; background:#2563eb; color:#fff; font:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.care-send-btn:disabled { background:#cbd5e1; cursor:not-allowed; }
.care-reserve-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.care-reserve-grid .field input[type="date"],
.care-reserve-grid .field input[type="time"] {
  -webkit-appearance:none; appearance:none; width:100%; max-width:100%;
  min-height:40px; height:40px; line-height:40px; padding:0 10px; font-size:15px;
}
.care-reserve-grid .field input[type="date"]::-webkit-date-and-time-value,
.care-reserve-grid .field input[type="time"]::-webkit-date-and-time-value {
  text-align:left;
}

/* 전화설정: 담당자 내선표 */
.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); }

.phone-manager-picker { display:flex; align-items:center; gap:8px; }
.phone-manager-picker select { flex:1; min-width:0; }
.phone-manager-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; min-height:28px; }
.phone-manager-tag { display:inline-flex; align-items:center; gap:6px; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; border-radius:999px; padding:5px 9px; font-size:12px; font-weight:700; }
.phone-manager-order { width:18px; height:18px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:#2563eb; color:#fff; font-size:11px; }
.phone-manager-tag button { border:0; background:transparent; color:#60a5fa; cursor:pointer; padding:0 0 0 2px; font-size:16px; line-height:1; }
.phone-manager-empty { color:var(--muted); font-size:12px; font-weight:600; align-self:center; }

.phone-prompt-list { display:flex; flex-direction:column; gap:10px; }
.phone-prompt-row { display:grid; grid-template-columns:150px minmax(180px,1fr) auto auto; align-items:center; gap:10px;
  padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.phone-prompt-row label { color:var(--text); font-weight:700; font-size:13px; margin:0; }
.phone-prompt-row select { min-width:0; border:1px solid var(--line); border-radius:10px; padding:8px 10px; font-size:13px; color:var(--text); background:#fff; }
.phone-prompt-hidden { display:none; }
.phone-prompt-current { min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:#f9fafb; color:var(--text); font-size:13px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-prompt-play-btn.is-playing { min-width:44px; color:#2563eb; border-color:#bfdbfe; background:#eff6ff; }

/* 근무 스케쥴 */
.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-info { display:flex; flex-direction:column; gap:6px; }
.call-card-name { font-weight:700; font-size:16px; }
.call-card-manager-inline {
  display:inline-flex; align-items:center; flex:0 0 auto; margin-left:8px; padding:2px 8px;
  border:1px solid #cbd5e1; border-radius:999px; color:var(--text);
  font-size:13px; font-weight:400; line-height:1.25;
}
.call-card-missed .call-card-name,
.call-card-missed .call-route-caller,
.call-card-missed .call-route-arrow,
.call-card-missed .call-route-manager,
.call-card-missed .name-phone-plain { color:#dc2626; }
.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-color:var(--line); }
.call-card-missed:hover,
.call-card-missed.open { border-left-color:#c7d2dc; }
.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-list { display:grid; gap:10px; }
.fax-row { display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:12px; border:1px solid var(--line); background:rgba(255,255,255,.78); border-radius:16px; padding:12px; cursor:pointer; transition:.16s ease; }
.fax-row:hover { border-color:#bfdbfe; box-shadow:0 10px 22px rgba(37,99,235,.1); transform:translateY(-1px); }
.fax-thumb { width:58px; height:58px; border-radius:12px; background:#f8fafc; border:1px solid var(--line); object-fit:cover; display:grid; place-items:center; color:#98a2b3; font-size:12px; font-weight:800; overflow:hidden; }
.fax-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.fax-title { font-weight:800; color:var(--text); }
.fax-meta { margin-top:3px; font-size:12px; color:var(--muted); }
.fax-status { justify-self:end; }
.fax-view-modal { width:min(900px,100%); }
.fax-view-body { min-height:280px; display:grid; place-items:center; background:#f8fafc; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.fax-view-body img { max-width:100%; max-height:70vh; display:block; }
.fax-view-body iframe { width:100%; height:70vh; border:0; background:#fff; }
.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; }

.admin-manager-tools { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.admin-manager-tools select { flex:1; min-width:0; }
.admin-manager-list { display:flex; flex-direction:column; gap:8px; }
.admin-manager-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border:1px solid var(--line); border-radius:14px; background:#fff; padding:10px 12px;
}
.admin-manager-row strong { display:block; font-size:14px; color:var(--text); }
.admin-manager-row span { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-weight:600; }

/* 담당자 목록 (사업 수정 모달) */
.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; }
  .lp-hero { grid-template-columns:1fr; gap:65px; padding-top:70px; }
  .lp-hero-copy { max-width:720px; }
  .lp-hero-visual { width:min(560px,92%); margin:0 auto; }
  .lp-value-grid { grid-template-columns:1fr; }
  .lp-value-grid article { min-height:240px; }
  .lp-value-icon { margin-bottom:35px; }
  .lp-feature-layout { grid-template-columns:1fr; }
  .lp-demo-grid { grid-template-columns:repeat(2,1fr); }
  .lp-steps { grid-template-columns:1fr; gap:20px; }
  .lp-steps > i { display:none; }
}
@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-nav,.lp-section,.lp-footer { width:min(100% - 34px,1180px); }
  .lp-nav { height:66px; }
  .lp-nav-links { display:none; }
  .lp-logo img { width:34px;height:34px; }.lp-logo strong { font-size:18px; }
  .lp-nav-login { height:36px;padding:0 13px; }
  .lp-hero { min-height:0; padding:62px 0 85px; gap:55px; }
  .lp-eyebrow { font-size:11px; }
  .lp-hero h1 { font-size:clamp(39px,11vw,52px); }
  .lp-hero-copy > p { font-size:15px; }
  .lp-hero-actions { align-items:stretch; flex-direction:column; }
  .lp-primary-action,.lp-secondary-action { width:100%; }
  .lp-hero-trust { align-items:flex-start; flex-direction:column; gap:8px; }
  .lp-hero-visual { width:100%; padding:17px; border-radius:21px; transform:none; }
  .lp-visual-bubble { position:static; width:100%; margin-top:13px; transform:none; box-shadow:none; }
  .lp-value,.lp-features,.lp-demos { padding:85px 0; }
  .lp-section-head { margin-bottom:36px; text-align:left; }.lp-section-head h2,.lp-start-copy h2 { font-size:35px; }
  .lp-value-grid article { min-height:255px;padding:25px; }
  .lp-feature-main { min-height:0;padding:34px 27px; }.lp-feature-main h3 { margin-top:42px;font-size:28px; }
  .lp-feature-cards { grid-template-columns:1fr; }.lp-feature-cards article { min-height:165px; }
  .lp-demo-grid { grid-template-columns:1fr; }.lp-demo-card { min-height:240px; }
  .lp-start { width:100%; margin-top:70px; padding:75px 17px; border-radius:0; }
  .lp-start-copy,.lp-steps,.lp-start-cta { width:min(100% - 0px,1180px); }
  .lp-start-cta { grid-template-columns:46px 1fr;padding:17px; }.lp-start-cta img { width:46px;height:46px; }.lp-start-cta button { grid-column:1/-1;width:100%; }
  .lp-footer { margin-top:65px; grid-template-columns:1fr; }.lp-footer-links { gap:17px; }.lp-footer p { grid-column:auto; }
  .phone-prompt-row { grid-template-columns:1fr; }
  .holiday-actions { align-items:stretch; flex-direction:column; }
  .admin-manager-tools, .admin-manager-row { align-items:stretch; flex-direction:column; }
}
