/* 전화 모듈 결과물 패널 (canvas 'phone') */
.ph { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ph-body { display: flex; flex-direction: column; gap: 14px; }
.ph-body > div:empty { display: none; }
.ph h4 { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin: 0 0 8px; color: var(--text-2); }
.ph h4 svg.lucide { width: 15px; height: 15px; color: var(--brand); }
.ph h4 small { font-weight: 400; color: var(--muted); font-size: 12px; }

/* 계획 */
.ph-plan { display: flex; flex-direction: column; gap: 16px; }
.ph-plan section { border-top: 1px solid var(--border); padding-top: 14px; }
.ph-plan p { margin: 0; }
.ph-purpose small { color: var(--muted); font-size: 12px; }
.ph-purpose h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.4; letter-spacing: -.01em; }
.ph-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; margin: 0; }
.ph-facts div { display: flex; flex-direction: column; gap: 2px; }
.ph-facts dt { font-size: 12px; color: var(--muted); }
.ph-facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ph-num { font-variant-numeric: tabular-nums; }
.ph-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 10px 10px 0; line-height: 1.65; }
.ph-q { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ph-q li small { display: block; color: var(--muted); font-size: 12px; }
.ph-branches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ph-branches li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.ph-branches b { font-size: 13px; color: var(--text-2); }
.ph-branches b::before { content: '만약 '; color: var(--muted); font-weight: 400; }
.ph-safe { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }

/* 통화 */
.ph-call { display: flex; flex-direction: column; gap: 10px; }
.ph-call.is-live { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 12%, transparent); }
.ph-call-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.ph-call.is-live .ph-dot { background: var(--ok); animation: pulse 1.4s ease-in-out infinite; }
.ph-timer { font-variant-numeric: tabular-nums; font-size: 13px; }
.ph-sim-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.ph-sim-note svg.lucide { width: 14px; height: 14px; }
.ph-transcript { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.ph-line { display: flex; flex-direction: column; max-width: 86%; }
.ph-line p { margin: 0; padding: 9px 13px; border-radius: 14px; line-height: 1.55; font-size: 14px; white-space: pre-wrap; }
.ph-who { font-size: 11.5px; color: var(--muted); margin: 0 6px 2px; }
.ph-line.is-ai { align-self: flex-end; align-items: flex-end; }
.ph-line.is-ai p { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.ph-line.is-callee { align-self: flex-start; }
.ph-line.is-callee p { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ph-line.is-system { align-self: center; max-width: 100%; }
.ph-line.is-system p { padding: 3px 10px; font-size: 12px; color: var(--muted); background: transparent; }
.ph-typing { display: inline-flex; gap: 4px; padding: 10px 12px; align-self: flex-start; }
.ph-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
.ph-typing span:nth-child(2) { animation-delay: .2s; }
.ph-typing span:nth-child(3) { animation-delay: .4s; }
.ph-summary { border-top: 1px solid var(--border); padding-top: 12px; }
.ph-summary p { margin: 0 0 8px; line-height: 1.65; }
.ph-summary ul { margin: 0 0 8px; padding-left: 18px; font-size: 14px; }
.ph-summary h5 { margin: 8px 0 4px; font-size: 13px; color: var(--text-2); }

/* 지난 통화 */
.ph-hist-title { margin-top: 4px; }
.ph-hist { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: none; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.ph-hist svg.lucide { width: 16px; height: 16px; color: var(--muted); }

/* 아래 막대 */
.ph-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface); flex: none; flex-wrap: wrap; }
.ph-foot-note { font-size: 13px; }

/* 확인 창 */
.ph-confirm { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.ph-confirm small { color: var(--muted); font-size: 12px; }
.ph-confirm p { margin: 0 0 8px; }
.ph-confirm p:last-child { margin-bottom: 0; }
.ph-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.ph-agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.ph-fine { font-size: 12.5px; margin: 10px 0 0; }
