/* One live call beside a chronological customer conversation. Device screens use owned app assets. */
.ppc-panel--showcase-communication:focus { outline: none; }
.ppc-panel--showcase-communication :is(.ppc-panel__headline, .ppc-mobile__copy h3) { text-wrap: balance; }
.ps-layout--communication { grid-template-columns: minmax(0, .82fr) minmax(0, 1.58fr); gap: clamp(28px, 3vw, 48px); }
.comm-showcase { --comm-navy: #123456; --comm-muted: #657784; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: center; gap: 24px; width: 100%; max-width: 840px; margin-inline: auto; color: #17344c; font-variant-numeric: tabular-nums; }
.comm-hub { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.comm-call { position: relative; z-index: 2; width: 94%; padding: 20px 22px 16px; background: #fff; border: 1px solid #d8e3e8; border-radius: 15px; box-shadow: 0 16px 38px -22px rgb(17 34 51 / 30%); }
.comm-call__brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.comm-call__brand > img { width: 27px; height: 27px; border-radius: 7px; }
.comm-call__live { margin-left: auto; display: flex; align-items: center; gap: 5px; white-space: nowrap; color: #22764f; font-size: 12px; }
.comm-call__live > span { width: 6px; height: 6px; border-radius: 50%; background: #269460; box-shadow: 0 0 0 3px #eaf5ee; }
.comm-call__person { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; }
.comm-call__person > div { display: grid; gap: 2px; }
.comm-call__person strong { font-size: 21px; font-weight: 600; line-height: 1.25; }
.comm-call__person > div > span { color: var(--comm-muted); font-size: 12px; }
.comm-call__timer { font-size: 15px; font-weight: 600; }
.comm-call__sound { display: flex; align-items: center; justify-content: center; padding: 16px 8px 13px; }
.comm-wave { display: block; width: 100%; max-width: 205px; height: 34px; color: #3c647f; }
.comm-call__controls { display: flex; justify-content: center; gap: 23px; }
.comm-call__controls > span { display: grid; justify-items: center; gap: 4px; }
.comm-call__controls i { display: grid; place-items: center; height: 31px; width: 31px; background: #f1f4f6; border-radius: 50%; font-size: 11px; color: #536574; }
.comm-call__controls .comm-call__end i { background: #bf3c39; color: #fff; }
.comm-call__controls small { font-size: 10px; color: var(--comm-muted); line-height: 1.2; }
.comm-devices { container-type: inline-size; position: relative; isolation: isolate; overflow: clip; aspect-ratio: 1400 / 740; width: 125%; margin: 0; align-self: flex-start; }
.comm-devices__scene { position: absolute; z-index: 0; display: block; width: 100%; height: auto; top: -12.162%; left: 0; clip-path: inset(9.646% 0 11.04%); }
/* Measured source corners: trim empty backdrop only, keeping every device and cable intact. */
.comm-phone-screen { position: absolute; z-index: 1; left: 36.0714%; top: 17.7027%; width: 6.7143%; height: 33.9189%; transform-origin: 0 0; transform: matrix(1, -.117, .1076, 1, 0, 0); border-radius: .65cqw; overflow: hidden; background: #0b1c2d; }
.comm-phone-screen > img { display: block; width: 100%; height: 100%; object-fit: fill; }
.comm-desktop-screen { position: absolute; z-index: 1; left: 49.9286%; top: 27.7027%; width: 17.5714%; height: 27.027%; transform-origin: 0 0; transform: matrix(1, -.118, .115, 1, 0, 0); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #123456; border-radius: .2cqw; }
.comm-desktop-screen > img { display: block; width: 42%; height: auto; }
.comm-desktop-screen > span { color: #f5f2de; font-size: 1.15cqw; font-weight: 600; line-height: 1.3; }
.comm-devices__link { position: absolute; z-index: 2; left: 81%; top: 85.2%; width: 30px; height: 2px; background: #dea74f; }
.comm-history { position: relative; z-index: 3; border: 1px solid #d8e3e8; border-radius: 15px; background: #fff; box-shadow: 0 16px 38px -24px rgb(17 34 51 / 28%); overflow: hidden; }
.comm-history__heading { display: flex; align-items: center; gap: 10px; padding: 20px; border-bottom: 1px solid #e6edef; }
.comm-history__avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: #edf3f6; color: #42637b; font-size: 12px; font-weight: 600; }
.comm-history__heading > div { display: grid; gap: 2px; }
.comm-history__heading strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.comm-history__heading > div > span { color: var(--comm-muted); font-size: 11px; }
.comm-history__heading > i { margin-left: auto; font-size: 18px; color: #6c8597; }
.comm-history__heading > div > .comm-history__channels { display: flex; align-items: center; gap: 7px; color: #3c617b; font-size: 14px; font-weight: 600; line-height: 1.4; }
.comm-feed { list-style: none; padding: 20px 18px 19px; margin: 0; display: grid; gap: 18px; }
.comm-feed__item { position: relative; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 10px; }
.comm-feed__item:not(:last-child)::before { content: ''; position: absolute; top: 27px; bottom: -16px; left: 12px; width: 1px; background: #e4ebee; }
.comm-feed__icon { position: relative; z-index: 1; display: grid; place-items: center; height: 25px; border-radius: 50%; background: #eaf2f7; color: #345c78; font-size: 10px; }
.comm-feed__item--call .comm-feed__icon { color: #23704e; background: #eaf5ee; }
.comm-feed__item--email .comm-feed__icon { color: #a76b19; background: #fcf2e1; }
.comm-feed__content { min-width: 0; }
.comm-feed__label { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 25px; }
.comm-feed__label strong { font-size: 13px; font-weight: 600; }
.comm-feed__label > span { color: var(--comm-muted); font-size: 11px; white-space: nowrap; }
.comm-feed__label .comm-feed__type { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; }
.comm-feed__channel { display: inline-block; padding: 2px 7px; border-radius: 4px; line-height: 1.4; }
.comm-feed__channel--call { color: #216b4b; background: #eaf5ee; }
.comm-feed__channel--sms { color: #254f70; background: #eaf2f9; }
.comm-feed__channel--email { color: #895a13; background: #fcf2e1; }
.comm-feed__direction { color: var(--comm-muted); font-size: 12px; font-weight: 400; }
.comm-recording { display: flex; align-items: center; gap: 10px; padding: 7px 11px; background: #f3f6f5; border-radius: 8px; margin: 5px 0 7px; }
.comm-recording > i { color: #247151; font-size: 10px; }
.comm-recording .comm-wave { height: 24px; flex: 1; min-width: 0; color: #5f7a8b; }
.comm-recording > span { color: var(--comm-muted); font-size: 11px; }
.comm-showcase .comm-transcript { font-size: 13px; line-height: 1.5; margin: 0 0 4px; }
.comm-feed__note { display: flex; align-items: center; gap: 5px; color: var(--comm-muted); font-size: 11px; line-height: 1.5; }
.comm-feed__note--read { color: #28724d; margin-top: 5px; }
.comm-showcase .comm-bubble { margin: 5px 0 0; padding: 10px 12px; border-radius: 3px 10px 10px; background: #f3f4f4; font-size: 14px; line-height: 1.5; }
.comm-showcase .comm-bubble--out { background: #edf4fa; border-radius: 10px 3px 10px 10px; }
.comm-email { padding-top: 4px; display: grid; gap: 7px; }
.comm-email > strong { font-size: 13px; font-weight: 600; line-height: 1.4; }
.comm-email > span { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #e4e9ec; border-radius: 5px; font-size: 11px; color: #526a7b; }
.comm-history__footer { display: flex; align-items: center; gap: 7px; justify-content: center; border-top: 1px solid #e6edef; padding: 11px; background: #fafcfc; font-size: 11px; color: #5e7686; }

@media (min-width: 1025px) and (max-height: 800px) {
    .comm-hub { gap: 20px; }
    .comm-call { padding: 16px; }
    .comm-feed { gap: 12px; padding: 15px; }
    .comm-history__heading { padding: 15px; }
    .comm-devices { margin-bottom: 0; }
    .comm-showcase .comm-bubble { padding-block: 8px; }
}
/* Mobile composes the devices and active call above one compact conversation. */
@media (max-width: 1024px) {
    .comm-showcase { gap: 16px; font-size: 14px; }
    .comm-hub { gap: 16px; }
    .comm-call { width: 100%; padding: 14px; }
    .comm-call__brand { font-size: 13px; }
    .comm-call__live, .comm-call__person > div > span { font-size: 12px; }
    .comm-call__person strong { font-size: 18px; }
    .comm-call__timer { font-size: 14px; }
    .comm-call__controls { gap: 18px; }
    .comm-call__controls i { width: 30px; height: 30px; font-size: 12px; }
    .comm-call__controls small { font-size: 12px; }
    .comm-history__heading { padding: 12px 14px; gap: 10px; }
    .comm-history__heading strong { font-size: 17px; }
    .comm-history__heading > div > span { font-size: 12px; line-height: 1.4; }
    .comm-history__avatar { height: 30px; flex-basis: 30px; font-size: 12px; }
    .comm-feed { padding: 12px 14px; gap: 12px; }
    .comm-feed__item { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
    .comm-feed__icon { height: 24px; font-size: 11px; }
    .comm-feed__item:not(:last-child)::before { left: 11px; top: 26px; bottom: -10px; }
    .comm-feed__label { min-height: 22px; flex-wrap: wrap; gap: 2px 7px; }
    .comm-feed__label strong { font-size: 13px; }
    .comm-feed__label > span, .comm-recording > span { font-size: 12px; }
    .comm-recording { padding: 4px 8px; margin-block: 4px; }
    .comm-recording > i { font-size: 12px; }
    .comm-recording .comm-wave { height: 22px; }
    .comm-showcase .comm-transcript { font-size: 13px; line-height: 1.4; }
    .comm-feed__note { font-size: 12px; line-height: 1.4; align-items: baseline; }
    .comm-showcase .comm-bubble { font-size: 14px; line-height: 1.4; padding: 7px 10px; margin-top: 4px; }
    .comm-email { gap: 5px; }
    .comm-email > strong { font-size: 14px; }
    .comm-email > span { font-size: 12px; padding: 5px 8px; overflow-wrap: anywhere; }
    .comm-history__footer { padding: 9px; font-size: 12px; }
}
@media (max-width: 760px) {
    .comm-showcase { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 560px; }
    .comm-hub { display: contents; }
    .comm-devices { order: 0; width: 100%; max-width: 420px; margin: 0 auto; align-self: center; }
    .comm-devices__link { display: none; }
    .comm-call { order: 1; display: grid; grid-template-columns: minmax(125px, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 8px 9px; padding: 12px 14px; border-radius: 12px; }
    .comm-call__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-size: 13px; }
    .comm-call__brand > img { width: 24px; height: 24px; }
    .comm-call__live { margin-left: auto; font-size: 12px; }
    .comm-call__person { grid-column: 1; margin: 0; gap: 7px; }
    .comm-call__person strong { font-size: 17px; }
    .comm-call__person > div > span { display: none; }
    .comm-call__timer { font-size: 12px; }
    .comm-call__sound { grid-column: 2; padding: 0; }
    .comm-call__sound .comm-wave { height: 24px; }
    .comm-call__controls { grid-column: 3; display: flex; gap: 5px; padding: 0; }
    .comm-call__controls i { width: 24px; height: 24px; font-size: 11px; }
    .comm-call__controls small { display: none; }
    .comm-history { order: 2; width: 100%; border-radius: 12px; }
    .comm-history__heading > div { display: grid; gap: 2px; min-width: 0; }
    .comm-history__heading > i { display: none; }
    .comm-feed__item--call .comm-feed__note, .comm-email > span, .comm-history__footer { display: none; }
    .ppc-mobile--compact .comm-showcase { gap: 9px; }
    .ppc-mobile--compact .comm-devices { max-width: 340px; }
    .ppc-mobile--compact .comm-call { padding: 9px 12px; row-gap: 6px; }
    .ppc-mobile--compact .comm-call__brand > img { width: 22px; height: 22px; }
    .ppc-mobile--compact .comm-call__sound .comm-wave { height: 22px; }
    .ppc-mobile--compact .comm-history__heading { padding: 8px 12px; }
    .ppc-mobile--compact .comm-history__heading > div { display: flex; align-items: baseline; gap: 9px; }
    .ppc-mobile--compact .comm-history__heading > div > span { display: none; }
    .ppc-mobile--compact .comm-history__heading > div > .comm-history__channels { display: flex; }
    .ppc-mobile--compact .comm-history__heading > div > strong { display: none; }
    .ppc-mobile--compact .comm-history__avatar { height: 24px; flex-basis: 24px; }
    .ppc-mobile--compact .comm-feed { padding: 8px 12px; gap: 6px; }
    .ppc-mobile--compact .comm-feed__item { grid-template-columns: 22px minmax(0, 1fr); gap: 7px; }
    .ppc-mobile--compact .comm-feed__icon { height: 22px; }
    .ppc-mobile--compact .comm-feed__item:not(:last-child)::before { left: 10px; top: 24px; bottom: -4px; }
    .ppc-mobile--compact .comm-feed__label { min-height: 18px; }
    .ppc-mobile--compact .comm-showcase .comm-bubble { font-size: 13px; line-height: 1.35; padding: 5px 9px; margin-top: 3px; }
    .ppc-mobile--compact .comm-email { padding-top: 2px; }
    .ppc-mobile--compact .comm-email > strong { font-size: 13px; }
    .ppc-mobile--compact .comm-showcase .comm-transcript { display: none; }
    .ppc-mobile--compact .comm-recording { padding-block: 2px; margin-block: 2px; }
    .ppc-mobile--compact .comm-recording .comm-wave { height: 18px; }
    .ppc-mobile--compact .comm-feed__note--read { margin-top: 2px; }
    .ppc-mobile--short .comm-showcase { gap: 7px; }
    .ppc-mobile--short .comm-devices { max-width: 310px; }
    .ppc-mobile--short .comm-call { padding: 8px 10px; }
    .ppc-mobile--short .comm-history__heading { padding-block: 6px; }
    .ppc-mobile--short .comm-feed { padding: 7px 10px; gap: 5px; }
    .ppc-mobile--short .comm-showcase .comm-bubble { padding-block: 4px; line-height: 1.3; }
    .ppc-mobile--short .comm-feed__label > span { display: none; }
}
/* Short phones show the three channels without repeating the active caller. */
@media (max-width: 760px) and (max-height: 700px) {
    .ppc-mobile--short .comm-showcase { gap: 6px; }
    .ppc-mobile--short .comm-call { padding-block: 6px; row-gap: 5px; }
    .ppc-mobile--short .comm-history__heading,
    .ppc-mobile--short .comm-feed__item--reply { display: none; }
    .ppc-mobile--short .comm-feed { padding: 9px 10px; gap: 7px; }
    .ppc-mobile--short .comm-feed__item--call .comm-feed__content { display: flex; align-items: center; gap: 8px; }
    .ppc-mobile--short .comm-feed__item--call .comm-feed__label { flex: 0 0 auto; }
    .ppc-mobile--short .comm-feed__item--call .comm-feed__direction { display: none; }
    .ppc-mobile--short .comm-feed__item--call .comm-recording { flex: 1; min-width: 0; margin: 0; }
    .ppc-mobile--short .comm-feed__item--email::before { display: none; }
}
@media (min-width: 1025px) and (max-height: 539px), print {
    .comm-showcase { max-width: 760px; }
}

/* A sideways phone keeps the three channels readable at their natural size. */
@media screen and (min-width: 740px) and (max-width: 1024px) and (max-height: 500px) {
    .ppc .ppc-mobile .comm-showcase { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 10px; max-width: none; }
    .ppc .ppc-mobile .comm-hub { display: flex; flex-direction: column; gap: 6px; }
    .ppc .ppc-mobile .comm-devices { order: 0; width: 100%; max-width: 215px; align-self: center; }
    .ppc .ppc-mobile .comm-devices__link { display: none; }
    .ppc .ppc-mobile .comm-call { order: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; padding: 7px 8px; gap: 5px 7px; border-radius: 10px; }
    .ppc .ppc-mobile .comm-call__brand { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-column: 1 / -1; gap: 2px 6px; font-size: 12px; line-height: 1.3; }
    .ppc .ppc-mobile .comm-call__brand > img { width: 20px; height: 20px; grid-row: 1 / 3; align-self: center; }
    .ppc .ppc-mobile .comm-call__live { grid-column: 2; margin: 0; font-size: 11px; }
    .ppc .ppc-mobile .comm-call__person { grid-column: 1 / -1; margin: 0; gap: 7px; }
    .ppc .ppc-mobile .comm-call__person strong { font-size: 14px; }
    .ppc .ppc-mobile .comm-call__person > div > span { display: none; }
    .ppc .ppc-mobile .comm-call__timer { font-size: 12px; }
    .ppc .ppc-mobile .comm-call__sound { grid-column: 1; padding: 0; }
    .ppc .ppc-mobile .comm-call__sound .comm-wave { height: 20px; }
    .ppc .ppc-mobile .comm-call__controls { grid-column: 2; gap: 4px; }
    .ppc .ppc-mobile .comm-call__controls i { width: 20px; height: 20px; font-size: 10px; }
    .ppc .ppc-mobile .comm-call__controls small { display: none; }
    .ppc .ppc-mobile .comm-history { width: 100%; border-radius: 10px; }
    .ppc .ppc-mobile .comm-history__heading,
    .ppc .ppc-mobile .comm-feed__item--reply,
    .ppc .ppc-mobile .comm-transcript,
    .ppc .ppc-mobile .comm-feed__item--call .comm-feed__note,
    .ppc .ppc-mobile .comm-email > span,
    .ppc .ppc-mobile .comm-feed__label > span { display: none; }
    .ppc .ppc-mobile .comm-feed { padding: 10px; gap: 8px; }
    .ppc .ppc-mobile .comm-feed__item { grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
    .ppc .ppc-mobile .comm-feed__icon { height: 22px; font-size: 10px; }
    .ppc .ppc-mobile .comm-feed__item:not(:last-child)::before { left: 10px; top: 24px; bottom: -6px; }
    .ppc .ppc-mobile .comm-feed__item--email::before { display: none; }
    .ppc .ppc-mobile .comm-feed__label { min-height: 24px; }
    .ppc .ppc-mobile .comm-feed__item--call .comm-feed__content { display: flex; align-items: center; gap: 7px; }
    .ppc .ppc-mobile .comm-feed__item--call .comm-feed__direction { display: none; }
    .ppc .ppc-mobile .comm-recording { flex: 1; min-width: 0; padding: 3px 6px; margin: 0; gap: 6px; }
    .ppc .ppc-mobile .comm-recording .comm-wave { height: 20px; }
    .ppc .ppc-mobile .comm-recording > span { font-size: 11px; }
    .ppc .ppc-mobile .comm-bubble { font-size: 13px; line-height: 1.35; padding: 5px 8px; margin-top: 3px; }
    .ppc .ppc-mobile .comm-email { padding-top: 3px; }
    .ppc .ppc-mobile .comm-email > strong { font-size: 13px; line-height: 1.35; }
    .ppc .ppc-mobile .comm-feed__note--read { font-size: 12px; margin-top: 3px; }
}

/* Only the live call waveform moves; saved recordings stay still. */
.comm-call__sound .comm-wave path { transform-box: fill-box; transform-origin: center; animation: comm-speaking 1s ease-in-out infinite alternate; animation-delay: calc(var(--bar) * -73ms); }
@keyframes comm-speaking { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .comm-call__sound .comm-wave path { animation: none; } }
