/* Softphone — плашка звонка с компьютера (softphone.js). */
.сф { position: fixed; right: 16px; bottom: 16px; z-index: 120; width: 300px; max-width: calc(100vw - 32px);
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.25); padding: 14px; }
.сф[hidden] { display: none; }
.сф-ик { width: 18px; height: 18px; flex: none; }
.сф-шапка { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.сф-шапка b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.сф-x { border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.сф-x:hover { background: var(--grey-bg); color: var(--ink); }
.сф-тихо { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.сф-ошибка { color: var(--red); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.сф-ошибка:empty { display: none; }
.сф-номер { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.сф-номер input { flex: 1; min-width: 0; border: 0; outline: 0; font: 600 22px/1.3 inherit; font-variant-numeric: tabular-nums; padding: 4px 0; background: none; }
.сф-линия { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.сф-линия select { flex: 1; min-width: 0; font: inherit; color: var(--ink); padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.сф-клав { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 8px; }
.сф-клав button { border: 0; background: var(--grey-bg); border-radius: 10px; padding: 7px 0 5px; cursor: pointer; display: grid; place-items: center; line-height: 1.1; color: var(--ink); }
.сф-клав button:hover { background: #e9e9e9; }
.сф-клав button:active { background: #ddd; }
.сф-клав b { font-size: 18px; font-weight: 600; }
.сф-клав span { font-size: 9px; letter-spacing: .08em; color: var(--muted); min-height: 10px; }
.сф-позвонить { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
  background: var(--ok); color: #fff; font: 600 15px/1 inherit; padding: 12px; cursor: pointer; }
.сф-позвонить:hover { filter: brightness(1.08); }
.сф-звонок { text-align: center; }
.сф-кто b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.сф-кто span { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.сф-статус { margin: 6px 0 12px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.сф-кнопки { display: flex; justify-content: center; gap: 14px; }
.сф-круг { border: 0; background: none; cursor: pointer; display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); padding: 0; }
.сф-круг .сф-ик { width: 48px; height: 48px; padding: 13px; box-sizing: border-box; border-radius: 50%; background: var(--grey-bg); color: var(--ink); }
.сф-круг[aria-pressed="true"] .сф-ик { background: var(--ink); color: #fff; }
.сф-круг:disabled { opacity: .4; cursor: default; }
.сф-сброс .сф-ик { background: #d92d20; color: #fff; }
.сф *:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.сф-встроено { max-width: 340px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; margin-top: 12px; }
.сф-тел { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.сф-тел-номер { font-variant-numeric: tabular-nums; white-space: nowrap; }
.сф-тел .кнопка, .сф-тел button { margin: 0; }
