.web-phone [hidden] { display: none !important; }

.web-phone-layout {
  display: grid; place-items: center;
  min-height: 100svh; padding: 24px 16px;
}
.web-phone {
  width: 100%; max-width: 380px; min-height: 560px;
  border: 1px solid #e4e2dc; border-radius: 16px;
  box-shadow: 0 12px 40px rgb(0 0 0 / .12);
  overflow-wrap: anywhere;
}
.web-phone .chat-header { padding: 16px; }
.web-phone-avatar { background: var(--tenant-accent); color: var(--tenant-accent-ink); }
.web-phone-content { display: flex; flex: 1; flex-direction: column; padding: 24px 16px 16px; min-width: 0; }
.web-phone-title { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.web-phone-description { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #6b6860; white-space: pre-line; }
.web-phone-status { margin: 28px 0 24px; padding: 16px; border-radius: 8px; background: #f5f5f4; }
.web-phone-status-line { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.7; }
.web-phone-duration { margin-top: 8px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.web-phone-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 손님 화면이라 콘솔 공통 버튼(층 안 규칙)과 따로 크기와 굵기를 직접 정한다. 랜딩 모형의 초기화(font: inherit)도 이 규칙이 이긴다. */
.web-phone-actions .btn { flex: 1 1 40%; min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.web-phone-actions .web-phone-start, .web-phone-actions .web-phone-end { flex-basis: 100%; }
.tenant-theme .web-phone .web-phone-end { border-color: #b42318; background: #b42318; color: #fff; }
.tenant-theme .web-phone .web-phone-end:hover:not(:disabled) { border-color: #912018; background: #912018; color: #fff; }
.web-phone-actions .btn > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.web-phone-actions .web-phone-sound { gap: 6px; }
/* 마이크: 켜짐은 기본 버튼, 꺼짐은 빨간 테두리·배경으로 구분한다. */
.web-phone-mute[aria-pressed="true"] .web-phone-mute-on, .web-phone-mute:not([aria-pressed="true"]) .web-phone-mute-off { display: none; }
.tenant-theme .web-phone .web-phone-mute[aria-pressed="true"], .tenant-theme .web-phone .web-phone-mute[aria-pressed="true"]:is(:hover, :active):not(:disabled) { border-color: #b42318; background: #fef3f2; color: #b42318; }
/* 소리 도움 버튼은 상태 버튼과 구분되도록 점선 테두리와 흐린 글자로 둔다. */
.tenant-theme .web-phone .web-phone-sound { border-style: dashed; color: var(--tenant-muted, #57534e); }
.web-phone-error { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 13px; line-height: 1.7; }
.web-phone-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; padding-top: 24px; color: #6b6860; font-size: 12px; line-height: 1.8; }
.web-phone-notice svg { margin-top: 2px; }
.web-phone-alternatives { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--tenant-line); }
.web-phone-progress { width: 20px; height: 20px; border: 2px solid var(--tenant-accent-tint); border-top-color: var(--web-phone-icon-color, var(--tenant-accent)); border-radius: 50%; animation: web-phone-spin .9s linear infinite; }
.web-phone-alternative { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--tenant-line); border-radius: 12px; background: var(--tenant-control-surface); color: var(--tenant-ink); font-size: 14px; }
.web-phone-alternative:hover { background: var(--tenant-control-hover); border-color: var(--web-phone-icon-color, var(--tenant-accent)); }
.web-phone-alternative:focus-visible { outline: 2px solid var(--tenant-accent); outline-offset: 3px; }
@keyframes web-phone-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .web-phone-layout { padding: 16px 12px; }
  .web-phone { min-height: min(560px, calc(100svh - 32px)); }
}
@media (prefers-reduced-motion: reduce) { .web-phone-progress { animation: none; } }

.web-phone-design-layout .chat-design-fields textarea { min-height: 132px; resize: vertical; }
.web-phone-preview-frame { display: block; width: 100%; height: 602px; border: 1px solid var(--tenant-line); border-radius: 20px; background: var(--tenant-tint); }
.web-phone-preview-page { background: var(--tenant-tint); }
.web-phone-preview-page .web-phone-layout { min-height: 0; padding: 20px; }
.web-phone-preview-page .web-phone { min-height: 560px; }
.web-phone-design-preview .chat-design-preview-head { flex-wrap: wrap; }
