/* Profile contact hierarchy: first-party chat first; site brand colors inherited. */
html[data-promo-theme] .profile-action-panel--chat{padding:20px;border-color:var(--promo-line);background:linear-gradient(145deg,#fff 25%,var(--promo-tint));box-shadow:0 8px 26px color-mix(in srgb,var(--promo-accent) 8%,transparent)}
.profile-action-panel--chat .chat-entry-eyebrow{display:block;margin:0 0 9px;color:var(--promo-accent);font-size:10px;font-weight:750;letter-spacing:.07em;line-height:1.5;text-transform:uppercase}
.profile-action-panel--chat .chat-entry-title{margin:0 0 9px;color:var(--promo-ink);font-family:inherit;font-size:21px;font-weight:750;letter-spacing:-.025em;line-height:1.2}
.profile-action-panel--chat .chat-entry-description{margin:0 0 18px;color:var(--promo-muted);font-size:13px;line-height:1.6}
html[data-promo-theme] .profile-action-panel--chat .site-chat-profile-link{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:82px;margin:0;padding:16px 13px;border:1px solid var(--promo-accent);border-radius:13px;background:var(--promo-accent);color:#fff;text-align:left;text-decoration:none;box-shadow:0 7px 18px color-mix(in srgb,var(--promo-accent) 22%,transparent);transition:background .15s,box-shadow .15s,transform .15s}
.profile-action-panel--chat .site-chat-profile-link strong{display:block;font-size:15px;font-weight:750;line-height:1.35}
.profile-action-panel--chat .site-chat-profile-link small{display:block;margin:5px 0 0;color:#fff;font-size:11px;font-weight:450;line-height:1.45;opacity:.9}
.profile-action-panel--chat .chat-entry-icon{flex:0 0 24px}
.profile-action-panel--chat .chat-entry-arrow{flex:0 0 auto;margin-left:auto;font-size:20px;line-height:1}
html[data-promo-theme] .profile-action-panel--chat .site-chat-profile-link:hover{background:var(--promo-accent-hover);border-color:var(--promo-accent-hover);color:#fff;transform:translateY(-1px);box-shadow:0 9px 22px color-mix(in srgb,var(--promo-accent) 27%,transparent)}
.profile-action-panel--chat .site-chat-profile-link:focus-visible{outline:3px solid var(--promo-accent);outline-offset:4px}
.profile-action-panel--chat .chat-entry-alternatives{display:flex;align-items:center;gap:9px;margin:18px 0 12px;color:var(--promo-muted);font-size:10px;line-height:1.5;text-align:center}
.profile-action-panel--chat .chat-entry-alternatives:before,.profile-action-panel--chat .chat-entry-alternatives:after{content:"";height:1px;background:var(--promo-line);flex:1}
html[data-promo-theme] .profile-action-panel--chat .profile-channel-actions>a:not(.text-link),html[data-promo-theme] .profile-action-panel--chat .profile-actions>a:not(.text-link){flex:1 1 0;width:auto;min-width:0;min-height:44px;margin:0;padding:10px 8px;border:1px solid var(--promo-line);border-radius:10px;background:#fff;color:var(--promo-ink);font-size:12px;font-weight:650;line-height:1.4;box-shadow:none;white-space:nowrap}
html[data-promo-theme] .profile-action-panel--chat .profile-channel-actions>a:not(.text-link):hover,html[data-promo-theme] .profile-action-panel--chat .profile-actions>a:not(.text-link):hover{border-color:var(--promo-accent);background:var(--promo-tint);color:var(--promo-accent)}
@media(max-width:640px){html[data-promo-theme] .profile-action-panel--chat{padding:20px}.profile-action-panel--chat .chat-entry-title{font-size:22px}.profile-action-panel--chat .site-chat-profile-link strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){html[data-promo-theme] .profile-action-panel--chat .site-chat-profile-link{transition:none;transform:none}}

/* Official marks: telegram.org/press and go.max.ru/brandbook. */
html[data-promo-theme] .profile-action-panel--chat :is(.profile-channel-actions,.profile-actions)>a[href*="t.me/"]:not(.text-link){background:#087bb3;border-color:#087bb3;color:#fff;box-shadow:0 3px 10px #229ed91a}
html[data-promo-theme] .profile-action-panel--chat :is(.profile-channel-actions,.profile-actions)>a[href*="t.me/"]:not(.text-link):hover{background:#066a9b;border-color:#066a9b;color:#fff}
html[data-promo-theme] .profile-action-panel--chat :is(.profile-channel-actions,.profile-actions)>a[href*="max.ru/"]:not(.text-link){background:linear-gradient(115deg,#471aff,#9500ff);border-color:#6e1aff;color:#fff;box-shadow:0 3px 10px #6e1aff1a}
html[data-promo-theme] .profile-action-panel--chat :is(.profile-channel-actions,.profile-actions)>a[href*="max.ru/"]:not(.text-link):hover{background:linear-gradient(115deg,#3c13dd,#7e00db);border-color:#471aff;color:#fff}
html[data-promo-theme] .profile-action-panel--chat :is(.profile-channel-actions,.profile-actions)>a:not(.text-link){flex:1 1 110px;gap:6px;min-height:46px;padding:10px 8px;justify-content:center}
.profile-action-panel--chat .messenger-icon{display:block;width:20px;height:20px;object-fit:contain;flex:0 0 20px;margin:0}
.profile-action-panel--chat .messenger-icon--telegram{width:24px;height:24px;flex-basis:24px}
html[data-promo-theme] .profile-action-panel--chat :is(.profile-channel-actions,.profile-actions)>a:focus-visible{outline:3px solid var(--promo-accent);outline-offset:3px}
