/* Social pages only: leaves the site header, sports pages and API behavior intact. */
body.dfns-social {background:#f5f6f8;color:#20242c}
.dfns-social .profile-page {--panel:#fff;--text:#20242c;--muted:#69717e;max-width:1152px;padding:28px 20px 48px;margin:auto;font-size:15px;line-height:1.6}
.dfns-social .profile-page * {box-sizing:border-box}
.dfns-social .profile-shell {gap:28px}
.dfns-social .profile-hero-card {border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 4px 18px #18253605}
.dfns-social .profile-cover {min-height:268px;background-position:center 45%}
.dfns-social .profile-cover::after {background:linear-gradient(180deg,transparent 45%,#12161c35)}
.dfns-social .profile-main-info {padding:0 28px 26px;gap:20px;margin-top:-36px;align-items:end}
.dfns-social .profile-avatar-wrap {width:124px;height:124px;padding:5px;box-shadow:0 3px 12px #19212b1a}
.dfns-social .profile-username {font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.035em;color:#1d222a}
.dfns-social .profile-title-block {padding-bottom:2px}
.dfns-social .profile-hero-bio {font-size:14px;line-height:1.65;max-width:600px;margin-top:8px;color:#69717e}
.dfns-social .profile-actions {padding-bottom:2px}
.dfns-social :is(.profile-action-button,.profile-action-link,.profile-post-primary-button,.profile-post-secondary-button,.profile-composer-media-button,.profile-post-views-load-more) {border-radius:9px;box-shadow:none;font-size:13px;font-weight:600;min-height:42px;gap:8px;transition:background .15s,border-color .15s,color .15s}
.dfns-social :is(.profile-action-button.primary,.profile-action-link.primary,.profile-post-primary-button) {background:#ca1531;border-color:#ca1531;color:#fff}
.dfns-social :is(.profile-action-button.primary,.profile-action-link.primary,.profile-post-primary-button):hover {background:#af1029;border-color:#af1029;transform:none}
.dfns-social .profile-cover-upload {top:16px;right:16px;border-radius:9px;background:#141b27b8;font-size:12px;min-height:40px;box-shadow:none}
.dfns-social .profile-avatar-upload {background:#ca1531;width:34px;height:34px;box-shadow:none}
.dfns-social .profile-grid {grid-template-columns:268px minmax(0,1fr);gap:28px}
.dfns-social .profile-left-column {min-width:0}
.dfns-social .profile-card {border:1px solid #e5e7eb;border-radius:14px;box-shadow:none;padding:22px}
.dfns-social .profile-card-title {margin-bottom:16px}
.dfns-social .profile-card-title :is(h2,h3) {font-size:15px;line-height:1.4;font-weight:650;letter-spacing:-.015em}
.dfns-social .profile-stat-grid {gap:18px 12px}
.dfns-social .profile-stat {border:0;border-radius:0;box-shadow:none;background:none;padding:0}
.dfns-social .profile-stat strong {font-size:24px;line-height:1.2;letter-spacing:-.03em;font-weight:650}
.dfns-social .profile-stat span {font-size:12px;color:#69717e;margin-top:6px}
.dfns-social .profile-stat-wide {border-top:1px solid #eceef1;padding-top:16px}
.dfns-social .profile-stat-wide strong {font-size:13px;letter-spacing:0;font-weight:600}
.dfns-social .profile-latest-images-grid {gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
.dfns-social .profile-latest-image-button {border-radius:8px;box-shadow:none}
.dfns-social .profile-section-gap {height:20px}
.dfns-social .profile-posts-list {gap:24px}
.dfns-social .profile-post-item {border:1px solid #e5e7eb;border-radius:14px;padding:20px;box-shadow:0 3px 12px #18253603;overflow:visible;background:#fff}
.dfns-social .profile-post-item::before {display:none}
.dfns-social .profile-post-head {gap:12px;margin-bottom:14px;align-items:center;flex-wrap:nowrap}
.dfns-social .profile-post-author {gap:10px;min-width:0;flex:1 1 auto}
.dfns-social .profile-post-author img {width:40px;height:40px;box-shadow:none;border:1px solid #eceef1}
.dfns-social .profile-post-author strong {font-size:14px;font-weight:650;letter-spacing:-.01em}
.dfns-social .profile-post-author span {font-size:11px;line-height:1.5;color:#7b8390}
.dfns-social .profile-post-header-match-wrap {margin-left:auto;margin-right:0;padding:0;flex:0 1 auto}
.dfns-social .profile-post-header-match-link {background:#fafafa;border:1px solid #eceef1;border-radius:8px;box-shadow:none;padding:5px 8px;gap:8px;min-width:112px;max-width:144px}
.dfns-social .profile-post-header-match-logo {height:22px;width:22px}
.dfns-social .profile-post-header-match-score {font-size:12px;font-weight:650;min-width:42px;white-space:nowrap}
.dfns-social .profile-post-options-wrap {flex:0 0 auto}
.dfns-social .profile-post-options-button {height:36px;width:36px;min-width:36px;border:0;border-radius:8px;background:transparent;color:#737b88;box-shadow:none}
.dfns-social .profile-post-options-button:hover {background:#f1f3f6}
.dfns-social .profile-post-options-menu {border:1px solid #e5e7eb;border-radius:10px;padding:5px;box-shadow:0 12px 36px #1720331c;z-index:25}
.dfns-social .profile-post-options-menu button {border-radius:6px;min-height:40px;font-size:13px}
.dfns-social [data-delete-post] {color:#b51b32}
.dfns-social .profile-post-body {font-size:15px;line-height:1.75;color:#303641;padding:0;overflow-wrap:anywhere}
.dfns-social .profile-post-media {margin:16px -20px 0;background:#f0f1f3}
.dfns-social .profile-post-media-carousel,.dfns-social .profile-post-media-track,.dfns-social .profile-post-media-slide {background:#f0f1f3}
.dfns-social .profile-post-media-slide {aspect-ratio:auto;min-height:0}
.dfns-social .profile-post-media-slide img {background:#f0f1f3;object-fit:contain;height:auto;max-height:620px;min-height:0}
.dfns-social .profile-post-media-slide video {background:#171a20;object-fit:contain;max-height:620px}
.dfns-social .profile-post-media-open-button {border-radius:0}
.dfns-social .profile-post-engagement {margin-top:12px;padding:0;min-height:22px}
.dfns-social :is(.profile-reaction-summary-item,.profile-comment-summary-item) {border:0;background:none;padding:0 2px;gap:6px;color:#727b88;font-size:12px;box-shadow:none}
.dfns-social .profile-post-divider {background:#eceef1;margin-top:12px}
.dfns-social .profile-post-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding-top:6px;align-items:stretch}
.dfns-social .profile-post-actions > * {width:100%;min-width:0;margin:0}
.dfns-social :is(.profile-post-reaction-button,.profile-post-comment-button,.profile-post-share-button) {width:100%;min-width:0;min-height:46px;border:0;border-radius:7px;background:transparent;padding:8px 5px;gap:8px;font-size:13px;font-weight:550;color:#626b78;box-shadow:none;transform:none}
.dfns-social :is(.profile-post-reaction-button,.profile-post-comment-button,.profile-post-share-button):hover {background:#f5f6f8;color:#ca1531;transform:none}
.dfns-social .profile-post-reaction-button.selected {background:#fff2f4;color:#ca1531;border:0}
.dfns-social :is(.profile-post-reaction-button,.profile-post-comment-button,.profile-post-share-button):disabled {opacity:.45;cursor:not-allowed;background:none;transform:none}
.dfns-social .profile-reaction-picker {border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 28px #1720331c}
.dfns-social .profile-reaction-icon {width:19px;height:19px;object-fit:contain;flex-shrink:0}
.dfns-social .profile-composer-preview {background:none;border:0;padding:0;align-items:flex-start;gap:12px}
.dfns-social .profile-composer-preview img {width:38px;height:38px;margin-top:8px;box-shadow:none}
.dfns-social .profile-post-textarea {border:1px solid #e5e7eb;border-radius:10px;background:#fafbfc;padding:14px;font-size:14px;min-height:96px;line-height:1.6}
.dfns-social :is(textarea,input):focus-visible {outline:2px solid #ca153155;outline-offset:2px}
.dfns-social .profile-composer-toolbar {gap:8px}
.dfns-social .profile-composer-tool-button {min-height:42px;border-radius:8px;border-color:#e5e7eb;background:#fff;font-size:12px;box-shadow:none}
.dfns-social .profile-composer-tool-button.active {color:#ca1531;background:#fff2f4;border-color:#f4cbd2}
.dfns-social .profile-post-footer {border-top:1px solid #eceef1;padding-top:14px;margin-top:14px}
.dfns-social .profile-composer-media-item {border-radius:9px}
.dfns-social :is(.profile-inline-bio-textarea,.profile-post-edit-textarea,.profile-comment-textarea) {border-radius:10px;border-color:#e0e4e9;background:#fafbfc;font-size:14px;line-height:1.6}
.dfns-social .profile-comment-bubble {border-radius:12px;background:#f5f6f8;border:0;box-shadow:none}
.dfns-social .profile-comment-actions {gap:14px}
.dfns-social .profile-comment-action {min-height:32px;font-size:12px;color:#69717e}
.dfns-social .profile-comment-action.liked {color:#ca1531}
.dfns-social .profile-comments-panel.open {background:#fff;max-width:860px;margin-left:auto;margin-right:auto;box-shadow:0 0 0 100vmax #18212f59,0 10px 40px #17203322}
.dfns-social :is(.profile-comments-title,.profile-post-views-title,.profile-match-picker-title) {font-size:20px;font-weight:650;letter-spacing:-.02em}
.dfns-social .profile-comments-panel.open .profile-comments-header {padding:22px 28px 18px;background:#fff}
.dfns-social .profile-comments-panel.open .profile-comments-list {padding:20px 28px}
.dfns-social :is(.profile-post-views-modal,.profile-match-picker-modal) {border-radius:16px;box-shadow:0 16px 60px #17203326;border:1px solid #e5e7eb}
.dfns-social .profile-match-result-button {border-radius:10px}
.dfns-social :is(button,a):focus-visible {outline:2px solid #c71a35;outline-offset:3px}
.dfns-social .post-detail-page {max-width:880px;padding-top:32px}
.dfns-social .post-detail-page .profile-post-item {padding:24px}
.dfns-social .post-detail-page .profile-post-media {margin-left:-24px;margin-right:-24px}
.dfns-icon {width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dfns-icon-wrap {display:inline-flex;align-items:center;justify-content:center;vertical-align:-.18em;line-height:1}
.dfns-social [data-post-time] .dfns-icon {width:12px;height:12px;vertical-align:-.15em}
.dfns-social.dfns-confirm-open {overflow:hidden!important}
.dfns-confirm {box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:0;border:1px solid #e5e7eb;border-radius:18px;color:#20242c;background:#fff;box-shadow:0 24px 90px #10172240;font:inherit}
.dfns-confirm::backdrop {background:#17203380;backdrop-filter:blur(4px)}
.dfns-confirm-content {padding:28px}
.dfns-confirm-symbol {display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#fff0f2;color:#c71a35;margin-bottom:20px}
.dfns-confirm-symbol .dfns-icon {width:24px;height:24px}
.dfns-confirm h2 {margin:0 0 10px;font-size:22px;line-height:1.3;letter-spacing:-.025em;font-weight:700}
.dfns-confirm-description {margin:0;color:#68717e;font-size:14px;line-height:1.7}
.dfns-confirm-note {margin:16px 0 0;padding:12px;border-radius:9px;background:#f7f8fa;color:#737b87;font-size:12px;line-height:1.6}
.dfns-confirm-error {margin:16px 0 0;color:#ad1430;font-size:13px;line-height:1.5}
.dfns-confirm-error:empty {display:none}
.dfns-confirm-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}
.dfns-confirm-actions button {display:flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;min-height:46px;padding:10px;border:1px solid #dfe3e8;background:#fff;color:#343b46;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.dfns-confirm-actions .dfns-confirm-delete {background:#c71a35;color:#fff;border-color:#c71a35}
.dfns-confirm-actions .dfns-confirm-delete:hover {background:#ad142d}
.dfns-confirm-actions button:disabled {opacity:.6;cursor:wait}
.dfns-confirm-actions .dfns-icon {width:17px;height:17px}
.dfns-spin {animation:dfns-spin 1s linear infinite}
@keyframes dfns-spin {to {transform:rotate(360deg)}}
@media(max-width:900px) {
 .dfns-social .profile-grid {grid-template-columns:230px minmax(0,1fr);gap:20px}
 .dfns-social .profile-card {padding:18px}
 .dfns-social .profile-main-info {padding-left:22px;padding-right:22px;gap:16px}
 .dfns-social .profile-actions {grid-column:2/-1;justify-content:flex-start}
 .dfns-social .profile-hero-bio {max-width:100%}
}
@media(max-width:760px) {
 .dfns-social .profile-page {padding:16px 12px 32px}
 .dfns-social .profile-shell {gap:20px}
 .dfns-social .profile-cover {min-height:190px}
 .dfns-social .profile-grid {grid-template-columns:minmax(0,1fr);gap:20px}
 .dfns-social .profile-main-info {grid-template-columns:auto minmax(0,1fr);padding:0 20px 22px;gap:12px 16px;margin-top:-28px;align-items:end}
 .dfns-social .profile-avatar-wrap {width:100px;height:100px}
 .dfns-social .profile-title-block {padding-top:36px}
 .dfns-social .profile-username {font-size:27px}
 .dfns-social .profile-hero-bio {font-size:13px}
 .dfns-social .profile-actions {grid-column:1/-1;margin-top:4px}
 .dfns-social .profile-stat-grid {grid-template-columns:1fr 1fr 2fr;gap:14px}
 .dfns-social .profile-stat-wide {grid-column:auto;border:0;border-left:1px solid #eceef1;padding:0 0 0 16px}
 .dfns-social .profile-stat strong {font-size:22px}
 .dfns-social .profile-stat-wide strong {font-size:13px}
 .dfns-social .profile-latest-images-grid {grid-template-columns:repeat(5,minmax(0,1fr))}
 .dfns-social .profile-latest-images-card {padding:16px 18px}
 .dfns-social .profile-latest-images-card .profile-card-title {margin-bottom:12px}
 .dfns-social .profile-post-item,.dfns-social .post-detail-page .profile-post-item {padding:16px;border-radius:12px}
 .dfns-social .profile-post-media,.dfns-social .post-detail-page .profile-post-media {margin-left:-16px;margin-right:-16px}
 .dfns-social .post-detail-page {max-width:880px}
 .dfns-social .profile-posts-list {gap:18px}
 .dfns-social .profile-comments-panel.open {max-width:100%;box-shadow:none}
 .dfns-social .profile-comments-panel.open .profile-comments-header {padding:18px 16px}
 .dfns-social .profile-comments-panel.open .profile-comments-list {padding:16px}
}
@media(max-width:480px) {
 .dfns-social .profile-cover {min-height:158px}
 .dfns-social .profile-hero-card {border-radius:12px}
 .dfns-social .profile-main-info {padding-left:16px;padding-right:16px;gap:10px 12px}
 .dfns-social .profile-avatar-wrap {width:86px;height:86px;padding:4px}
 .dfns-social .profile-username {font-size:24px}
 .dfns-social .profile-title-block {padding-top:34px}
 .dfns-social .profile-cover-upload {top:10px;right:10px;font-size:11px;padding:7px 9px}
 .dfns-social .profile-stat-grid {gap:10px}
 .dfns-social .profile-stat span {font-size:11px}
 .dfns-social .profile-stat-wide {padding-left:10px}
 .dfns-social .profile-stat-wide strong {font-size:12px;line-height:1.6}
 .dfns-social .profile-post-head {gap:6px;flex-wrap:wrap}
 .dfns-social .profile-post-author {gap:8px}
 .dfns-social .profile-post-author img {width:34px;height:34px}
 .dfns-social .profile-post-header-match-link {min-width:94px;max-width:112px;padding:4px 6px;gap:5px}
 .dfns-social .profile-post-header-match-logo {width:18px;height:18px}
 .dfns-social .profile-post-header-match-score {min-width:36px;font-size:11px}
 .dfns-social .profile-post-options-button {width:30px;min-width:30px;height:34px}
 .dfns-social :is(.profile-post-reaction-button,.profile-post-comment-button,.profile-post-share-button) {gap:5px;font-size:11px;min-height:46px;padding:7px 2px}
 .dfns-social .profile-post-actions .dfns-icon,.dfns-social .profile-reaction-icon {width:17px;height:17px}
 .dfns-social .profile-post-body {font-size:14px}
 .dfns-confirm-content {padding:24px}
}
@media(prefers-reduced-motion:reduce) {.dfns-social * {scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.dfns-social .profile-post-inner {padding:0}
/* Preserve authored newlines, blank lines and spacing in both text states. */
.dfns-social .profile-post-body,
.dfns-social .profile-post-body-preview,
.dfns-social .profile-post-body-full {white-space:pre-wrap!important;overflow-wrap:anywhere}
/* Override the older author-span display rules for this small inline icon. */
.dfns-social .profile-post-author [data-post-time] {display:flex;align-items:center;gap:4px;white-space:nowrap}
.dfns-social .profile-post-author [data-post-time] .dfns-icon-wrap {display:inline-flex;align-items:center;justify-content:center;line-height:1;vertical-align:middle}
.dfns-social .profile-post-author [data-post-time] .dfns-icon {display:block;width:12px;height:12px;vertical-align:initial}
.dfns-share .dfns-confirm-symbol {background:#f2f4f7;color:#586575}
.dfns-share-label {display:block;margin:22px 0 8px;font-size:12px;font-weight:600;color:#596474}
.dfns-share-url {box-sizing:border-box;display:block;width:100%;min-width:0;border:1px solid #dfe3e8;border-radius:9px;background:#f7f8fa;color:#364152;padding:12px;font:inherit;font-size:12px;line-height:1.6}
.dfns-share-status {margin:12px 0 0;min-height:20px;font-size:12px;line-height:1.6;color:#467458}
.dfns-share-status.error {color:#ad1430}
.dfns-confirm-actions .dfns-share-copy {background:#ca1531;border-color:#ca1531;color:#fff}
.dfns-confirm-actions .dfns-share-copy:hover {background:#af1029}
/* Mobile-only refinements. The desktop cascade above is unchanged. */
@media (max-width:760px) {
  .dfns-social .profile-page,
  .dfns-social .post-detail-page {width:100%;max-width:none;padding-left:0;padding-right:0}
  .dfns-social .profile-shell,
  .dfns-social .profile-grid {width:100%;max-width:none;min-width:0}
  .dfns-social .profile-grid > * {min-width:0}
  .dfns-social .profile-post-item,
  .dfns-social .profile-hero-card,
  .dfns-social .profile-card {width:100%;margin-left:0;margin-right:0}

  /* Flatten this wrapper for layout only; preserve all DOM IDs and form handlers. */
  .dfns-social .profile-main-info {grid-template-columns:auto minmax(0,1fr)}
  .dfns-social .profile-main-info .profile-title-block {display:contents}
  .dfns-social .profile-main-info .profile-avatar-wrap {grid-column:1;grid-row:1}
  .dfns-social .profile-main-info .profile-username {grid-column:2;grid-row:1;align-self:end;margin:0 0 12px;min-width:0;overflow-wrap:anywhere}
  .dfns-social .profile-main-info .profile-hero-bio {grid-column:1 / -1;grid-row:2;min-width:0;max-width:100%;margin:2px 0 0;overflow-wrap:anywhere}
  .dfns-social .profile-main-info .profile-inline-bio-form {grid-column:1 / -1;min-width:0;margin:2px 0 0}
  .dfns-social .profile-main-info .profile-actions {grid-column:1 / -1}

  /* The picker must size to its contents, rather than the one-third-width button. */
  .dfns-social .profile-reaction-picker {width:max-content;max-width:calc(100vw - 32px);left:0;right:auto;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .dfns-social .profile-reaction-picker-button,
  .dfns-social .profile-reaction-remove-button {flex:0 0 38px;min-width:38px}
}
