/* Like the chat screen: the introduction scrolls, the message bar stays at the bottom. */
.representative-detail-main{height:100dvh;overflow:hidden;display:flex;flex-direction:column;padding:0}
.representative-detail-scroll{flex:1;min-height:0;overflow-y:auto;padding:28px 32px 24px}
.representative-detail{width:100%;max-width:680px;margin:0 auto}
.representative-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:30px;flex-wrap:wrap}
.representative-detail-actions .action-btn-pill{display:inline-flex;align-items:center;gap:8px;border-radius:8px;min-height:42px;text-decoration:none}
.representative-detail-heading{text-align:center}
.representative-detail-avatar{width:112px;height:112px;margin:0 auto 20px;border-radius:12px;object-fit:cover;display:grid;place-items:center;font-size:36px}
.representative-detail-heading h1{font-size:32px;line-height:1.2;overflow-wrap:anywhere;margin:0 0 10px}
.representative-detail-heading p{color:var(--text-muted);margin:0;line-height:1.6}
.representative-detail-description{font-size:16px;line-height:1.75;color:var(--text-secondary);margin:28px 0;overflow-wrap:anywhere}
.representative-detail-links{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}
.representative-detail-links a{padding:10px 14px;border:1px solid var(--border-color);border-radius:8px;color:var(--primary);text-decoration:none;overflow-wrap:anywhere}
.representative-detail h2{font-size:20px;margin:28px 0 14px}
.representative-detail-scenarios>a{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 20px;margin:10px 0;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:8px;text-decoration:none;overflow-wrap:anywhere}
.representative-detail-scenarios>a:hover{border-color:var(--primary)}
.representative-detail-scenarios p{color:var(--text-secondary);font-size:14px;line-height:1.6;margin:7px 0 0}
.representative-detail-scenarios>a>span{color:var(--primary)}
.representative-detail-images{display:flex;gap:10px;overflow-x:auto}
.representative-detail-images img{width:104px;height:104px;object-fit:cover;border-radius:8px}
.representative-detail :is(a,button):focus-visible{outline:2px solid var(--primary);outline-offset:4px}
@media(max-width:900px){.representative-detail-scroll{padding:20px 20px 20px}.representative-detail-actions{margin-bottom:26px;gap:8px}.representative-detail-heading h1{font-size:28px}.representative-detail-description{font-size:15px}.representative-detail-actions .action-btn-pill{font-size:12px;padding:9px 12px}}

.professional-identity{text-align:center;color:var(--text-secondary);line-height:1.6}.professional-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.professional-tags span{padding:7px 11px;border-radius:8px;background:var(--bg-panel);border:1px solid var(--border-color);font-size:13px}

/* Bottom message bar: the chat screen's message box (.chat-input-box, its call and send buttons)
   placed like the chat composer: bottom of the screen, 34 px above the edge, 66 px tall; 30% wider
   than the introduction (inc-representative-dock.php). The field and the arrow open the chat; the
   phone appears only when the representative has a voice. */
.representative-dock{flex:0 0 auto;width:min(884px,calc(100% - 40px));min-height:66px;margin:12px auto 34px}
.representative-dock-chat{flex:1;min-width:0;min-height:44px;display:flex;align-items:center;gap:12px;padding:0 6px;border-radius:6px;color:var(--text-muted);text-decoration:none;font-size:16px}
.representative-dock-chat span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.representative-dock-chat svg{flex:0 0 auto;color:var(--primary)}
.representative-dock-chat:hover{color:var(--text-secondary)}
.representative-dock .btn-send{flex:0 0 44px;text-decoration:none}
.representative-dock a:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
@media(max-width:900px){.representative-dock{width:calc(100% - 24px)}}
@media(max-width:560px){.representative-dock{gap:7px;padding-inline:9px}.representative-dock-chat{font-size:15px;gap:10px}}

/* Phones: no fixed bar on the introduction, only the menu button at the top left; the action
   buttons share its row without going under it. */
@media(max-width:900px){
body.representative-detail-page{padding-top:0!important}
body.representative-detail-page>.mobile-site-bar{display:none!important}
body.representative-detail-page .representative-detail-scroll{padding-top:12px}
body.representative-detail-page .representative-detail-actions{min-height:42px;padding-left:52px}
}
/* Settings, Share and Report are icon-only square buttons (names in aria-label and title). */
.representative-detail-actions .action-btn-pill{justify-content:center;min-width:44px;padding:0 12px}

/* Avatar opens the large picture window (inc-avatar-viewer.php) with a Share button under it. */
.representative-detail-avatar-trigger{display:block;margin:0 auto 20px;padding:0;border:0;border-radius:12px;background:none;cursor:zoom-in}
.representative-detail-avatar-trigger .representative-detail-avatar{margin:0;transition:transform .15s ease,box-shadow .15s ease}
.representative-detail-avatar-trigger:hover .representative-detail-avatar{transform:scale(1.03);box-shadow:0 0 0 3px rgba(82,229,165,.22)}
.representative-detail-avatar-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
.avatar-viewer-card{width:min(500px,100%);max-height:calc(100dvh - 44px);overflow-y:auto;padding:56px 26px 26px;text-align:center}
.avatar-viewer-image{display:grid;place-items:center;width:min(100%,calc(100dvh - 260px));min-width:180px;margin:0 auto;aspect-ratio:1;overflow:hidden;border:1px solid #3d4d67;border-radius:12px;font-size:72px}
.avatar-viewer-image img{display:block;width:100%;height:100%;object-fit:cover}
.avatar-viewer-card h2{margin:20px 0 0!important;font-size:22px;overflow-wrap:anywhere}
.avatar-viewer-share{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin-top:20px;padding:12px 28px;border:0;border-radius:8px;color:#04120d;background:var(--primary);font:inherit;font-size:16px;font-weight:850;cursor:pointer;box-shadow:0 3px 0 rgba(29,167,114,.65)}
.avatar-viewer-share:hover{background:var(--primary-hover);transform:translateY(-1px)}
.avatar-viewer-card :is(button):focus-visible{outline:2px solid #52e5a5;outline-offset:3px}
@media(max-width:560px){.avatar-viewer-card{padding:54px 18px 20px}}
