.phone-page{display:block}.phone-page main{max-width:1200px}.phone-page header{align-items:center}.login-card{max-width:430px;margin:8vh auto}#phone-search{width:100%;margin-bottom:8px}.phone-layout{display:grid;grid-template-columns:minmax(360px,1.2fr) minmax(300px,.8fr);gap:15px}.phone-side{display:grid;gap:15px;align-content:start}.phone-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.phone hr{border:0;border-top:1px solid var(--line);margin:22px 0}.dial-actions,.feature-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.dial-actions .secondary,.feature-buttons button,#phone-refresh{width:auto;margin:0;background:#eef2f0;color:#294139}.dial-actions .danger{background:#a23333}.keypad{display:grid;grid-template-columns:repeat(3,minmax(64px,1fr));gap:8px;max-width:300px;margin:18px auto}.keypad button{background:#eef2f0;color:var(--ink);font-size:18px}.privacy{color:#748079;font-size:12px;margin-top:12px}.pill.bad{background:#f8e3e3;color:#a23333}#phone-timer{font-variant-numeric:tabular-nums;margin-left:8px}.phone-entry{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.phone-entry small{display:block;color:#75817b}.phone-entry button{background:transparent;color:var(--green);padding:5px}.presence-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b9c1bd;margin-right:7px}.presence-dot.online{background:#20a677}@media(max-width:1050px){.phone-layout{grid-template-columns:1fr}}@media(max-width:560px){.phone-grid{grid-template-columns:1fr}}
.chat-messages{height:260px;overflow:auto;padding:10px;background:#f7f9f8;border:1px solid var(--line);border-radius:8px;margin:10px 0}.chat-message{display:flex;flex-direction:column;max-width:82%;padding:8px 10px;border-radius:10px;margin:6px 0;background:#fff}.chat-message.mine{margin-left:auto;background:#dff1e9}.chat-message small{font-size:10px;color:#748079;margin-top:4px}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.chat-compose textarea{width:100%;min-height:72px;margin:0;padding:10px 12px;resize:vertical;font:inherit;line-height:1.4}.chat-compose button,#chat-refresh{width:auto;margin:0}
.chat-workspace{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(260px,1.3fr);gap:14px}.chat-workspace h3{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#75817b}.chat-conversation{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);border-bottom:1px solid var(--line);border-radius:7px;padding:10px}.chat-conversation:hover,.chat-conversation.active{background:var(--light)}.chat-conversation b,.chat-conversation small{display:block}.chat-conversation b span{float:right;background:var(--green);color:#fff;border-radius:20px;min-width:20px;text-align:center}.chat-conversation small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#748079;margin-top:3px}
.phone-nav{display:flex;gap:5px;margin:0 0 16px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:14px;position:sticky;top:8px;z-index:20;box-shadow:0 5px 24px #173b2d12}.phone-nav a{flex:1;text-align:center;color:#64716b;text-decoration:none;padding:10px 8px;border-radius:9px;font-size:13px;font-weight:800}.phone-nav a.active{background:var(--green);color:#fff}.phone-nav .phone-admin-link{flex:0 0 auto}.phone-page [data-phone-page][hidden]{display:none!important}
@media(max-width:700px){.phone-page main{padding:16px 12px 86px}.phone-page header{margin-bottom:14px}.phone-page header h1{font-size:24px}.phone-nav{position:fixed;inset:auto 8px 8px;margin:0;z-index:60;padding:5px;overflow-x:auto}.phone-nav a{min-width:62px;font-size:11px;padding:10px 5px}.phone-nav .phone-admin-link{display:none}.phone-layout{display:block}.phone-side{display:block}.phone-side>.panel,.phone-layout>.panel{margin-bottom:12px}.phone{padding:16px}.keypad{max-width:none}.dial-actions button{flex:1;min-height:44px}.feature-buttons button{flex:1;min-width:42%}.phone-entry{gap:8px}.phone-entry>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end}.chat-messages{height:45vh}.chat-compose{position:sticky;bottom:70px;background:#fff;padding-top:8px}}

/* Communications workspace */
.phone-page{background:#f3f6f7;color:var(--ink)}.phone-page main{max-width:1500px;padding:22px 28px 38px}.phone-header{align-items:center;margin-bottom:18px}.phone-brand{display:flex;align-items:center;gap:12px}.phone-brand>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:linear-gradient(145deg,#26c79e,#087f6a);color:#fff;font-weight:800;box-shadow:0 5px 16px #087f6a28}.phone-header h1{font-size:20px;margin:0}.phone-header p{font-size:11px}.phone-header .eyebrow{font-size:8px}.phone-header #phone-status{border-radius:99px;padding:7px 11px}.login-card{text-align:left;max-width:440px;margin:6vh auto;padding:30px}.login-card .login-mark{display:grid;place-items:center;width:46px;height:46px;margin-bottom:18px;border-radius:13px;background:#e5f7f1;color:#087f6a;font-size:21px}.login-card h2{font-size:22px}.login-card>p{margin:5px 0 21px}.login-card button{width:100%;margin-top:8px;min-height:43px}#phone-client{display:grid;grid-template-columns:182px minmax(0,1fr);gap:14px;align-items:start}.phone-nav{position:sticky;top:20px;display:grid;gap:4px;margin:0;padding:13px 9px;background:#14272b;border-radius:12px;box-shadow:0 4px 16px #162b3020}.phone-nav-label{padding:6px 10px;color:#6f8f91;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.14em}.phone-nav a{display:flex;align-items:center;gap:10px;padding:10px;color:#b7c7c8;text-decoration:none;border-radius:8px;font-size:12px;font-weight:700}.phone-nav a i{width:18px;color:#779799;text-align:center;font-style:normal}.phone-nav a:hover{background:#203b3f;color:#fff}.phone-nav a.active{background:#dff6ef;color:#076554}.phone-nav a.active i{color:#087f6a}.phone-nav .phone-admin-link{margin-top:14px;border-top:1px solid #2e4549;border-radius:0;padding-top:15px}.phone-layout{grid-template-columns:minmax(390px,.9fr) minmax(360px,1.1fr);gap:14px}.phone-layout>.panel,.phone-side>.panel{border-radius:12px}.phone{background:linear-gradient(180deg,#fff,#fbfdfd)}.call-label,.call-clock small{display:block;color:#849098;font-size:8px;font-weight:800;letter-spacing:.14em}.call-clock{text-align:right}.call-clock strong{display:block;font-size:18px;margin-top:2px;font-variant-numeric:tabular-nums}.dial-field{margin-top:22px}.dial-field input{height:48px;font-size:17px;text-align:center;letter-spacing:.02em;background:#f8fafb}.primary-call-actions{justify-content:center}.primary-call-actions #phone-call{min-width:128px;background:#087f6a}.primary-call-actions .danger{background:#b23b42}.dial-actions{justify-content:center}.dial-actions .secondary{min-width:88px;border:1px solid #e0e5e7}.keypad{max-width:330px;gap:9px}.keypad button{height:48px;border-radius:10px;background:#f1f4f5;font-size:17px;color:#26353a}.keypad button:hover{background:#e2f2ed;color:#087f6a}.feature-buttons{padding-top:12px;border-top:1px solid #edf0f2}.feature-buttons button{font-size:11px;border:1px solid #e2e7e9}.phone-side{gap:14px}.phone-entry{padding:11px 2px}.phone-entry b{font-size:12px}.phone-entry small{font-size:10px}.phone-entry button{font-size:10px;border-radius:6px}.chat-workspace{grid-template-columns:minmax(150px,.65fr) minmax(260px,1.35fr)}.chat-conversation{border-radius:8px}.chat-messages{background:#f7f9fa;border-color:#e4e9eb}.chat-message span{border-radius:12px}.chat-message.mine span{background:#087f6a}.phone-page .panel-head button.secondary{width:auto}.phone-page #phone-signout{border:1px solid #dde3e5;color:#526168}
@media(max-width:1080px){.phone-page main{padding:18px}#phone-client{grid-template-columns:150px minmax(0,1fr)}.phone-layout{grid-template-columns:1fr}.phone-nav a{padding:9px 8px}}
@media(max-width:700px){.phone-page main{padding:14px 11px 88px}.phone-header{margin-bottom:12px}.phone-header h1{font-size:18px}.phone-header .phone-brand>span{width:34px;height:34px}.phone-header .phone-brand p:last-child{display:none}#phone-client{display:block}.phone-nav{position:fixed;inset:auto 7px 7px;display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:5px;z-index:60;border-radius:14px;box-shadow:0 8px 30px #14272b55}.phone-nav-label,.phone-nav .phone-admin-link{display:none}.phone-nav a{display:grid;justify-items:center;gap:2px;min-width:0;padding:7px 3px;font-size:9px}.phone-nav a i{font-size:15px}.phone-layout{display:block}.phone{padding:15px}.dial-field input{height:46px}.keypad button{height:45px}.primary-call-actions{display:grid;grid-template-columns:repeat(2,1fr)}.primary-call-actions button{width:100%}.chat-workspace{grid-template-columns:1fr}.chat-messages{height:38vh}.panel-head{align-items:center}.phone-entry{align-items:flex-start}}

/* Hidden must win over desktop and mobile workspace display rules. */
.phone-page [hidden]{display:none!important}
.incoming-call-alert{position:fixed;z-index:120;top:12px;left:50%;display:grid;grid-template-columns:auto minmax(160px,1fr) auto auto;gap:10px;align-items:center;width:min(560px,calc(100vw - 24px));padding:11px 12px;transform:translateX(-50%);background:#202326;color:#fff;border:1px solid #5a5d60;border-radius:8px;box-shadow:0 14px 40px #0008}.incoming-call-alert .incoming-call-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#087f9e;font-size:18px;animation:incoming-pulse 1.4s ease-in-out infinite}.incoming-call-alert small,.incoming-call-alert strong,.incoming-call-alert div>span{display:block}.incoming-call-alert small{color:#9ea7ab;font-size:9px;text-transform:uppercase;letter-spacing:.12em}.incoming-call-alert strong{font-size:14px}.incoming-call-alert div>span{color:#c4c9cc;font-size:10px}.incoming-call-alert button{min-width:72px}.incoming-call-alert #incoming-alert-answer{background:#19bd72}.incoming-call-alert #incoming-alert-decline{background:#d84b55}@media(max-width:560px){.incoming-call-alert{top:7px;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;padding:8px}.incoming-call-alert .incoming-call-icon{width:32px;height:32px}.incoming-call-alert button{min-width:0;padding:8px;font-size:10px}}
.chat-conversation.unread{border-left:3px solid #18bddd;background:#34484e}.sms-unread{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:5px;padding:0 5px;border-radius:10px;background:#18bddd;color:#fff;font-size:9px}.chat-message.theirs.unread span{box-shadow:inset 3px 0 #18bddd}
.legacy-chat-panel{display:none!important}.unified-chat{height:calc(100vh - 50px);padding:0!important;overflow:hidden}.unified-chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;height:68px;padding:9px 14px;border-bottom:1px solid #505255}.unified-chat-head h2,.unified-chat-head p{margin:0}.new-chat-controls{display:grid;grid-template-columns:120px minmax(150px,240px) auto;gap:6px;align-items:center}.new-chat-controls input,.new-chat-controls select,.new-chat-controls button{height:34px;margin:0}.new-chat-controls button{width:auto}.unified-chat-grid{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);height:calc(100% - 68px)}.unified-chat-list{min-width:0;border-right:1px solid #505255;overflow:auto}.unified-list-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;padding:10px 12px;background:#353739;border-bottom:1px solid #505255;font-size:10px}.unified-list-head span{color:#59d5ee}.unified-conversation{display:grid;width:100%;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 12px;text-align:left;background:#3b3d3f;color:#eef0f1;border:0;border-bottom:1px solid #505255;border-left:3px solid transparent;border-radius:0}.unified-conversation:hover,.unified-conversation.active{background:#41494c}.unified-conversation.active{border-left-color:#18bddd}.unified-conversation.unread{background:#34484e;border-left-color:#18bddd}.unified-conversation.unread .conversation-copy b{font-weight:900;color:#fff}.conversation-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#505356;color:#c9d0d3;font-size:13px;font-weight:800}.conversation-avatar.sms{background:#087f9e;color:#fff;font-size:8px}.conversation-copy{min-width:0}.conversation-copy b,.conversation-copy em{display:block}.conversation-copy b{font-size:11px}.conversation-copy b small{float:right;color:#8f999e;font-size:8px;font-weight:500}.conversation-copy em{margin-top:3px;overflow:hidden;color:#aeb4b8;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.conversation-unread{display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:12px;background:#18bddd;color:#fff;font-size:9px;font-weight:800}.unified-thread{display:grid;min-width:0;grid-template-rows:auto minmax(0,1fr) auto auto;padding:0 14px 12px}.unified-thread>header{display:flex;align-items:center;gap:9px;min-height:54px;border-bottom:1px solid #505255}.unified-thread>header>span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#087f9e;font-size:9px}.unified-thread>header b,.unified-thread>header small{display:block}.unified-thread>header small{color:#aeb4b8;font-size:9px}.unified-thread .chat-messages{height:auto;margin:7px 0}.unified-sender-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,1fr);gap:8px;align-items:end;padding-bottom:7px}.unified-sender-row label{margin:0}.unified-sender-row input,.unified-sender-row select{margin:0}.unified-compose{position:static}.unified-compose input,.unified-compose button{margin:0}@media(max-width:760px){.unified-chat{height:auto;min-height:calc(100dvh - 128px);overflow:visible}.unified-chat-head{height:auto;display:grid}.new-chat-controls{grid-template-columns:110px minmax(0,1fr);}.new-chat-controls button{grid-column:1/-1}.unified-chat-grid{display:grid;grid-template-columns:1fr;height:auto}.unified-chat-list{max-height:34dvh;border-right:0;border-bottom:1px solid #505255}.unified-thread{min-height:48dvh;padding:0 9px 82px}.unified-thread .chat-messages{min-height:220px;max-height:38dvh}.unified-sender-row{grid-template-columns:1fr}.unified-compose{position:sticky;bottom:70px;background:#3b3d3f;padding-top:7px}}

.phone-page button:disabled{cursor:not-allowed;opacity:.38;filter:saturate(.35);transform:none}.phone-page button:disabled:hover{background:inherit}.phone-page[data-call-mode="incoming"] #phone-answer{box-shadow:0 0 0 4px #26b98b20;animation:incoming-pulse 1.5s ease-in-out infinite}.phone-page[data-call-mode="active"] .call-clock strong,.phone-page[data-call-mode="held"] .call-clock strong{color:#087f6a}@keyframes incoming-pulse{50%{box-shadow:0 0 0 9px #26b98b08}}.phone-action-dialog{width:min(440px,calc(100vw - 24px))}.phone-action-dialog form{padding:24px}.phone-action-dialog menu{margin-bottom:0}.phone-action-dialog menu .secondary{margin:0;width:auto}.phone-action-dialog input{width:100%}

/* Focused dialer: one number field, one keypad, and only relevant call controls. */
.phone-page[data-phone-page="dialer"] .phone-layout{grid-template-columns:minmax(340px,560px);justify-content:center}.phone-page[data-phone-page="dialer"] .phone-side{display:none}.dial-field{position:relative}.dial-field input{padding-right:104px;text-align:left;font-size:20px}.dial-field-tools{position:absolute;right:8px;bottom:7px;display:flex;gap:3px}.dial-field-tools button{padding:7px 8px;background:transparent;color:#66747b;font-size:11px}.dial-field-tools button:hover{background:#eaf2f0}.keypad button{display:grid;place-items:center;align-content:center;min-height:58px}.keypad button b{font-size:20px;line-height:1}.keypad button small{min-height:12px;margin-top:5px;color:#879299;font-size:8px;font-weight:800;letter-spacing:.16em}.primary-call-actions #phone-answer,.primary-call-actions #phone-decline,.primary-call-actions #phone-hangup,.dial-actions #phone-hold,.dial-actions #phone-mute,.dial-actions #phone-transfer,.dial-actions #phone-record{display:none}.phone-page[data-call-mode="incoming"] .primary-call-actions #phone-answer,.phone-page[data-call-mode="incoming"] .primary-call-actions #phone-decline,.phone-page[data-call-mode="calling"] .primary-call-actions #phone-hangup,.phone-page[data-call-mode="active"] .primary-call-actions #phone-hangup,.phone-page[data-call-mode="held"] .primary-call-actions #phone-hangup,.phone-page[data-call-mode="active"] .dial-actions #phone-hold,.phone-page[data-call-mode="active"] .dial-actions #phone-mute,.phone-page[data-call-mode="active"] .dial-actions #phone-transfer,.phone-page[data-call-mode="active"] .dial-actions #phone-record,.phone-page[data-call-mode="held"] .dial-actions #phone-hold,.phone-page[data-call-mode="held"] .dial-actions #phone-mute,.phone-page[data-call-mode="held"] .dial-actions #phone-transfer,.phone-page[data-call-mode="held"] .dial-actions #phone-record{display:inline-flex}.phone-page[data-call-mode="incoming"] .primary-call-actions #phone-call,.phone-page[data-call-mode="calling"] .primary-call-actions #phone-call,.phone-page[data-call-mode="active"] .primary-call-actions #phone-call,.phone-page[data-call-mode="held"] .primary-call-actions #phone-call{display:none}.feature-buttons:before{content:"Quick dial";flex-basis:100%;color:#879299;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.switchboard-call{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 3px;border-bottom:1px solid #edf0f2}.switchboard-call:last-child{border:0}.switchboard-call b,.switchboard-call small{display:block}.switchboard-call small{color:#7b878f;font-size:10px}.call-state{padding:4px 7px;border-radius:6px;background:#e7f7f2;color:#08735f;font-size:9px;font-weight:800;text-transform:uppercase}.switchboard-actions{display:flex;gap:5px}.switchboard-actions button{font-size:10px;padding:7px 9px}.switchboard-actions .danger{background:#b23b42}
@media(max-width:700px){.phone-nav{grid-template-columns:repeat(auto-fit,minmax(46px,1fr))}.switchboard-call{grid-template-columns:auto 1fr}.switchboard-actions{grid-column:2}.switchboard-actions button{flex:1}}
@media(max-width:700px){.chat-workspace{grid-template-columns:1fr}.chat-workspace>div:first-child{max-height:190px;overflow:auto}}
.segmented{display:flex;gap:3px;margin:0 0 12px;padding:3px;border-radius:9px;background:#eef2f3;overflow:auto}.segmented button{flex:1;min-width:max-content;padding:7px 9px;background:transparent;color:#66747b;font-size:10px}.segmented button:hover,.segmented button.active{background:#fff;color:#087f6a;box-shadow:0 1px 4px #17272b12}.section-label{margin:17px 0 8px;color:#7b878f;font-size:9px;text-transform:uppercase;letter-spacing:.14em}.presence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:7px}.presence-card{display:grid;grid-template-columns:auto 1fr;column-gap:7px;align-items:center;text-align:left;padding:10px;background:#f7f9fa;color:#26353a;border:1px solid #e8ecee}.presence-card:hover{background:#edf7f4}.presence-card .presence-dot{grid-row:1/3}.presence-card b{font-size:11px}.presence-card small{color:#7b878f;font-size:9px}

/* Dark end-user workspace based on the supplied interaction reference. */
.phone-page{--canvas:#303234;--surface:#3b3d3f;--line:#505255;--ink:#f1f3f4;--muted:#afb5b9;--green:#08a8cf;--green-dark:#078eaf;--light:#24414b;background:#303234;color:#f1f3f4}.phone-page main{max-width:none;margin:0;padding:0 18px 28px}.phone-header{height:40px;margin:0 -18px 0;padding:0 14px;background:#202326;border-bottom:1px solid #44474a}.phone-brand>span{width:29px;height:29px;border-radius:3px;background:#08a8cf;box-shadow:none;font-size:11px}.phone-header h1{font-size:14px}.phone-header .phone-brand p:last-child,.phone-header .eyebrow{display:none}.phone-header #phone-status{background:#25413b;color:#66d8ae;border-radius:3px}#phone-client{grid-template-columns:58px minmax(0,1fr);gap:14px;padding-top:14px}.phone-nav{top:14px;margin:0;padding:5px;background:#202326;border:1px solid #44474a;border-radius:3px;box-shadow:none}.phone-nav-label{display:none}.phone-nav a{display:grid;justify-items:center;gap:2px;padding:9px 2px;color:#bec4c7;border-radius:3px;font-size:0}.phone-nav a i{width:auto;font-size:17px;color:#aeb5b8}.phone-nav a span{font-size:8px}.phone-nav a.active{background:#078fad;color:#fff}.phone-nav .phone-admin-link{margin-top:10px;padding-top:12px;border-color:#44474a}.phone-layout>.panel,.phone-side>.panel,.phone-page .panel{background:#3b3d3f;border-color:#505255;border-radius:3px;box-shadow:none}.phone-page .panel p,.phone-entry small{color:#aeb4b8}.phone{background:#343a43}.dial-field input,.phone-page input,.phone-page select{background:#505254;border-color:#606366;color:#fff;border-radius:3px}.dial-field input{height:44px}.keypad{max-width:280px}.keypad button{height:45px;min-height:45px;border-radius:18px;background:#48505b;color:#fff}.keypad button:hover{background:#087f9e;color:#fff}.keypad button small{color:#c4c9cc}.feature-buttons{border-color:#505255}.feature-buttons button,.dial-actions .secondary{background:#484c4f;color:#e6e8e9;border-color:#5b5f62}.primary-call-actions #phone-call{background:#19bd72;border-radius:22px}.primary-call-actions .danger{background:#d84b55;border-radius:22px}.phone-entry{border-color:#505255}.phone-entry button{color:#23b9da}.segmented{background:#303335;border-radius:3px}.segmented button{color:#b9bec1}.segmented button:hover,.segmented button.active{background:#087f9e;color:#fff;box-shadow:none}.chat-messages{background:#343638;border-color:#55585a}.chat-message{background:#505356}.chat-message.mine{background:#087f9e}.chat-conversation{color:#eef0f1;border-color:#505255}.chat-conversation:hover,.chat-conversation.active{background:#087f9e}.presence-card{background:#414446;color:#fff;border-color:#55585a;border-radius:3px}.presence-card:hover{background:#087f9e}.presence-card small{color:#b9bec1}.phone-action-dialog{background:#444648;color:#fff;border:1px solid #5d6063;border-radius:3px}.phone-action-dialog::backdrop{background:#080a0bd0}.phone-action-dialog input{background:#505254;color:#fff;border-color:#64676a}@media(min-width:701px){.phone-page[data-phone-page="dialer"] .phone-layout{grid-template-columns:minmax(320px,360px);justify-content:end}.phone-page[data-phone-page="dialer"] .phone{min-height:calc(100vh - 70px)}}
/* Reference-density pass: fixed communications rail, card-based team view and full chat workspace. */
@media(min-width:701px){.phone-page main{padding:0}.phone-header{height:50px;margin:0;padding:0 10px}.phone-header #phone-status{margin-right:8px;font-size:9px}.phone-brand>span{width:32px;height:32px}.phone-brand h1{font-size:13px}#phone-client{grid-template-columns:68px minmax(0,1fr);gap:0;padding:0;min-height:calc(100vh - 50px)}.phone-nav{position:sticky;top:0;align-self:start;height:calc(100vh - 50px);margin:0;padding:5px 4px;border-width:0 1px 0 0}.phone-nav a{min-height:57px;padding:8px 2px}.phone-nav a i{font-size:16px}.phone-nav a span{font-size:8px;font-weight:600}.phone-nav .phone-admin-link{margin-top:auto}.phone-layout{gap:0;min-height:calc(100vh - 50px)}.phone-layout>.panel,.phone-side>.panel,.phone-page .panel{border-radius:0}.phone-page [data-phone-page]{margin:0}.phone-page[data-phone-page="dialer"] .phone-layout{grid-template-columns:minmax(320px,350px);justify-content:end}.phone-page[data-phone-page="dialer"] .phone{min-height:calc(100vh - 50px);padding:18px 21px}.phone-page[data-phone-page="people"] .phone-layout,.phone-page[data-phone-page="chat"] .phone-layout,.phone-page[data-phone-page="panel"] .phone-layout,.phone-page[data-phone-page="calls"] .phone-layout,.phone-page[data-phone-page="settings"] .phone-layout{display:block}.phone-page[data-phone-page="people"] .phone-side,.phone-page[data-phone-page="chat"] .phone-side,.phone-page[data-phone-page="panel"] .phone-side,.phone-page[data-phone-page="calls"] .phone-side,.phone-page[data-phone-page="settings"] .phone-side{display:block}.phone-page[data-phone-page="people"] #phone-directory{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:1px;background:#505255}.phone-page[data-phone-page="people"] #phone-directory .phone-entry{min-height:84px;padding:10px;background:#3b3d3f;border:0}.phone-page[data-phone-page="people"] #phone-directory .phone-entry>div:first-child{min-width:0}.phone-page[data-phone-page="people"] #phone-directory .phone-entry b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phone-page[data-phone-page="chat"] #team-chat{height:calc(100vh - 50px);padding:0;overflow:hidden}.phone-page[data-phone-page="chat"] #team-chat>.panel-head{height:58px;margin:0;padding:10px 14px;border-bottom:1px solid #505255}.phone-page[data-phone-page="chat"] .chat-workspace{height:calc(100% - 58px);grid-template-columns:minmax(250px,430px) minmax(0,1fr);gap:0}.phone-page[data-phone-page="chat"] .chat-workspace>div{padding:10px 14px}.phone-page[data-phone-page="chat"] .chat-workspace>div:first-child{border-right:1px solid #505255;overflow:auto}.phone-page[data-phone-page="chat"] .chat-workspace>div:last-child{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.phone-page[data-phone-page="chat"] .chat-messages{height:auto;margin:7px 0;overflow:auto}.phone-page[data-phone-page="panel"] #switchboard-card{min-height:calc(100vh - 50px);padding:14px}.phone-page[data-phone-page="panel"] .presence-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.phone-page[data-phone-page="calls"] .phone-side,.phone-page[data-phone-page="settings"] .phone-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:1px;background:#505255}.phone-page[data-phone-page="calls"] .phone-side>.panel,.phone-page[data-phone-page="settings"] .phone-side>.panel{margin:0;min-height:240px}.phone-entry{min-height:39px;padding:6px 2px}.phone-page .panel-head{margin-bottom:9px}.phone-page .panel{padding:13px}}
.message-mode{margin:10px 13px 0;max-width:340px}.sms-compose{grid-template-columns:minmax(160px,1fr) minmax(170px,.7fr) auto}.chat-message a{color:#65d9f2;font-size:11px;margin-top:5px}@media(max-width:700px){.sms-compose{grid-template-columns:1fr}.message-mode{margin:8px 0}}
.sms-addressing{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(220px,1.2fr);gap:10px}.sms-disabled-reason{margin:4px 0 8px;padding:8px 10px;border:1px solid #8d5a43;background:#51382f;color:#ffd2bd;border-radius:3px;font-size:11px}@media(max-width:700px){.sms-addressing{grid-template-columns:1fr}}
.dialer-launch{width:auto;margin-right:10px;padding:7px 13px;border-radius:20px;background:#19bd72;font-size:10px}.contact-avatar{display:grid;place-items:center;float:left;width:32px;height:32px;margin-right:9px;border-radius:50%;background:#087f9e;color:#fff;font-size:10px;font-weight:800}.contact-row>div:first-child{min-width:0}.contact-row b,.contact-row small{display:block}.meeting-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(300px,1.2fr);gap:22px}.meeting-layout form{display:grid;align-content:start}.meeting-layout textarea{background:#505254;color:#fff;border-color:#606366}.profile-identity{display:grid;gap:4px;margin-bottom:14px;padding:12px;background:#343638;border:1px solid #505255}.profile-identity small{color:#adb4b8;font-size:10px}
@media(min-width:701px){.phone-page[data-phone-page="team"] .phone-layout,.phone-page[data-phone-page="contacts"] .phone-layout,.phone-page[data-phone-page="voicemail"] .phone-layout,.phone-page[data-phone-page="recordings"] .phone-layout,.phone-page[data-phone-page="meet"] .phone-layout{display:block}.phone-page[data-phone-page="team"] .phone-side,.phone-page[data-phone-page="contacts"] .phone-side,.phone-page[data-phone-page="voicemail"] .phone-side,.phone-page[data-phone-page="recordings"] .phone-side,.phone-page[data-phone-page="meet"] .phone-side{display:block}.phone-page[data-phone-page="team"] #phone-directory{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1px;background:#505255}.phone-page[data-phone-page="team"] #phone-directory .phone-entry{min-height:84px;padding:10px;background:#3b3d3f;border:0}.phone-page[data-phone-page="contacts"] #contacts-card,.phone-page[data-phone-page="voicemail"] #phone-voicemails,.phone-page[data-phone-page="recordings"] #phone-recordings,.phone-page[data-phone-page="meet"] #meet-card{min-height:calc(100vh - 50px)}.phone-page[data-phone-page="contacts"] #contacts-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:0 14px}.phone-page[data-phone-page="settings"] .phone-side{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}
@media(max-width:700px){.meeting-layout{grid-template-columns:1fr}.dialer-launch{margin-left:auto}.phone-header #phone-status{display:none}}
.settings-nav{display:flex;gap:3px;overflow:auto;padding:5px;background:#202326;border:1px solid #505255;position:sticky;top:0;z-index:5}.settings-nav button{width:auto;white-space:nowrap;padding:8px 10px;background:transparent;color:#b9bec1;border:0}.settings-nav button.active{background:#078fad;color:#fff}.phone-page[data-density="compact"] .phone-entry{min-height:30px;padding:3px 2px}.phone-page[data-theme="light"]{--canvas:#f2f5f6;--surface:#fff;--line:#dbe2e4;--ink:#203035;--muted:#66767b;--light:#e7f5f8;background:#f2f5f6;color:#203035}.phone-page[data-theme="light"] .phone-layout>.panel,.phone-page[data-theme="light"] .phone-side>.panel,.phone-page[data-theme="light"] .phone-page .panel{background:#fff}.phone-page[data-theme="light"] input,.phone-page[data-theme="light"] select,.phone-page[data-theme="light"] textarea{background:#fff;color:#203035;border-color:#ccd7da}

/* Authenticated tenant branding supplied to the webphone and native mobile client. */
.phone-brand>span.tenant-icon-active{padding:2px;background:#fff}.phone-brand>span.tenant-icon-active img{display:block;width:100%;height:100%;object-fit:contain;border-radius:2px}.phone-tenant-logo{display:block;width:auto;max-width:132px;height:31px;padding:2px 5px;object-fit:contain;border:1px solid #4e5255;border-radius:3px;background:#fff}
.caller-id-field{margin:2px 0 10px}.caller-id-field select{font-variant-numeric:tabular-nums}.caller-id-field::after{content:"Only numbers assigned by your PBX administrator are available";display:block;margin-top:4px;color:#8f999d;font-size:10px;font-weight:400}
@media(max-width:700px){.phone-tenant-logo{max-width:92px;height:28px}.phone-brand{gap:7px}.phone-brand>div{min-width:0}.phone-brand h1{white-space:nowrap}}
body.phone-page:has(#phone-client):not(.phone-auth-ready) #phone-login{visibility:hidden}body.phone-page:has(#phone-client):not(.phone-auth-ready)::after{content:"Restoring your web phone…";position:fixed;inset:0;display:grid;place-items:center;background:#f5f7f8;color:#52606a;font-weight:700;z-index:100}

/* Dense team cards and work surfaces aligned with the reference web client. */
@media(min-width:701px){.phone-page[data-phone-page="team"] #phone-directory{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))!important;gap:16px!important;padding:16px;background:#3b3d3f!important}.phone-page[data-phone-page="team"] #phone-directory .team-card{position:relative;min-height:158px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:14px!important;background:#353638!important;border:1px solid #505255!important}.team-card .phone-avatar{position:relative;display:grid;place-items:center;width:49px;height:49px;border-radius:50%;background:#9ba4b5;color:#fff}.team-card .phone-avatar>b{font-size:13px}.team-card .phone-avatar .presence-dot{position:absolute;right:0;bottom:1px;width:10px;height:10px;margin:0;border:2px solid #353638}.team-card .team-identity{text-align:center;margin:9px 0}.team-card .team-identity b{font-size:12px!important}.team-card .team-identity em{font-style:normal;color:#fff}.team-card .team-identity small{margin-top:3px}.team-card .team-actions{display:flex;gap:4px}.team-card .team-actions button{display:grid;place-items:center;width:29px;height:27px;padding:0;border:1px solid #505255;border-radius:2px;color:#d8dcde;background:#3b3d3f;font-size:13px}.team-card .team-actions button:hover{background:#078fad}.team-card .team-more{position:absolute;right:7px;top:4px;background:transparent!important;color:#fff!important;font-size:16px!important}.phone-page[data-phone-page="team"] .phone-side>.panel:first-child{padding:0}.phone-page[data-phone-page="team"] .phone-side>.panel:first-child .panel-head{height:58px;margin:0;padding:10px 16px;border-bottom:1px solid #505255}.phone-page[data-phone-page="team"] #phone-search{height:38px;margin:10px 16px 0;width:calc(100% - 32px)}}

/* 3CX-style live Panel. */
.phone-page[data-phone-page="panel"] #switchboard-card{display:grid;grid-template-rows:auto minmax(170px,1fr) minmax(210px,1.15fr) auto;min-height:calc(100vh - 50px);padding:0;background:#3b3d3f;overflow:hidden}.panel-titlebar{display:flex;align-items:center;justify-content:space-between;min-height:72px;padding:12px 16px;border-bottom:1px solid #505255}.panel-titlebar h2{margin:0;font-size:21px}.panel-tools{display:flex;align-items:center;gap:8px}.panel-tools #switchboard-refresh{display:grid;place-items:center;width:42px;height:38px;padding:0;font-size:18px}.panel-filter{display:flex;align-items:center;gap:7px;margin:0}.panel-filter>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.panel-filter select{width:190px;height:38px;margin:0;background:#343638}.panel-calls,.panel-agents{display:flex;min-height:0;flex-direction:column;border-bottom:1px solid #505255}.panel-section-head{display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:8px 15px;border-bottom:1px solid #505255;background:#36383a}.panel-section-head b{font-size:12px}.panel-section-head span{color:#afb5b9;font-size:10px}.panel-calls #switchboard-calls{min-height:0;overflow:auto}.panel-calls .empty{display:grid;min-height:125px;place-items:center;margin:0;color:#8f969a}.switchboard-call{min-height:48px;padding:8px 15px;border-color:#505255}.switchboard-call:hover{background:#424548}.switchboard-call .call-state{min-width:64px;text-align:center;background:#15566a;color:#72daf2}.switchboard-call small{color:#afb5b9}.panel-agent-table-wrap{min-height:0;overflow:auto}.panel-agent-table{width:100%;border-collapse:collapse;font-size:12px}.panel-agent-table th{position:sticky;top:0;z-index:1;padding:8px 14px;background:#343638;color:#f2f3f4;text-align:left;border-bottom:1px solid #55585a}.panel-agent-table td{height:34px;padding:6px 14px;border-bottom:1px solid #4a4d4f;color:#e9ebec}.panel-agent-table th:first-child,.panel-agent-table td:first-child{width:88px}.panel-agent-table th:nth-child(2){width:190px}.panel-agent-table th:last-child{width:180px}.panel-agent-row{box-shadow:inset 4px 0 #697174}.panel-agent-row.online{box-shadow:inset 4px 0 #52d038}.panel-agent-row:hover{background:#444749}.panel-presence{display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:#7b8286}.panel-presence.online{background:#52d038;box-shadow:0 0 0 2px #52d03822}.panel-presence.busy{background:#e75d65}.panel-agent-name{padding:0;background:transparent!important;color:#f1f3f4!important;border:0;text-align:left;font-weight:700}.panel-agent-name:hover{color:#31c4e6!important}.panel-agent-status{color:#bac0c3;font-size:10px}.panel-metrics{display:grid;grid-template-columns:repeat(6,1fr);min-height:72px;background:#303234}.panel-metrics>div{display:grid;align-content:center;justify-items:center;gap:5px;padding:9px 5px;border-right:1px solid #494c4e}.panel-metrics>div:last-child{border:0}.panel-metrics b{font-size:10px;font-weight:600;color:#e7e9ea;text-align:center}.panel-metrics span{font-size:14px;color:#fff;font-variant-numeric:tabular-nums}
@media(max-width:700px){.phone-page[data-phone-page="panel"] #switchboard-card{display:block;min-height:calc(100vh - 130px);overflow:visible}.panel-titlebar{min-height:58px;padding:10px}.panel-titlebar h2{font-size:18px}.panel-filter select{width:145px}.panel-calls{min-height:180px}.panel-agents{min-height:245px}.panel-agent-table{min-width:650px}.panel-metrics{grid-template-columns:repeat(3,1fr)}.panel-metrics>div{min-height:64px;border-bottom:1px solid #494c4e}.switchboard-call{grid-template-columns:auto minmax(0,1fr)}.switchboard-actions{grid-column:2}}

/* Authoritative mobile webphone shell. */
@media(max-width:700px){
  html{overflow-x:hidden;background:#303234}
  body.phone-page{min-width:0;min-height:100dvh;overflow-x:hidden;padding:0}
  .phone-page main{width:100%;min-width:0;margin:0;padding:0 10px calc(82px + env(safe-area-inset-bottom))}
  .phone-header{position:sticky;z-index:45;top:0;width:auto;height:auto;min-height:52px;margin:0 -10px 10px;padding:max(7px,env(safe-area-inset-top)) 10px 7px;background:#202326f2;backdrop-filter:blur(12px)}
  .phone-brand{min-width:0}.phone-brand>div{min-width:0}.phone-brand h1{max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .phone-header #phone-status{display:none}
  #phone-client{display:block;width:100%;min-width:0;padding:0}
  .phone-nav{position:fixed;z-index:80;left:6px;right:6px;bottom:max(6px,env(safe-area-inset-bottom));display:flex;grid-template-columns:none;width:auto;height:66px;margin:0;padding:5px;gap:2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;background:#202326f5;border:1px solid #55585a;border-radius:12px;box-shadow:0 8px 30px #0009}
  .phone-nav-label,.phone-nav .phone-admin-link{display:none}
  .phone-nav a{display:grid;flex:0 0 62px;min-width:62px;min-height:54px;place-items:center;align-content:center;gap:3px;padding:5px 3px;border-radius:7px;scroll-snap-align:start;font-size:0;touch-action:manipulation}
  .phone-nav a i{width:auto;font-size:18px}.phone-nav a span{font-size:9px;line-height:1.1}
  .phone-layout,.phone-side{display:block;width:100%;min-width:0}
  .phone-layout>.panel,.phone-side>.panel,.phone-page .panel{width:100%;min-width:0;margin:0 0 9px;padding:12px;border-radius:4px}
  .phone-page .panel-head{gap:8px;align-items:flex-start;flex-wrap:wrap}
  .phone-page button,.phone-page a{touch-action:manipulation}
  .phone-page button,.phone-page input,.phone-page select,.phone-page textarea{min-height:44px}
  .phone-page input,.phone-page select,.phone-page textarea{max-width:100%;font-size:16px}
  .dial-field{margin-top:12px}.dial-field input{height:50px;padding-right:96px;font-size:19px}
  .dial-field-tools{bottom:5px}.dial-field-tools button{min-width:40px;min-height:40px;padding:5px}
  .keypad{width:min(100%,330px);max-width:330px;gap:8px;margin:12px auto}
  .keypad button{height:52px;min-height:52px;border-radius:26px}
  .primary-call-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .primary-call-actions button{width:100%;min-height:48px}
  .dial-actions,.feature-buttons{gap:7px}.dial-actions button,.feature-buttons button{min-width:calc(50% - 4px);min-height:44px;flex:1}
  .phone-entry{min-height:54px;gap:8px;align-items:flex-start;padding:9px 2px}
  .phone-entry>div:first-child{min-width:0}.phone-entry b,.phone-entry small{overflow:hidden;text-overflow:ellipsis}
  .phone-entry>div:last-child{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:4px}
  .phone-entry button{min-width:40px;min-height:40px;padding:6px}
  .segmented,.settings-nav{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .segmented button,.settings-nav button{flex:0 0 auto;min-height:42px;white-space:nowrap}
  .phone-page[data-phone-page="team"] #phone-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:transparent}
  .phone-page[data-phone-page="team"] #phone-directory .team-card{position:relative;display:flex;min-width:0;min-height:142px;flex-direction:column;align-items:center;justify-content:center;padding:10px;background:#353638;border:1px solid #505255;text-align:center}
  .team-card .phone-avatar{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#9ba4b5;color:#fff}
  .team-card .team-identity{min-width:0;width:100%;margin:7px 0}.team-card .team-identity b,.team-card .team-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .team-card .team-actions{display:flex;gap:4px}.team-card .team-actions button{display:grid;place-items:center;width:40px;height:40px;padding:0;background:#45484b}
  .team-card .team-more{position:absolute;right:3px;top:3px;min-width:38px!important;background:transparent!important}
  .chat-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;height:auto}
  .chat-workspace>div{min-width:0;padding:0!important}.chat-workspace>div:first-child{max-height:28dvh;overflow:auto;border-right:0!important;border-bottom:1px solid #505255}
  .chat-workspace>div:last-child{display:grid;grid-template-rows:auto minmax(260px,42dvh) auto}
  .chat-messages{height:auto;min-height:260px;max-height:42dvh;margin:7px 0;padding:9px;overscroll-behavior:contain}
  .chat-message{max-width:90%;overflow-wrap:anywhere}
  .chat-compose{position:sticky;bottom:74px;grid-template-columns:minmax(0,1fr) auto;padding-top:7px;background:var(--surface)}
  .chat-compose button{min-width:58px}
  .sms-compose,.sms-addressing,.meeting-layout{grid-template-columns:minmax(0,1fr)}
  .meeting-layout{gap:10px}
  .phone-page[data-phone-page="panel"] #switchboard-card{display:block;min-height:calc(100dvh - 130px);overflow:visible;padding:0}
  .panel-titlebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:58px;padding:10px}
  .panel-titlebar h2{font-size:17px}.panel-tools{grid-column:1/-1;justify-content:space-between}.panel-filter{flex:1}.panel-filter select{width:100%}
  .panel-agent-table-wrap{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.panel-agent-table{min-width:650px}
  .panel-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.panel-metrics>div{min-height:60px}
  .switchboard-call{grid-template-columns:auto minmax(0,1fr);padding:9px 10px}.switchboard-actions{grid-column:1/-1;padding-left:0}
  .phone-action-dialog[open]{inset:auto 0 0;width:100vw;max-width:none;max-height:92dvh;margin:0;border-width:1px 0 0;border-radius:12px 12px 0 0}
  .phone-action-dialog form{max-height:92dvh;overflow-y:auto;padding:18px 12px calc(14px + env(safe-area-inset-bottom))}
  .phone-action-dialog menu{position:sticky;bottom:0;padding-top:9px;background:var(--surface)}
  .login-card{width:100%;max-width:430px;margin:4vh auto;padding:20px 16px!important}
  #toast{left:9px;right:9px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:100;text-align:center}
}
@media(max-width:390px){
  .phone-brand h1{max-width:42vw}
  .phone-page[data-phone-page="team"] #phone-directory{grid-template-columns:1fr}
  .panel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .phone-entry{flex-wrap:wrap}.phone-entry>div:last-child{width:100%;justify-content:flex-start}
  .chat-compose{grid-template-columns:1fr}.chat-compose button{width:100%}
}
@media(max-width:700px) and (orientation:landscape) and (max-height:500px){
  .phone-nav{height:58px}.phone-nav a{min-height:46px}.phone-page main{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .keypad{grid-template-columns:repeat(6,minmax(42px,1fr));max-width:none}.keypad button{height:46px;min-height:46px}
}
@media(prefers-reduced-motion:reduce){.phone-nav{scroll-behavior:auto}}

/* Route changes keep the webphone shell mounted and transition only its content. */
.phone-layout{view-transition-name:phone-content}
::view-transition-old(phone-content){animation:phone-route-out 70ms ease-out both}
::view-transition-new(phone-content){animation:phone-route-in 110ms ease-out both}
@keyframes phone-route-out{to{opacity:.72}}
@keyframes phone-route-in{from{opacity:.82}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.phone-layout{view-transition-name:none}}

.phone-call-stack{display:flex;gap:5px;margin:0 0 10px;padding:5px;overflow-x:auto;border:1px solid #505255;background:#2e3032}.phone-call-stack[hidden]{display:none}.phone-call-stack button{display:grid;flex:0 0 auto;min-width:112px;gap:2px;padding:7px 10px;text-align:left;background:#45484b;color:#eef0f1;border:1px solid #5a5e61}.phone-call-stack button.active{background:#087f9e;border-color:#22bddd}.phone-call-stack b{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.phone-call-stack small{color:#c2c8cb;font-size:8px}.phone-call-stack button.active small{color:#e5faff}@media(max-width:700px){.phone-call-stack{margin:0 -3px 9px}.phone-call-stack button{min-height:48px}}
.phone-transcript{max-width:760px;margin:8px 0 0;padding:9px 11px;border-left:3px solid #18a9c8;background:#303335;color:#e8edef;line-height:1.5;white-space:pre-wrap}

/* Readable desktop navigation and interaction-complete Team workspace. */
@media(min-width:701px){
  #phone-client{grid-template-columns:190px minmax(0,1fr)}
  .phone-nav{width:190px;grid-auto-rows:34px;align-content:start;gap:3px;padding:8px 7px}
  .phone-nav a{height:34px;min-height:34px;max-height:34px;gap:10px;padding:3px 10px;font-size:13px;line-height:1;text-align:left}
  .phone-nav a i{width:25px;font-size:21px;line-height:1}
  .phone-nav a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .phone-nav .phone-admin-link{height:38px;min-height:38px;max-height:38px;margin-top:7px;padding-top:7px}
  .phone-page[data-phone-page="team"] #phone-directory{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important}
}
.team-card{isolation:isolate;overflow:visible!important}
.team-action-menu{position:absolute;z-index:12;right:8px;top:31px;display:grid;width:156px;padding:5px;background:#25282a;border:1px solid #5a5e61;border-radius:5px;box-shadow:0 12px 28px #0009}
.team-action-menu[hidden]{display:none!important}
.team-action-menu button{display:block!important;width:100%!important;height:auto!important;min-height:31px!important;padding:7px 9px!important;text-align:left;color:#eef1f2!important;background:transparent!important;border:0!important;font-size:10px!important}
.team-action-menu button:hover{background:#087f9e!important}
.team-card .team-more[aria-expanded="true"]{background:#087f9e!important}

/* Chat is a contained workspace; the composer always remains visible. */
.phone-page[data-phone-page="chat"] .phone-layout,.phone-page[data-phone-page="chat"] .phone-side{display:block;min-width:0;height:calc(100dvh - 54px);min-height:0}
.phone-page[data-phone-page="chat"] .unified-chat{height:100%;min-height:0}
.phone-page[data-phone-page="chat"] .unified-chat-grid,.phone-page[data-phone-page="chat"] .unified-thread{min-height:0}
.phone-page[data-phone-page="chat"] .unified-thread .chat-messages{min-height:0;overflow:auto;background:#303234;border-color:#4e5255}
.unified-compose{grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:9px 0 0;border-top:1px solid #505255;background:#3b3d3f}
.unified-compose textarea{width:100%;min-height:52px;max-height:130px;margin:0;padding:10px 12px;resize:vertical;background:#303234;color:#f4f6f7;border:1px solid #5a5e61;border-radius:5px;font:inherit;line-height:1.4}
.unified-compose button{min-width:78px;min-height:52px}
.chat-message{gap:3px;padding:9px 11px;background:#45484b;color:#f1f3f4;border-radius:9px}
.chat-message.mine{background:#087f9e}
.chat-message small{color:#c6cdd0}

/* Compact, two-column Settings shell instead of stretched full-height cards. */
@media(min-width:701px){
  .phone-page[data-phone-page="settings"] .phone-layout{display:block;min-width:0}
  .phone-page[data-phone-page="settings"] .phone-side{display:grid;grid-template-columns:190px minmax(0,760px);align-items:start;justify-content:start;gap:0;min-height:calc(100dvh - 40px);background:#303234}
  .phone-page[data-phone-page="settings"] .settings-nav{position:sticky;top:40px;display:grid;align-content:start;gap:2px;min-height:calc(100dvh - 40px);padding:10px 7px;background:#202326;border:0;border-right:1px solid #505255}
  .phone-page[data-phone-page="settings"] .settings-nav button{width:100%;min-height:36px;padding:8px 10px;text-align:left;border-radius:4px}
  .phone-page[data-phone-page="settings"] .settings-nav #phone-signout{margin-top:14px;border-top:1px solid #505255;border-radius:0;color:#ffb4b4}
  .phone-page[data-phone-page="settings"] .phone-side>.panel{grid-column:2;min-height:0!important;margin:0;padding:16px 18px;border:0;border-bottom:1px solid #505255;border-radius:0}
  .phone-page[data-phone-page="settings"] .phone-side>.panel label{margin:0 0 10px}
  .phone-page[data-phone-page="settings"] .phone-side>.panel input,.phone-page[data-phone-page="settings"] .phone-side>.panel select{height:38px;margin-top:4px}
  .phone-page[data-phone-page="settings"] #profile-settings-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
  .phone-page[data-phone-page="settings"] #profile-settings-card .panel-head,.phone-page[data-phone-page="settings"] #profile-settings-card #profile-summary,.phone-page[data-phone-page="settings"] #profile-settings-card #profile-save{grid-column:1/-1}
  .phone-page[data-phone-page="settings"] .profile-identity{margin-bottom:10px;padding:10px}
  .phone-page[data-phone-page="settings"] .panel-head{min-height:0;margin-bottom:10px}
}
@media(max-width:700px){
  .team-action-menu{position:fixed;z-index:95;left:10px;right:10px;top:auto;bottom:80px;width:auto;padding:8px;border-radius:10px}
  .team-action-menu button{min-height:44px!important;font-size:12px!important}
  .phone-page[data-phone-page="chat"] .phone-layout,.phone-page[data-phone-page="chat"] .phone-side{height:auto}
  .unified-compose textarea{min-height:48px;font-size:16px}
}

/* Team quick actions open over the current workspace instead of changing routes. */
.quick-drawer-close{display:none;position:absolute;z-index:3;right:12px;top:10px;place-items:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;background:#292c2e!important;color:#eef1f2!important;border:1px solid #606467!important;border-radius:50%!important;font-size:20px!important;line-height:1}
.quick-side-drawer .quick-drawer-close{display:grid}
.quick-side-drawer>.panel-head,.quick-side-drawer>.unified-chat-head{position:relative;padding-right:48px}
@media(min-width:701px){
  .quick-side-drawer{position:fixed!important;z-index:75;top:40px;right:0;bottom:0;display:block!important;width:min(440px,calc(100vw - 190px))!important;height:calc(100dvh - 40px)!important;max-height:none!important;margin:0!important;padding:16px!important;overflow:auto;background:#3b3d3f!important;border:0!important;border-left:1px solid #5a5e61!important;border-radius:0!important;box-shadow:-18px 0 45px #0008!important}
  #unified-chat.quick-side-drawer{width:min(680px,calc(100vw - 190px))!important;padding:0!important;overflow:hidden}
  #unified-chat.quick-side-drawer .unified-chat-grid{grid-template-columns:220px minmax(0,1fr);height:calc(100% - 68px)}
  #unified-chat.quick-side-drawer .unified-chat-head{padding-right:58px}
  #unified-chat.quick-side-drawer .new-chat-controls{display:none}
}
@media(max-width:700px){
  .quick-side-drawer{position:fixed!important;z-index:90;inset:max(52px,env(safe-area-inset-top)) 0 0!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:12px!important;overflow:auto;background:#3b3d3f!important;border:0!important;border-radius:0!important;box-shadow:0 -12px 36px #0009!important}
  #unified-chat.quick-side-drawer{padding:0!important;overflow:auto}
  #unified-chat.quick-side-drawer .unified-chat-head{padding-right:52px}
  #unified-chat.quick-side-drawer .unified-chat-grid{height:auto}
}

/* Keep the active conversation and composer entirely inside the viewport. */
.phone-page[data-phone-page="chat"] .unified-chat-grid{overflow:hidden}
.phone-page[data-phone-page="chat"] .unified-thread{height:100%;overflow:hidden}
.phone-page[data-phone-page="chat"] .unified-compose{position:relative;z-index:2;flex-shrink:0}
#unified-chat.quick-side-drawer{display:grid!important;grid-template-rows:auto minmax(0,1fr);overflow:hidden!important}
#unified-chat.quick-side-drawer .unified-chat-grid{min-height:0;overflow:hidden}
#unified-chat.quick-side-drawer .unified-chat-list{display:none}
#unified-chat.quick-side-drawer .unified-thread{height:100%;min-height:0;overflow:hidden}
#unified-chat.quick-side-drawer .unified-thread .chat-messages{min-height:0;max-height:none;overflow:auto}
#unified-chat.quick-side-drawer .unified-compose{position:relative;bottom:auto;padding-bottom:0}
@media(max-width:700px){
  .phone-page[data-phone-page="chat"] .phone-layout,.phone-page[data-phone-page="chat"] .phone-side{height:calc(100dvh - 130px)}
  .phone-page[data-phone-page="chat"] .unified-chat{height:100%;min-height:0;overflow:hidden}
  .phone-page[data-phone-page="chat"] .unified-chat-grid{height:calc(100% - 68px)}
  .phone-page[data-phone-page="chat"] .unified-chat-list{max-height:24dvh}
  .phone-page[data-phone-page="chat"] .unified-thread{min-height:0;padding-bottom:8px}
  #unified-chat.quick-side-drawer{height:calc(100dvh - max(52px,env(safe-area-inset-top)))!important}
  #unified-chat.quick-side-drawer .unified-chat-head{display:flex;height:58px;min-height:58px}
  #unified-chat.quick-side-drawer .unified-chat-grid{height:100%}
  #unified-chat.quick-side-drawer .unified-thread{padding-bottom:10px}
}

/* Definitive Chat viewport: only history scrolls; header and composer stay visible. */
.phone-page[data-phone-page="chat"] #unified-chat{max-height:calc(100dvh - 54px)}
.phone-page[data-phone-page="chat"] #unified-chat .unified-chat-grid{height:calc(100% - 68px);min-height:0;max-height:calc(100% - 68px)}
.phone-page[data-phone-page="chat"] #unified-chat .unified-thread{display:grid;height:100%;max-height:100%;min-height:0;grid-template-rows:54px minmax(0,1fr) auto 90px;overflow:hidden;padding-bottom:0}
.phone-page[data-phone-page="chat"] #unified-chat .unified-thread .chat-messages{width:100%;height:auto!important;min-height:0!important;max-height:none!important;align-self:stretch;margin:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:12px}
.phone-page[data-phone-page="chat"] #unified-chat .unified-compose{position:static;bottom:auto;height:90px;min-height:90px;margin:0;padding:9px 0}
.phone-page[data-phone-page="chat"] #unified-chat .unified-compose textarea{height:72px;min-height:72px;max-height:72px;resize:none}
.phone-page[data-phone-page="chat"] #unified-chat .unified-compose button{height:52px;min-height:52px}
.phone-page[data-phone-page="chat"] #unified-chat .unified-sender-row,.phone-page[data-phone-page="chat"] #unified-chat .unified-compose{position:relative;z-index:3;background:#3b3d3f}
.phone-page[data-phone-page="chat"] #unified-chat .chat-message{width:max-content;max-width:min(74%,760px)}
.phone-page[data-phone-page="chat"] #unified-chat .chat-message.mine{margin-left:auto}
.phone-page[data-phone-page="chat"] #unified-chat .chat-message.mine span{background:transparent}
.new-chat-controls{grid-template-columns:145px minmax(170px,260px) auto}
.new-chat-controls select,.new-chat-controls input,.new-chat-controls button{height:38px;min-height:38px;padding-top:4px;padding-bottom:4px;line-height:1.2}
@media(max-width:700px){
  .phone-page[data-phone-page="chat"] #unified-chat{max-height:100%}
  .phone-page[data-phone-page="chat"] #unified-chat .unified-chat-head{height:112px;min-height:112px}
  .phone-page[data-phone-page="chat"] #unified-chat .unified-chat-grid{height:calc(100% - 112px);max-height:calc(100% - 112px)}
  .phone-page[data-phone-page="chat"] #unified-chat .unified-thread{grid-template-rows:54px minmax(0,1fr) auto 84px}
  .phone-page[data-phone-page="chat"] #unified-chat .unified-compose{height:84px;min-height:84px}
  .phone-page[data-phone-page="chat"] #unified-chat .chat-message{max-width:88%}
  .new-chat-controls{grid-template-columns:120px minmax(0,1fr)}
}

/* Desktop Chat is anchored to the viewport so the composer cannot fall below it. */
@media(min-width:701px){
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat{position:fixed;z-index:20;top:50px;right:0;bottom:0;left:190px;display:grid;height:auto!important;max-height:none!important;grid-template-rows:68px minmax(0,1fr);margin:0!important;overflow:hidden}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat .unified-chat-head{height:68px;min-height:68px}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat .unified-chat-grid{height:auto!important;max-height:none!important;min-height:0}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat .unified-thread{height:auto;max-height:none;min-height:0}

  .phone-nav{grid-auto-rows:38px;gap:5px}
  .phone-nav a{display:flex;height:38px;min-height:38px;max-height:38px;align-items:center;justify-content:flex-start;gap:10px;padding:4px 11px;font-size:13px;border-left:4px solid transparent}
  .phone-nav a i{display:grid;flex:0 0 25px;place-items:center;width:25px;font-size:21px}
  .phone-nav a span{font-size:13px;font-weight:700}
  .phone-nav a.active{background:#079bbd;color:#fff;border-left-color:#7de6fb;box-shadow:inset 0 0 0 1px #35b9d5}
  .phone-nav a.active i{color:#fff}
}

/* Absolute Chat rows guarantee that the composer remains on-screen. */
.phone-page[data-phone-page="chat"] #unified-chat .unified-thread{position:relative!important;display:block!important;height:100%!important;min-height:0!important;padding:0 14px!important;overflow:hidden!important}
.phone-page[data-phone-page="chat"] #unified-chat .unified-thread>header{position:absolute;z-index:3;top:0;right:14px;left:14px;height:54px;min-height:54px;background:#3b3d3f}
.phone-page[data-phone-page="chat"] #unified-messages{position:absolute;z-index:1;top:54px;right:14px;bottom:90px;left:14px;width:auto;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;overflow-y:auto!important}
.phone-page[data-phone-page="chat"] #unified-chat .unified-thread:has(#unified-sender-row:not([hidden])) #unified-messages{bottom:162px}
.phone-page[data-phone-page="chat"] #unified-sender-row{position:absolute!important;z-index:4;right:14px;bottom:90px;left:14px;height:72px;min-height:72px;margin:0;padding:7px 0;background:#3b3d3f}
.phone-page[data-phone-page="chat"] #unified-chat .unified-compose{position:absolute!important;z-index:5;right:14px;bottom:0;left:14px;height:90px;min-height:90px;margin:0;padding:9px 0;background:#3b3d3f}
@media(max-width:700px){
  .phone-page[data-phone-page="chat"] #unified-chat .unified-thread{padding:0 9px!important}
  .phone-page[data-phone-page="chat"] #unified-chat .unified-thread>header{right:9px;left:9px}
  .phone-page[data-phone-page="chat"] #unified-messages{right:9px;bottom:84px;left:9px}
  .phone-page[data-phone-page="chat"] #unified-chat .unified-thread:has(#unified-sender-row:not([hidden])) #unified-messages{bottom:156px}
  .phone-page[data-phone-page="chat"] #unified-sender-row{right:9px;bottom:84px;left:9px}
  .phone-page[data-phone-page="chat"] #unified-chat .unified-compose{right:9px;left:9px;height:84px;min-height:84px}
}

/* Remove the final grid sizing dependency from desktop Chat. */
@media(min-width:701px){
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat{--conversation-list-width:clamp(280px,25vw,390px);display:block!important}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat .unified-chat-head{position:absolute;top:0;right:0;left:0}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat .unified-chat-grid{position:absolute!important;top:68px;right:0;bottom:0;left:0;display:block!important;width:auto!important;height:auto!important;min-height:0!important}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat .unified-chat-list{position:absolute;top:0;bottom:0;left:0;width:var(--conversation-list-width);overflow:auto}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat .unified-thread{position:absolute!important;top:0;right:0;bottom:0;left:var(--conversation-list-width);width:auto!important;height:auto!important;max-height:none!important}
}

/* Keep newly arrived internal messages visibly unread until user interaction. */
.phone-page #unified-messages .chat-message.fresh-unread{border:2px solid #20c7e9;box-shadow:0 0 0 3px #20c7e926;background:#40545a}
.phone-page #unified-messages .fresh-unread-label{align-self:flex-start;margin:0 0 4px;padding:2px 6px;border-radius:10px;background:#20c7e9;color:#062a32;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.phone-page #unified-messages .internal-read-receipt{align-self:flex-end;margin-top:3px;font-size:9px;font-weight:700;white-space:nowrap}.phone-page #unified-messages .internal-read-receipt.not-read{color:#c3c9cc}.phone-page #unified-messages .internal-read-receipt.read{color:#77e7ff}

/* Shared 3CX-scale typography for the web phone. */
.phone-page{font-size:14px}.phone-page .phone-header h1{font-size:15px}.phone-page .phone-header p{font-size:12px}.phone-page .panel-head h2,.phone-page .phone h2{font-size:17px}.phone-page .panel-head p,.phone-page .panel>p{font-size:12px;line-height:1.45}.phone-page label{font-size:13px}.phone-page button{font-size:13px}.phone-page input,.phone-page select,.phone-page textarea{font-size:14px}.phone-page .phone-entry b{font-size:13px}.phone-page .phone-entry small,.phone-page .presence-card small{font-size:11px}.phone-page .team-card .team-identity b{font-size:13px!important}.phone-page .team-card .team-identity small{font-size:11px}.phone-page .chat-message,.phone-page .chat-message span{font-size:14px}.phone-page .unified-chat-list b,.phone-page .unified-thread header b{font-size:13px}.phone-page .unified-chat-list small,.phone-page .chat-message small{font-size:11px}.phone-page .settings-nav button{font-size:13px}.phone-page .profile-identity,.phone-page .profile-identity small{font-size:12px}.phone-page .panel-agent-table{font-size:13px}.phone-page .panel-agent-status,.phone-page .panel-section-head span,.phone-page .panel-metrics b{font-size:11px}.phone-page .fresh-unread-label{font-size:9px}.phone-page #unified-messages .internal-read-receipt{font-size:10px}
@media(max-width:700px){.phone-page .phone-header h1{font-size:16px}.phone-page button{font-size:14px}.phone-nav a span{font-size:10px}}

/* Panel call controls and call-aware agent state. */
.phone-page .panel-agent-row.busy{box-shadow:inset 4px 0 #e75d65}
.panel-call-menu{position:fixed;z-index:1200;display:grid;min-width:190px;padding:6px;border:1px solid #5b6063;border-radius:7px;background:#292c2e;box-shadow:0 12px 34px #0009}
.panel-call-menu[hidden]{display:none}
.panel-call-menu button{display:flex;align-items:center;width:100%;min-height:36px;padding:7px 11px;border:0;border-radius:4px;background:transparent;color:#f1f3f4;text-align:left}
.panel-call-menu button:hover:not(:disabled){background:#3e4346}
.panel-call-menu button:disabled{opacity:.4;cursor:not-allowed}
.panel-call-menu button.danger{color:#ff8990}

/* Media pages use compact, readable records instead of full-width loose links. */
.phone-page[data-phone-page="voicemail"] #phone-voicemails,
.phone-page[data-phone-page="recordings"] #phone-recordings{min-height:0!important}
.phone-media-list{display:grid;gap:8px;max-width:1180px;margin:4px auto 0}
.phone-media-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start;min-height:92px;padding:13px 14px;border:1px solid #505457;border-radius:7px;background:#36383a;box-shadow:0 1px 0 #0002}
.phone-media-row:hover{border-color:#62676a;background:#393c3e}
.phone-media-row.unread{border-left:4px solid #22c6e8;padding-left:11px;background:#394145}
.media-kind{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#28515c;color:#62ddf5;font-size:15px}
.phone-media-row.unread .media-kind{background:#087f9e;color:#fff}
.media-content{min-width:0}
.media-title{display:flex;align-items:center;gap:9px;min-height:24px}
.media-title b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.media-title b span{color:#8e979b;font-weight:500}
.media-content>small{display:block;margin-top:1px;color:#aeb5b8;font-size:11px}
.media-status{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border-radius:10px;background:#4a4e50;color:#c8cdd0;font-size:9px;font-weight:800;white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}
.media-status.new{background:#0b7188;color:#bdf4ff}.media-status.read{background:#45494b;color:#c1c6c8}.media-status.completed{background:#285b48;color:#8de0b7}.media-status.processing{background:#615329;color:#ffe18a}.media-status.failed{background:#66393c;color:#ffb4b8}
.media-actions{display:flex;max-width:330px;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.media-actions button{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:5px 8px;border:1px solid #585d60;border-radius:4px;background:#424649;color:#e6eaeb;font-size:11px}
.media-actions button:hover:not(:disabled){border-color:#20bddd;background:#087f9e;color:#fff}
.media-actions button.secondary{background:#303335;color:#51d6f2}.media-actions button.danger-link{color:#ff9da3}.media-actions button:disabled{opacity:.55}
.phone-media-row .phone-transcript{max-width:820px;margin:9px 0 0;padding:9px 11px;border:0;border-left:3px solid #18a9c8;border-radius:0 4px 4px 0;background:#2f3234;color:#e2e7e9;font-size:12px;line-height:1.45}
.phone-media-row .phone-transcript span{display:block;margin-bottom:3px;color:#64d8ef;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.media-feedback{max-width:820px;margin:8px 0 0!important;padding:7px 9px;border-radius:4px;background:#313436;color:#bfc5c8!important;font-size:11px!important}.media-feedback.error{background:#4b3436;color:#ffb8bc!important}
.phone-empty-state{display:grid;min-height:260px;place-items:center;align-content:center;gap:5px;color:#aeb5b8}.phone-empty-state b{color:#eef1f2;font-size:15px}.phone-empty-state span{font-size:12px}
.phone-page[data-phone-page="voicemail"] #voicemail-audio,.phone-page[data-phone-page="recordings"] #recording-audio{position:sticky;z-index:6;bottom:12px;width:min(560px,calc(100% - 24px));margin:12px auto 0;display:block}
.phone-page[data-phone-page="voicemail"] #voicemail-audio[hidden],.phone-page[data-phone-page="recordings"] #recording-audio[hidden]{display:none}

/* Wide workspaces keep the dialler visible; narrower screens retain the drawer/button. */
@media(min-width:1700px){
  .phone-page:not([data-phone-page="dialer"]) .phone-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;align-items:start;justify-content:stretch;min-width:0}
  .phone-page:not([data-phone-page="dialer"]) .phone-side{grid-column:1;grid-row:1;min-width:0}
  .phone-page:not([data-phone-page="dialer"]) .phone-layout>.phone{position:sticky;top:0;grid-column:2;grid-row:1;display:block!important;width:360px;height:calc(100dvh - 50px);min-height:calc(100dvh - 50px);overflow:auto;padding:15px 18px;border:0;border-left:1px solid #505255;background:#343638}
  .phone-page:not([data-phone-page="dialer"]) .phone .keypad{max-width:270px;margin:12px auto}
  .phone-page:not([data-phone-page="dialer"]) .phone .keypad button{height:42px;min-height:42px}
  .phone-page:not([data-phone-page="dialer"]) .phone .dial-field{margin-top:14px}
  .phone-page:not([data-phone-page="dialer"]) .phone .feature-buttons{margin-bottom:0}
  .phone-page:not([data-phone-page="dialer"]) #quick-dialer-close,.phone-page:not([data-phone-page="dialer"]) #open-dialer{display:none!important}
  .phone-page[data-phone-page="chat"]:not(.quick-drawer-open) #unified-chat{right:360px!important}
  .phone-page[data-phone-page="settings"] .phone-side{grid-template-columns:190px minmax(0,760px)}
}
@media(max-width:1699px){.phone-media-list{max-width:none}}
@media(max-width:900px){
  .phone-media-row{grid-template-columns:38px minmax(0,1fr)}
  .media-actions{grid-column:2;max-width:none;justify-content:flex-start}
}
@media(max-width:700px){
  .phone-media-list{gap:7px}
  .phone-media-row{grid-template-columns:34px minmax(0,1fr);gap:9px;padding:11px 10px}
  .phone-media-row.unread{padding-left:7px}
  .media-kind{width:32px;height:32px}
  .media-title{align-items:flex-start;flex-direction:column;gap:4px}
  .media-actions{grid-column:1/-1;justify-content:flex-start}
  .media-actions button{min-height:36px}
  .media-actions button span{display:none}
  .phone-media-row .phone-transcript{font-size:12px}
}

/* Compact media records: identity/actions stay on one line, transcript uses one detail line below. */
.phone-media-row{grid-template-columns:38px minmax(220px,1fr) auto;min-height:0;align-items:center;padding-top:10px;padding-bottom:10px}
.phone-media-row .media-actions{max-width:none;flex-wrap:nowrap;align-self:center}
.phone-media-row>.phone-transcript,.phone-media-row>.phone-call-summary,.phone-media-row>.media-feedback{grid-column:2/-1;margin-top:0!important}

/* Server-filtered call history controls. */
.call-search-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 150px 150px auto;gap:8px;align-items:end;margin:8px 0}
.call-search-toolbar label{margin:0;color:#aeb5b8;font-size:10px;font-weight:700}
.call-search-toolbar input{height:36px;margin:3px 0 0}
.call-search-toolbar button{height:36px;margin:0}
.call-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
#call-results{color:#aeb5b8;font-size:11px;white-space:nowrap}
.call-history-entry small{text-transform:capitalize}

/* Per-extension active/archive conversation workspace. */
.chat-archive-tabs{position:sticky;top:35px;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:6px 8px;background:#303335;border-bottom:1px solid #505255}
.chat-archive-tabs button{min-height:30px;margin:0;padding:4px 7px;border:1px solid transparent;background:#3c4042;color:#b9c0c3;font-size:10px}
.chat-archive-tabs button.active{border-color:#18bddd;background:#087f9e;color:#fff}
.unified-conversation-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;border-bottom:1px solid #505255;background:#3b3d3f}
.unified-conversation-row .unified-conversation{min-width:0;border-bottom:0}
.conversation-archive-action{display:grid;place-items:center;min-width:34px;margin:0;padding:0;border:0;border-left:1px solid #505255;border-radius:0;background:#343739;color:#aeb5b8;font-size:16px}
.conversation-archive-action:hover{background:#087f9e;color:#fff}
#unified-archive-toggle{margin-left:auto;min-height:30px;padding:4px 10px}

@media(max-width:900px){
  .phone-media-row{grid-template-columns:38px minmax(0,1fr)}
  .phone-media-row .media-actions{grid-column:2;flex-wrap:wrap}
  .phone-media-row>.phone-transcript,.phone-media-row>.phone-call-summary,.phone-media-row>.media-feedback{grid-column:2}
  .call-search-toolbar{grid-template-columns:1fr 1fr}
  .call-search-toolbar label:first-child{grid-column:1/-1}
}
@media(max-width:600px){
  .call-search-toolbar{grid-template-columns:1fr}
  .call-search-toolbar label:first-child{grid-column:auto}
  .call-filter-row{align-items:flex-start;flex-direction:column}
  .phone-media-row>.phone-transcript,.phone-media-row>.phone-call-summary,.phone-media-row>.media-feedback{grid-column:1/-1}
}

/* Centre-header browser permission warning for reliable calls and alerts. */
.phone-header{position:relative}
.phone-header-centre{position:absolute;z-index:3;left:50%;display:flex;align-items:center;gap:7px;transform:translateX(-50%)}
.phone-header-centre .dialer-launch{margin:0}
.permission-warning{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:32px;margin:0;padding:5px 10px;border:1px solid #ffbf47;border-radius:18px;background:#6b4b13;color:#fff0bd;font-size:11px;font-weight:800;box-shadow:0 0 0 3px #ffbf4718}
.permission-warning:hover{background:#8a6014;border-color:#ffd477;color:#fff}
.permission-warning span{font-size:15px;line-height:1;animation:permission-bell 1.8s ease-in-out infinite}
.permission-warning[hidden]{display:none!important}
@keyframes permission-bell{0%,70%,100%{transform:rotate(0)}78%{transform:rotate(13deg)}86%{transform:rotate(-13deg)}94%{transform:rotate(7deg)}}
@media(prefers-reduced-motion:reduce){.permission-warning span{animation:none}}
.permission-help{width:min(520px,calc(100vw - 24px));padding:0;border:1px solid #606467;border-radius:9px;background:#303335;color:#eef1f2;box-shadow:0 24px 70px #000b}.permission-help::backdrop{background:#0009}.permission-help form{padding:20px}.permission-help header{display:flex;align-items:flex-start;gap:12px}.permission-help header>span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#6b4b13;font-size:19px}.permission-help h2,.permission-help p{margin:0}.permission-help h2{font-size:18px}.permission-help header p{margin-top:4px;color:#c3c9cc;font-size:12px}.permission-help ol{margin:18px 0;padding-left:22px;color:#e5e8e9;font-size:13px;line-height:1.8}.permission-help-note{padding:9px 11px;border-left:3px solid #ffbf47;background:#3b3830;color:#d8d0bd;font-size:11px!important;line-height:1.5}.permission-help menu{display:flex;justify-content:flex-end;gap:8px;margin:18px 0 0;padding:0}.permission-help menu button{width:auto;min-height:36px;margin:0}.permission-help menu .secondary{background:#484c4f;color:#eef1f2}
@media(max-width:700px){
  .phone-header-centre{gap:4px}
  .permission-warning{min-width:36px;padding:5px 8px}
  .permission-warning b{display:none}
}

/* Consistent compact controls across all web-phone workspaces. */
.phone-page .panel-head>button,.phone-page .contacts-head-actions>button,.phone-page .call-search-toolbar>button,.phone-page .new-chat-controls>button,.phone-page #recordings-refresh{width:auto;min-height:34px;height:34px;margin:0;padding:6px 11px}
.phone-page .media-actions button{height:34px;min-height:34px;min-width:0;margin:0;padding:5px 9px;justify-content:center;white-space:nowrap}
.phone-page .phone-media-row{column-gap:10px}
.phone-page[data-phone-page="settings"] [data-save-local-settings],.phone-page[data-phone-page="settings"] #profile-save,.phone-page[data-phone-page="settings"] [data-call-voicemail]{justify-self:start;width:auto;min-width:132px;min-height:36px;margin-top:4px;padding:7px 13px}
@media(max-width:700px){.phone-page .media-actions button{min-height:40px;height:40px}.phone-page[data-phone-page="settings"] [data-save-local-settings],.phone-page[data-phone-page="settings"] #profile-save,.phone-page[data-phone-page="settings"] [data-call-voicemail]{width:100%}}

/* Contacts can switch between a dense detail list and Team-style cards. */
.contacts-head-actions{display:flex;align-items:center;gap:8px}
.contact-view-toggle{display:flex;overflow:hidden;border:1px solid #595e61;border-radius:4px;background:#303335}
.contact-view-toggle button{width:auto;min-height:34px;margin:0;padding:5px 9px;border:0;border-right:1px solid #595e61;border-radius:0;background:transparent;color:#b9c0c3;font-size:11px}
.contact-view-toggle button:last-child{border-right:0}.contact-view-toggle button.active{background:#087f9e;color:#fff}
#contacts-list[data-contact-view="detail"]{display:block!important;margin-top:9px}
.contact-detail-row{display:grid;grid-template-columns:38px minmax(180px,1fr) minmax(130px,.75fr) 78px auto;gap:10px;align-items:center;min-height:58px;padding:7px 9px;border-bottom:1px solid #505255;background:#393b3d}
.contact-detail-row:hover{background:#3f4345}.contact-detail-row .contact-avatar{float:none;width:34px;height:34px;margin:0}
.contact-detail-name{min-width:0}.contact-detail-name b,.contact-detail-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-detail-name small{margin-top:2px;color:#aeb5b8;font-size:10px}
.contact-detail-number{overflow:hidden;color:#58d5ef;text-overflow:ellipsis;text-decoration:none;white-space:nowrap}.contact-detail-number:hover{text-decoration:underline}
.contact-kind{padding:3px 6px;border-radius:10px;background:#4a4e50;color:#cbd0d2;font-size:9px;text-align:center;text-transform:uppercase}
.contact-detail-actions,.contact-card-actions{display:flex;justify-content:flex-end;gap:5px}.contact-detail-actions button,.contact-card-actions button{display:inline-flex;align-items:center;gap:4px;width:auto;min-height:32px;margin:0;padding:5px 8px}
#contacts-list[data-contact-view="cards"]{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:12px!important;margin-top:12px;padding:0;background:transparent!important}
.contact-card{position:relative;display:flex;min-width:0;min-height:168px;flex-direction:column;align-items:center;justify-content:center;padding:13px;background:#353638;border:1px solid #505255;text-align:center}
.contact-card:hover{border-color:#087f9e;background:#393d3f}.contact-card-avatar{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;background:#087f9e;color:#fff;font-size:13px;font-weight:800}
.contact-card-copy{min-width:0;width:100%;margin:9px 0}.contact-card-copy b,.contact-card-copy small,.contact-card-copy em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-card-copy b{font-size:13px}.contact-card-copy small{margin-top:3px;color:#b7bec1;font-size:11px}.contact-card-copy em{margin-top:4px;color:#65d8ef;font-size:9px;font-style:normal;text-transform:uppercase}
.contact-card-actions{justify-content:center}.contact-card-actions button{min-width:34px;justify-content:center;background:#424649;border:1px solid #565b5e}.contact-card-actions button:hover{background:#087f9e}
@media(max-width:760px){
  .contacts-head-actions{gap:4px}.contact-view-toggle button span{display:none}.contact-view-toggle button{min-width:36px;padding:5px}
  .contact-detail-row{grid-template-columns:36px minmax(0,1fr) auto;padding:8px 5px}.contact-detail-number{grid-column:2}.contact-kind{display:none}.contact-detail-actions{grid-column:3;grid-row:1/3}.contact-detail-actions button span{display:none}.contact-detail-actions .contact-delete{display:none}
  #contacts-list[data-contact-view="cards"]{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:7px!important}.contact-card-actions button span{display:none}
}

/* Unified web-phone control scale. Prevent global admin button rules leaking into phone pages. */
.phone-page{--phone-control-compact:34px;--phone-control:36px;--phone-control-large:44px}
.phone-page button.secondary{width:auto;margin:0}
.phone-page .panel-head{align-items:center;gap:12px}
.phone-page .panel-head>button,.phone-page .contacts-head-actions>button,.phone-page .call-search-toolbar>button,.phone-page #recordings-refresh,.phone-page .new-chat-controls>button{display:inline-flex;width:auto;height:var(--phone-control);min-height:var(--phone-control);align-items:center;justify-content:center;margin:0;padding:6px 12px;border-radius:4px;line-height:1.2;white-space:nowrap}
.phone-page .segmented{min-height:var(--phone-control);align-items:stretch;margin-bottom:10px;padding:3px}
.phone-page .segmented button{height:30px;min-height:30px;margin:0;padding:5px 10px;border-radius:4px;line-height:1.2}
.phone-page .team-card .team-actions button,.phone-page .contact-detail-actions button,.phone-page .contact-card-actions button,.phone-page .switchboard-actions button{width:auto;height:var(--phone-control-compact);min-width:var(--phone-control-compact);min-height:var(--phone-control-compact);margin:0;padding:5px 9px;border-radius:4px;line-height:1.2}
.phone-page .team-card .team-actions button{width:var(--phone-control-compact);padding:0}

/* Consistent, descriptive action icon system. */
.ui-icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.ui-icon{display:inline-block;width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em}
.phone-nav a>.ui-icon{width:21px;height:21px;color:#b9c0c3}
.phone-nav a.active>.ui-icon{color:#fff}
.phone-header-centre button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.phone-header-centre .ui-icon{width:15px;height:15px}
.team-card .team-more{display:grid;place-items:center;width:30px;height:30px;padding:0}
.team-card .team-more .ui-icon{width:18px;height:18px}
.team-card .team-actions .ui-icon{width:16px;height:16px}
.team-action-menu button,.panel-call-menu button,.contact-view-toggle button,.contact-detail-actions button,.contact-card-actions button{display:flex!important;align-items:center;gap:7px}
.team-action-menu button .ui-icon,.panel-call-menu button .ui-icon{width:16px;height:16px}
.contact-view-toggle .ui-icon,.contact-detail-actions .ui-icon,.contact-card-actions .ui-icon,.dial-field-tools .ui-icon{width:15px;height:15px}
.phone-page .team-card .team-more{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important}
.phone-page .media-actions{align-items:center;gap:6px}
.phone-page .media-actions button{height:var(--phone-control-compact);min-width:72px;min-height:var(--phone-control-compact);padding:5px 9px;border-radius:4px;line-height:1.2}
.phone-page .chat-archive-tabs button,.phone-page .conversation-archive-action{margin:0}
.phone-page .new-chat-controls select,.phone-page .new-chat-controls input,.phone-page .new-chat-controls button{height:var(--phone-control);min-height:var(--phone-control)}
.phone-page .unified-compose button{height:var(--phone-control-large)!important;min-height:var(--phone-control-large)!important;align-self:end;margin:0;padding:7px 15px;border-radius:4px}
.phone-page .unified-compose textarea{height:72px!important;min-height:72px!important;max-height:72px!important;padding:9px 11px}
.phone-page[data-phone-page="settings"] .settings-nav button{height:var(--phone-control);min-height:var(--phone-control);margin:0;padding:7px 10px;line-height:1.2}
.phone-page[data-phone-page="settings"] [data-save-local-settings],.phone-page[data-phone-page="settings"] #profile-save,.phone-page[data-phone-page="settings"] [data-call-voicemail]{display:inline-flex;width:auto;min-width:132px;height:var(--phone-control);min-height:var(--phone-control);align-items:center;justify-content:center;margin:4px 0 0;padding:7px 13px;border-radius:4px;line-height:1.2}
@media(max-width:700px){
  .phone-page .panel-head>button,.phone-page .contacts-head-actions>button,.phone-page .call-search-toolbar>button,.phone-page #recordings-refresh{min-height:var(--phone-control-large);height:var(--phone-control-large)}
  .phone-page .media-actions button{height:40px;min-width:40px;min-height:40px}
  .phone-page[data-phone-page="settings"] [data-save-local-settings],.phone-page[data-phone-page="settings"] #profile-save,.phone-page[data-phone-page="settings"] [data-call-voicemail]{width:100%;height:var(--phone-control-large);min-height:var(--phone-control-large)}
}

/* Calls workspace: filters stay visible and only the result list scrolls. */
.phone-page[data-phone-page="calls"] .phone-layout,.phone-page[data-phone-page="calls"] .phone-side{height:calc(100dvh - 50px);min-height:0;overflow:hidden}
.phone-page[data-phone-page="calls"] .phone-side{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(86px,132px) minmax(0,1fr);grid-auto-flow:row;align-content:stretch}
.phone-page[data-phone-page="calls"] #parked-card{grid-column:1;grid-row:1}
.phone-page[data-phone-page="calls"] .calls-workspace{grid-column:1;grid-row:2}
.phone-page[data-phone-page="calls"] #parked-card{min-height:0!important;padding:9px 13px;overflow:hidden}
.phone-page[data-phone-page="calls"] #parked-card>.panel-head{min-height:34px;margin:0 0 4px;padding:0}
.phone-page[data-phone-page="calls"] #parked-card>.panel-head p{display:none}
.phone-page[data-phone-page="calls"] #parked-calls{max-height:76px;overflow:auto;overscroll-behavior:contain}
.phone-page[data-phone-page="calls"] #parked-calls>p{margin:7px 0;color:#aeb5b8}
.phone-page[data-phone-page="calls"] .calls-workspace{display:flex;min-height:0;height:100%;flex-direction:column;margin:0;overflow:hidden}
.phone-page[data-phone-page="calls"] .calls-workspace>.panel-head,.phone-page[data-phone-page="calls"] .call-search-toolbar,.phone-page[data-phone-page="calls"] .call-filter-row{flex:0 0 auto}
.phone-page[data-phone-page="calls"] #phone-history{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.call-history-head,.call-history-entry{display:grid!important;grid-template-columns:minmax(138px,.9fr) minmax(112px,.9fr) minmax(112px,.9fr) minmax(112px,.9fr) minmax(92px,.65fr) 76px 88px 58px;gap:12px;align-items:center;min-width:1040px}
.call-history-head{position:sticky;z-index:2;top:0;min-height:32px;padding:6px 8px;background:#343638;border-bottom:1px solid #5a5d60;color:#aeb5b8;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.call-history-entry{min-height:42px;padding:6px 8px;border-bottom:1px solid #505255}
.call-history-entry time,.call-history-entry b,.call-history-entry span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.call-history-entry time{color:#c2c7ca;font-size:11px;font-variant-numeric:tabular-nums}
.call-history-entry b{font-size:12px}
.call-history-status,.call-history-direction{text-transform:capitalize}
.call-history-duration{font-variant-numeric:tabular-nums}
.call-history-entry>button{width:58px;min-width:58px;height:30px;min-height:30px;margin:0;padding:4px 8px}
@media(max-width:700px){
  .phone-page[data-phone-page="calls"] .phone-layout,.phone-page[data-phone-page="calls"] .phone-side{height:calc(100dvh - 130px)}
  .phone-page[data-phone-page="calls"] .phone-side{grid-template-rows:minmax(82px,112px) minmax(260px,1fr)}
  .phone-page[data-phone-page="calls"] .calls-workspace{padding:13px}
}

/* Keep the application shell pixel-stable while routes add/remove page scrolling. */
html:has(> body.phone-page){overflow-y:scroll;scrollbar-gutter:stable;background:#202326}
/* AI summary is visually distinct from the verbatim transcript. */
.phone-call-summary{margin-top:8px;padding:9px 11px;border-left:3px solid #38bdf8;background:#27343a;color:#e8f7fb}
.phone-call-summary>span{display:block;margin-bottom:4px;color:#67d9f1;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.phone-call-summary p{margin:0;line-height:1.45}.phone-call-summary ul{margin:7px 0 0;padding-left:18px;color:#d2dadd}.phone-call-summary li+li{margin-top:3px}
.phone-call-summary.compact p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.call-analysis-dialog{width:min(1280px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #596064;border-radius:8px;background:#303335;color:#f1f3f4;box-shadow:0 28px 90px #000b}
.call-analysis-dialog::backdrop{background:#080b0ddd;backdrop-filter:blur(2px)}
.call-analysis-dialog form{max-height:calc(100dvh - 42px);overflow:auto;padding:0}
.analysis-head{position:sticky;z-index:3;top:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid #50565a;background:#303335f5;backdrop-filter:blur(10px)}
.analysis-head>div:last-child{display:flex;align-items:center;gap:8px}.analysis-head small{color:#58d1eb;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.analysis-head h2{margin:3px 0 2px;font-size:22px}.analysis-head p{margin:0;color:#aeb5b9}.analysis-head button{width:auto;min-height:36px;margin:0}.analysis-head .icon{width:36px;padding:0;font-size:24px}
#analysis-body{padding:20px 24px 28px}
.analysis-overview{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:1px;margin-bottom:16px;overflow:hidden;border:1px solid #50565a;border-radius:6px;background:#50565a}
.analysis-overview>div{min-height:76px;padding:14px 16px;background:#3a3d3f}.analysis-overview span{display:block;margin-bottom:7px;color:#72d7ec;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.analysis-overview b{font-size:14px;text-transform:capitalize}
.analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.analysis-card{padding:17px 18px;border:1px solid #50565a;border-radius:6px;background:#393c3e}.analysis-card h3{margin:0 0 10px;font-size:14px}.analysis-card p{margin:0;color:#d7dcde;line-height:1.55;white-space:pre-wrap}.analysis-card ul{margin:0;padding-left:20px;color:#d7dcde}.analysis-card li+li{margin-top:6px}.analysis-summary{border-left:4px solid #20bddd}.analysis-signals dl{display:grid;gap:9px;margin:0}.analysis-signals dl>div{display:grid;grid-template-columns:100px 1fr;gap:10px}.analysis-signals dt{color:#aeb5b9}.analysis-signals dd{margin:0}.sentiment{display:inline-flex;padding:3px 8px;border-radius:20px;background:#555;color:#fff;text-transform:capitalize}.sentiment.positive{background:#176b52}.sentiment.negative{background:#8b343b}.sentiment.mixed{background:#775b20}.sentiment.neutral{background:#4c5c68}.analysis-card.actions{border-left:4px solid #2ebd78}.analysis-card.risks{border-left:4px solid #e47754}.analysis-card.topics ul{display:flex;flex-wrap:wrap;gap:7px;padding:0;list-style:none}.analysis-card.topics li{margin:0;padding:4px 9px;border-radius:16px;background:#294953;color:#9ce8f5}.analysis-recording,.analysis-transcript{margin-top:14px}.analysis-recording audio{width:100%;height:40px}.analysis-transcript p{max-height:360px;overflow:auto;padding:13px;border-radius:4px;background:#2b2e30;line-height:1.65}
@media(max-width:800px){.call-analysis-dialog{inset:auto 0 0;width:100vw;max-height:94dvh;margin:0;border-width:1px 0 0;border-radius:12px 12px 0 0}.call-analysis-dialog form{max-height:94dvh}.analysis-head{padding:15px 13px}.analysis-head #analysis-refresh{font-size:0}.analysis-head #analysis-refresh:after{content:"Reanalyse";font-size:11px}.analysis-overview{grid-template-columns:repeat(2,1fr)}.analysis-grid{grid-template-columns:1fr}#analysis-body{padding:13px}.analysis-overview>div{min-height:66px;padding:11px}}
body.phone-page{width:100%;min-width:0;overflow-x:clip}
@media(min-width:701px){
  .phone-page .phone-header{width:100%;min-width:0}
  .phone-page #phone-client{width:100%;min-width:0;grid-template-columns:190px minmax(0,1fr)}
  .phone-page .phone-nav{width:190px;min-width:190px;max-width:190px}
  .phone-page .phone-layout,.phone-page .phone-side{min-width:0}
}
