.calls-intro { margin-bottom: 18px; }
.calls-intro h2 { margin: 3px 0 6px; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.03em; }
.calls-cabin { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.4fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.calls-panel { min-width: 0; }
.calls-panel > h2 { font-size: 1.05rem; }
.calls-phone { display: flex; flex-direction: column; border-top: 4px solid var(--accent); background: linear-gradient(145deg, var(--ink, #12344a), #0c2639); color: #fff; }
.calls-phone h2, .calls-phone .calls-message { color: #fff; }
.calls-phone .calls-help { color: #c4dfeb; margin-top: auto; padding-top: 15px; }
.calls-phone .calls-actions { margin: 8px 0 18px; }
.calls-phone .btn.secondary { color: #eaf8ff; background: #ffffff12; border-color: #ffffff45; }
.calls-phone .btn.text { color: #b8f0ff; }
.calls-timer { display: block; font-variant-numeric: tabular-nums; font-size: clamp(2.4rem, 3vw, 3.3rem); font-weight: 600; letter-spacing: -.04em; margin: 12px 0; }
.calls-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.calls-danger { background: #a02b3b; border-color: #a02b3b; color: #fff; }
.calls-customer-summary { display: flex; flex-direction: column; gap: 3px; margin: 15px 0; overflow-wrap: anywhere; }
.calls-customer-summary .btn.text { align-self: start; padding-inline: 0; }
.calls-customer-name { font-size: 1.18rem; }
.calls-number { font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: .03em; }
.calls-contact-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 14px; }
.calls-contact-context label { display: grid; gap: 5px; min-width: 0; font-size: .8rem; font-weight: 700; }
.calls-contact-context input, .calls-contact-context select { width: 100%; min-width: 0; }
.calls-contact-policy { border-block-start: 1px solid var(--line); margin-block: 12px; padding-block-start: 12px; overflow-wrap: anywhere; }
.calls-contact-policy:empty { display: none; }
.calls-contact-policy strong { font-size: .82rem; }
.calls-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
.calls-search label, .calls-filters label, .calls-disposition label { display: grid; gap: 5px; min-width: 0; font-size: .8rem; font-weight: 700; }
.calls-search input, .calls-filters input, .calls-filters select, .calls-disposition input, .calls-disposition select, .calls-disposition textarea { width: 100%; min-width: 0; }
.calls-customer-results { display: grid; gap: 2px; max-height: 180px; overflow-y: auto; margin-block: 7px; }
.calls-customer-result { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.calls-customer-result .btn.text { text-align: left; white-space: normal; padding-inline: 0; }
.calls-customer-result small { color: var(--muted); text-align: right; }
.calls-workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, 1fr); gap: 16px; align-items: start; }
.calls-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; margin-block: 16px; }
.calls-table-scroll { overflow-x: auto; }
.calls-history table { width: 100%; font-size: .82rem; }
.calls-history td { vertical-align: top; }
.calls-history th { white-space: nowrap; }
.calls-history .btn.text { white-space: normal; text-align: left; padding: 0; min-height: 30px; overflow-wrap: anywhere; }
.calls-history td:nth-child(3) { min-width: 100px; }
.calls-message { margin: 10px 0; font-size: .85rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.calls-message:empty { display: none; }
.calls-help { margin: 7px 0; font-size: .78rem; line-height: 1.55; color: var(--muted); }
.calls-badge { display: inline-block; width: fit-content; padding: 4px 7px; border: 1px solid #d4e8ef; background: var(--pale, #e8f6fa); color: var(--ink); border-radius: 5px; font-size: .7rem; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.calls-badge[data-state="answered"], .calls-badge[data-state="completed"] { background: #e4f4ec; border-color: #bce1ce; color: #23593d; }
.calls-badge[data-state="failed"] { background: #fbecef; border-color: #f0cbd2; color: #8a2f40; }
.calls-badge[data-state="processing"], .calls-badge[data-state="ringing"] { background: #e0f6fc; border-color: #b9e7f2; color: #006b82; }
.calls-detail-heading, .calls-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.calls-detail-heading h2 { font-size: 1.05rem; }
.calls-detail-identity { margin-block: 17px; overflow-wrap: anywhere; }
.calls-detail-identity h3 { font-size: 1.18rem; margin-bottom: 4px; }
.calls-detail-identity .btn.text { padding-inline: 0; }
.calls-facts, .calls-analysis-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 12px; background: var(--bg, #f3f7fa); border-radius: 6px; }
.calls-facts dt, .calls-analysis-facts dt { color: var(--muted); font-size: .72rem; }
.calls-facts dd, .calls-analysis-facts dd { margin: 3px 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.calls-section { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 17px; }
.calls-section h3 { font-size: .93rem; margin-bottom: 8px; }
.calls-section h4 { font-size: .8rem; margin: 14px 0 5px; }
.calls-section audio { display: block; width: 100%; height: 38px; margin-top: 8px; }
.calls-transcript { max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .82rem; line-height: 1.7; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.calls-ai-notice { padding: 9px 11px; border-left: 3px solid var(--accent); background: var(--pale); font-size: .76rem; line-height: 1.5; }
.calls-analysis-summary { font-size: .87rem; line-height: 1.7; margin-block: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.calls-analysis-list { padding-left: 18px; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.calls-events { padding-left: 18px; }
.calls-events li { padding: 8px 0; font-size: .8rem; }
.calls-events time { display: block; color: var(--muted); font-size: .74rem; margin-top: 3px; }
.calls-disposition { display: grid; gap: 12px; }
.calls-disposition textarea { min-height: 100px; resize: vertical; }
.calls-disposition .btn { justify-self: start; }
.calls-followup { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--pale); font-size: .82rem; overflow-wrap: anywhere; }
.calls-followup p { margin-top: 5px; }
#calls-content :is(button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#calls-content .btn:disabled { opacity: .52; cursor: not-allowed; }
@media (max-width: 1150px) { .calls-workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .calls-cabin { grid-template-columns: minmax(0, 1fr); } .calls-contact-context, .calls-filters, .calls-facts, .calls-analysis-facts { grid-template-columns: minmax(0, 1fr); } .calls-search { grid-template-columns: minmax(0, 1fr); } .calls-customer-result { flex-wrap: wrap; gap: 0; } }
@media (prefers-reduced-motion: reduce) { #calls-content * { scroll-behavior: auto; } }

/* Communications cabina: task context, one phone and a navigable call record. */
body[data-application-profile="communications"] #calls-content.calls-modern {
  font-family: var(--ui-font); --calls-gap: var(--ui-space-4);
}
#calls-content.calls-modern .calls-intro { margin-bottom: var(--ui-space-5); }
#calls-content.calls-modern .calls-intro h2 { display: flex; align-items: center; gap: var(--ui-space-3); font-size: 1.35rem; margin: 0 0 var(--ui-space-1); }
#calls-content.calls-modern .calls-intro h2 .ui-icon { color: var(--accent); }
#calls-content.calls-modern .calls-intro .subtitle { margin: 0; max-width: 72ch; }
#calls-content.calls-modern .calls-focus-workspace { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: var(--calls-gap); align-items: start; margin-bottom: var(--ui-space-5); }
#calls-content.calls-modern .calls-panel { padding: var(--ui-space-5); box-shadow: none; }
#calls-content.calls-modern .calls-panel > h2 { margin: 0; }
#calls-content.calls-modern .calls-customer-summary { margin: var(--ui-space-4) 0; gap: var(--ui-space-1); }
#calls-content.calls-modern .calls-customer-name { font-size: 1.1rem; line-height: 1.45; }
#calls-content.calls-modern .calls-number { font-size: 1rem; font-weight: 650; letter-spacing: 0; }
#calls-content.calls-modern .calls-customer-picker,
#calls-content.calls-modern .calls-context-disclosure,
#calls-content.calls-modern .calls-history-filter-disclosure { border-top: 1px solid var(--line); }
#calls-content.calls-modern summary { min-height: 44px; padding-block: var(--ui-space-3); cursor: pointer; font-size: .875rem; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
#calls-content.calls-modern summary .ui-icon { width: 18px; height: 18px; margin-right: var(--ui-space-2); color: var(--accent); }
#calls-content.calls-modern summary:hover { color: var(--accent); }
#calls-content.calls-modern .calls-search { margin: 0; padding: var(--ui-space-1) 0; border: 0; }
#calls-content.calls-modern .calls-customer-result { align-items: center; padding-block: var(--ui-space-1); }
#calls-content.calls-modern .calls-customer-result .btn { flex: 1 1 180px; justify-content: flex-start; }
#calls-content.calls-modern .calls-customer-result [aria-pressed="true"] { font-weight: 750; }
#calls-content.calls-modern .calls-contact-context { margin: var(--ui-space-2) 0 var(--ui-space-4); }
#calls-content.calls-modern .calls-contact-context label:last-child { grid-column: 1 / -1; }
#calls-content.calls-modern .calls-originate-action { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ui-space-3); padding-top: var(--ui-space-4); border-top: 1px solid var(--line); }
#calls-content.calls-modern .calls-originate-action .calls-message { flex: 1 1 240px; margin: 0; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone {
  background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: var(--ui-space-5); gap: var(--ui-space-3);
}
#calls-content.calls-modern .calls-phone-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--ui-space-2); flex-wrap: wrap; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone h2 { color: #fff; margin: 0; }
#calls-content.calls-modern .calls-line-state { color: #c7e7f7; font-size: .75rem; line-height: 1.4; }
#calls-content.calls-modern .calls-line-state[data-state="active"] { color: #a8eed0; }
#calls-content.calls-modern .calls-timer { font-family: var(--ui-font); font-size: 2.3rem; line-height: 1; letter-spacing: -.025em; margin: var(--ui-space-1) 0; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone :is(.calls-message,.calls-help,.calls-phone-context) { color: #c7dce9; font-size: .8rem; margin: 0; padding: 0; }
#calls-content.calls-modern .calls-phone-context { overflow-wrap: anywhere; }
#calls-content.calls-modern .calls-phone .calls-actions { margin: var(--ui-space-1) 0; gap: var(--ui-space-2); }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone .btn { flex: 1 1 auto; justify-content: center; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone .btn.secondary { background: #17384e; color: #fff; border-color: #577285; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone .btn.text { color: #c7e7f7; background: transparent; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone .btn:disabled { opacity: 1; background: #284355; color: #c3d3de; border-color: #577285; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone .btn.calls-danger { color: #fff; background: #a02b3b; border-color: #a02b3b; }
#calls-content.calls-modern .calls-phone-help { border-top: 1px solid #3c586b; }
body[data-application-profile="communications"] #calls-content.calls-modern .calls-phone-help summary { color: #c7e7f7; font-weight: 500; }
#calls-content.calls-modern .calls-workspace { grid-template-columns: minmax(270px, .75fr) minmax(0, 1.25fr); gap: var(--calls-gap); align-items: start; }
#calls-content.calls-modern .calls-history { position: sticky; top: var(--ui-space-4); }
#calls-content.calls-modern .calls-history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--ui-space-2); margin-bottom: var(--ui-space-2); }
#calls-content.calls-modern .calls-history-heading h2 { margin: 0; font-size: 1rem; }
#calls-content.calls-modern .calls-filters { margin: var(--ui-space-2) 0 var(--ui-space-4); }
#calls-content.calls-modern .calls-record-list { display: grid; gap: 0; padding: 0; margin: var(--ui-space-2) 0; list-style: none; max-height: 42rem; overflow-y: auto; scrollbar-color: var(--line) transparent; }
#calls-content.calls-modern .calls-record-list > li + li { border-top: 1px solid var(--line); }
#calls-content.calls-modern .calls-record-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--ui-space-3); width: 100%; min-height: 72px; padding: var(--ui-space-4) var(--ui-space-2); border: 1px solid transparent; border-radius: var(--ui-control-radius); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
#calls-content.calls-modern .calls-record-button:hover { background: var(--bg); }
#calls-content.calls-modern .calls-record-button[aria-pressed="true"] { background: var(--pale); border-color: var(--accent); }
#calls-content.calls-modern .calls-record-copy { display: grid; gap: var(--ui-space-1); min-width: 0; overflow-wrap: anywhere; }
#calls-content.calls-modern .calls-record-copy strong { font-size: .875rem; font-weight: 650; }
#calls-content.calls-modern .calls-record-copy > span { color: var(--muted); font-size: .75rem; line-height: 1.55; }
#calls-content.calls-modern .calls-record-state { display: grid; justify-items: end; gap: var(--ui-space-2); }
#calls-content.calls-modern .calls-record-duration { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
#calls-content.calls-modern .calls-table-scroll { overflow: visible; }
#calls-content.calls-modern .calls-detail-heading h2 { font-size: 1rem; margin: 0; }
#calls-content.calls-modern .calls-detail-identity { margin-block: var(--ui-space-4); }
#calls-content.calls-modern .calls-detail-identity h3 { font-size: 1.1rem; line-height: 1.5; }
#calls-content.calls-modern .calls-detail-identity .subtitle { margin-block: var(--ui-space-1); }
#calls-content.calls-modern .calls-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--ui-space-3); padding: var(--ui-space-4); margin: 0; }
#calls-content.calls-modern .calls-facts dt { font-size: .73rem; }
#calls-content.calls-modern .calls-facts dd { line-height: 1.5; }
#calls-content.calls-modern .calls-section { padding-top: var(--ui-space-4); margin-top: var(--ui-space-4); }
#calls-content.calls-modern .calls-disposition { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ui-space-4); }
#calls-content.calls-modern .calls-disposition label:nth-child(2),
#calls-content.calls-modern .calls-disposition > .calls-message { grid-column: 1 / -1; }
#calls-content.calls-modern .calls-record-resources { border-top: 1px solid var(--line); margin-top: var(--ui-space-5); }
#calls-content.calls-modern .calls-record-disclosure + .calls-record-disclosure { border-top: 1px solid var(--line); }
#calls-content.calls-modern .calls-record-disclosure > summary { position: relative; padding-right: 98px; }
#calls-content.calls-modern .calls-record-disclosure > summary .calls-badge { position: absolute; right: 0; top: 12px; }
#calls-content.calls-modern .calls-record-disclosure > .calls-section { border: 0; padding: 0 0 var(--ui-space-4); margin: 0; }
#calls-content.calls-modern .calls-transcript { font-family: var(--ui-font); max-height: 24rem; scrollbar-color: var(--line) transparent; }
#calls-content.calls-modern .calls-ai-notice,
#calls-content.calls-modern .calls-followup { border-left: 0; border: 1px solid var(--line); border-radius: var(--ui-control-radius); }
#calls-content.calls-modern .calls-record-note { white-space: pre-wrap; overflow-wrap: anywhere; }
#calls-content.calls-modern .calls-back-history { display: none; margin-bottom: var(--ui-space-3); }
#calls-content.calls-modern :is(button,input,select,textarea,summary) { scroll-margin-top: var(--ui-space-5); }
/* The existing phone becomes a compact dock only during an actual live session. */
body[data-application-profile="communications"] #calls-content.calls-modern.calls-live {
  padding-bottom: var(--calls-dock-space, 240px);
}
#calls-content.calls-modern.calls-live .calls-focus-workspace { grid-template-columns: minmax(0,1fr); }
body[data-application-profile="communications"] #calls-content.calls-modern.calls-live .calls-phone {
  position: fixed; z-index: 5; bottom: max(12px, env(safe-area-inset-bottom));
  left: var(--calls-dock-left, 16px); width: var(--calls-dock-width, calc(100% - 32px));
  padding: var(--ui-space-3) var(--ui-space-4); gap: var(--ui-space-2);
  box-shadow: 0 8px 24px #041c2c26;
}
#calls-content.calls-modern.calls-live .calls-phone-heading h2 {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#calls-content.calls-modern.calls-live .calls-phone-heading { flex-wrap: nowrap; }
#calls-content.calls-modern.calls-live .calls-line-state { font-size: .8rem; }
#calls-content.calls-modern.calls-live .calls-timer { margin: 0; font-size: 1.25rem; }
#calls-content.calls-modern.calls-live .calls-phone .calls-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
body[data-application-profile="communications"] #calls-content.calls-modern.calls-live .calls-phone .calls-actions .btn {
  width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere;
}
#calls-content.calls-modern.calls-live .calls-phone-help { max-height: 25dvh; overflow-y: auto; scrollbar-color: #577285 var(--ink); }
#calls-content.calls-modern.calls-live .calls-phone-help > summary { padding-block: var(--ui-space-2); }
#calls-content.calls-modern.calls-live .calls-phone-help > :not(summary) { margin-bottom: var(--ui-space-2); }
#calls-content.calls-modern.calls-live :is(button,input,select,textarea,summary) { scroll-margin-bottom: var(--calls-dock-space, 240px); }
@media (max-width: 1000px) {
  #calls-content.calls-modern .calls-workspace { grid-template-columns: minmax(0,1fr); }
  #calls-content.calls-modern .calls-history { position: static; }
  #calls-content.calls-modern .calls-workspace[data-detail-open="true"] .calls-history,
  #calls-content.calls-modern .calls-workspace[data-detail-open="false"] .calls-detail { display: none; }
  body[data-application-profile="communications"] #calls-content.calls-modern .calls-back-history { display: inline-flex; }
}
@media (max-width: 760px) {
  #calls-content.calls-modern .calls-focus-workspace { grid-template-columns: minmax(0,1fr); }
  #calls-content.calls-modern .calls-panel { padding: var(--ui-space-4); }
  #calls-content.calls-modern .calls-phone { gap: var(--ui-space-2); }
  #calls-content.calls-modern .calls-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #calls-content.calls-modern .calls-disposition { grid-template-columns: minmax(0,1fr); }
  #calls-content.calls-modern .calls-disposition > * { grid-column: 1; }
  #calls-content.calls-modern .calls-record-button { padding-inline: var(--ui-space-1); }
}

/* Operator workstation: one work rail, persistent line and peer record resources. */
body[data-application-profile="communications"] #calls-content.calls-workstation {
  height: var(--contact-workspace-height, calc(100dvh - 150px)); min-height: 0; box-sizing: border-box;
}
#calls-content.calls-workstation > .calls-intro { display: none; }
#calls-content.calls-workstation .calls-station {
  display: grid; grid-template-columns: minmax(240px,300px) minmax(0,1fr);
  grid-template-rows: auto minmax(0,1fr); grid-template-areas: "rail phone" "rail main";
  height: 100%; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
#calls-content.calls-workstation .calls-workrail { grid-area: rail; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #f7f9fc; border-right: 1px solid var(--line); }
#calls-content.calls-workstation .calls-work-tabs { display: flex; flex: none; gap: var(--ui-space-1); overflow-x: auto; padding: var(--ui-space-2); border-bottom: 1px solid var(--line); }
#calls-content.calls-workstation :is(.calls-work-tab,.calls-resource-tab) { min-height: 44px; flex: 1 0 auto; border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 650; padding: var(--ui-space-2) var(--ui-space-3); border-radius: var(--ui-control-radius); cursor: pointer; }
#calls-content.calls-workstation :is(.calls-work-tab,.calls-resource-tab):hover { background: var(--pale); color: var(--accent); }
#calls-content.calls-workstation :is(.calls-work-tab[aria-pressed="true"],.calls-resource-tab[aria-selected="true"]) { color: var(--accent); background: var(--pale); border-color: #c5dcea; }
#calls-content.calls-workstation :is(.calls-rail-customers,.calls-pending,.calls-history) { min-height: 0; overflow-y: auto; padding: var(--ui-space-4); }
#calls-content.calls-workstation .calls-customer-picker { border: 0; }
#calls-content.calls-workstation .calls-customer-picker > summary { display: none; }
#calls-content.calls-workstation .calls-search { grid-template-columns: minmax(0,1fr) auto; gap: var(--ui-space-2); }
#calls-content.calls-workstation .calls-search label { grid-column: 1 / -1; }
#calls-content.calls-workstation .calls-search > .btn { grid-column: 1 / -1; }
#calls-content.calls-workstation .calls-customer-results { max-height: none; overflow: visible; }
#calls-content.calls-workstation .calls-customer-result { display: block; padding-block: var(--ui-space-3); }
#calls-content.calls-workstation .calls-customer-result small { display: block; text-align: left; }
#calls-content.calls-workstation .calls-customer-result .btn { width: 100%; padding-block: var(--ui-space-2); }
#calls-content.calls-workstation .calls-history { position: static; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#calls-content.calls-workstation .calls-record-list { max-height: none; overflow: visible; }
#calls-content.calls-workstation .calls-history-heading h2 { font-size: .95rem; }
#calls-content.calls-workstation .calls-pending h3 { margin: 0 0 var(--ui-space-3); }
#calls-content.calls-workstation .calls-pending-item { padding-block: var(--ui-space-3); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#calls-content.calls-workstation .calls-pending-item p { margin: var(--ui-space-1) 0; font-size: .84rem; }
#calls-content.calls-workstation .calls-pending-item time { font-size: .75rem; color: var(--muted); }
body[data-application-profile="communications"] #calls-content.calls-workstation .calls-phone {
  grid-area: phone; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "heading actions" "status help";
  align-items: center; gap: var(--ui-space-2) var(--ui-space-4); border-radius: 0; padding: var(--ui-space-3) var(--ui-space-4); box-shadow: none;
}
#calls-content.calls-workstation .calls-phone-heading { grid-area: heading; justify-content: flex-start; }
#calls-content.calls-workstation .calls-phone-heading h2 { font-size: .875rem; }
#calls-content.calls-workstation .calls-phone > .calls-message { grid-area: status; font-size: .75rem; }
#calls-content.calls-workstation .calls-phone > .calls-actions { grid-area: actions; margin: 0; }
#calls-content.calls-workstation .calls-phone-help { grid-area: help; border: 0; }
#calls-content.calls-workstation .calls-phone-help summary { padding: 0; min-height: 44px; align-content: center; font-size: .75rem; }
#calls-content.calls-workstation .calls-phone-help[open] { grid-column: 1 / -1; grid-row: 3; max-height: 160px; overflow-y: auto; }
#calls-content.calls-workstation .calls-audio-diagnostics { color: #c7dce9; font-size: .75rem; line-height: 1.6; margin: var(--ui-space-2) 0; }
#calls-content.calls-workstation .calls-session-workspace { grid-area: main; min-height: 0; min-width: 0; overflow: auto; padding: var(--ui-space-4) var(--ui-space-5); scroll-padding-block: var(--ui-space-4); }
body[data-application-profile="communications"] #calls-content.calls-workstation :is(.calls-contact,.calls-detail) { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
#calls-content.calls-workstation .calls-contact { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "identity action" "context context"; gap: var(--ui-space-2) var(--ui-space-4); padding-bottom: var(--ui-space-4); margin-bottom: var(--ui-space-4); border-bottom: 1px solid var(--line); }
#calls-content.calls-workstation .calls-contact > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#calls-content.calls-workstation .calls-customer-summary { grid-area: identity; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--ui-space-3); margin: 0; }
#calls-content.calls-workstation .calls-customer-summary > strong { flex-basis: 100%; }
#calls-content.calls-workstation .calls-originate-action { grid-area: action; align-self: start; padding: 0; }
#calls-content.calls-workstation .calls-context-disclosure { grid-area: context; }
#calls-content.calls-workstation .calls-customer-summary:has(> p:only-child) { margin-bottom: 0; }
#calls-content.calls-workstation .calls-customer-name { font-size: 1.1rem; }
#calls-content.calls-workstation .calls-customer-summary .btn { align-self: start; }
#calls-content.calls-workstation .calls-originate-action { border: 0; padding-top: var(--ui-space-2); }
#calls-content.calls-workstation .calls-context-disclosure { margin-top: var(--ui-space-2); }
#calls-content.calls-workstation .calls-detail-heading { gap: var(--ui-space-2); padding-block: var(--ui-space-2); }
#calls-content.calls-workstation .calls-resource-tabs { display: flex; position: sticky; top: calc(-1 * var(--ui-space-4)); z-index: 2; overflow-x: auto; gap: var(--ui-space-1); background: var(--paper); border-bottom: 1px solid var(--line); padding-block: var(--ui-space-2); }
#calls-content.calls-workstation .calls-resource-tab { flex: 0 0 auto; }
#calls-content.calls-workstation .calls-resource-tab[data-availability="unavailable"] { color: var(--muted); }
#calls-content.calls-workstation .calls-resource-body > section { margin: 0; border: 0; padding-block: var(--ui-space-4); }
#calls-content.calls-workstation .calls-resource-body > section:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#calls-content.calls-workstation .calls-transcript { max-height: none; }
#calls-content.calls-workstation .calls-back-history { display: inline-flex; margin: 0; }
#calls-content.calls-workstation .calls-back-work { display: none; }
@media (min-width: 1001px) {
  body[data-application-profile="communications"] #calls-content.calls-workstation.calls-live { padding-bottom: 0; }
  body[data-application-profile="communications"] #calls-content.calls-workstation.calls-live .calls-phone { position: static; width: auto; }
}
@media (max-width: 1000px) {
  #calls-content.calls-workstation .calls-station { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); grid-template-areas: "phone" "rail"; }
  #calls-content.calls-workstation .calls-station[data-mobile-pane="main"] { grid-template-areas: "phone" "main"; }
  #calls-content.calls-workstation .calls-station[data-mobile-pane="main"] .calls-workrail,
  #calls-content.calls-workstation .calls-station[data-mobile-pane="rail"] .calls-session-workspace { display: none; }
  #calls-content.calls-workstation .calls-workrail { border-right: 0; }
  #calls-content.calls-workstation .calls-back-work { display: inline-flex; margin-bottom: var(--ui-space-3); }
  body[data-application-profile="communications"] #calls-content.calls-workstation .calls-phone { grid-template-areas: "heading help" "status status" "actions actions"; }
  #calls-content.calls-workstation .calls-phone-help[open] { grid-row: 4; }
  #calls-content.calls-workstation .calls-contact { grid-template-columns: minmax(0,1fr); grid-template-areas: "identity" "action" "context"; }
  #calls-content.calls-workstation .calls-session-workspace { padding: var(--ui-space-4); }
  body[data-application-profile="communications"] #calls-content.calls-workstation.calls-live .calls-phone {
    display: grid; grid-template-areas: "heading heading" "actions actions" "help help";
    border-radius: 12px; grid-template-columns: minmax(0,1fr) auto;
  }
  #calls-content.calls-workstation.calls-live .calls-phone-heading { justify-content: space-between; }
  #calls-content.calls-workstation.calls-live .calls-phone .calls-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  #calls-content.calls-workstation .calls-phone > .calls-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  #calls-content.calls-workstation .calls-phone .btn { white-space: normal; }
}
