/* Telephony (docs/telephony.md): the Phone page, the live call panel, the staff page. Tokens from app.css only. */
.ph input[type=number], .ph input[type=tel], .ph-dlg input[type=tel] { width: 100%; height: 44px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--n300); border-radius: 0; }
.ph input[type=number]:focus, .ph input[type=tel]:focus, .ph-dlg input[type=tel]:focus { border-color: var(--p600); }
.ph h2 .sub { font-family: var(--f-body); font-weight: 400; margin-left: 6px; }
.ph-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; min-width: 0; }
.ph-h h2 { margin: 0; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-sub { font: 600 17px/1.2 var(--f-head); margin: 0 0 12px; }
.btn-secondary.ph-sm, .btn.ph-sm { font-size: 15px; padding: 7px 12px; }
.ph-form { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px; }
.ph > .ph-form:first-of-type { margin-top: 4px; }
.ph form.ph-form:first-child { border-top: 0; padding-top: 0; }
.ph .list-row { flex-wrap: wrap; }
.ph .list-row audio { height: 32px; max-width: 100%; }
.ph .list-row .ph-upload { margin: 0; }
.ph-audio { border-top: 1px solid var(--rule); margin-top: 18px; }
.ph-dest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.ph-dest:first-child { border-top: 0; }
.ph-dest input[type=text], .ph-dest input:not([type]) { flex: 1 1 180px; min-width: 0; }
.ph-dest .check { margin: 0; white-space: nowrap; }
.ph-dest .btn-secondary { margin-left: auto; }
.ph .line { justify-content: flex-end; margin-top: 12px; }
.ph-block { align-items: flex-end; margin-top: 12px; }
.ph-block > .ph-fit { flex: 0 0 auto; }
.ph-indent { padding-left: 22px; }
.ph .share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 16px; }
.ph .share .check { margin: 0; }
.ph-prev { margin: 0 0 12px; }
.ph-prev .mono { overflow-wrap: anywhere; margin: 8px 0 0; }
.ph-trace { border-top: 1px solid var(--rule); padding: 10px 0; }
.ph-trace summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ph-ev { font-size: 14px; padding: 3px 0 3px 14px; overflow-wrap: anywhere; }
dialog.ph-dlg { max-width: 460px; }
.ph-dlg h2 { margin: 0 0 16px; }
.ph-pick { display: flex; flex-direction: column; gap: 8px; }
.ph-pick .check { margin: 0; align-items: baseline; gap: 10px; }
/* live calls */
.ph-live .ph-call { border-top: 1px solid var(--rule); padding: 12px 0; }
.ph-live .ph-call:first-child { border-top: 0; }
.ph-live .ph-call.on { background: var(--p100); padding: 12px; }
.ph-live .ph-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ph-live .ph-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-live .ph-time { margin-left: auto; flex: none; }
.ph-live .ph-dests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ph-live .ph-open { display: inline-block; margin-top: 8px; font-size: 14px; }
.ph-live .ph-history { border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 8px; }
.ph-live .ph-hrow { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 0; }
.ph-live .ph-say { margin: 10px 0 0; }
@media (max-width: 600px) {
  .ph-indent { padding-left: 0; }
  .ph-dest .btn-secondary { margin-left: 0; }
}
