.dialer-card{grid-column:2;grid-row:2}
.softphone-side{grid-column:1;grid-row:2;display:grid;gap:20px;min-width:0;align-content:start}
.registration-card,.softphone-contacts{min-width:0}
.softphone-contacts .section-head{display:flex;align-items:end;justify-content:space-between;gap:14px}
.softphone-contacts .section-head h2{margin:0}
.contact-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:14px;width:100%}
.contact-search input{width:100%;min-width:0;height:46px;border:1px solid var(--line);border-radius:11px;padding:0 14px;font:inherit;background:#fff}
.contact-search button{min-width:92px;height:46px}
.dial-input-row{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:9px;direction:rtl}.dial-input-row .dial-input{width:100%;min-width:0}.dial-backspace{height:100%;min-height:58px;padding:0;border:1px solid #c9d7e8;background:#e9f0fa;color:#274f9f;border-radius:14px;font-size:27px;box-shadow:none}.dial-backspace:hover{background:#dbe8f8}
.softphone-contact-list{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px;max-height:640px;overflow:auto}
.softphone-contact-list>article{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px}
.softphone-contact-list>article>div{display:grid;flex:1}
.softphone-contact-list small{color:var(--muted)}
.profile-extension{display:block;background:#f4f8fd;border:1px solid var(--line);border-radius:11px;padding:14px;text-align:center}
.profile-phone-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.live-call-top{grid-column:1/-1;order:-10;position:sticky;top:84px;z-index:20;border:2px solid #8ab6ff;box-shadow:0 18px 45px #173d7a2e}
.live-call-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.live-call-actions .answer-button{background:#159a62;color:#fff}
.live-call-actions [data-live-form]{min-width:180px}
.live-call-actions .hangup-button{background:#d33f4b;color:#fff}
.softphone-contact-list [data-dial-contact]{background:#159a62;color:#fff;border:0}
.phonebook-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:14px;padding:5px;background:#edf3fa;border-radius:12px}
.phonebook-tabs button{height:40px;background:transparent;color:var(--muted);box-shadow:none}
.phonebook-tabs button.active{background:#fff;color:#194da5;box-shadow:0 4px 14px #1b44771a}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.history-toolbar p{margin:0}
.softphone-history{display:grid;gap:8px;margin-top:12px;max-height:640px;overflow:auto}
.softphone-history>article{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}
.softphone-history>article>div{display:grid;flex:1;min-width:0}
.softphone-history small{color:var(--muted);font-size:11px}
.history-direction{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-weight:900}.history-direction.in{background:#e3f6ed;color:#087a54}.history-direction.out{background:#e7efff;color:#315fc4}
.softphone-history>article.missed-call{border-color:#efc7ca;background:#fff7f7}.history-direction.missed{background:#fde5e6;color:#b52d38}.history-result{font-weight:800}.history-result.answered{color:#087a54}.history-result.missed{color:#bd303a}
.softphone-history .mini-button{background:#159a62;color:#fff;border:0}.error-text{color:#a72f37}
@media(max-width:820px){.dialer-card,.softphone-side{grid-column:auto;grid-row:auto}.softphone-contact-list{grid-template-columns:1fr}.softphone-contacts .section-head{align-items:stretch;flex-direction:column}.contact-search{grid-template-columns:minmax(0,1fr) auto}}
.persistent-phone-shell{position:fixed;inset:0;z-index:2000;pointer-events:none;direction:rtl}.phone-shell-toggle{pointer-events:auto;position:absolute;left:18px;bottom:20px;min-width:64px;height:58px;border-radius:999px;background:#2e64ca;color:#fff;font-size:22px;box-shadow:0 12px 35px #0d285d55;display:flex;align-items:center;gap:9px;padding:0 17px}.phone-toggle-icon{font-size:25px}.phone-toggle-text{display:grid;text-align:right;font-size:13px;line-height:1.25}.phone-toggle-text small{font-size:11px;white-space:nowrap}.persistent-phone-shell.ringing .phone-shell-toggle{background:#d64752;animation:phoneShake .55s infinite;min-width:190px}.phone-shell-panel{pointer-events:auto;position:absolute;left:18px;bottom:88px;width:min(1020px,calc(100vw - 36px));height:min(86vh,900px);overflow:auto;background:#eef4fb;border:1px solid #b8cce7;border-radius:20px;box-shadow:0 28px 80px #06163366;padding:14px;transform:translateX(calc(-100% - 50px));visibility:hidden;opacity:0;transition:transform .25s ease,opacity .2s ease,visibility 0s linear .25s}.persistent-phone-shell.open .phone-shell-panel{transform:none;visibility:visible;opacity:1;transition-delay:0s}.phone-shell-head{position:sticky;top:-14px;z-index:100;display:flex;align-items:center;justify-content:space-between;background:#192946;color:#fff;border-radius:14px;padding:10px 14px;margin-bottom:12px}.phone-shell-head button{width:38px;height:38px;border-radius:50%;padding:0;background:#ffffff20;color:#fff;font-size:24px}.phone-shell-body .softphone-layout{grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);margin:0}.phone-shell-body .live-call-top{top:50px}.phone-shell-body~audio{display:none}@keyframes phoneShake{0%,100%{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}@media(max-width:820px){.phone-shell-panel{inset:auto 8px 78px 8px;width:auto;height:84vh}.phone-shell-toggle{left:12px;bottom:12px}.phone-shell-body .softphone-layout{grid-template-columns:1fr}}
.phone-shell-state{display:flex;align-items:center}.phone-shell-state .softphone-state{position:static;margin:0;padding:7px 11px;background:#e7f6ee;color:#14784f;border-radius:999px;font-size:12px}
.phone-form-layer{pointer-events:auto;position:absolute;inset:3vh 3vw;z-index:2200;background:#eef4fb;border:1px solid #9ebbe5;border-radius:20px;box-shadow:0 30px 90px #06163388;overflow:hidden}.phone-form-layer[hidden]{display:none}.phone-form-layer header{height:58px;background:#192946;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.phone-form-layer header button{width:38px;height:38px;border-radius:50%;padding:0;background:#ffffff20;color:#fff;font-size:24px}.phone-form-layer iframe{display:block;width:100%;height:calc(100% - 58px);border:0;background:#eef4fb}.embedded-page .topbar{display:none}.embedded-page main{padding:18px;max-width:none}.embedded-page .hero{margin:0 0 16px}.embedded-page .call-form-card{margin:0}@media(max-width:700px){.phone-form-layer{inset:8px}.embedded-page main{padding:10px}}
