/* Keep the telephone tabs in the available content area, above the device inset. */
.sip-phone{min-width:0;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
.phone-bottom-tabs{
  position:fixed;
  z-index:11000;
  bottom:0;
  left:264px;
  right:0;
  transform:none;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  width:min(560px,calc(100% - 264px - 24px));
  margin:0 auto;
  box-sizing:border-box;
  padding:9px max(12px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
  background:#fffdf5f5;
  border:1px solid #dddcc8;
  border-radius:22px 22px 0 0;
  box-shadow:0 -7px 25px #233c2220;
  backdrop-filter:blur(14px);
}
.phone-bottom-tabs button{position:relative;min-width:0;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;border:0;background:transparent;border-radius:14px;color:#66745b;font:inherit;font-size:13px;line-height:1.35;white-space:nowrap}
.phone-bottom-tabs button>span{font-size:25px;line-height:27px}
.phone-bottom-tabs button[aria-selected=true]{background:#e6edda;color:#244b32;font-weight:700}
.phone-bottom-tabs b{position:absolute;right:10%;top:2px;max-width:calc(100% - 8px);border-radius:20px;padding:1px 6px;background:#a13f32;color:white;font-size:10px}
#app:has(#view-sip-phone.on) #bottomNav{display:none}
@media(max-width:820px), (max-width:1100px) and (max-height:600px){
  .phone-bottom-tabs{left:0;width:min(560px,100%)}
}
@media(max-height:500px){
  .phone-bottom-tabs{padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom,0px))}
  .phone-bottom-tabs button{min-height:48px}
}
.phone-alert-settings{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;margin:0 0 20px;border:1px solid #d5ddc6;border-radius:17px;background:#f4f6ea;color:#294c34}.phone-alert-settings p{font-size:12px;line-height:1.5;margin:4px 0 0}.phone-alert-settings button,.phone-history-head button,.phone-history-redial{flex-shrink:0;border:1px solid #b5c3a4;border-radius:12px;min-height:44px;padding:9px 13px;background:#fffef9;color:#284f34;font:inherit;font-size:12px;font-weight:600}.phone-history-panel{border:1px solid #dce1d1;border-radius:24px;padding:25px;background:#fffef8;min-height:380px;color:#2a4430}.phone-history-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.phone-history-head p{letter-spacing:.14em;font-size:10px;color:#6d7d5b;margin:0 0 8px}.phone-history-head h2{font-size:28px;margin:0 0 6px}.phone-history-head span{font-size:12px;color:#748167}.phone-history-row{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:13px;padding:18px 0;border-bottom:1px solid #e7ebdf}.phone-history-row strong{font-size:17px}.phone-history-row p{font-size:12px;margin:4px 0;color:#6c785f}.phone-history-row small{font-size:11px;color:#76816c;line-height:1.5}.phone-history-direction{font-size:24px;color:#477652}.phone-history-row[data-missed=true] strong,.phone-history-row[data-missed=true] .phone-history-direction,.phone-history-row[data-missed=true] p{color:#a14439}.phone-history-empty{padding:35px 0;color:#6c785f;font-size:14px}.phone-advanced{margin-top:22px;border:1px solid #dce1d1;padding:15px;border-radius:16px}.phone-advanced>summary{cursor:pointer;color:#637453;font-size:13px}.phone-advanced .sip-derek-panel{margin-top:15px}.sip-incoming-notice[data-phone-view=true]{bottom:calc(95px + env(safe-area-inset-bottom))}@media(max-width:650px){.phone-history-panel{padding:19px 16px}.phone-history-row{gap:9px;grid-template-columns:24px 1fr auto}.phone-history-row strong{font-size:16px}.phone-alert-settings{align-items:flex-start;flex-wrap:wrap}.phone-alert-settings button{width:100%}.phone-history-redial{padding:8px 11px}.phone-history-head h2{font-size:25px}}.phone-history-panel[hidden],.phone-advanced[hidden]{display:none!important}

.sip-phone[data-phone-tab=recent] .sip-card,.sip-phone[data-phone-tab=missed] .sip-card{display:none!important}

.phone-alert-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.phone-alert-settings button[hidden]{display:none!important}
.phone-setup-dialog{box-sizing:border-box;width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 28px);margin:auto;padding:26px 24px 0;border:1px solid #ccd7c6;border-radius:26px;background:#fffdf6;color:#244735;font:15px/1.5 system-ui,sans-serif;overflow:auto;box-shadow:0 24px 90px #122b3160}.phone-setup-dialog::backdrop{background:#0b201bcc;backdrop-filter:blur(4px)}.phone-setup-dialog *{box-sizing:border-box}.phone-setup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.phone-setup-kicker{font-size:10px;letter-spacing:.12em;font-weight:700;color:#6a784f}.phone-setup-dialog h2{font-size:26px;line-height:1.15;letter-spacing:-.025em;margin:7px 0 0}.phone-setup-dialog button{min-height:46px;padding:11px 15px;border:1px solid #bbcbb8;border-radius:13px;background:#f8faf3;color:#244735;font:600 13px/1.35 system-ui,sans-serif;cursor:pointer}.phone-setup-dialog button:hover{background:#ebf0e3}.phone-setup-dialog button:disabled{opacity:.55;cursor:default}.phone-setup-dialog button:focus-visible{outline:3px solid #bb9142;outline-offset:3px}.phone-setup-dialog button[hidden]{display:none!important}.phone-setup-dialog #phone-setup-close{width:42px;min-height:42px;padding:4px;flex:none;background:transparent;font-size:24px}.phone-setup-intro{margin:14px 0;color:#5d7161}.phone-setup-status{padding:12px 14px;border:1px solid #decfae;border-radius:13px;background:#faf2df;font-size:13px;font-weight:650}.phone-setup-status[data-ready=true]{background:#edf3e6;border-color:#cad8c0}.phone-setup-step{display:grid;grid-template-columns:27px minmax(0,1fr);gap:12px;padding:20px 0;border-bottom:1px solid #e4e9dc}.phone-setup-number{display:grid;place-items:center;align-self:start;width:27px;height:27px;border-radius:50%;background:#e9efdF;color:#486147;font-size:12px;font-weight:700}.phone-setup-dialog h3{font-size:16px;margin:2px 0 9px}.phone-setup-step p{margin:8px 0 13px}.phone-setup-step ol{padding-left:19px;margin:12px 0}.phone-setup-step li{padding-left:4px;margin-bottom:9px}.phone-setup-note{font-size:12px;line-height:1.55;color:#637569}.phone-setup-tests{display:flex;flex-wrap:wrap;gap:9px}.phone-setup-dialog #phone-setup-enable{background:#244735;border-color:#244735;color:#fffdf6}.phone-setup-dialog #phone-setup-result{font-size:13px;font-weight:600}.phone-setup-foot{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:9px;padding:16px 0 calc(16px + env(safe-area-inset-bottom));background:#fffdf6f5;backdrop-filter:blur(10px)}.phone-setup-dialog #phone-setup-done{background:#244735;color:#fffdf6;border-color:#244735;min-width:85px}@media(max-width:430px){.phone-alert-actions{width:100%}.phone-alert-actions button{flex:1}.phone-setup-dialog{padding:21px 18px 0;border-radius:22px}.phone-setup-dialog h2{font-size:24px}.phone-setup-step{gap:9px;padding:17px 0}.phone-setup-tests button{width:100%}.phone-setup-foot button{font-size:12px;padding:10px 12px}}

.phone-history-head{gap:12px}.phone-history-head>div,.phone-history-row>div{min-width:0}.phone-history-row small{overflow-wrap:anywhere}

.phone-bottom-tabs .phone-keypad-icon{width:24px;height:27px;fill:currentColor}
