.phone-page{max-width:1280px;margin:auto;padding:24px 28px 60px;color:var(--ink);font-size:15px}.ph-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.ph-head h2{font-size:32px;margin:4px 0 10px}.ph-head p{color:var(--muted);margin:6px 0}.ph-provider{display:flex;gap:9px;align-items:center;margin:22px 0 16px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}.ph-dot{width:7px;height:7px;background:var(--good);border-radius:50%;flex:none}.ph-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:22px}.ph-tabs button{padding:10px 16px;border:0;border-radius:8px;background:transparent}.ph-tabs .selected{background:var(--primary-soft);color:var(--primary-ink);font-weight:650}.ph-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:26px}.ph-numbers h3{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:8px 12px 16px}.ph-number{display:grid;gap:7px;text-align:left;width:100%;padding:17px;border:1px solid transparent;border-radius:10px;background:transparent;margin-bottom:8px}.ph-number.selected{border-color:var(--line);background:var(--panel)}.ph-number b{font-size:15px}.ph-number span{font-variant-numeric:tabular-nums;color:var(--muted)}.ph-number small{color:var(--muted);font-size:11px}.ph-main{min-width:0}.ph-overview,.ph-call,.ph-inbox,.ph-empty{border:1px solid var(--line);background:var(--panel);border-radius:12px}.ph-overview{padding:28px}.ph-overview h3{font-size:20px;margin:6px 0}.ph-large-number{font-size:30px;letter-spacing:-.04em;margin:16px 0 24px}.ph-stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:22px 0;margin-bottom:18px}.ph-stats div{display:grid;gap:7px}.ph-stats b{font-size:27px}.ph-stats span{font-size:12px;color:var(--muted)}.ph-setting{display:flex;gap:16px;justify-content:space-between;padding:12px 0;font-size:13px}.ph-setting span{color:var(--muted)}.ph-setting b{text-align:right;font-weight:550}.ph-overview blockquote{border-left:3px solid var(--primary-ink);margin:18px 0 22px;padding:10px 18px;color:var(--muted);line-height:1.6}.ph-section-title{margin:28px 0 16px}.ph-call{padding:18px 22px;margin-bottom:12px}.ph-call-top{display:flex;gap:13px;align-items:center;flex-wrap:wrap}.ph-call-top p{font-size:12px;color:var(--muted);margin:6px 0}.ph-symbol{font-size:24px;color:var(--primary-ink)}.ph-pill{margin-left:auto;padding:5px 9px;border:1px solid var(--line);border-radius:20px;font-size:11px;text-transform:capitalize}.ph-unread{color:var(--primary-ink)}.ph-call-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.ph-call-bottom span{font-size:12px;color:var(--muted)}.ph-voicemail{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.ph-voicemail summary{font-size:13px;font-weight:600;cursor:pointer}.ph-voicemail p{line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.ph-voicemail audio{width:100%;height:40px;margin-top:10px}.ph-inbox{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:580px;overflow:hidden}.ph-threads{border-right:1px solid var(--line);padding:16px 10px}.ph-threads h3{font-size:14px;margin:5px 10px 18px}.ph-threads button{display:grid;width:100%;gap:8px;text-align:left;padding:14px 10px;border:0;border-radius:7px;background:transparent;margin:4px 0}.ph-threads button.selected{background:var(--primary-soft)}.ph-threads span{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.ph-threads small{font-size:10px;color:var(--primary-ink)}.ph-conversation{min-width:0;display:flex;flex-direction:column}.ph-conversation header{padding:20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.ph-conversation h3{font-size:16px;margin:0}.ph-conversation header p{font-size:12px;color:var(--muted);margin:6px 0 0}.ph-bubbles{padding:22px 18px;flex:1;display:flex;flex-direction:column;gap:14px;max-height:460px;overflow:auto}.ph-bubble{max-width:90%;padding:12px 15px;border-radius:12px;background:var(--sunken);align-self:flex-start}.ph-bubble.outbound{background:var(--primary);color:var(--on-primary);align-self:flex-end}.ph-bubble p{margin:0 0 8px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.ph-bubble small{font-size:10px;opacity:.8;display:block}.ph-conversation form{padding:18px;border-top:1px solid var(--line);display:grid;gap:12px}.ph-conversation label,.ph-filters label,.ph-form label{display:grid;gap:7px;font-size:12px}.phone-page input,.phone-page select,.phone-page textarea,.ph-form input,.ph-form textarea,.ph-form select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;font:inherit;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:10px}.ph-conversation form>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.ph-conversation form small{font-size:10px;color:var(--muted)}.ph-log-head{display:flex;justify-content:space-between;align-items:center}.ph-log-head span{font-size:12px;color:var(--muted)}.ph-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin:15px 0 24px}.ph-empty{text-align:center;padding:60px 24px;line-height:1.6}.ph-empty p{color:var(--muted)}.ph-form{display:grid;gap:16px;max-width:100%;min-width:0}.ph-form code{display:block;overflow-wrap:anywhere;white-space:normal;font-size:11px}.ph-form details{padding:12px 0;border-top:1px solid var(--line)}.ph-form details[open]{display:grid;gap:14px}.ph-form input[type=checkbox]{width:auto;justify-self:start}.ph-form p{font-size:12px;color:var(--muted);line-height:1.6}.ph-form select[multiple]{min-height:100px}
@media(max-width:1100px){.ph-inbox{grid-template-columns:180px minmax(0,1fr)}.ph-layout{grid-template-columns:190px minmax(0,1fr);gap:16px}.ph-filters{grid-template-columns:1fr 1fr}.ph-filters label:first-child{grid-column:1/-1}}
@media(max-width:700px){.phone-page{padding:18px 14px 50px}.ph-head{align-items:flex-start}.ph-head h2{font-size:27px}.ph-head>div>p:last-child{max-width:230px;font-size:13px;line-height:1.6}.ph-head>.primary{font-size:12px;padding:10px}.ph-layout{grid-template-columns:minmax(0,1fr);gap:12px}.ph-numbers{display:flex;gap:8px;flex-wrap:wrap}.ph-numbers h3{width:100%;margin:2px 0 6px;font-size:10px}.ph-number{width:auto;flex:1;min-width:140px;padding:12px;gap:5px}.ph-number small{display:none}.ph-tabs{gap:2px;margin-bottom:16px}.ph-tabs button{font-size:12px;padding:9px 10px}.ph-overview{padding:20px}.ph-large-number{font-size:27px}.ph-setting{font-size:12px;gap:12px}.ph-inbox{grid-template-columns:minmax(0,1fr);min-height:0}.ph-threads{border-right:0;border-bottom:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap;padding:12px}.ph-threads h3{width:100%;margin:0}.ph-threads button{flex:1;min-width:140px;width:auto}.ph-threads span{display:none}.ph-conversation header{padding:16px}.ph-bubbles{padding:18px 14px;max-height:350px}.ph-conversation form{padding:14px}.ph-bubble{max-width:95%;font-size:13px}.ph-call{padding:16px}.ph-call-top b{font-size:14px}.ph-call-top p{font-size:11px}.ph-filters{gap:9px}.ph-filters label{font-size:11px}.ph-stats b{font-size:24px}.ph-provider{font-size:11px;margin:18px 0 12px}}

.ph-target{display:grid;grid-template-columns:1fr 1.2fr auto;gap:8px;margin:12px 0;align-items:end}.ph-target button{font-size:11px;padding:10px 6px}
@media(max-width:700px){.ph-head>div>p:last-child{display:none}.ph-head h2{margin:2px 0}.ph-head .eyebrow{font-size:9px;letter-spacing:.08em}.ph-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:0}.ph-tabs button{padding:10px 3px;font-size:11px;white-space:nowrap}.ph-provider{margin:12px 0}.phone-view-sms .ph-numbers h3,.phone-view-voicemail .ph-numbers h3,.phone-view-calls .ph-numbers h3{display:none}.phone-view-sms .ph-number,.phone-view-voicemail .ph-number,.phone-view-calls .ph-number{display:flex;justify-content:space-between;align-items:center;padding:10px 12px}.ph-target{grid-template-columns:1fr 1fr}.ph-target button{grid-column:2;justify-self:end}.ph-threads{padding:10px}.ph-threads h3{font-size:12px}.ph-threads button{padding:9px 10px;font-size:13px;margin:0}.ph-overview{padding:18px}}

.ph-call-bottom button,.ph-conversation header button{width:auto;flex:0 0 auto;min-width:72px}.ph-call-bottom button{padding:8px 14px}
.ph-conversation header{flex-wrap:wrap}.ph-conversation header>div{min-width:0;overflow-wrap:anywhere}

/* CL-14: Business phone content, readable controls and compact dialogs on phones. */
@media(max-width:700px){
  .phone-page{display:flex;flex-direction:column;padding:12px 12px 32px;overflow-wrap:anywhere}
  .phone-page .ph-provider{order:1;margin:12px 0}
  .phone-page .ph-main{order:-1}
  .phone-page .ph-conversation{order:-1}
  .phone-page .ph-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;margin:10px 0 12px;padding-bottom:6px}
  .phone-page .ph-tabs button{flex:0 0 auto;padding:10px 12px}
  .phone-page :is(p:not(.ph-large-number),small,span:not(.ph-symbol),label,button,summary,.eyebrow,.ph-setting,.ph-bubble,.ph-provider),.phone-page .ph-numbers h3,.phone-page .ph-threads h3{font-size:14px}
  .phone-page :is(button,input,select,textarea,summary,audio),.dialog:has(.ph-form) :is(button,input,select,textarea,summary,a){min-height:44px;box-sizing:border-box}
  .phone-page :is(input,select,textarea),.dialog:has(.ph-form) :is(input,select,textarea){font-size:16px}
  .phone-page :is(.ph-head,.ph-call-bottom,.ph-log-head),.phone-page .ph-conversation form>div{flex-wrap:wrap}
  .phone-page .ph-number{min-width:0;width:100%;flex:auto;flex-wrap:wrap}
  .phone-page .ph-number small{display:block}
  .phone-page .ph-threads button{min-width:0;flex-basis:100%}
  .phone-page .ph-threads span{display:block}
  .phone-page .ph-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .phone-page .ph-setting{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
  .phone-page .ph-setting b{text-align:left}
  .phone-page .ph-filters{grid-template-columns:minmax(0,1fr)}
  .phone-page .ph-inbox{min-height:0}
  .phone-page .ph-empty{padding:20px 14px}
  .dialog:has(.ph-form){padding:16px;overflow-wrap:anywhere;font-size:14px}
  .dialog:has(.ph-form) :is(label,p,code,button){font-size:14px}
  .dialog:has(.ph-form) .ph-target{grid-template-columns:minmax(0,1fr)}
  .dialog:has(.ph-form) .ph-target button{grid-column:1}
  .dialog:has(.ph-form) input[type=checkbox]{min-width:44px}
  .dialog:has(.ph-form) a{display:inline-flex;align-items:center}
  #customer-phone{overflow-wrap:anywhere}#customer-phone :is(p,span){font-size:14px}#customer-phone .customer-line{grid-template-columns:minmax(0,1fr)}
  #customer-phone :is(button,a.btn){display:inline-flex;align-items:center;min-height:44px;max-width:100%;box-sizing:border-box;white-space:normal;font-size:14px;margin-bottom:8px}
}
