*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #eef2f7;
  --surface:      #ffffff;
  --card:         #f1f5f9;
  --border:       #dde3ec;
  --border-hi:    #c4cfde;
  --accent:       #4f46e5;
  --accent-dim:   #6366f1;
  --success:      #059669;
  --success-bg:   #d1fae5;
  --warning:      #d97706;
  --danger:       #dc2626;
  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --r:            10px;
  --r-sm:         6px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

/* 앱 화면일 때만 full-height + no-scroll */
body.app-mode {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 50px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
}
.logo { font-size: 17px; font-weight: 800; letter-spacing: 3px; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 17px; font-weight: 800; letter-spacing: 3px; color: var(--accent); }
.logo-area { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.logo-group {
  font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-2);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 12px; cursor: default;
  display: inline-flex; align-items: center;
}
.header-right { display: flex; align-items: center; gap: 8px; }
header .btn-sm,
header .sip-status,
header .user-chip,
header .user-logout,
header .logo-group { height: 30px; box-sizing: border-box; line-height: 1; }
.conn-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.header-prompts { display: flex; align-items: center; gap: 8px; }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); transition: background .3s; }
.conn-dot.off { background: var(--text-3); }
#clock { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 268px 1fr 296px;
  flex: 1;
  overflow: hidden;
}

/* ── PANEL COMMONS ── */
.panel { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border); }
.panel-right { border-right: none; border-left: 1px solid var(--border); }
.panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.panel-hd-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-title { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-2); }
.scroll { overflow-y: auto; flex: 1; }
.scroll::-webkit-scrollbar { width: 4px; }
.scroll::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

/* ── LEFT PANEL ── */
.upload-zone {
  margin: 10px 12px 0;
  border: 1.5px dashed var(--border-hi);
  border-radius: var(--r);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.upload-zone:hover, .upload-zone.over { border-color: var(--accent); background: rgba(129,140,248,.06); }
.upload-zone .uz-icon { font-size: 22px; margin-bottom: 4px; }
.upload-zone p { font-size: 12px; color: var(--text-2); }
.upload-zone strong { color: var(--accent); }
#file-input { display: none; }

/* 왼쪽 진행도 */
.calls-progress {
  margin: 10px 12px 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r);
  display: grid; grid-template-columns: 1fr 1px 1fr;
  flex-shrink: 0; overflow: hidden;
}
.cp-item {
  padding: 10px 8px 9px; text-align: center;
}
.cp-divider { background: var(--border); }
.cp-num  { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; display: block; }
.cp-called { color: var(--accent); }
.cp-total  { color: var(--text-3); }
.cp-label { font-size: 10px; color: var(--text-3); margin-top: 4px; display: block; line-height: 1.3; }

/* 가운데 깔때기 카운터 */
.funnel-bar {
  display: flex; align-items: stretch;
  background: var(--surface); border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.funnel-item {
  flex: 1; text-align: center; padding: 14px 6px 12px;
  position: relative;
}
.funnel-item + .funnel-item::before {
  content: '▶';
  position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--text-3);
}
.fi-num {
  font-size: 38px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: all .25s ease;
}
.fi-label { font-size: 11px; color: var(--text-2); margin-top: 5px; }
.fi-sub   { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.fi-called   .fi-num { color: var(--accent); }
.fi-answered .fi-num { color: var(--warning); }
.fi-interested .fi-num { color: var(--success); }
.fi-num.bump { animation: bump .3s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.28)} 100%{transform:scale(1)} }

.list-hd {
  padding: 8px 8px;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}
.lf-btn {
  flex: 1;
  font-size: 10px; font-weight: 600;
  padding: 6px 0;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-2);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: background .12s, color .12s;
}
.lf-btn:hover { background: rgba(0,0,0,.04); color: var(--text-1); }
.lf-btn.lf-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.lf-label { line-height: 1.2; }
.lf-cnt {
  font-size: 11px; font-weight: 700;
  line-height: 1;
}

.call-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; cursor: pointer;
  transition: background .15s;
  border-left: 2.5px solid transparent;
}
.call-item:hover { background: rgba(0,0,0,.04); }
.call-item.ci-active { background: rgba(129,140,248,.08); border-left-color: var(--accent); }
.call-item.ci-success { border-left-color: var(--success); }
.call-item.ci-completed { }

.ci-avatar { display: none; }
.ci-success .ci-avatar { color: var(--success); }
.ci-num {
  font-size: 11px; color: var(--text-1); flex-shrink: 0;
  font-variant-numeric: tabular-nums; line-height: 1;
  min-width: 32px; text-align: right; padding-right: 6px;
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-sub  { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-addr { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ci-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.ci-badge-link { cursor: pointer; }
.ci-badge-link:hover { filter: brightness(1.15); opacity: .9; }
.ci-smart-dial-btn { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; background: rgba(52,211,153,.15); color: var(--success); border: none; cursor: pointer; margin-left: 4px; }
.ci-smart-dial-btn:hover { background: rgba(52,211,153,.3); }
.b-calling   { background: rgba(251,191,36,.15); color: var(--warning); }
.b-dialing   { background: rgba(167,139,250,.15); color: #a78bfa; }
.b-success   { background: rgba(52,211,153,.15);  color: var(--success); }
.b-completed { background: rgba(239,68,68,.18);   color: #ef4444; }
.b-missed    { background: rgba(100,116,139,.15);  color: var(--text-2); }
.call-item.ci-missed { }

/* ── CENTER PANEL ── */
.panel-center { display: flex; flex-direction: column; overflow: hidden; }
.center-wrap  { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
#call-view { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 680px; height: 100%; padding: 4px 0; }

/* idle */
#idle-view { text-align: center; max-width: 540px; }
.idle-icon  { font-size: 52px; margin-bottom: 18px; opacity: .55; }
.idle-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.idle-desc  { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 28px; }

/* call view */
#call-view { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; }

.contact-card-wrap {
  border-radius: var(--r); flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
/* ripple directly on wrapper — box-shadow is NOT clipped by own overflow:hidden */
.contact-card-wrap.calling {
  animation: wrap-ripple 1.8s ease-out infinite;
}
@keyframes wrap-ripple {
  0%   { box-shadow: 0 0 0 0   rgba(251,191,36,.6),  0 0 0 0   rgba(251,191,36,.35); }
  60%  { box-shadow: 0 0 0 10px rgba(251,191,36,.08), 0 0 0 22px rgba(251,191,36,.02); }
  100% { box-shadow: 0 0 0 14px rgba(251,191,36,0),   0 0 0 28px rgba(251,191,36,0); }
}
.contact-card {
  background: var(--card); border: 2px solid rgba(129,140,248,.45);
  border-radius: var(--r); padding: 24px 16px;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  transition: border-color .3s, box-shadow .3s;
}
.contact-card.calling {
  border-color: var(--warning);
}
.contact-card.next-call {
  animation: card-next .9s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes card-ripple {
  0%   { box-shadow: 0 0 0 0   rgba(251,191,36,.55), 0 0 0 0   rgba(251,191,36,.3); }
  60%  { box-shadow: 0 0 0 10px rgba(251,191,36,.08), 0 0 0 22px rgba(251,191,36,.0); }
  100% { box-shadow: 0 0 0 14px rgba(251,191,36,0),   0 0 0 28px rgba(251,191,36,0); }
}
@keyframes card-next {
  0%   { opacity:1; transform:translateY(0); }
  38%  { opacity:0; transform:translateY(-50px); }
  42%  { opacity:0; transform:translateY(50px); }
  100% { opacity:1; transform:translateY(0); }
}
.cc-num-block {
  display: flex; align-items: center; justify-content: center;
  min-width: 72px; width: 72px; align-self: stretch;
  background: rgba(129,140,248,.18); border-radius: calc(var(--r) - 2px) 0 0 calc(var(--r) - 2px);
  font-size: 22px; font-weight: 800; color: var(--accent);
  flex-shrink: 0; margin: -24px 16px -24px -16px;
}
.cc-num {
  font-size: 11px; color: var(--text-3); min-width: 22px; text-align: right;
  flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.cc-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(129,140,248,.1); border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--accent); flex-shrink: 0;
}
.cc-info { flex: 1; min-width: 0; display: flex; align-items: center; }
.cc-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-name { font-size: 20px; font-weight: 700; flex-shrink: 0; }
.cc-phone-inline { font-size: 17px; color: var(--text-2); flex-shrink: 0; }
.cc-divider { width: 1px; height: 20px; background: var(--border-hi); flex-shrink: 0; margin: 0 6px; }
.cc-addr { font-size: 18px; font-weight: 500; color: var(--text-1); white-space: normal; word-break: break-word; }
.cc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.rec-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--warning);
  background: rgba(251,191,36,.1); padding: 4px 10px; border-radius: 6px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }
.call-timer { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--warning); }

.tx-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); flex-shrink: 0; }
#stt-status { font-size: 11px; color: var(--warning); margin-left: 8px; }

.tx-box {
  flex: 1; background: rgba(99,102,241,.06); border: 1px solid rgba(129,140,248,.3);
  border-radius: var(--r); padding: 14px 16px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 0;
  position: relative;
}
.tx-box.tx-box-sm {
  flex: none; height: 180px; min-height: 180px;
  justify-content: center;
}
.tx-box::-webkit-scrollbar { width: 4px; }
.tx-box::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }
.tx-chip {
  position: absolute; right: 12px; top: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  background: rgba(129,140,248,.18); color: rgba(129,140,248,.9);
  border: 1px solid rgba(129,140,248,.35);
  border-radius: 20px; padding: 2px 8px;
  user-select: none;
}
.tx-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 8px; color: var(--text-3); font-size: 13px; }
.tx-bubble {
  display: block; padding: 6px 12px; border-radius: 8px;
  font-size: 14px; line-height: 1.55; animation: fadein .2s ease;
  text-align: center; color: var(--text-2);
}
.tb-final   { background: transparent; }
.tb-current { font-size: 20px; font-weight: 800; color: var(--text); background: rgba(99,102,241,.08); border: 1px solid rgba(129,140,248,.18); }
.tb-interim { background: rgba(129,140,248,.08); color: #888; border: 1px solid rgba(129,140,248,.2); font-style: italic; font-size: 12px; }
@keyframes fadein { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }

.call-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; justify-content: center; padding-top: 20px; padding-bottom: 4px; }
.btn-camp-main {
  font-size: 20px !important; font-weight: 800; letter-spacing: .5px;
  padding: 0 48px; height: 62px; min-width: 240px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-camp-main svg { flex-shrink: 0; }
.btn-camp-start {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff; border: none;
  box-shadow: 0 4px 18px rgba(16,185,129,.35);
}
.btn-camp-start:hover { background: linear-gradient(135deg, #047857 0%, #059669 100%); box-shadow: 0 6px 24px rgba(16,185,129,.45); }
.btn-camp-stop {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
  color: #fff; border: none;
  box-shadow: 0 4px 18px rgba(75,85,99,.25);
}
.btn-camp-stop:hover { background: linear-gradient(135deg, #374151 0%, #4b5563 100%); box-shadow: 0 6px 24px rgba(75,85,99,.35); }
.btn-camp-end-call {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff; border: none;
  box-shadow: 0 4px 18px rgba(239,68,68,.4);
  animation: pulse-red 1.8s ease-in-out infinite;
}
.btn-camp-end-call:hover { background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%); box-shadow: 0 6px 24px rgba(239,68,68,.55); animation: none; }
@keyframes pulse-red {
  0%,100% { box-shadow: 0 4px 18px rgba(239,68,68,.4); }
  50%      { box-shadow: 0 4px 28px rgba(239,68,68,.7); }
}
.spacer { flex: 1; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; border: none;
  cursor: pointer; transition: all .18s; outline: none; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--accent-dim); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(5,150,105,.3); }
.btn-success:hover { background: #a7f3d0; }
.btn-ghost   { background: var(--card); color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-danger  { background: rgba(239,68,68,.12); color: var(--danger); border: 1px solid rgba(239,68,68,.2); }
.btn-danger:hover { background: rgba(239,68,68,.22); }
.btn-sm  { padding: 5px 12px; font-size: 12px; }
.btn-lg  { padding: 13px 40px; font-size: 16px; border-radius: var(--r); }

/* ── RIGHT PANEL ── */
.panel-right {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  overflow: hidden;
}
.r-section {
  display: flex; flex-direction: column; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.r-section:last-child { border-bottom: none; }
.r-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.r-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-2); }
.r-badge { background: rgba(129,140,248,.15); color: var(--accent); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.r-body  { flex: 1; overflow-y: auto; padding: 10px 12px; }
.r-body::-webkit-scrollbar { width: 3px; }
.r-body::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

/* records */
.rec-item {
  padding: 8px 10px; border-radius: var(--r-sm); margin-bottom: 6px;
  background: rgba(52,211,153,.05); border: 1px solid rgba(52,211,153,.1);
  animation: fadein .3s ease;
}
.ri-head { display: flex; justify-content: space-between; margin-bottom: 2px; }
.ri-name { font-size: 12px; font-weight: 700; color: var(--success); }
.ri-time { font-size: 10px; color: var(--text-3); }
.ri-meta { font-size: 11px; color: var(--text-2); }
.ri-note { font-size: 11px; color: var(--text-3); margin-top: 2px; font-style: italic; }

/* guide */
.guide-body { font-size: 12.5px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; }
.icon-btn { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 2px 4px; border-radius: 4px; transition: color .15s; }
.icon-btn:hover { color: var(--accent); }

/* memo */
.r-body-memo { flex: 1; display: flex; flex-direction: column; padding: 10px 12px; overflow: hidden; }
.memo-ta {
  flex: 1; width: 100%; background: transparent; border: none;
  color: var(--text); font-family: var(--font); font-size: 13px; line-height: 1.7;
  resize: none; outline: none;
}
.memo-ta::placeholder { color: var(--text-3); }
.save-ind { font-size: 10px; color: var(--text-3); height: 14px; }
.save-ind.saving { color: var(--warning); }
.save-ind.saved  { color: var(--success); }

/* ── EMPTY STATE ── */
.empty { text-align: center; padding: 24px 0; color: var(--text-3); font-size: 12px; }

/* ── MODAL ── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 900; backdrop-filter: blur(4px);
}
.overlay.hidden { display: none; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
  border-radius: 14px; padding: 24px; width: 420px; max-width: 92vw;
}
.modal-wide { width: 500px; }
.modal-title { font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.modal-sub   { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.form-lbl    { display: block; font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; letter-spacing: .5px; text-transform: uppercase; }
.form-ta {
  width: 100%; padding: 9px 12px; background: var(--card);
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font); font-size: 13px;
  resize: vertical; outline: none; transition: border-color .15s;
}
.form-ta:focus { border-color: var(--accent); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ── 캠페인 시작 옵션 모달 ── */
.camp-opt-group { margin: 16px 0 8px; }
.camp-opt-label { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.camp-opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.camp-radio-card { display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.camp-radio-card input[type=radio] { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.camp-radio-card:has(input:checked) { border-color: var(--accent); background: #eef2ff; }
.camp-radio-card:hover { border-color: var(--accent-dim); }
.camp-radio-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.camp-radio-desc { font-size: 11px; color: var(--text-2); line-height: 1.4; }
.camp-checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; cursor: pointer; }
.camp-checkbox-row input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.camp-cb-label { font-size: 13px; font-weight: 600; color: var(--text); }
.camp-cb-hint { font-size: 11px; color: var(--text-2); font-weight: 400; }

/* ── 배지: 긍정/관심 ── */
.b-interested { background: rgba(52,211,153,.12); color: #059669; }

/* ── 스마트콜 목록 (테이블 형태) ── */
#smart-call-btn-wrap { padding: 8px 16px 0; }
.smart-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.smart-tbl th { background: var(--bg); color: var(--text-2); font-size: 11px; padding: 8px 6px; text-align: center; border-bottom: 2px solid var(--border); white-space: nowrap; }
.smart-tbl td { padding: 7px 6px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.smart-tbl tr:last-child td { border-bottom: none; }
.st-n    { width: 28px; color: var(--text-2); font-size: 12px; }
.st-name { text-align: left; font-weight: 600; max-width: 120px; }
.st-phone { color: var(--text-2); white-space: nowrap; }
.st-act  { width: 72px; }
.st-res  { width: 72px; }
.st-call    { background: linear-gradient(135deg, #059669 0%, #10b981 100%); color: #fff; border: none; border-radius: 8px; padding: 7px 16px; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; letter-spacing: .3px; }
.st-call:hover   { background: linear-gradient(135deg, #047857 0%, #059669 100%); }
.st-hangup  { background: #ef4444; color: #fff; border: none; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 11px; white-space: nowrap; }
.st-hangup:hover { background: #dc2626; }
.st-success { background: rgba(34,197,94,.12); color: #16a34a; border: 1px solid rgba(34,197,94,.3); border-radius: 6px; padding: 5px 8px; cursor: pointer; font-size: 11px; white-space: nowrap; }
.st-success:hover { background: rgba(34,197,94,.25); }
.st-plain   { background: var(--card); color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; cursor: pointer; font-size: 11px; white-space: nowrap; }
.st-plain:hover  { background: var(--bg); }
.sl-empty { padding: 32px; text-align: center; color: var(--text-2); }

/* ── 멘트 관리 모달 ── */
.ment-cur-lbl  { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; margin-bottom: 6px; }
.ment-no-file  { padding: 14px; text-align: center; color: var(--text-3); font-size: 13px; background: var(--bg); border-radius: 8px; margin: 6px 0 10px; }
.ment-rec-label { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; margin: 14px 0 6px; }

/* ── TEST CALL MODAL ── */
.tc-modal { width: 400px; padding: 0; overflow: hidden; }
.tc-modal-header {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tc-modal-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.tc-close-btn {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--text-2); font-size: 15px; line-height: 1;
  padding: 4px 6px; border-radius: 6px; transition: background .15s;
}
.tc-close-btn:hover { background: var(--border); color: var(--text); }
.tc-modal-body { padding: 20px 22px; }
.tc-input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1.5px solid var(--border-hi);
  border-radius: var(--r-sm); overflow: hidden;
  transition: border-color .15s;
  margin-bottom: 8px;
}
.tc-input-wrap:focus-within { border-color: var(--accent); }
.tc-input-flag {
  padding: 0 10px 0 12px; font-size: 16px;
  border-right: 1px solid var(--border); line-height: 40px;
  background: var(--surface); flex-shrink: 0;
}
.tc-phone-inp {
  flex: 1; background: transparent; border: none !important;
  outline: none !important; padding: 0 12px;
  font-size: 17px; font-weight: 600; letter-spacing: .5px;
  color: var(--text); height: 44px;
}
.tc-caller-info {
  font-size: 11px; color: var(--text-2); margin-bottom: 14px;
}
.tc-caller-info strong { color: var(--text); font-weight: 700; }
.tc-result {
  font-size: 13px; border-radius: 8px; padding: 0; min-height: 0;
  transition: all .2s;
}
.tc-result:not(:empty) { padding: 10px 14px; margin-bottom: 4px; }
.tc-result.tc-pending { background: rgba(99,102,241,.08); color: var(--accent); }
.tc-result.tc-ok  { background: rgba(16,185,129,.1); color: #059669; }
.tc-result.tc-fail { background: rgba(239,68,68,.08); color: #dc2626; }
.tc-dial-btn { min-width: 110px; }

/* ── LOGIN ── */
.user-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 12px; cursor: default;
}
.user-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-dim); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.user-logout {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  font-size: 12px; padding: 5px 12px;
  border-radius: var(--r-sm); transition: all .15s;
  white-space: nowrap;
}
.user-logout:hover { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); color: var(--danger); }
.form-inp {
  width: 100%; padding: 9px 12px; background: var(--card);
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font); font-size: 14px;
  outline: none; transition: border-color .15s; margin-bottom: 12px;
}
.form-inp:focus { border-color: var(--accent); }
.single-target-error {
  min-height: 18px;
  margin-top: -4px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--danger);
}
.lock-notice {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2);
  border-radius: var(--r-sm); padding: 10px 14px; margin-top: 16px;
  font-size: 13px; color: var(--danger); text-align: center;
}

/* ── TOAST ── */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 7px; z-index: 1000; }
.toast { padding: 9px 15px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; animation: fadein .3s ease; }
.t-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,211,153,.3); }
.t-error   { background: rgba(239,68,68,.18); color: var(--danger);  border: 1px solid rgba(239,68,68,.3); }
.t-info    { background: var(--card); color: var(--text-2); border: 1px solid var(--border-hi); }

.hidden { display: none !important; }

/* ── SIP STATUS ── */
.sip-status {
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r-sm);
  letter-spacing: .3px;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid transparent;
}
.sip-success { background: rgba(52,211,153,.12); color: var(--success); border-color: rgba(5,150,105,.2); }
.sip-warn    { background: rgba(251,191,36,.10);  color: var(--warning); border-color: rgba(217,119,6,.2); }
.sip-error   { background: rgba(248,113,113,.12); color: var(--danger);  border-color: rgba(220,38,38,.2); }

/* 음파 애니메이션 */
.sip-wave { display:inline-flex; align-items:center; gap:2px; height:12px; }
.sip-wave i {
  display:block; width:3px; border-radius:2px;
  background: currentColor; opacity:.85;
  animation: sip-bar 0.9s ease-in-out infinite;
}
.sip-wave i:nth-child(1) { height:5px;  animation-delay:0s; }
.sip-wave i:nth-child(2) { height:10px; animation-delay:.2s; }
.sip-wave i:nth-child(3) { height:5px;  animation-delay:.4s; }
@keyframes sip-bar {
  0%,100% { transform:scaleY(1); opacity:.5; }
  50%      { transform:scaleY(1.7); opacity:1; }
}

/* ── PROMPT UPLOAD ── */
.prompt-upload { display: none; }
.prompt-label-right { font-size: 10px; color: var(--text-3); }
.prompt-upload.has-prompt .prompt-label-right { color: var(--success); }
#pm-file-input { display: none; }

/* ── PROMPT MODAL ── */
.pm-tabs {
  display: flex; gap: 6px; margin: 12px 0 10px;
}
.pm-tab {
  flex: 1; padding: 11px 0; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--card); color: var(--text-2);
  font-size: 13px; cursor: pointer; transition: all .2s;
}
.pm-tab.active {
  background: rgba(79,70,229,.1); border-color: var(--accent);
  color: var(--accent); font-weight: 600;
}
.pm-pane { }

/* 통일된 pane 박스 (파일 업로드 dropzone과 동일한 높이/느낌) */
.pm-zone {
  border: 2px dashed rgba(79,70,229,.25); border-radius: var(--r);
  padding: 24px 20px; text-align: center; cursor: default;
  background: rgba(79,70,229,.03); min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 8px;
  transition: all .2s;
}
.pm-zone.active-rec {
  border-color: var(--danger); background: rgba(220,38,38,.04);
}

.pm-dropzone {
  border: 2px dashed rgba(79,70,229,.25); border-radius: var(--r);
  padding: 28px 16px; text-align: center; cursor: pointer;
  background: rgba(79,70,229,.03); transition: all .2s; margin-bottom: 8px;
  min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.pm-dropzone:hover, .pm-dropzone.drag-over {
  border-color: var(--accent); background: rgba(79,70,229,.07);
}
.pm-dz-icon { font-size: 32px; margin-bottom: 8px; }
.pm-dz-text { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.pm-dz-hint { font-size: 11px; color: var(--text-3); }
.pm-filename {
  font-size: 12px; color: var(--success);
  background: rgba(52,211,153,.08); border-radius: var(--r-sm);
  padding: 6px 10px; display: flex; align-items: center; gap: 6px;
}

/* 녹음 컨트롤 */
.pm-rec-btn {
  padding: 10px 28px; font-size: 13px;
  background: rgba(220,38,38,.1); border: 1px solid var(--danger);
  color: var(--danger); border-radius: var(--r-sm);
  cursor: pointer; transition: all .2s; flex-shrink: 0;
  font-weight: 600;
}
.pm-rec-btn.recording {
  background: var(--danger); color: #fff; animation: recPulse 1.2s infinite;
}
@keyframes recPulse { 0%,100% { opacity:1 } 50% { opacity:.7 } }
.pm-rec-timer { font-size: 34px; font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }
.pm-rec-wave {
  display: flex; align-items: center; gap: 4px; height: 32px;
}
.pm-rec-wave span {
  display: inline-block; width: 5px; background: var(--danger);
  border-radius: 3px; animation: wave 0.8s ease-in-out infinite;
}
.pm-rec-wave span:nth-child(2) { animation-delay:.1s }
.pm-rec-wave span:nth-child(3) { animation-delay:.2s }
.pm-rec-wave span:nth-child(4) { animation-delay:.3s }
.pm-rec-wave span:nth-child(5) { animation-delay:.4s }
@keyframes wave {
  0%,100% { height:6px }
  50%      { height:24px }
}

/* TTS 탭 */
.pm-tts-zone { justify-content: flex-start; padding: 20px 20px 16px; gap: 8px; }
.pm-tts-ta {
  width: 100%; padding: 9px 12px;
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font); font-size: 13px; line-height: 1.6;
  resize: none; outline: none; transition: border-color .15s;
}
.pm-tts-ta:focus { border-color: var(--accent); }
.pm-tts-gen-btn {
  padding: 9px 24px; font-size: 13px; font-weight: 600;
  background: rgba(79,70,229,.1); border: 1px solid var(--accent);
  color: var(--accent); border-radius: var(--r-sm);
  cursor: pointer; transition: all .2s;
}
.pm-tts-gen-btn:disabled {
  opacity: .5; cursor: not-allowed;
}

/* 미리듣기 */
.pm-preview {
  margin-top: 12px; padding: 12px;
  background: rgba(129,140,248,.07); border-radius: var(--r-sm);
  border: 1px solid rgba(129,140,248,.15);
}
.pm-preview-lbl { font-size: 12px; color: var(--text-2); margin-bottom: 2px; }

/* ── WAITING BANNER ── */
.waiting-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(129,140,248,.12));
  border: 1.5px solid var(--success);
  border-radius: var(--r); padding: 14px 18px;
  flex-shrink: 0; animation: bannerIn .4s ease;
}
@keyframes bannerIn { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
.wb-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(52,211,153,.15), transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{opacity:.6} 50%{opacity:1} }
.wb-content { flex: 1; }
.wb-title { font-size: 14px; font-weight: 800; color: var(--success); margin-bottom: 4px; }
.wb-info  { display: flex; gap: 10px; }
.wb-name  { font-size: 15px; font-weight: 700; color: var(--text); }
.wb-phone { font-size: 13px; color: var(--text-2); }

/* ── NEGATIVE BANNER ── */
.negative-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(248,113,113,.1), rgba(251,191,36,.08));
  border: 1.5px solid var(--danger);
  border-radius: var(--r); padding: 14px 18px;
  flex-shrink: 0; animation: bannerIn .4s ease;
}
.nb-content { flex: 1; }
.nb-title   { font-size: 14px; font-weight: 800; color: var(--danger); margin-bottom: 4px; }

/* ── SENTIMENT PANEL ── */
.sentiment-panel {
  min-height: 90px;
  background: linear-gradient(135deg, rgba(99,102,241,.07) 0%, rgba(139,92,246,.05) 100%);
  border: 1px solid rgba(129,140,248,.25);
  border-radius: var(--r); padding: 20px 24px;
  flex-shrink: 0; transition: border-color .4s, background .4s;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sentiment-panel::before {
  content: 'AI';
  position: absolute; right: 12px; top: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  background: rgba(129,140,248,.18); color: rgba(129,140,248,.9);
  border: 1px solid rgba(129,140,248,.35);
  border-radius: 20px; padding: 2px 8px;
  user-select: none;
}
.sp-guide-text {
  font-size: 18px; font-weight: 700; color: var(--text-1); line-height: 1.55;
  text-align: center;
}
.sentiment-panel.sp-pos     { border-color: rgba(52,211,153,.5);  background: rgba(52,211,153,.06); }
.sentiment-panel.sp-neutral { border-color: rgba(251,191,36,.4);  background: rgba(251,191,36,.05); }
.sentiment-panel.sp-neg     { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.06); }

.sp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sp-title  { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.sp-label  { font-size: 13px; font-weight: 700; color: var(--text); }
.sentiment-panel.sp-pos  .sp-label { color: var(--success); }
.sentiment-panel.sp-neg  .sp-label { color: var(--danger); }

.sp-bar-wrap {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.sp-bar {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--danger) 0%, var(--warning) 40%, var(--success) 100%);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.sentiment-panel.sp-neg .sp-bar { background: var(--danger); }
.sentiment-panel.sp-pos .sp-bar { background: var(--success); }

.sentiment-dots { display: flex; gap: 8px; align-items: center; }
.sd-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-hi);
  cursor: default; transition: all .25s; flex-shrink: 0;
}
.sd-pos     { border-color: rgba(52,211,153,.4); }
.sd-neutral { border-color: rgba(251,191,36,.4);  }
.sd-neg     { border-color: rgba(248,113,113,.4); }
.sd-dot.active.sd-pos     { background: var(--success); border-color: var(--success); box-shadow: 0 0 8px rgba(52,211,153,.5); }
.sd-dot.active.sd-neutral { background: var(--warning); border-color: var(--warning); box-shadow: 0 0 8px rgba(251,191,36,.5); }
.sd-dot.active.sd-neg     { background: var(--danger);  border-color: var(--danger);  box-shadow: 0 0 8px rgba(248,113,113,.5); }

/* ── PANEL BACKGROUNDS (light theme) ── */
.panel, .panel-center, .panel-right { background: var(--surface); }

/* ── IDLE STEPS ── */
.idle-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 28px;
}
.idle-step {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 14px; min-width: 130px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.idle-step:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(79,70,229,.1); }
.idle-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; flex-shrink: 0;
}
.idle-step-arrow { font-size: 20px; color: var(--text-3); flex-shrink: 0; }
.idle-step-title { font-size: 12px; font-weight: 700; color: var(--text); text-align: center; }
.idle-step-desc  { font-size: 11px; color: var(--text-2); text-align: center; line-height: 1.4; }

/* ── CALL HISTORY BADGE ── */
.ci-history {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  background: rgba(217,119,6,.1); color: var(--warning);
  border: 1px solid rgba(217,119,6,.25);
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.ci-history:hover { background: rgba(217,119,6,.2); }

/* ── EXCEL UPLOAD MODAL ── */
.excel-guide { margin-bottom: 14px; }
.excel-sample-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 10px; }
.excel-sample-table th, .excel-sample-table td { border: 1px solid var(--border); padding: 5px 9px; text-align: left; }
.excel-sample-table th { background: var(--card); font-weight: 700; color: var(--text-2); }
.excel-rules { padding-left: 16px; margin-top: 4px; }
.excel-rules li { font-size: 12px; color: var(--text-2); margin-bottom: 3px; line-height: 1.5; }
.excel-rules strong { color: var(--text); }
#excel-validation { margin-top: 12px; }
.ev-error { color: var(--danger); font-size: 13px; padding: 8px 12px; background: rgba(220,38,38,.06); border-radius: var(--r-sm); border: 1px solid rgba(220,38,38,.15); }
.ev-warn  { color: var(--warning); font-size: 12px; margin-bottom: 6px; }
.ev-ok    { color: var(--success); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ev-preview { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 4px; }
.ev-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ev-table th, .ev-table td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; }
.ev-table th { background: var(--card); font-weight: 700; color: var(--text-2); }
.ev-more { font-size: 11px; color: var(--text-3); padding: 5px 8px; }

/* ── HISTORY MODAL ── */
.hm-modal { width: 420px; padding: 0; overflow: hidden; position: relative; }
.hm-close-btn {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 16px; color: var(--text-3); cursor: pointer; line-height: 1;
  padding: 2px 6px; border-radius: 4px; transition: color .15s;
}
.hm-close-btn:hover { color: var(--text); }
.hm-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.1) 0%, rgba(129,140,248,.06) 100%);
}
.hm-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(99,102,241,.15); border: 2px solid rgba(129,140,248,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.hm-info { flex: 1; min-width: 0; }
.hm-name  { font-size: 16px; font-weight: 700; color: var(--text); }
.hm-phone { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.hm-status-chip {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; border: 1px solid transparent; white-space: nowrap;
}
.hm-divider { height: 1px; background: var(--border); margin: 0; }
.hm-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3);
  padding: 12px 20px 4px;
}
.hm-note {
  font-size: 12px; color: var(--text-2); padding: 0 20px 8px;
  font-style: italic;
}
.hm-body {
  max-height: 200px; overflow-y: auto; margin: 0 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 12px;
  font-size: 13px; line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap;
}
.hm-body::-webkit-scrollbar { width: 4px; }
.hm-body::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }
.hm-reason-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px 0;
}
.hm-reason-row.hidden { display: none; }
.hm-reason-label { font-size: 12px; color: var(--text-2); }
.hm-reason-value {
  font-size: 12px; font-weight: 700; color: #ef4444;
  background: rgba(239,68,68,.1); padding: 2px 10px;
  border-radius: 12px; border: 1px solid rgba(239,68,68,.2);
}
.modal-actions { padding: 0 20px 20px; }

/* ── REJECTION STATS ── */
.rejection-stats { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.rj-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: var(--r-sm);
  background: rgba(239,68,68,.04); border: 1px solid rgba(239,68,68,.08);
}
.rj-label { font-size: 12px; color: var(--text-2); }
.rj-cnt {
  font-size: 14px; font-weight: 700; color: #ef4444;
  min-width: 24px; text-align: right;
}

/* ── CALL RESULT MODAL ── */
.result-modal {
  width: 400px; text-align: center; padding: 32px 28px 28px;
}
.rm-icon { font-size: 40px; margin-bottom: 10px; }
.rm-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.rm-sub { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
.rm-btn-group { display: flex; gap: 12px; justify-content: center; }
.rm-choice-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 16px 12px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: all .15s; background: var(--card);
}
.rm-choice-btn.rm-success {
  border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.06);
}
.rm-choice-btn.rm-success:hover {
  border-color: rgba(16,185,129,.6); background: rgba(16,185,129,.12);
  transform: translateY(-2px);
}
.rm-choice-btn.rm-next {
  border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.06);
}
.rm-choice-btn.rm-next:hover {
  border-color: rgba(99,102,241,.6); background: rgba(99,102,241,.12);
  transform: translateY(-2px);
}
.rm-choice-icon { font-size: 28px; }
.rm-choice-label { font-size: 14px; font-weight: 700; color: var(--text); }
.rm-choice-desc { font-size: 11px; color: var(--text-3); }
.rm-back-btn {
  font-size: 12px; color: var(--text-3); cursor: pointer; margin-bottom: 14px;
  display: inline-block;
}
.rm-back-btn:hover { color: var(--accent); }
.rm-reason-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 14px; }
.rm-reason-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-2); transition: all .15s;
}
.rm-reason-btn:hover { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.06); color: #ef4444; }
.rm-reason-icon { font-size: 22px; }

/* ═══════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════ */
#landing-page { background:#fdf8f0; min-height:100vh; display:flex; flex-direction:column; font-family:'Pretendard','Barlow','Arial',sans-serif; }
#app-page { height:100vh; display:flex; flex-direction:column; overflow:hidden; }
#app-page.hidden, #landing-page.hidden { display:none!important; }

/* ── 네비게이션 ── */
.lp-nav {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 52px; height:64px; background:#fff;
  border-bottom:1px solid #e8ecf4;
  position:sticky; top:0; z-index:100;
}
.lp-logo { font-size:18px; font-weight:900; letter-spacing:.3px; color:#111827; display:flex; align-items:baseline; gap:6px; }
.lp-logo-sub { font-size:13px; font-weight:500; color:#6b7280; letter-spacing:0; }
.lp-nav-links { display:flex; gap:32px; }
.lp-nav-a {
  font-size:12px; font-weight:700; color:#4b5563; text-decoration:none;
  letter-spacing:.8px; text-transform:uppercase; transition:color .15s;
}
.lp-nav-a:hover { color:#111827; }
.lp-login-btn {
  background:#f97316; color:#fff; border:none; border-radius:8px;
  padding:10px 22px; font-size:13px; font-weight:700; cursor:pointer;
  letter-spacing:.3px; transition:background .15s, transform .1s;
  box-shadow:0 2px 8px rgba(249,115,22,.3);
}
.lp-login-btn:hover { background:#ea6c0a; transform:translateY(-1px); }

/* ── 히어로 (전체 뷰포트) ── */
.lp-hero {
  background:#fdf8f0; flex:1;
  min-height:calc(100vh - 64px - 44px);
  display:flex; align-items:center; justify-content:center;
  padding:60px 52px;
}
.lp-hero-inner { max-width:800px; text-align:center; }
.lp-h1 {
  font-family:'Pretendard','Barlow','Arial Black',sans-serif;
  font-size:clamp(38px,6vw,72px); font-weight:900; line-height:1.1;
  color:#111827; margin:0 0 36px; letter-spacing:-1.5px;
}
.lp-h1-accent { color:#f97316; }
.lp-h1-rotate-wrap { display:inline-block; }
.lp-h1-rotate-wrap span { display:inline-block; }
@keyframes lp-rotate-in-anim {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes lp-rotate-out-anim {
  from { opacity:1; transform:translateY(0); }
  to   { opacity:0; transform:translateY(-14px); }
}
.lp-rotate-in  { animation:lp-rotate-in-anim .35s ease forwards; }
.lp-rotate-out { animation:lp-rotate-out-anim .35s ease forwards; }

.lp-hero-tagline {
  font-size:16px; font-weight:500; color:#6b7280; letter-spacing:.2px; margin:0;
}

.lp-btn-main {
  display:inline-block; background:#f97316; color:#fff; border:none; border-radius:10px;
  padding:16px 40px; font-size:16px; font-weight:700; cursor:pointer;
  letter-spacing:.3px; font-family:inherit;
  box-shadow:0 4px 20px rgba(249,115,22,.4); transition:all .15s;
}
.lp-btn-main:hover { background:#ea6c0a; transform:translateY(-2px); box-shadow:0 8px 28px rgba(249,115,22,.5); }
.lp-btn-main--dark { background:#111827; box-shadow:0 4px 16px rgba(0,0,0,.2); }
.lp-btn-main--dark:hover { background:#1f2937; }

/* ── 공통 섹션 ── */
.lp-section { padding:80px 52px; }
.lp-inner { max-width:1040px; margin:0 auto; }
.lp-label {
  font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:#6b7280; margin-bottom:16px; display:block;
}
.lp-label--dark { color:#f97316; }
.lp-h2 {
  font-family:'Pretendard','Barlow','Arial Black',sans-serif;
  font-size:clamp(22px,3vw,36px); font-weight:800; color:#111827;
  text-align:center; margin:0 0 48px; line-height:1.2; letter-spacing:-.5px;
}

/* ── 사용방법 ── */
.lp-how { background:#fff; }
.lp-how-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:28px; }
.lp-how-label { font-size:11px; font-weight:700; letter-spacing:1.5px; color:#6b7280; text-transform:uppercase; margin-bottom:10px; }
.lp-how-title {
  font-family:'Pretendard','Barlow','Arial Black',sans-serif;
  font-size:26px; font-weight:800; color:#111827;
  margin:0 0 8px; letter-spacing:-.5px; line-height:1.2;
}
.lp-how-desc { font-size:14px; color:#374151; line-height:1.7; margin-bottom:18px; }
.lp-how-card { border-radius:14px; padding:20px; min-height:110px; }
.lp-how-card--a { background:#fff7ed; border:1.5px solid #fed7aa; }
.lp-how-card--b { background:#f0fdf4; border:1.5px solid #bbf7d0; }
.lp-how-card--c { background:#fffbeb; border:1.5px solid #fde68a; }
.lp-how-file { font-size:13px; font-weight:600; color:#111827; margin-bottom:12px; }
.lp-how-check { color:#10b981; font-weight:800; }
.lp-how-tags { display:flex; gap:8px; flex-wrap:wrap; }
.lp-how-tags span { background:#ffedd5; color:#c2410c; font-size:11px; font-weight:700; padding:4px 10px; border-radius:100px; }
.lp-how-stat-row { display:flex; justify-content:space-between; font-size:13px; margin-bottom:8px; color:#374151; }
.lp-c-green { color:#059669; }
.lp-how-bar-wrap { height:6px; background:#d1fae5; border-radius:4px; overflow:hidden; margin-top:8px; }
.lp-how-bar { height:100%; background:linear-gradient(90deg,#10b981,#34d399); border-radius:4px; }
.lp-how-alert { background:#fef3c7; color:#92400e; font-size:12px; font-weight:700; padding:10px 14px; border-radius:8px; margin-bottom:10px; text-align:center; }
.lp-how-connect-btn { background:#f97316; color:#fff; font-size:13px; font-weight:700; padding:12px; border-radius:8px; text-align:center; }

/* ── 스탯 카드 ── */
.lp-stats { background:#fdf8f0; }
.lp-stats-eyebrow { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:#6b7280; text-align:center; margin-bottom:32px; }
.lp-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.lp-stat-card { border-radius:18px; padding:32px 28px; }
.lp-stat-white { background:#fff; border:1.5px solid #e5e7eb; }
.lp-stat-yellow { background:#fef3c7; border:1.5px solid #fcd34d; }
.lp-stat-dark { background:#111827; }
.lp-stat-num {
  font-family:'Pretendard','Barlow','Arial Black',sans-serif;
  font-size:72px; font-weight:900; color:#f97316; line-height:1; margin-bottom:12px; letter-spacing:-2px;
}
.lp-stat-num span { font-size:36px; }
.lp-stat-num--lt { color:#fb923c; }
.lp-stat-title { font-size:14px; font-weight:700; color:#111827; letter-spacing:.3px; margin:0 0 8px; }
.lp-stat-title--lt { color:#fff; }
.lp-stat-desc { font-size:13px; color:#374151; line-height:1.7; margin:0; }
.lp-stat-desc--lt { color:#9ca3af; }
.lp-stat-quote { font-size:52px; font-weight:900; color:#f59e0b; line-height:.8; margin-bottom:14px; font-family:serif; }
.lp-stat-qtext { font-size:16px; font-weight:700; color:#111827; line-height:1.45; margin:0 0 12px; }
.lp-stat-qsrc { font-size:12px; color:#92400e; font-style:italic; margin:0; }

/* ── 캠페인 모드 ── */
.lp-modes { background:#fff; }
.lp-mode-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; }
.lp-mode-card { background:#fdf8f0; border:1.5px solid #e5e7eb; border-radius:16px; padding:28px 24px; position:relative; transition:box-shadow .2s, transform .2s; }
.lp-mode-card:hover { box-shadow:0 8px 28px rgba(0,0,0,.08); transform:translateY(-3px); }
.lp-mode-card--ft { background:#fff7ed; border-color:#fed7aa; }
.lp-mode-ft-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:#f97316; color:#fff; font-size:11px; font-weight:800; padding:4px 16px; border-radius:100px; letter-spacing:.3px; }
.lp-mode-num { font-family:'Pretendard','Barlow','Arial Black',sans-serif; font-size:44px; font-weight:900; color:#e5e7eb; letter-spacing:-1px; line-height:1; margin-bottom:10px; }
.lp-mode-card--ft .lp-mode-num { color:#fed7aa; }
.lp-mode-badge { display:inline-block; font-size:13px; font-weight:700; padding:6px 14px; border-radius:100px; margin-bottom:12px; }
.lp-mode-rt { background:#dbeafe; color:#1d4ed8; }
.lp-mode-sm { background:#ede9fe; color:#5b21b6; }
.lp-mode-po { background:#dcfce7; color:#166534; }
.lp-mode-card h3 { font-family:'Pretendard','Barlow','Arial Black',sans-serif; font-size:20px; font-weight:800; color:#111827; margin:0 0 10px; letter-spacing:-.3px; }
.lp-mode-card p { font-size:13px; color:#374151; line-height:1.7; margin:0 0 14px; }
.lp-mode-tag { font-size:12px; font-weight:700; color:#f97316; }

/* ── CTA ── */
.lp-cta { padding:90px 52px; background:#111827; text-align:center; }
.lp-cta .lp-label { color:#6b7280; }
.lp-cta-h2 {
  font-family:'Pretendard','Barlow','Arial Black',sans-serif;
  font-size:clamp(28px,4vw,52px); font-weight:800; color:#fff;
  letter-spacing:-1px; line-height:1.15; margin:12px 0 36px;
}

/* ── 얇은 푸터 ── */
.lp-footer {
  background:#fdf8f0;
  border-top:1px solid #e5e7eb;
  padding:10px 52px;
  display:flex; align-items:center; justify-content:center;
}
.lp-footer-inner {
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:6px 14px;
  font-size:12px; color:#111827;
  text-align:center;
}
.lp-footer-brand { font-weight:800; color:#111827; letter-spacing:.5px; }
.lp-footer-sep { color:#9ca3af; }
.lp-footer-inner a { color:#111827; text-decoration:none; }
.lp-footer-inner a:hover { color:#f97316; }

/* ── 로그인 모달 (럭셔리) ── */
.lp-login-overlay {
  position:fixed; inset:0; z-index:9999;
  background:rgba(13,11,31,.75); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.lp-login-overlay.hidden { display:none!important; }
.lp-login-card {
  background:#fff; border-radius:20px;
  padding:44px 40px 36px; width:100%; max-width:400px;
  box-shadow:0 32px 80px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.1);
  animation:lp-login-appear .32s cubic-bezier(.34,1.4,.64,1);
}
@keyframes lp-login-appear {
  from { opacity:0; transform:scale(.9) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.lp-login-brand { text-align:center; margin-bottom:32px; }
.lp-login-logo { font-family:'Pretendard','Barlow','Arial Black',sans-serif; font-size:30px; font-weight:900; color:#111827; letter-spacing:2px; }
.lp-login-logo span { color:#f97316; }
.lp-login-tagline { font-size:12px; color:#9ca3af; margin-top:6px; letter-spacing:.5px; }
.lp-input-wrap { margin-bottom:16px; }
.lp-input-lbl { display:block; font-size:12px; font-weight:700; color:#374151; margin-bottom:7px; letter-spacing:.3px; }
.lp-input-field {
  width:100%; padding:13px 16px; border:1.5px solid #e5e7eb; border-radius:10px;
  font-size:14px; color:#111827; font-family:'Pretendard',inherit;
  outline:none; transition:border-color .15s, box-shadow .15s; background:#fafafa;
}
.lp-input-field:focus { border-color:#f97316; box-shadow:0 0 0 3px rgba(249,115,22,.12); background:#fff; }
.lp-input-field::placeholder { color:#9ca3af; }
.lp-login-error { font-size:12px; color:#ef4444; min-height:18px; margin-top:-6px; margin-bottom:10px; }
.lp-remember { display:flex; align-items:center; gap:8px; cursor:pointer; margin-bottom:20px; user-select:none; }
.lp-remember input[type=checkbox] { display:none; }
.lp-remember-box {
  width:18px; height:18px; border:1.5px solid #d1d5db; border-radius:5px;
  background:#fff; flex-shrink:0; position:relative; transition:all .15s;
}
.lp-remember input:checked ~ .lp-remember-box { background:#f97316; border-color:#f97316; }
.lp-remember input:checked ~ .lp-remember-box::after {
  content:''; position:absolute; left:4px; top:1px;
  width:6px; height:10px; border:2px solid #fff; border-top:none; border-left:none;
  transform:rotate(45deg);
}
.lp-remember-txt { font-size:13px; color:#374151; font-weight:500; }
.lp-login-submit-btn {
  width:100%; padding:14px; background:#f97316; color:#fff; border:none;
  border-radius:10px; font-size:15px; font-weight:700; cursor:pointer;
  font-family:'Pretendard',inherit; letter-spacing:.3px; margin-bottom:10px;
  box-shadow:0 4px 14px rgba(249,115,22,.4); transition:background .15s, transform .1s, box-shadow .15s;
}
.lp-login-submit-btn:hover { background:#ea6c0a; transform:translateY(-1px); box-shadow:0 6px 20px rgba(249,115,22,.5); }
.lp-login-cancel-btn {
  width:100%; padding:10px; background:transparent; color:#9ca3af; border:none;
  font-size:13px; cursor:pointer; font-family:'Pretendard',inherit; transition:color .15s;
}
.lp-login-cancel-btn:hover { color:#6b7280; }

/* ── Mobile ── */
@media (max-width:768px) {
  .lp-nav { padding:0 20px; }
  .lp-hero { padding:48px 20px; min-height:calc(100svh - 64px - 44px); }
  .lp-h1 { font-size:clamp(32px,10vw,56px); }
  .lp-footer { padding:0 20px; height:auto; min-height:44px; padding-top:10px; padding-bottom:10px; }
  .lp-login-card { padding:36px 24px 28px; }
}


/* 모달 스타일 */
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.modal-backdrop.hidden { display: none; }
.modal-dialog {
  background: var(--surface); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-size: 18px; font-weight: 700; margin: 0; color: var(--text);
}
.modal-close {
  background: transparent; border: none; font-size: 20px; color: var(--text-2);
  cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 24px; color: var(--text);
}

/* INVITE 도착 시 연결 버튼 강조 */
#btn-connect.btn-ringing {
  background: var(--success, #22c55e);
  animation: ring-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes ring-pulse {
  from { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  to   { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* ── INVITE 모달 ─────────────────────────────────────────── */
.invite-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 48px;
  text-align: center;
  min-width: 280px;
  max-width: 360px;
}
.invite-icon {
  font-size: 52px;
  animation: ring-bounce 0.6s ease-in-out infinite alternate;
}
@keyframes ring-bounce {
  from { transform: rotate(-12deg) scale(1); }
  to   { transform: rotate(12deg)  scale(1.1); }
}
.invite-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.invite-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted, #888);
  font-size: 0.9rem;
}
.invite-answer-btn {
  margin-top: 8px;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  animation: ring-pulse 1s ease-in-out infinite alternate;
}
