/* Compact phone panel shares the CRM's appearance variables. */
.rfp-dialer.rfc-panel{width:340px;max-width:calc(100vw - 24px);position:fixed;right:18px;bottom:18px;max-height:calc(100dvh - 36px);background:var(--surface,#fff);border:1px solid var(--border,#e3e7ed);box-shadow:0 12px 45px #12233c26;border-radius:12px;z-index:450;color:var(--text,#344054);overflow:hidden;display:flex;flex-direction:column}
.rfc-panel .rfc-header{display:flex;align-items:center;gap:6px;min-height:47px;padding:8px 12px;border-bottom:1px solid var(--border);flex-shrink:0;background:var(--surface,#fff)}
.rfc-header strong{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;flex:1}.rfc-header>span{font-size:12px;color:var(--muted)}
.rfc-panel .rfp-phone-body{padding:0 14px 14px;overflow:auto;min-height:0;scrollbar-width:thin}.rfc-panel.docked{height:48px}.rfc-panel.docked .rfp-phone-body{display:none}
.rfc-main-tabs,.rfc-detail-tabs,.rfc-small-tabs{display:flex;align-items:center;gap:4px}.rfc-main-tabs{border-bottom:1px solid var(--border);padding:7px 0;margin:0 -2px 12px}.rfc-main-tabs>button,.rfc-detail-tabs>button,.rfc-small-tabs>button{font:inherit;font-size:12px;border:0;border-radius:5px;background:transparent;color:var(--muted);padding:7px 10px;cursor:pointer}.rfc-main-tabs>button.active,.rfc-detail-tabs>button.active,.rfc-small-tabs>button.active{background:var(--rf-accent-soft,#eef3fd);color:var(--rf-accent,#266df0)}.rfc-main-tabs>.icon-btn{margin-left:auto}.rfc-main-tabs span{font-size:11px;padding:1px 4px;border-radius:4px;background:var(--surface-soft,#f1f4f9);margin-left:4px}
.rfc-mode{font-size:11px;color:var(--muted);margin-bottom:12px}.rfc-panel .form-field{margin-bottom:12px}.rfc-panel .form-field>span{font-size:11.5px;color:var(--muted);margin-bottom:5px}.rfc-panel .input{font-size:12px;min-height:34px;padding:8px 9px}.rfc-panel .btn{font-size:12px;padding:8px 11px;min-height:32px}.rfc-panel .icon-btn{width:28px;height:28px;flex-shrink:0}.rfc-full{width:100%;justify-content:center;margin-top:10px}.rfc-dial-row{display:flex;align-items:center;gap:5px;margin-bottom:12px}.rfc-dial-row select{width:68px;flex-shrink:0}.rfc-dial-row input{min-width:0;flex:1}.rfc-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:12px 0}.rfc-key{font:inherit;font-size:18px;font-weight:500;line-height:1;background:var(--surface-soft,#f7f9fc);color:var(--text);border:1px solid var(--border);border-radius:7px;min-height:38px;cursor:pointer}.rfc-key:hover{background:var(--rf-accent-soft,#edf3fd)}
.rfc-panel .rfc-footer{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:12px}.rfc-panel #rfp-phone-error:empty{display:none}.rfc-panel #rfp-phone-error{font-size:12px;line-height:1.5;margin-top:12px}.rfc-inbox-tools{display:grid;gap:9px;margin-bottom:8px}.rfc-inbox-list{display:flex;flex-direction:column;margin:0 -4px;max-height:430px;overflow:auto}.rfc-inbox-call{display:flex;align-items:center;gap:8px;padding:12px 4px;background:transparent;border:0;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;color:var(--text)}.rfc-inbox-call:hover{background:var(--surface-soft)}.rfc-inbox-call>span:nth-child(2){flex:1;min-width:0}.rfc-inbox-call b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}.rfc-inbox-call small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.rfc-inbox-call time{font-size:11px;color:var(--muted)}.rfc-direction{width:27px;height:27px;display:grid;place-items:center;color:var(--muted);background:var(--surface-soft);border-radius:6px;flex-shrink:0}.rfc-direction.missed,.rfc-direction.voicemail{color:#c25565;background:#fbedf0}
.rfc-call-heading{display:flex;align-items:center;gap:6px;margin:4px 0 12px}.rfc-call-heading>div{flex:1;min-width:0}.rfc-call-heading b{display:block;font-size:13px;overflow-wrap:anywhere}.rfc-call-heading small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.rfc-demo-note,.rfc-source{font-size:11px!important;line-height:1.6;color:var(--muted);margin:9px 0 12px}.rfc-demo-note{padding:9px;background:var(--surface-soft);border-radius:5px}.rfc-detail-tabs{gap:1px;border-bottom:1px solid var(--border);padding-bottom:7px;margin-bottom:13px}.rfc-detail-tabs>button{padding:6px 7px;font-size:11.5px}.rfc-call-content{font-size:12px;line-height:1.6;min-height:130px}.rfc-summary p{margin:0 0 12px;white-space:pre-wrap;font-size:12px;line-height:1.75;color:var(--text)}.rfc-empty{font-size:12px;color:var(--muted);text-align:center;padding:25px 8px;line-height:1.7}.rfc-transcript{max-height:280px;overflow:auto}.rfc-transcript article{border-bottom:1px solid var(--border);padding:9px 0}.rfc-transcript header{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}.rfc-transcript p{font-size:12px;line-height:1.7;white-space:pre-wrap;margin:5px 0;color:var(--text)}.rfc-active-person{text-align:center;padding:8px 0 13px}.rfc-active-person .avatar{width:45px;height:45px;margin:0 auto 10px;font-size:15px}.rfc-active-person h3{font-size:15px;color:var(--text);margin:0 0 6px}.rfc-active-person p{font-size:12px;color:var(--muted);margin:0 0 10px}.rfc-active-person strong{font-size:24px;font-variant-numeric:tabular-nums;color:var(--text)}.rfc-controls{display:flex;gap:5px;margin-bottom:13px}.rfc-controls>*{flex:1;padding-left:5px!important;padding-right:5px!important}.rfc-tasks{max-height:220px;overflow:auto;margin-bottom:16px}.rfc-task{display:flex;gap:9px;align-items:flex-start;border-bottom:1px solid var(--border);padding:10px 0;cursor:pointer}.rfc-task input{margin-top:3px;accent-color:var(--rf-accent)}.rfc-task b{font-size:12px;font-weight:500;display:block}.rfc-task small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.rfc-task input:checked+span b{text-decoration:line-through;color:var(--muted)}.rfc-settings{display:grid;gap:10px}.rfc-settings p{font-size:13px;line-height:1.7}.rfc-panel .rfp-tags{gap:5px;margin:10px 0}.rfc-panel .rfp-tags label{font-size:11px}.rfc-panel .rfp-tag{font-size:11px}
html[data-rf-theme=dark] .rfc-direction.missed,html[data-rf-theme=dark] .rfc-direction.voicemail{background:#412a35;color:#e59aaa}
@media(max-width:600px){.rfp-dialer.rfc-panel{right:10px;bottom:10px;width:340px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}}

.rfc-panel .rfc-recording{display:block;width:100%;height:36px;margin:12px 0}
