/* XP Scrollbars (global) */
* {
  scrollbar-width: thin;
  scrollbar-color: #2e75d4 #dfeaff;
}

*::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f5f9ff 0%, #dfeaff 100%);
  border: 1px solid #7aa6de;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7fb3ff 0%, #2e75d4 100%);
  border: 1px solid #1f4f9e;
  border-radius: 2px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9ac3ff 0%, #3d86e3 100%);
}

*::-webkit-scrollbar-corner {
  background: #dfeaff;
}

*::-webkit-scrollbar-button {
  display: block;
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #c7ddff 100%);
  border: 1px solid #7aa6de;
}

*::-webkit-scrollbar-button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d7e7ff 100%);
}
html, body {
  margin: 0;
  padding: 0;
  border: 0;
}

* {
  box-sizing: border-box;
}

body {
  background: #008080 url('https://images3.alphacoders.com/134/1349543.png') no-repeat center center fixed;
  background-size: cover;
  font-family: Tahoma, Verdana, Geneva, sans-serif;
  padding-top: 52px;
  min-height: 100vh;
  min-height: var(--dydoss-viewport-height, 100dvh);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* HEADER */
.xp-header.xp-header-compact {
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 1000;
  background: linear-gradient(90deg, #1859c7 80%, #4faaff 100%);
  border-bottom: 3px solid #3957a7;
  box-shadow: 0 2px 14px #19366577;
  padding: 0 24px;
}

.xp-header-logo {
  height: 30px;
  width: auto;
  margin-right: 14px;
  display: block;
  object-fit: contain;
}

.xp-header-logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
}

.xp-header-title {
  color: #fff;
  font-size: 1.18em;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 1px 2px #003468;
  margin-right: 8px;
  line-height: 1;
}

.xp-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.xp-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.xp-header-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-nav-btn {
  box-shadow: 1px 1px 0 #93b9e8;
  flex: 0 0 auto;
}

.header-utility-btn {
  box-shadow: 1px 1px 0 #93b9e8;
  flex: 0 0 auto;
}

.xp-header.xp-header-compact .header-nav-btn,
.xp-header.xp-header-compact .header-utility-btn,
.xp-header.xp-header-compact .notification-btn {
  min-height: 32px;
}

.xp-header.xp-header-compact .header-nav-btn,
.xp-header.xp-header-compact .header-utility-btn {
  padding: 4px 11px;
  font-size: 0.95em;
  line-height: 1.05;
  gap: 6px;
}

.xp-header.xp-header-compact .header-nav-btn .xp-ui-icon--header,
.xp-header.xp-header-compact .header-utility-btn .xp-ui-icon--header {
  width: 14px;
  height: 14px;
}

.header-nav-btn.is-active,
.header-nav-btn[aria-current="page"],
.header-utility-btn.is-active,
.notification-btn.is-active {
  background: linear-gradient(180deg, #ffffff, #d4e7ff 80%);
  color: #123a6f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 1px 1px 0 #93b9e8;
}

.header-apps-btn {
  margin-right: 0;
}

.header-panel-btn {
  display: none;
}

.xp-header-utilities #posts-panel-btn,
.xp-header-utilities #online-panel-btn {
  display: none !important;
}

.notification-btn {
  background: none;
  border: none;
  font-size: 1.25em;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  flex: 0 0 auto;
}

.bell-emoji {
  font-size: 1.12em;
}

.notification-dot {
  display: inline-block;
  position: absolute;
  top: 8px;
  right: 7px;
  width: 8px;
  height: 8px;
  background-color: #f00;
  border-radius: 50%;
  animation: pulse-dot 1.3s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* XP WINDOWS */
.xp-window {
  border-radius: 14px;
  background: #edead8ee;
  border: 3px solid #0154a7;
  box-shadow: 0 8px 32px #2a528d55, 0 0 0 2px #fff;
  overflow: hidden;
}

.xp-titlebar {
  background: linear-gradient(90deg, #2363c5 0%, #3b89ee 100%);
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 2px solid #194b90;
  color: #fff;
  font-weight: bold;
  font-size: 1.05em;
}

.xp-title {
  flex: 1;
  letter-spacing: 0.4px;
}

.back-profile-link {
  margin-right: 10px;
  white-space: nowrap;
}

.xp-controls {
  display: flex;
  gap: 4px;
}

.xp-window-content {
  padding: 22px;
  background: #edead8ee;
}

/* BUTTONS */
.xp-btn {
  background: linear-gradient(180deg, #e9e9ef, #b2c8e6 90%);
  border: 2px solid #3957a7;
  border-radius: 9px;
  box-shadow: 2px 3px 0 #b4d4f3;
  color: #123b74;
  font-weight: bold;
  font-size: 1.02em;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xp-btn:hover,
.xp-btn:focus {
  background: #d0ebfd;
  box-shadow: 2px 4px 0 #94bce0;
}

.xp-btn.mini {
  padding: 4px 11px;
  font-size: 0.95em;
  border-radius: 6px;
  box-shadow: 1px 1px 0 #b4d4f3;
}

.xp-controls .xp-btn {
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.friends-posts-swap-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: fixed;
  left: 20px;
  top: 62px;
  z-index: 8;
  width: 334px;
  max-width: min(334px, calc(100vw - 40px));
  pointer-events: none;
}

.friends-posts-swap-row.is-hidden-desktop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.desktop-sidepanels-shell,
.desktop-sidepanels-left,
.desktop-sidepanels-right {
  display: contents;
}

.desktop-sidepanel-tab {
  display: none;
}

.desktop-sidepanel-tab[hidden] {
  display: none !important;
}

.friends-feed-swap-btn {
  padding: 3px 10px;
  font-size: 0.74em;
  line-height: 1.15;
  white-space: nowrap;
  pointer-events: auto;
}

.friends-feed-swap-btn:disabled {
  opacity: 0.64;
  cursor: default;
}

.xp-btn.xp-close {
  background: #e24545;
  color: #fff;
  border-color: #a62323;
}

.xp-btn.xp-close:hover {
  background: #c72222;
}

/* SIDE FRIENDS POSTS WINDOW */
.friends-posts-xp-window {
  position: fixed;
  left: 20px;
  top: 100px;
  width: 326px;
  max-width: min(326px, calc(100vw - 40px));
  height: calc(var(--dydoss-viewport-height, 100dvh) - 120px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.24s ease, transform 0.24s ease;
}

.friends-posts-xp-window .xp-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friends-posts-content {
  padding: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transform-origin: top center;
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.88), rgba(224, 237, 252, 0.78));
}

.friends-posts-content.feed-swap-out {
  animation: feed-swap-out 170ms ease forwards;
  pointer-events: none;
}

.friends-posts-content.feed-swap-in {
  animation: feed-swap-in 190ms ease forwards;
}

@keyframes feed-swap-out {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.92);
  }
}

@keyframes feed-swap-in {
  0% {
    opacity: 0;
    transform: scaleY(0.92);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.friends-posts-content .post {
  background: linear-gradient(180deg, #fbfdff 0%, #edf4ff 100%);
  border: 1px solid #c4d8f1;
  box-shadow: 0 8px 18px rgba(24, 60, 109, 0.08);
  padding: 11px;
  margin-bottom: 12px;
  border-radius: 14px;
  font-size: 0.9em;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.friends-posts-content .post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-width: 0;
}

.friends-posts-content .post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.friend-feed-post {
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}

.friend-feed-post:focus-visible {
  outline: 2px solid #0a63d1;
  outline-offset: 1px;
}

.friend-post-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.friend-post-author {
  color: #1a4f9c;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-post-author:hover {
  text-decoration: underline;
}

.friend-post-time {
  font-size: 0.8em;
  color: #667b98;
}

.friend-post-share-btn {
  margin-left: auto;
  flex-shrink: 0;
}

.friend-post-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92em;
  color: #21364f;
  line-height: 1.35;
  word-break: break-word;
  min-width: 0;
}

.friend-post-body > * {
  min-width: 0;
  max-width: 100%;
}

.friend-post-body .dydoss-media-player.is-mode-feed-inline {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  border-radius: 16px;
}

.friend-post-body .dydoss-media-player.is-mode-feed-inline .dydoss-media-player-stage {
  aspect-ratio: 16 / 10;
  min-height: clamp(152px, 20vw, 220px);
  max-height: clamp(210px, 26vw, 250px);
}

.friend-post-body .dydoss-media-player.is-mode-feed-inline .dydoss-media-player-controls {
  padding: 8px 10px 10px;
}

.friend-post-body .dydoss-media-player.is-mode-feed-inline .dydoss-media-player-actions {
  gap: 8px;
}

.friend-post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.friend-post-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.friend-post-like-count {
  display: inline-flex;
  min-width: 18px;
  justify-content: center;
  font-weight: 700;
}

.friend-post-like-btn.liked {
  border-color: #ca6b6b;
  color: #8e1f2f;
  background: linear-gradient(180deg, #fff2f2 0%, #ffdede 100%);
}

.friend-post-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #bfd3ec;
}

.friends-post-text {
  margin: 0;
  white-space: pre-wrap;
}

.friends-posts-empty {
  margin: 0;
  color: #5c728f;
}

.friends-posts-load-status {
  margin: 8px 0 2px;
  font-size: 0.82em;
  color: #4f6685;
}

.friends-posts-load-status[data-state="loading"] {
  color: #24539b;
}

.friends-posts-load-status[data-state="error"] {
  color: #b20000;
}

.friends-posts-load-status[data-state="done"] {
  color: #5b5b5b;
}

.online-users-xp-window {
  position: fixed;
  right: 20px;
  top: 100px;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: calc(var(--dydoss-viewport-height, 100dvh) - 120px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.24s ease, transform 0.24s ease;
}

.online-users-content {
  padding: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.online-users-list-wrap {
  flex: 1 1 48%;
  min-height: 120px;
  overflow-y: auto;
  padding-right: 2px;
}

.global-chat-section {
  flex: 1 1 52%;
  min-height: 180px;
  border-top: 1px solid #c8daf4;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.global-chat-title {
  margin: 0;
  font-size: 0.88em;
  color: #244d88;
  letter-spacing: 0.2px;
}

.global-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #bfd3ec;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbfdff 0%, #f0f5fb 100%);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.global-chat-empty {
  margin: 0;
  color: #5f7698;
  font-size: 0.84em;
}

.global-chat-empty[data-tone="error"] {
  color: #b20000;
}

.global-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}

.global-chat-message.is-own {
  flex-direction: row-reverse;
}

.global-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #a8c1e0;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.global-chat-bubble {
  max-width: calc(100% - 36px);
  background: #fff;
  border: 1px solid #c7d9ef;
  border-radius: 9px;
  padding: 5px 7px;
  position: relative;
}

.global-chat-message.is-own .global-chat-bubble {
  background: #e8f2ff;
  border-color: #9fc0e6;
}

.global-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74em;
  color: #5f7699;
}

.global-chat-sender {
  font-weight: 700;
  color: #1f4f94;
}

.global-chat-message.is-own .global-chat-sender {
  color: #245b8f;
}

.global-chat-time {
  font-size: 0.94em;
}

.global-chat-text {
  margin-top: 2px;
  font-size: 0.82em;
  color: #1f3552;
  line-height: 1.3;
  word-break: break-word;
}

.global-chat-text a {
  color: #1f5fb6;
  word-break: break-word;
}
.global-chat-reply-btn {
  position: absolute;
  top: -10px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #a9c3e3;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #eaf2ff);
  color: #1e4f8d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  padding: 1px 6px 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 2;
}
.global-chat-reply-btn img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}
.global-chat-message.is-own .global-chat-bubble .global-chat-reply-btn {
  right: auto;
  left: 4px;
}
.global-chat-message:hover .global-chat-bubble .global-chat-reply-btn,
.global-chat-message:focus-within .global-chat-bubble .global-chat-reply-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.global-chat-reply-ref {
  width: 100%;
  border: 1px solid #bfd1ea;
  border-left: 3px solid #3c7ac8;
  border-radius: 7px;
  background: linear-gradient(180deg, #f9fcff, #edf4ff);
  padding: 4px 6px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  cursor: pointer;
  color: #1f4e89;
}
.global-chat-reply-ref:hover,
.global-chat-reply-ref:focus-visible {
  background: linear-gradient(180deg, #ffffff, #e7f0ff);
}
.global-chat-reply-ref-sender {
  font-size: 10px;
  font-weight: 700;
}
.global-chat-reply-ref-text {
  font-size: 10px;
  color: #3f6087;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-chat-reply {
  border: 1px solid #c0d4ee;
  border-radius: 9px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.global-chat-reply[hidden] {
  display: none !important;
}
.global-chat-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.global-chat-reply-label {
  color: #1f4f93;
  font-size: 0.74em;
  line-height: 1.2;
}
.global-chat-reply-cancel {
  border: 1px solid #a6c0e1;
  border-radius: 6px;
  background: #fff;
  color: #265a9b;
  font-size: 0.72em;
  font-weight: 700;
  padding: 1px 7px 2px;
  line-height: 1.1;
  cursor: pointer;
}
.global-chat-reply-preview {
  border: 1px solid #c8d9f2;
  border-left: 3px solid #3b79c8;
  border-radius: 6px;
  background: #fff;
  color: #3c5c82;
  font-size: 0.74em;
  line-height: 1.2;
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-chat-message.is-jump-target .global-chat-bubble {
  box-shadow: 0 0 0 2px rgba(63, 135, 223, 0.42), 0 2px 10px rgba(38, 82, 140, 0.2);
}

.global-chat-attachments {
  border: 1px solid #c0d5ee;
  border-radius: 8px;
  background: #f8fbff;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.global-chat-attachments[hidden] {
  display: none !important;
}

.chat-attachment-item {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid #a9c4e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(36, 89, 153, 0.2);
}

.chat-attachment-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-attachment-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(16, 44, 88, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #22508c;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.global-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-chat-attach-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid #9fbde0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.global-chat-attach-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.global-chat-attach-btn:hover {
  background: linear-gradient(180deg, #ffffff, #e7f0ff);
}

.global-chat-attach-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.global-chat-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #94b6dc;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.87em;
  color: #17345a;
  background: #fff;
}

.global-chat-form input:focus {
  border-color: #2f79cb;
  box-shadow: 0 0 0 2px rgba(53, 113, 186, 0.16);
  outline: none;
}

.global-chat-send-btn {
  flex-shrink: 0;
}

.apps-xp-window {
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.apps-panel-content {
  padding: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.friends-posts-xp-window.is-collapsed,
.online-users-xp-window.is-collapsed,
.apps-xp-window.is-collapsed {
  height: 42px !important;
}

.friends-posts-xp-window.is-hidden-desktop,
.online-users-xp-window.is-hidden-desktop {
  display: none !important;
}

.friends-posts-xp-window.is-collapsed .friends-posts-content,
.online-users-xp-window.is-collapsed .online-users-content,
.apps-xp-window.is-collapsed .apps-panel-content {
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

@media (min-width: 901px) {
  .desktop-sidepanel-tab {
    position: fixed;
    top: 100px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 12px;
    font-size: 0.82em;
    line-height: 1;
    letter-spacing: 0.15px;
    box-shadow: 0 6px 14px rgba(17, 48, 95, 0.22);
  }

  .desktop-sidepanel-tab-left {
    left: 0;
    border-radius: 0 10px 10px 0;
  }

  .desktop-sidepanel-tab-right {
    right: 0;
    border-radius: 10px 0 0 10px;
  }

  .apps-xp-window {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }
}

.online-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid #d8e7fb;
}

.online-user-row:last-child {
  border-bottom: none;
}

.online-user-main-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d3f71;
  text-decoration: none;
}

.online-user-main-link:hover .online-user-name {
  text-decoration: underline;
}

.online-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #9cb9dd;
  background: #fff;
}

.online-user-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.online-user-name {
  font-size: 0.95em;
  font-weight: 700;
  color: #1a4f9c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-user-state {
  font-size: 0.82em;
  color: #27864b;
}

.online-state-text {
  color: inherit;
}

.online-app-link {
  color: #1f5fb6;
  text-decoration: none;
  font-weight: 700;
}

.online-app-link:hover {
  text-decoration: underline;
}

.online-user-self {
  color: #5e7595;
  font-size: 0.8em;
  font-weight: 700;
}

.online-users-empty {
  margin: 0;
  color: #5c728f;
}

/* MAIN PROFILE */
.profile-xp-window {
  margin: 16px auto 24px auto;
  max-width: min(1150px, calc(100vw - 40px));
  position: relative;
  z-index: 5;
}

.profile-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px 34px;
}

.profile-section {
  width: 100%;
}

.profile-hero {
  background: #f8faffbb;
  border: 2px solid #3957a7;
  border-radius: 17px;
  box-shadow: 5px 5px 0 #294077;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 22px 26px;
  position: relative;
}

.account-actions-in-hero {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.logout-in-hero {
  margin: 0;
}

.logout-in-hero .logout-btn {
  background: linear-gradient(180deg, #e9e9ef, #b2c8e6 90%);
  border: 2px solid #3957a7;
  border-radius: 50%;
  box-shadow: 2px 2px 0 #b4d4f3;
  color: #123b74;
  font-size: 1.2em;
  padding: 8px 11px;
  cursor: pointer;
}

.edit-profile-btn {
  min-width: 0;
}

.settings-gear-btn {
  min-width: 118px;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.settings-gear-image {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0 !important;
}

.settings-gear-label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.profile-img-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 145px;
}

.profile-img-large {
  width: 140px;
  height: 140px;
  border-radius: 17px;
  border: 3px solid #3957a7;
  object-fit: cover;
  background: #fff;
  box-shadow: 3px 6px 0 #b4d4f3;
  contain: paint;
}

.profile-upload-form {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.xp-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(180deg, #e9e9ef, #b2c8e6 90%);
  border: 2px solid #3957a7;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 0.95em;
  color: #123b74;
  font-weight: bold;
  box-shadow: 2px 2px 0 #b4d4f3;
  transition:
    transform 0.12s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.xp-file-label input[type="file"] {
  display: none;
}

.xp-file-label--icon {
  min-width: 38px;
  width: 38px;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

.xp-file-label--icon .xp-ui-icon {
  width: 15px;
  height: 15px;
  margin-right: 0;
}

.profile-main-info {
  flex: 1;
  min-width: 0;
}

.profile-main-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #1859c7;
}

.online-status {
  color: #39c700;
  font-size: 0.72em;
  margin-left: 10px;
  vertical-align: middle;
}

.online-app-link-inline {
  color: #1bc946;
}

.last-seen {
  margin-left: 8px;
  font-size: 0.58em;
  font-weight: 400;
  color: #6a7890;
  vertical-align: middle;
}

.stats-large {
  font-size: 1.08em;
  margin: 8px 0 18px;
  display: flex;
  gap: 20px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-welcome-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(120, 180, 245, 0.18) 0%, rgba(120, 180, 245, 0) 50%),
    linear-gradient(180deg, #ffffff, #edf6ff);
  border: 1px solid #c5daf4;
  box-shadow: 0 8px 18px rgba(31, 87, 157, 0.1);
}

.profile-welcome-guide[hidden] {
  display: none !important;
}

.profile-welcome-copy {
  min-width: 0;
}

.profile-welcome-copy h2 {
  margin: 0 0 4px;
}

.profile-welcome-copy p {
  margin: 0;
  color: #4f6a8f;
  line-height: 1.45;
}

.profile-welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.profile-mobile-utilities {
  display: none;
}

.profile-mobile-utilities[hidden] {
  display: none !important;
}

.profile-mobile-summary {
  display: none;
}

.profile-mobile-summary-row {
  width: 100%;
  border: 1px solid #b7cbe5;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(230, 239, 251, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(138, 174, 220, 0.5);
  color: #214b83;
  font: inherit;
  font-family: Tahoma, sans-serif;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  position: relative;
  transition:
    transform 0.14s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.profile-mobile-summary-row:hover,
.profile-mobile-summary-row:focus-visible {
  border-color: #97b4db;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 2px 8px rgba(90, 132, 187, 0.16);
}

.profile-mobile-summary-row:active {
  transform: translateY(1px);
  background:
    linear-gradient(180deg, rgba(236, 242, 249, 0.98), rgba(249, 251, 254, 0.94));
}

.profile-mobile-summary-label {
  flex: 0 0 48px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #2d5a95;
}

.profile-mobile-summary-preview,
.profile-mobile-summary-meta {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.8rem;
  line-height: 1.34;
  color: #33557e;
}

.profile-mobile-summary-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-mobile-summary-chevron {
  flex: 0 0 auto;
  color: #5a79a4;
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.profile-mobile-summary-row[aria-expanded="true"] .profile-mobile-summary-chevron {
  transform: rotate(180deg);
}

.profile-mobile-summary-link[aria-expanded="true"] {
  border-color: #9dbde4;
}

.profile-mobile-summary-link[aria-expanded="true"] .profile-mobile-friends-avatars {
  opacity: 0;
  transform: translateY(-2px) scale(0.94);
}

.profile-mobile-friends-avatars {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  transition: opacity 0.18s ease, transform 0.2s ease;
}

.profile-mobile-friends-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(153, 167, 187, 0.92);
  object-fit: cover;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(220, 230, 242, 0.72);
}

.profile-mobile-friends-avatar + .profile-mobile-friends-avatar {
  margin-left: -6px;
}

.profile-mobile-summary-panel {
  display: block;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.18s ease,
    transform 0.18s ease;
}

.profile-mobile-summary-panel[hidden] {
  display: none !important;
}

.profile-mobile-summary-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.profile-mobile-about-copy,
.profile-mobile-about-form {
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #c5d7ee;
  border-radius: 10px;
  background: rgba(246, 250, 255, 0.92);
}

.profile-mobile-about-body {
  color: #325178;
  font-size: 0.8rem;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-mobile-about-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-mobile-about-form[hidden] {
  display: none !important;
}

.profile-mobile-about-textarea {
  min-height: 84px;
}

.profile-mobile-summary-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-mobile-summary-action {
  min-width: 96px;
}

.profile-mobile-about-status {
  font-size: 0.76rem;
  color: #3f6290;
}

.profile-mobile-friends-panel {
  --profile-mobile-friend-stagger-step: 34ms;
}

.profile-mobile-friends-shell {
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #c5d7ee;
  border-radius: 10px;
  background: rgba(246, 250, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-mobile-friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 1px;
}

.profile-mobile-friends-empty {
  margin: 0;
  color: #5c728f;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

.profile-mobile-friend-row {
  transform-origin: top center;
}

.profile-mobile-friends-panel .sidebar-friend-row {
  gap: 10px;
  padding: 8px 9px;
  border-radius: 10px;
}

.profile-mobile-friends-panel .sidebar-friend-main {
  gap: 10px;
  align-items: center;
}

.profile-mobile-friends-panel .sidebar-friend-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(163, 177, 197, 0.86);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(68, 89, 118, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.profile-mobile-friends-panel .sidebar-friend-nickname {
  font-size: 0.9rem;
}

.profile-mobile-friends-panel .sidebar-friend-actions {
  flex-shrink: 0;
}

.profile-mobile-friends-panel .goto-chat-btn,
.profile-mobile-friends-panel .remove-friend-btn-small {
  min-width: 0;
  min-height: 32px;
  width: auto;
  height: auto;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.profile-mobile-friends-panel.is-animating .profile-mobile-friend-row {
  animation: profileMobileFriendRowIn 300ms cubic-bezier(0.22, 0.86, 0.24, 1) both;
  animation-delay: var(--profile-mobile-friend-delay, 0ms);
}

.profile-mobile-friends-panel.is-animating .profile-mobile-friend-row .sidebar-friend-avatar img {
  animation: profileMobileFriendAvatarIn 340ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
  animation-delay: var(--profile-mobile-friend-delay, 0ms);
}

@keyframes profileMobileFriendRowIn {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profileMobileFriendAvatarIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.82);
    box-shadow: 0 0 0 0 rgba(126, 170, 231, 0);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
    box-shadow: 0 0 0 4px rgba(126, 170, 231, 0.14);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(126, 170, 231, 0);
  }
}

.friendship-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.profile-user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.friendship-status {
  margin-top: 8px;
  font-size: 0.92em;
  color: #45628a;
  min-height: 18px;
}

.friendship-actions .add-btn {
  background: linear-gradient(180deg, #e7e7e7 0%, #b8d3fd 100%);
  color: #1556a5;
}

.friendship-actions .cancel-btn {
  background: linear-gradient(180deg, #fff2ef 0%, #ffd7d7 100%);
  color: #a51818;
  border-color: #e29393;
}

/* BIO + FRIENDS */
.profile-bio-friends {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about-me.xp-section,
.friends-list.xp-section,
.img-posts.xp-section,
.guestbook-section.xp-section {
  background: #f8faff;
  border: 2px solid #b3cbe6;
  border-radius: 13px;
  box-shadow: 2px 2px 0 #d2e7fa;
  padding: 20px;
}

.about-me.xp-section {
  flex: 1;
  min-width: 260px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.friends-list.xp-section {
  flex: 0 0 420px;
  width: 420px;
  min-height: 240px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}

.about-me.xp-section h2,
.friends-list.xp-section h2,
.img-posts.xp-section h2,
.guestbook-section h2 {
  font-size: 1.2em;
  color: #204080;
  margin: 0 0 14px;
}

.about-center {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.about-text-display {
  font-size: 1.05em;
  color: #2350a6;
  background: #f3f8ffcc;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  max-width: 100%;
  word-break: break-word;
}

.about-edit-btn {
  background: linear-gradient(180deg, #e9e9ef, #b2c8e6 90%);
  border: 2px solid #3957a7;
  border-radius: 8px;
  color: #1859c7;
  font-size: 0.98em;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.about-form {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.about-form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-textarea {
  width: 100%;
  min-height: 46px;
  font-size: 1em;
  border: 2px solid #b3cbe6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8faff;
  box-shadow: 1px 1px 0 #d2e7fa;
  font-family: inherit;
  display: block;
}

#about-status {
  color: #1859c7;
  margin-left: 6px;
  font-size: 0.95em;
}

.friends-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
  overflow: hidden;
  min-height: 110px;
  max-height: 110px;
}

.friend {
  flex: 1 1 calc((100% - 36px) / 4);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% - 36px) / 4);
  background: #f5faffd9;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 #e0edfa33;
  padding: 9px 4px 8px;
  border: 1px solid #e2ecf9;
  position: relative;
}

.friend img {
  width: 47px;
  height: 47px;
  border-radius: 9px;
  border: 2px solid #428aff;
  background: #fff;
  margin-bottom: 6px;
  object-fit: cover;
}

.friend-nickname {
  display: block;
  font-size: 0.94em;
  font-weight: 600;
  color: #2362c2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.friend-nickname:hover,
.friend-nickname:focus {
  color: #183771;
  text-decoration: underline;
}

.remove-friend-btn {
  background: #fff3f3;
  border: 1px solid #e3a6a6;
  color: #b72b2b;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  font-size: 0.9em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.friend .remove-friend-btn {
  position: absolute;
  top: 4px;
  right: 4px;
}

.remove-friend-btn:hover {
  background: #ffdede;
  border-color: #d97575;
}

.show-more-friends-btn {
  display: block;
  margin: 12px auto 0;
  padding: 5px 12px;
  font-size: 0.95em;
  border-radius: 8px;
  min-width: 120px;
}

.no-friends-msg {
  font-size: 1em;
  color: #8499c1;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* SIDEBAR */
#friends-sidebar-overlay {
  position: fixed;
  z-index: 3999;
  inset: 0;
  background: rgba(36, 65, 120, 0.13);
}

.xp-friends-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 96vw;
  height: var(--dydoss-viewport-height, 100dvh);
  background: linear-gradient(145deg, #eff7ff 72%, #d7ebff 100%);
  box-shadow: -10px 0 34px #7ca8dd4a;
  border-left: 2px solid #98bfe8;
  z-index: 4000;
  display: flex;
  flex-direction: column;
}

.xp-friends-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.1em;
  background: linear-gradient(90deg, #1459c7 80%, #50baff 100%);
  border-bottom: 2px solid #4d8fdb;
  padding: 15px 18px 13px;
}

#close-friends-sidebar {
  background: #ffffff;
  border: 1px solid #1459c7;
  font-size: 1.2em;
  color: #1459c7;
  cursor: pointer;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  line-height: 1;
}

.xp-friends-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-friend-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1.5px solid #d0e1f7;
  background: #ffffff;
  box-shadow: 0 4px 12px #7ca8dd21;
}

.sidebar-friend-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.sidebar-friend-avatar img {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  border: 2px solid #7baeff;
  object-fit: cover;
}

.sidebar-friend-nickname {
  font-size: 1.02em;
  font-weight: 600;
  color: #204080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.remove-friend-btn-small {
  width: auto;
  height: 26px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 0.8em;
  white-space: nowrap;
}

.sidebar-friend-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-chat-btn {
  border: 1.5px solid #3957a7;
}

/* IMAGE POSTS */
.post-composer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #cfe2fb;
  background: linear-gradient(150deg, #f9fcff 0%, #eef6ff 100%);
}

.post-composer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.post-composer-heading {
  margin: 0 0 4px;
  color: #174b86;
  font-size: 1rem;
}

.post-composer-copy {
  margin: 0;
  color: #58739a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.post-composer-textarea {
  min-height: 98px;
}

.post-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-composer-status {
  color: #355f97;
  font-size: 0.9em;
  min-height: 18px;
  margin-left: auto;
}

.post-composer-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.post-composer-preview-item {
  position: relative;
  min-height: 80px;
}

.post-composer-preview-item img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #6f9ad5;
  display: block;
}

.post-composer-preview-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  border: 1.2px solid #c85a5a;
  background: #fff;
  color: #bb2a2a;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  line-height: 1;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-composer-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4f8f;
  font-weight: 700;
  font-size: 0.86rem;
  background: #f5f9ff;
  border: 1px solid #c6dcfb;
  border-radius: 999px;
  padding: 5px 10px;
}

.post-composer-group-toggle input {
  margin: 0;
}

.profile-posts-preview-shell {
  position: relative;
}

.profile-posts-preview-viewport {
  position: relative;
  overflow: visible;
  max-height: none;
  transition: max-height 0.28s ease, box-shadow 0.22s ease;
}

.profile-posts-preview-shell.is-collapsible:not(.is-expanded) .profile-posts-preview-viewport {
  overflow: hidden;
}

.profile-posts-preview-shell.is-collapsible:not(.is-expanded) .profile-posts-preview-viewport {
  box-shadow: inset 0 -10px 22px rgba(185, 210, 241, 0.12);
}

.profile-posts-preview-shell.is-no-anim .profile-posts-preview-viewport,
.profile-posts-preview-shell.is-no-anim .profile-posts-preview-fade,
.profile-posts-preview-shell.is-no-anim .profile-posts-preview-toggle-glyph {
  transition: none !important;
}

.profile-posts-preview-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 102px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(237, 246, 255, 0) 0%, rgba(237, 246, 255, 0.58) 56%, rgba(225, 239, 255, 0.93) 100%);
  transition: opacity 0.22s ease;
}

.profile-posts-preview-shell.is-collapsible:not(.is-expanded) .profile-posts-preview-fade {
  opacity: 1;
}

.profile-posts-preview-controls {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.profile-posts-preview-toggle {
  min-width: 176px;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9px;
  box-shadow: 1px 2px 0 #a8c8ee;
  font-size: 0.92rem;
  line-height: 1.15;
}

.profile-posts-preview-toggle:hover,
.profile-posts-preview-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(93, 154, 236, 0.22), 1px 2px 0 #9ec0e8;
}

.profile-posts-preview-toggle-glyph {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6d96c8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #dceafb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #1a4f8c;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.profile-posts-preview-shell.is-expanded .profile-posts-preview-toggle-glyph {
  background: linear-gradient(180deg, #f8fbff 0%, #d4e5fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(85, 138, 205, 0.1);
}

.profile-posts-preview-toggle-glyph-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.74rem;
  line-height: 1;
  transform: translateY(1px);
}

.profile-posts-preview-toggle-copy {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
}

.img-grid-large,
#user-posts.img-grid-large {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-posts-preview-shell .img-grid-large,
.profile-posts-preview-shell #user-posts.img-grid-large {
  margin-top: 12px;
  padding: 4px 14px 12px;
}

.profile-posts-preview-shell #user-posts .post:nth-child(3n + 1),
.profile-posts-preview-shell .img-grid-large .post:nth-child(3n + 1) {
  transform-origin: left center;
}

.profile-posts-preview-shell #user-posts .post:nth-child(3n),
.profile-posts-preview-shell .img-grid-large .post:nth-child(3n) {
  transform-origin: right center;
}

.upload-progress-wrap {
  margin-top: 10px;
  width: 100%;
  max-width: 360px;
}

.upload-progress-label {
  font-size: 0.9em;
  color: #24539b;
  margin-bottom: 4px;
}

.upload-progress-bar {
  width: 100%;
  height: 14px;
  border: 1px solid #2a5ea8;
  background: #eaf2ff;
  border-radius: 4px;
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #63a0ff, #2f79db);
  transition: width 0.2s ease;
}

#user-posts .post,
.img-grid-large .post {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  line-height: 1.25;
  content-visibility: auto;
  contain-intrinsic-size: 260px 260px;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, box-shadow, filter;
  transition:
    transform 0.24s cubic-bezier(0.2, 0.72, 0.28, 1),
    box-shadow 0.22s cubic-bezier(0.2, 0.72, 0.28, 1),
    filter 0.18s ease;
}

#user-posts .post .dydoss-media-load-shell,
.img-grid-large .post .dydoss-media-load-shell {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

#user-posts .post img,
.img-grid-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#user-posts .post.post-kind-image,
#user-posts .post.post-kind-image_text,
#user-posts .post.post-kind-video,
#user-posts .post.post-kind-video_text,
#user-posts .post.post-kind-gallery,
.img-grid-large .post.post-kind-image,
.img-grid-large .post.post-kind-image_text,
.img-grid-large .post.post-kind-video,
.img-grid-large .post.post-kind-video_text,
.img-grid-large .post.post-kind-gallery {
  line-height: 0;
}

#user-posts .post.post-kind-video,
#user-posts .post.post-kind-video_text,
.img-grid-large .post.post-kind-video,
.img-grid-large .post.post-kind-video_text {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(75, 122, 181, 0.22) 0%, rgba(75, 122, 181, 0) 48%),
    linear-gradient(180deg, #08111d, #04070d);
}

#user-posts .post.post-kind-video .dydoss-media-player,
#user-posts .post.post-kind-video_text .dydoss-media-player,
.img-grid-large .post.post-kind-video .dydoss-media-player,
.img-grid-large .post.post-kind-video_text .dydoss-media-player {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: inherit;
}

#user-posts .post.post-kind-image .dydoss-post-image-shell,
#user-posts .post.post-kind-image_text .dydoss-post-image-shell,
#user-posts .post.post-kind-gallery .dydoss-post-image-shell,
.img-grid-large .post.post-kind-image .dydoss-post-image-shell,
.img-grid-large .post.post-kind-image_text .dydoss-post-image-shell,
.img-grid-large .post.post-kind-gallery .dydoss-post-image-shell {
  width: 100%;
  height: 100%;
}

#user-posts .post.post-kind-video_text .post-caption,
.img-grid-large .post.post-kind-video_text .post-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.44), rgba(9, 14, 24, 0.82));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
}

.post-gallery-preview {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #d9eaff;
}

.post-gallery-cell {
  position: relative;
  overflow: hidden;
}

.post-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 22, 42, 0.56);
}

#user-posts .post.post-kind-text,
.img-grid-large .post.post-kind-text {
  aspect-ratio: auto;
  min-height: 190px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 14px 36px;
  border: 1px solid #d9e9ff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(143, 197, 255, 0.38) 0%, rgba(143, 197, 255, 0) 52%),
    linear-gradient(155deg, #fffdf7 0%, #eef6ff 100%);
}

#user-posts .post.post-kind-text::before,
.img-grid-large .post.post-kind-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 31px, rgba(116, 162, 214, 0.16) 32px);
  background-size: 100% 32px;
  pointer-events: none;
  opacity: 0.65;
}

#user-posts .post.post-kind-text .post-text,
.img-grid-large .post.post-kind-text .post-text {
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  color: #1f3c67;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
}

.post-openable {
  cursor: pointer;
}

.post-replies-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #154f8e;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #c5dcff;
  box-shadow: 0 1px 5px rgba(29, 72, 126, 0.12);
}

.post-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 11px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 20, 34, 0), rgba(10, 20, 34, 0.86));
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
}

.friend-post-body .friends-post-image {
  width: 100%;
  object-fit: cover;
}

#user-posts .post:hover,
.img-grid-large .post:hover {
  transform: translate3d(0, -2px, 0) scale(1.009);
  box-shadow: 0 10px 20px rgba(41, 79, 132, 0.145);
  filter: brightness(1.014) saturate(1.018);
  z-index: 2;
}

.post.deep-link-highlight {
  outline: 3px solid #2f79db;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(47, 121, 219, 0.22);
}

.delete-post {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 5;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(180deg, #fff7f7 0%, #ffdede 100%);
  border: 1px solid #c56a6a;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 1px 3px rgba(0, 0, 0, 0.18);
  color: #7a1717;
  font-size: 17px;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  display: none;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

#user-posts .post:hover .delete-post,
.img-grid-large .post:hover .delete-post {
  display: inline-flex;
}

.delete-post:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 2px 6px rgba(0, 0, 0, 0.22);
}

.delete-post:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.delete-post:focus-visible {
  outline: 2px solid #2b6ec7;
  outline-offset: 1px;
}

/* GUESTBOOK */
.guestbook-form {
  width: 100%;
}

.guestbook-form-actions {
  margin-top: 8px;
  text-align: center;
}

.guestbook-textarea {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  max-height: calc(99 * 1.15em);
  max-width: 100%;
  background: #fafdff;
  border: 2px solid #222;
  border-radius: 10px;
  box-shadow: none;
  color: #222;
  font-size: 1em;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border 0.18s;
}

.guestbook-textarea:focus {
  border-color: #1859c7;
  background: #fff;
}

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.guestbook-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 12px 9px;
  border-bottom: 1px solid #e8ecf7;
  background: #fafdff;
  border-radius: 8px;
}

.guestbook-entry .avatar,
.guestbook-entry img.avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #ddefff;
  flex-shrink: 0;
  border: 1px solid #bed2e6;
}

.guestbook-entry .guestbook-username {
  color: #1976d2;
  font-weight: bold;
  text-decoration: none;
}

.guestbook-entry .time {
  color: #8a97a8;
  font-size: 0.89em;
  margin-left: 8px;
}

.guestbook-entry p {
  color: #273646;
  font-size: 1em;
  word-break: break-word;
  margin: 2px 0 0;
}

/* POPUP */
#image-popup {
  position: fixed;
  inset: 0;
  background: rgba(24, 48, 88, 0.74);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#image-popup[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

#popup-overlay {
  position: absolute;
  inset: 0;
}

#popup-content {
  min-width: min(340px, 96vw);
  max-width: min(1100px, 96vw);
  max-height: calc(var(--dydoss-viewport-height, 92vh) - 16px);
  width: min(1100px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(120% 140% at 100% 0%, #d8ecff 0%, rgba(216, 236, 255, 0) 52%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border-radius: 16px;
  box-shadow: 0 16px 46px rgba(21, 54, 105, 0.34), 0 0 0 2.5px #fff;
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
}

#popup-extra {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-top: 6px;
}

#close-post-popup-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 20;
  font-size: 1.9em;
  background: #fff;
  border-radius: 10px;
  padding: 2px 11px 4px 11px;
  border: 2px solid #1859c7;
  box-shadow: 0 2px 12px rgba(24, 75, 140, 0.2);
  cursor: pointer;
}

.xp-popup-flex-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.popup-left-side {
  flex: 1 1 520px;
  min-width: 280px;
  max-width: none;
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid #d5e8ff;
  padding: 12px 12px 10px;
  background: linear-gradient(130deg, #fbfdff 30%, #ebf4ff 100%);
  border-radius: 14px;
}

.popup-main-img {
  width: 100%;
  max-width: min(650px, 100%);
  min-width: 0;
  max-height: 62vh;
  aspect-ratio: auto;
  align-self: center;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid #b2d0f8;
  margin-bottom: 12px;
  background: #fbfeff;
}

.dydoss-zoom-viewport.is-post-popup-image-zoom {
  width: 100%;
  max-width: min(650px, 100%);
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #fbfeff;
  border: 2px solid #b2d0f8;
}

.dydoss-zoom-viewport.is-post-popup-image-zoom .popup-main-img,
.dydoss-zoom-viewport.is-post-popup-image-zoom .dydoss-media-load-shell {
  margin-bottom: 0;
  border: 0;
  border-radius: 12px;
}

.dydoss-zoom-viewport.is-post-popup-image-zoom .dydoss-media-load-shell {
  background: #fbfeff;
}

.post-popup-layout {
  width: 100%;
}

.popup-post-main {
  gap: 8px;
}

.popup-post-viewport {
  width: 100%;
  max-width: min(650px, 100%);
  margin: 0 auto;
}

.popup-gallery-block {
  width: 100%;
  max-width: min(650px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-gallery-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
}

.popup-gallery-thumb {
  border: 1.5px solid #b9d3f5;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.popup-gallery-thumb.active {
  border-color: #2d74cf;
  box-shadow: 0 0 0 2px rgba(45, 116, 207, 0.22);
}

.popup-gallery-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.popup-post-viewport-text {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.popup-text-card {
  width: 100%;
  min-height: 260px;
  border-radius: 14px;
  border: 1px solid #bfd8f8;
  background:
    radial-gradient(130% 85% at 100% 0%, rgba(102, 176, 255, 0.27) 0%, rgba(102, 176, 255, 0) 46%),
    linear-gradient(165deg, #fffdf8 0%, #eef6ff 100%);
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 14px rgba(38, 83, 141, 0.14);
  padding: 18px 16px;
}

.popup-text-card-body {
  margin: 0;
  color: #1e3b66;
  font-size: 1.03rem;
  line-height: 1.56;
  white-space: pre-wrap;
  word-break: break-word;
}

.popup-post-caption {
  margin: 2px auto 0;
  width: 100%;
  max-width: min(650px, 100%);
  color: #2a456f;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  border: 1px solid #d4e6ff;
  border-radius: 10px;
  padding: 9px 11px;
}

.popup-post-actions {
  margin-top: 2px;
}

.popup-left-side .popup-photo-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.popup-comment-form {
  width: 100%;
  max-width: min(650px, 100%);
  margin: 0 auto 8px;
  display: flex;
  gap: 8px;
}

.popup-comment-form input[type="text"] {
  border-radius: 7px;
  border: 1.5px solid #b2d0f8;
  padding: 8px 10px;
  font-size: 1.04em;
  background: #fff;
  flex: 1;
}

.popup-comment-locked {
  width: 100%;
  max-width: min(650px, 100%);
  margin: 0 auto 8px;
  color: #58749a;
  font-size: 0.9rem;
  background: #f3f8ff;
  border: 1px dashed #bfd6f3;
  border-radius: 8px;
  padding: 8px 10px;
}

.xp-btn.mini.like-btn {
  min-width: 98px;
  padding: 7px 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, box-shadow .16s ease, filter .16s ease;
}

.xp-btn.mini.like-btn .like-heart,
.xp-btn.mini.like-btn .like-heart-icon {
  margin-right: 2px;
  transition: transform .2s ease, filter .2s ease, color .2s ease;
}

.xp-btn.mini.like-btn.liked .like-heart {
  color: #e74c3c;
  transform: scale(1.15);
  filter: drop-shadow(0 0 2px rgba(231, 76, 60, .45));
}

.xp-btn.mini.like-btn.liked .like-heart-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 2px rgba(231, 76, 60, .45)) saturate(1.12);
}

.xp-btn.mini.like-btn .like-count-badge {
  min-width: 20px;
  text-align: right;
  font-weight: 700;
  color: #19447e;
  transition: transform .2s ease, color .2s ease;
}

.xp-btn.mini.like-btn.liked .like-count-badge {
  color: #c73e3e;
}

.xp-btn.mini.like-btn.like-press {
  transform: translateY(1px) scale(.98);
}

.xp-btn.mini.like-btn.like-pop {
  animation: xpLikePop .34s cubic-bezier(.22,.8,.25,1);
}

.xp-btn.mini.like-btn.like-unpop {
  animation: xpLikeUnpop .28s ease;
}

.xp-btn.mini.like-btn .like-count-badge.count-bump {
  animation: xpLikeCountBump .38s ease;
}

@keyframes xpLikePop {
  0% { transform: scale(.95); filter: brightness(.98); }
  38% { transform: scale(1.06); filter: brightness(1.08); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes xpLikeUnpop {
  0% { transform: scale(.98); }
  55% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes xpLikeCountBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.popup-comments-side {
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
}

.popup-replies-side {
  align-self: stretch;
}

.popup-comments-window {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.popup-comments-titlebar {
  justify-content: space-between;
}

.popup-replies-count {
  margin-left: auto;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2px 7px;
  border-radius: 999px;
}

.xp-popup-window {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #f3f2ee;
  border: 2px solid #1859c7;
  border-radius: 10px;
  box-shadow: 4px 8px 24px #19366555, 0 0 0 2px #fff;
  overflow: hidden;
}

.xp-popup-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 42%, #8fb1de 42% 48%, transparent 48% 56%, #8fb1de 56% 62%, transparent 62% 100%);
  z-index: 4;
  user-select: none;
  touch-action: none;
}

.xp-popup-titlebar {
  background: linear-gradient(90deg, #1459c7 80%, #50baff 100%);
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #144999;
}

.xp-popup-titlebar .xp-popup-close {
  margin-left: auto;
  background: #fff;
  color: #1859c7;
  border: 1.5px solid #1859c7;
  border-radius: 5px;
  font-size: 1.1em;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.xp-popup-content,
.popup-comments {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
}

.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e7f0fb;
  position: relative;
}

.popup-comments-empty {
  color: #6a7f9d;
  margin: 4px 0;
  font-size: 0.93rem;
}

.comment-avatar-side {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid #bed2e6;
  flex-shrink: 0;
}

.comment-main-content {
  flex: 1;
  min-width: 0;
  background: #f7faff;
  border-radius: 10px;
  padding: 7px 13px;
}

.reply-row {
  padding-left: 4px;
}

.reply-row::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #bdd7f8, rgba(189, 215, 248, 0.15));
}

.reply-bubble {
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
  border: 1px solid #d2e2f8;
  box-shadow: 0 2px 8px rgba(29, 68, 121, 0.08);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.comment-time {
  color: #6f87a6;
  font-size: 0.77rem;
}

.comment-user {
  color: #1976d2;
  font-weight: bold;
  text-decoration: none;
}

.comment-user:hover {
  text-decoration: underline;
}

.comment-text {
  color: #273646;
  font-size: 1em;
  word-break: break-word;
  line-height: 1.35;
}

.delete-comment-btn,
.delete-btn {
  background: #fff;
  border: 1.3px solid #edb6b6;
  color: #d63d3d;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 1.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-comment-btn {
  position: absolute;
  top: 11px;
  right: 12px;
}

/* NOTIFICATIONS */
.notification-popup {
  min-width: 320px;
  max-width: 370px;
  box-shadow: 0 4px 34px #184b8c33, 0 0 0 2.5px #fff;
  border-radius: 12px;
  overflow: hidden;
  right: 36px;
  top: 64px;
}

.news-popup {
  min-width: 360px;
  max-width: 460px;
}

.chat-popup {
  min-width: 390px;
  max-width: 500px;
}

.chat-popup-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: min(620px, calc(var(--dydoss-viewport-height, 100dvh) - 132px));
  max-height: min(620px, calc(var(--dydoss-viewport-height, 100dvh) - 132px));
  overflow: hidden;
}

.chat-popup-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ecf3ff;
  flex: 0 0 auto;
}

.chat-popup-user-row .notification-username {
  text-decoration: none;
  font-weight: 700;
}

.chat-popup-messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-anchor: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}

.chat-popup-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  min-width: 0;
}

.chat-popup-msg.mine {
  align-items: flex-end;
}

.chat-popup-msg.their {
  align-items: flex-start;
}

.chat-popup-msg-text {
  background: #f0f6ff;
  border: 1px solid #d5e6fb;
  border-radius: 9px;
  padding: 5px 7px;
  max-width: 100%;
  color: #1c3657;
  word-break: break-word;
  position: relative;
  font-size: 0.9em;
  min-width: 0;
}

.chat-popup-msg.mine .chat-popup-msg-text {
  background: #e9f7e8;
  border-color: #c9e7c8;
}
.chat-popup-msg-text.has-state {
  padding-bottom: 19px;
}

.chat-popup-msg-text.has-rich-content.has-state {
  padding-bottom: 30px;
}

.chat-popup-msg-text.has-rich-content {
  padding-top: 26px;
}
.chat-popup-msg-state {
  position: absolute;
  right: 7px;
  bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.chat-popup-msg-state[data-state="read"] {
  color: #2f8c45;
}
.chat-popup-msg-state[data-state="sent"] {
  color: #6a7f9d;
}

.chat-popup-msg-time {
  color: #6a7f9d;
  font-size: 0.75em;
}
.chat-popup-reply-btn {
  position: absolute;
  top: -9px;
  right: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #a9c3e3;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #eaf2ff);
  color: #1f4f8f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  padding: 1px 6px 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.chat-popup-reply-btn img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}
.chat-popup-msg.mine .chat-popup-msg-text .chat-popup-reply-btn {
  right: auto;
  left: 3px;
}

.chat-popup-msg-text.has-rich-content .chat-popup-reply-btn {
  top: 4px;
  z-index: 4;
}
.chat-popup-msg:hover .chat-popup-msg-text .chat-popup-reply-btn,
.chat-popup-msg:focus-within .chat-popup-msg-text .chat-popup-reply-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.chat-popup-reply-ref {
  width: 100%;
  border: 1px solid #bfd1ea;
  border-left: 3px solid #3b79c8;
  border-radius: 7px;
  background: linear-gradient(180deg, #f9fcff, #edf4ff);
  padding: 3px 6px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1e4d88;
  text-align: left;
  cursor: pointer;
}
.chat-popup-reply-ref:hover,
.chat-popup-reply-ref:focus-visible {
  background: linear-gradient(180deg, #ffffff, #e7f0ff);
}
.chat-popup-reply-ref-sender {
  font-size: 10px;
  font-weight: 700;
}
.chat-popup-reply-ref-text {
  font-size: 10px;
  color: #3c5d84;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-popup-reply-box {
  border: 1px solid #c0d4ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
}
.chat-popup-reply-box[hidden] {
  display: none !important;
}
.chat-popup-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.chat-popup-reply-label {
  color: #1f4f92;
  font-size: 0.74em;
}
.chat-popup-reply-cancel {
  border: 1px solid #a6c0e1;
  border-radius: 6px;
  background: #fff;
  color: #265a9b;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.1;
  padding: 1px 7px 2px;
  cursor: pointer;
}
.chat-popup-reply-preview {
  border: 1px solid #c8d9f2;
  border-left: 3px solid #3b79c8;
  border-radius: 6px;
  background: #fff;
  color: #3c5c82;
  font-size: 0.74em;
  line-height: 1.2;
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-popup-msg.is-jump-target .chat-popup-msg-text {
  box-shadow: 0 0 0 2px rgba(63, 135, 223, 0.4), 0 2px 8px rgba(38, 82, 140, 0.2);
}

.chat-popup-attachments {
  border: 1px solid #c0d5ee;
  border-radius: 8px;
  background: #f8fbff;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.chat-popup-attachments[hidden] {
  display: none !important;
}

.chat-popup-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.chat-popup-attach-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid #9fbde0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.chat-popup-attach-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.chat-popup-attach-btn:hover {
  background: linear-gradient(180deg, #ffffff, #e7f0ff);
}

.chat-popup-attach-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.chat-popup-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #b6cfee;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 0.92em;
}

.chat-popup-open-page {
  color: #1c5fa8;
  font-size: 0.84em;
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}

.chat-popup-open-page:hover {
  text-decoration: underline;
}

.online-chat-btn {
  flex-shrink: 0;
}

.share-post-popup {
  min-width: 430px;
  max-width: 620px;
}

.share-post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.friends-popup {
  min-width: 430px;
  max-width: 620px;
}

.friends-popup-content {
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-popup-row {
  padding: 10px 12px;
  border-bottom: 1px solid #ecf3ff;
}

.news-popup-row:last-child {
  border-bottom: none;
}

.news-popup-meta {
  font-size: 0.78em;
  color: #5f7897;
  margin-bottom: 4px;
}

.news-popup-text {
  color: #1f3652;
  font-size: 0.95em;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.news-empty {
  padding: 10px 12px;
  color: #5f7897;
}

.edit-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
}

.edit-profile-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 48, 88, 0.5);
}

.edit-profile-window {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  margin: 86px auto 0;
}

.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.edit-profile-form label {
  color: #204080;
  font-size: 0.92em;
  font-weight: 700;
}

.profile-settings-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border: 1px solid #c6d7ef;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(234,244,255,0.9));
}

.profile-settings-section-profile {
  min-height: 100%;
}

.profile-settings-heading {
  margin: 0;
  color: #1d4e8d;
  font-size: 1.02rem;
}

.profile-settings-copy {
  margin: -2px 0 2px;
  color: #587399;
  font-size: 0.86rem;
  line-height: 1.4;
}

.profile-settings-save-actions {
  margin-top: 2px;
}

.profile-settings-section-pwa {
  gap: 10px;
}

.profile-settings-section-account {
  grid-column: 2;
}

.edit-profile-input {
  min-height: 40px;
  resize: none;
}

.edit-profile-file-label {
  width: fit-content;
}

.edit-profile-avatar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-logout-form {
  margin-top: auto;
}

.settings-logout-btn {
  width: fit-content;
  min-width: 148px;
  gap: 8px;
}

.profile-settings-footer {
  padding-top: 2px;
  border-top: 1px solid rgba(172, 196, 228, 0.6);
}

.notification-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 7px;
  border-bottom: 1px solid #ecf3ff;
}

.notification-row:last-child {
  border-bottom: none;
}

.notification-avatar {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  background: #ddefff;
  border: 1px solid #bed2e6;
}

.notification-username {
  flex: 1;
  color: #1859c7;
  font-size: 1.02em;
}

.goto-chat-btn {
  background: #e9e9ef;
  border: 1.5px solid #3957a7;
  border-radius: 7px;
  color: #1859c7;
  font-size: 0.92em;
  padding: 4px 10px;
  cursor: pointer;
}

.chat-with-dot {
  position: relative;
  padding-right: 18px;
}

.chat-unread-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE */
@media (min-width: 901px) and (max-width: 1279px) {
  .friends-posts-swap-row {
    left: 16px;
    width: 220px;
    max-width: 220px;
  }

  .friends-posts-xp-window {
    left: 16px;
    width: 220px;
    max-width: 220px;
  }

  .online-users-xp-window {
    right: 16px;
    width: 220px;
    max-width: 220px;
  }

  .profile-xp-window {
    max-width: calc(100vw - 500px);
    margin-top: 16px;
  }

  .profile-main {
    max-width: 100%;
    padding: 20px 18px 30px;
  }
}

@media (min-width: 1280px) and (max-width: 1700px) {
  .friends-posts-swap-row {
    width: 286px;
    max-width: 286px;
  }

  .friends-posts-xp-window {
    width: 286px;
    max-width: 286px;
  }

  .online-users-xp-window {
    width: 282px;
    max-width: 282px;
  }

  .profile-xp-window {
    max-width: min(760px, calc(100vw - 640px));
    margin-top: 16px;
  }

  .profile-main {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .profile-main {
    padding: 14px 10px 24px;
    gap: 14px;
  }

  .edit-profile-window {
    width: min(92vw, 700px);
    margin-top: 68px;
  }

  .profile-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-settings-section-account {
    grid-column: auto;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-bio-friends {
    flex-direction: column;
    gap: 14px;
  }

  .about-me.xp-section {
    max-width: 100%;
  }

  .friends-list.xp-section {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }

  .friends-grid {
    max-height: none;
  }

  .img-grid-large,
  #user-posts.img-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .profile-posts-preview-viewport {
    overflow: visible !important;
    max-height: none !important;
    box-shadow: none !important;
  }

  .profile-posts-preview-shell .img-grid-large,
  .profile-posts-preview-shell #user-posts.img-grid-large {
    margin-top: 16px;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .profile-posts-preview-fade {
    display: none !important;
  }

  .profile-posts-preview-controls {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-posts-preview-viewport,
  .profile-posts-preview-fade,
  .profile-posts-preview-toggle-glyph,
  .profile-mobile-summary-chevron,
  .profile-mobile-summary-panel {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 700px) {
  body {
    --dydoss-social-mobile-nav-height: calc(112px + env(safe-area-inset-bottom, 0px));
    --social-mobile-nav-height: var(--dydoss-social-mobile-nav-height);
    padding-top: max(6px, env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--social-mobile-nav-height) + 8px);
  }

  .xp-header.xp-header-compact {
    top: auto;
    bottom: 0;
    height: var(--social-mobile-nav-height);
    min-height: var(--social-mobile-nav-height);
    z-index: 2065;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    flex-wrap: nowrap;
    align-items: stretch;
    row-gap: 0;
    border-top: 3px solid #3957a7;
    border-bottom: 0;
    box-shadow: 0 -2px 14px #19366577;
  }

  .xp-header-logo-link,
  .xp-header-title {
    display: none;
  }

  .xp-header-logo {
    height: 24px;
    margin-right: 0;
  }

  .edit-profile-modal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(6px, calc(6px + var(--dydoss-safe-top, 0px))) 5px calc(6px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .xp-header-right {
    width: 100%;
    height: 100%;
    margin-left: 0;
    min-width: 0;
    gap: 5px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
  }

  .xp-header-nav {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .xp-header-utilities {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn,
  .xp-header.xp-header-compact .xp-header-utilities .header-utility-btn,
  .xp-header.xp-header-compact .xp-header-utilities .notification-btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 100%;
    padding: 5px 2px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.66rem;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    gap: 3px;
    box-shadow: 1px 1px 0 #9ec3ea;
    border-radius: 10px;
    letter-spacing: 0.1px;
    position: relative;
    overflow: visible;
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn .xp-ui-icon--header {
    display: none;
  }

  .xp-header.xp-header-compact .xp-header-utilities .header-utility-btn .xp-ui-icon--header,
  .xp-header.xp-header-compact .xp-header-utilities .notification-btn .xp-ui-icon--btn {
    width: 16px;
    height: 16px;
    margin: 0;
  }

  .xp-header.xp-header-compact .xp-header-utilities .header-utility-btn {
    padding-inline: 2px;
    font-size: 0.58rem;
    white-space: normal;
    line-height: 1;
  }

  .xp-header.xp-header-compact .xp-header-utilities .notification-btn {
    border: 2px solid #3957a7;
    background: linear-gradient(180deg, #e9e9ef, #b2c8e6 90%);
    color: #123b74;
    font-size: 0;
    padding-inline: 2px;
    position: relative;
  }

  .xp-header.xp-header-compact .xp-header-utilities .notification-btn::after {
    content: attr(data-mobile-label);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    white-space: normal;
    text-align: center;
    display: block;
    max-width: 100%;
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn.has-unread::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d62f2f;
    box-shadow: 0 0 0 2px #f5fbff;
  }

  .header-panel-btn {
    display: flex;
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: 0 0 auto;
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn[href="/profile"]::before {
    background-image: url("/img/Windows%20XP%20Icons/User%20Accounts.png");
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn[href="/chat"]::before {
    background-image: url("/img/Windows%20XP%20Icons/MSN%20Messenger.png");
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn[href="/friends"]::before {
    background-image: url("/img/Windows%20XP%20Icons/Search%20for%20people.png");
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn[href="/users"]::before {
    background-image: url("/img/Windows%20XP%20Icons/My%20Network%20Places.png");
  }

  .back-profile-link {
    font-size: 0.82em;
    padding: 3px 8px;
    margin-right: 6px;
  }

  .friends-posts-xp-window,
  .online-users-xp-window,
  .profile-xp-window {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-img-large {
    width: 82px;
    height: 82px;
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 2px 3px 0 #b4d4f3;
  }

  .profile-xp-window {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    margin: 4px auto 8px;
    border-radius: 11px;
    box-shadow: 0 6px 16px rgba(25, 54, 101, 0.22), 0 0 0 1px #fff;
  }

  .profile-main {
    padding: 8px 6px 14px;
    gap: 8px;
  }

  .profile-hero,
  .about-me.xp-section,
  .friends-list.xp-section,
  .img-posts.xp-section,
  .guestbook-section.xp-section,
  .profile-welcome-guide {
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .img-posts.xp-section {
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .profile-welcome-guide {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .profile-welcome-copy {
    width: 100%;
  }

  .profile-welcome-actions {
    width: 100%;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
  }

  .profile-welcome-actions .xp-btn {
    min-height: 44px;
    flex: 1 1 150px;
  }

  .profile-mobile-utilities {
    display: none !important;
  }

  .profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
  }

  .profile-img-container {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
    align-items: flex-start;
  }

  .profile-main-info {
    grid-column: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  body[data-social-page="profile"] .profile-main-info {
    padding-right: 44px;
  }

  .profile-main-info h1 {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 1.18rem;
    line-height: 1.08;
  }

  .online-status {
    margin-left: 0;
    padding: 2px 6px;
    border: 1px solid rgba(76, 111, 176, 0.2);
    border-radius: 999px;
    background: rgba(237, 246, 255, 0.92);
    font-size: 0.54em;
    font-weight: 700;
    line-height: 1;
  }

  .last-seen {
    flex-basis: 100%;
    margin-left: 0;
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .stats-large {
    margin: 0;
    gap: 10px;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .stats-large span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .hero-actions {
    gap: 6px;
  }

  body[data-social-page="profile"] .hero-actions {
    display: none;
  }

  .account-actions-in-hero {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .settings-gear-btn {
    min-width: 38px;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
  }

  .settings-gear-label {
    display: none;
  }

  .settings-gear-image {
    width: 18px;
    height: 18px;
  }

  .profile-mobile-summary {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 6px;
    margin-top: 1px;
  }

  .profile-mobile-summary-label {
    flex-basis: 44px;
    font-size: 0.66rem;
  }

  .profile-mobile-summary-preview,
  .profile-mobile-summary-meta {
    font-size: 0.76rem;
  }

  .profile-mobile-summary-panel {
    margin-top: -2px;
  }

  .profile-mobile-summary-row {
    padding: 7px 9px;
  }

  .profile-mobile-friends-shell {
    margin-top: 4px;
    padding: 8px 9px;
  }

  .profile-mobile-friends-list {
    gap: 6px;
    max-height: min(48vh, 360px);
  }

  .profile-mobile-friends-panel .sidebar-friend-row {
    gap: 8px;
    padding: 7px 8px;
  }

  .profile-mobile-friends-panel .sidebar-friend-avatar img {
    width: 31px;
    height: 31px;
  }

  .profile-mobile-friends-panel .sidebar-friend-nickname {
    font-size: 0.82rem;
  }

  .profile-bio-friends {
    display: none !important;
  }

  .img-grid-large,
  #user-posts.img-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .profile-posts-preview-shell .img-grid-large,
  .profile-posts-preview-shell #user-posts.img-grid-large {
    margin-top: 10px;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .profile-posts-preview-shell.is-mobile-preview .profile-posts-preview-viewport {
    transition: max-height 0.24s ease, box-shadow 0.18s ease;
  }

  .profile-posts-preview-shell.is-mobile-preview .profile-posts-preview-fade {
    height: 62px;
    background:
      linear-gradient(180deg, rgba(240, 247, 255, 0) 0%, rgba(240, 247, 255, 0.76) 58%, rgba(228, 240, 255, 0.98) 100%);
  }

  .profile-posts-preview-shell.is-mobile-preview .profile-posts-preview-controls {
    margin-top: 5px;
  }

  .profile-posts-preview-shell.is-mobile-preview .profile-posts-preview-toggle {
    min-width: 148px;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .profile-posts-preview-shell.is-mobile-preview .profile-posts-preview-toggle-glyph {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .profile-posts-preview-shell.is-mobile-preview .profile-posts-preview-toggle-glyph-arrow {
    font-size: 0.64rem;
  }

  .profile-posts-preview-shell.is-mobile-preview .profile-posts-preview-toggle-copy {
    min-height: 16px;
  }

  .about-center {
    flex-direction: column;
    align-items: stretch;
  }

  #popup-content,
  .xp-popup-flex-row {
    width: 98vw;
    max-width: 98vw;
    min-width: 0;
  }

  .popup-left-side,
  .popup-comments-side {
    min-width: 0;
    max-width: 100%;
    flex-basis: auto;
  }

  .popup-left-side {
    border-right: none;
    border-bottom: 1px solid #ddefff;
  }

  .chat-popup {
    width: 96vw;
    min-width: 0;
    max-width: 96vw;
  }

  .share-post-popup,
  .friends-popup {
    width: 96vw;
    min-width: 0;
    max-width: 96vw;
  }

  .xp-friends-sidebar {
    width: 97vw;
  }

  .post-composer-form {
    gap: 5px;
    margin-bottom: 6px;
    padding: 7px 8px;
    border-radius: 9px;
  }

  .post-composer-heading {
    font-size: 0.84rem;
    margin-bottom: 0;
  }

  .post-composer-copy {
    display: none;
  }

  .post-composer-textarea {
    min-height: 72px;
  }

  .post-composer-actions {
    gap: 4px;
    align-items: center;
  }

  .post-composer-status {
    width: 100%;
    margin-left: 0;
    min-height: 0;
    font-size: 0.7rem;
  }

  .post-composer-preview {
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  }

  .post-composer-preview-item {
    min-height: 68px;
  }

  .post-composer-preview-item img {
    height: 68px;
  }

  .about-textarea,
  .guestbook-textarea {
    padding: 9px 10px;
    font-size: 16px;
  }

  .guestbook-textarea {
    min-height: 64px;
  }

  .guestbook-form-actions {
    margin-top: 6px;
  }

  .img-posts.xp-section h2,
  .guestbook-section h2 {
    margin-bottom: 6px;
    font-size: 0.94rem;
  }

  .img-posts.xp-section {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #user-posts .post,
  .img-grid-large .post {
    border-radius: 10px;
  }

  #user-posts .post.post-kind-text,
  .img-grid-large .post.post-kind-text {
    height: 164px;
    min-height: 164px;
    padding: 10px 10px 34px;
    border-radius: 10px;
  }

  #user-posts .post.post-kind-text::before,
  .img-grid-large .post.post-kind-text::before {
    background-image: linear-gradient(transparent 23px, rgba(116, 162, 214, 0.14) 24px);
    background-size: 100% 24px;
    opacity: 0.56;
  }

  #user-posts .post.post-kind-text::after,
  .img-grid-large .post.post-kind-text::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 28px;
    height: 26px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0), rgba(247, 251, 255, 0.96));
    z-index: 2;
  }

  #user-posts .post.post-kind-text .post-text,
  .img-grid-large .post.post-kind-text .post-text {
    font-size: 0.78rem;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #user-posts .post.post-kind-image_text .post-caption,
  #user-posts .post.post-kind-video_text .post-caption,
  .img-grid-large .post.post-kind-image_text .post-caption,
  .img-grid-large .post.post-kind-video_text .post-caption,
  .img-grid-large .post.post-kind-gallery .post-caption,
  #user-posts .post.post-kind-gallery .post-caption {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 6px 7px;
    border-radius: 8px;
    font-size: 0.67rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .post-replies-pill {
    right: 7px;
    bottom: 7px;
    z-index: 4;
    padding: 3px 7px;
    font-size: 0.66rem;
  }

  #dm-btn,
  .friendship-actions .xp-btn {
    justify-content: center;
    min-height: 38px;
    border-radius: 9px;
    font-size: 0.74rem;
    padding: 5px 10px;
  }

  #dm-btn {
    margin-top: 0 !important;
    width: 100%;
  }

  body[data-social-page="user"] #dm-btn {
    width: auto;
    align-self: flex-start;
    min-width: 0;
    margin-top: 0 !important;
  }

  .friendship-actions {
    width: 100%;
    gap: 6px;
    margin-top: 0;
  }

  .friendship-actions .xp-btn {
    flex: 1 1 0;
  }

  body[data-social-page="user"] .friendship-actions {
    width: auto;
    justify-content: flex-start;
    flex: 0 1 auto;
  }

  body[data-social-page="user"] .friendship-actions .xp-btn {
    flex: 0 1 auto;
    min-width: 0;
  }

  body[data-social-page="user"] .profile-user-actions {
    gap: 4px;
    align-items: stretch;
  }

  body[data-social-page="user"] .profile-user-actions #dm-btn,
  body[data-social-page="user"] .profile-user-actions .friendship-actions {
    flex: 0 1 auto;
  }

  .friendship-status {
    margin-top: 2px;
    min-height: 0;
    font-size: 0.73rem;
    line-height: 1.25;
  }

  .edit-profile-window {
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px);
    max-height: calc(var(--dydoss-viewport-height, 100dvh) - max(12px, calc(12px + var(--dydoss-safe-top, 0px))) - env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }

  .profile-settings-section {
    padding: 14px;
  }

  .edit-profile-window .xp-popup-titlebar {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .edit-profile-form {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(var(--dydoss-viewport-height, 100dvh) - 64px);
    overflow-y: auto;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .profile-settings-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(243, 248, 255, 0.92), rgba(243, 248, 255, 1));
    flex-wrap: wrap;
    gap: 8px;
  }

  .settings-logout-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .xp-header.xp-header-compact {
    padding: env(safe-area-inset-top, 0px) 4px 4px;
  }

  .xp-header.xp-header-compact .xp-header-nav .header-nav-btn {
    font-size: 0.62rem;
    padding: 5px 2px 4px;
  }

  .xp-header.xp-header-compact .xp-header-utilities {
    gap: 3px;
  }

  .xp-header.xp-header-compact .xp-header-utilities .header-utility-btn,
  .xp-header.xp-header-compact .xp-header-utilities .notification-btn {
    min-height: 42px;
    font-size: 0.54rem;
    padding: 4px 1px;
  }
}

@media (max-width: 359px) {
  .xp-header.xp-header-compact .xp-header-utilities .header-utility-btn,
  .xp-header.xp-header-compact .xp-header-utilities .notification-btn {
    font-size: 0.51rem;
  }
}

/* ACCESSIBILITY + TOUCH */
:where(
  button,
  a,
  input,
  textarea,
  select,
  [role="button"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 2px solid #0a63d1;
  outline-offset: 2px;
}

.mobile-side-tab {
  display: none;
}

  .mobile-sidepanel-overlay {
    display: none;
  }

@media (max-width: 900px) {
  .apps-xp-window {
    display: flex;
    position: fixed;
    top: calc(52px + env(safe-area-inset-top, 0px));
    width: min(88vw, 370px);
    max-width: min(88vw, 370px);
    height: calc(var(--dydoss-viewport-height, 100dvh) - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: 0;
    z-index: 2050;
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.2s ease;
    box-shadow: 0 10px 28px rgba(16, 39, 78, 0.4);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
  }

  .friends-posts-swap-row {
    display: flex;
    position: static;
    left: auto;
    top: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    margin: 0 0 8px;
    pointer-events: auto;
  }

  .desktop-sidepanels-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px);
    margin: 0 auto 16px;
  }

  .desktop-sidepanels-left,
  .desktop-sidepanels-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .friends-posts-xp-window,
  .online-users-xp-window {
    display: flex;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    z-index: auto;
    transform: none;
    box-shadow: 0 8px 18px rgba(16, 39, 78, 0.18);
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: box-shadow 0.24s ease, height 0.24s ease;
    overflow: hidden;
  }

  .apps-xp-window {
    left: 0;
    transform: translateX(-105%);
  }

  .apps-xp-window.is-open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  .friends-posts-content,
  .online-users-content {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .apps-panel-content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
  }

  .friends-posts-xp-window .xp-titlebar,
  .online-users-xp-window .xp-titlebar {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.93em;
  }

  .friends-posts-xp-window .xp-controls,
  .online-users-xp-window .xp-controls {
    gap: 3px;
  }

  .friends-posts-xp-window .xp-controls .xp-btn,
  .online-users-xp-window .xp-controls .xp-btn {
    min-width: 21px;
    min-height: 21px;
    padding: 0 5px;
    font-size: 0.78em;
  }

  .friends-feed-swap-btn {
    padding: 2px 6px;
    font-size: 0.7em;
  }

  .online-users-content {
    padding: 10px;
    gap: 8px;
    overflow: visible;
  }

  .online-users-list-wrap {
    min-height: 0;
  }

  .global-chat-section {
    min-height: 0;
    gap: 7px;
  }

  .global-chat-messages {
    padding: 7px;
  }

  .global-chat-form input {
    padding: 5px 8px;
  }

  .global-chat-attach-btn,
  .chat-popup-attach-btn {
    width: 29px;
    height: 29px;
    min-width: 29px;
  }

  .global-chat-attach-btn img,
  .chat-popup-attach-btn img {
    width: 14px;
    height: 14px;
  }

  .global-chat-attachments,
  .chat-popup-attachments {
    padding: 5px;
    gap: 5px;
  }

  .chat-attachment-item {
    width: 38px;
    height: 38px;
  }

  .mobile-side-tab {
    display: none !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: auto;
    transform: none;
    z-index: 2060;
    border: 2px solid #1a4f9b;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0f7ff 0%, #cfe2ff 100%);
    box-shadow: 0 4px 14px rgba(25, 60, 117, 0.28);
    width: 48px;
    height: 48px;
    padding: 0;
    color: #184a88;
    font-size: 0;
    transition: transform .24s ease, opacity .2s ease;
  }

  .mobile-side-tab .xp-ui-icon {
    margin-right: 0;
    width: 18px;
    height: 18px;
  }

  .mobile-side-tab-left {
    left: 8px;
  }

  .mobile-side-tab-left.mobile-side-tab-apps {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-side-tab-left.mobile-side-tab-posts {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-side-tab-right {
    right: 8px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-side-tab.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #d8e9ff 100%);
  }

  body.mobile-sidepanel-open-left .mobile-side-tab-left.is-active {
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
  }

  body.mobile-sidepanel-open-apps .mobile-side-tab-posts {
    display: none;
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
  }

  body.mobile-sidepanel-open-posts .mobile-side-tab-apps {
    display: none;
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
  }

  body.mobile-sidepanel-open-right .mobile-side-tab-right.is-active {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-sidepanel-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2040;
    background: rgba(12, 28, 58, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.mobile-sidepanel-open {
    overflow: hidden;
  }

  body.mobile-sidepanel-open .mobile-sidepanel-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-sidepanel-open .mobile-side-tab {
    opacity: 0;
    pointer-events: none;
  }

  .notification-popup,
  .news-popup,
  .chat-popup,
  .friends-popup,
  .share-post-popup,
  .edit-profile-window {
    width: min(560px, calc(100vw - (var(--dydoss-social-shell-gutter, 8px) * 2)));
    min-width: 0 !important;
    max-width: calc(100vw - (var(--dydoss-social-shell-gutter, 8px) * 2)) !important;
  }

  .notification-popup,
  .news-popup,
  .chat-popup,
  .friends-popup,
  .share-post-popup {
    max-height: calc(var(--dydoss-viewport-height, 100dvh) - 72px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .notification-popup .xp-popup-content,
  .news-popup .xp-popup-content,
  .friends-popup .xp-popup-content,
  .share-post-popup .xp-popup-content {
    max-height: calc(var(--dydoss-viewport-height, 100dvh) - 150px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .chat-popup-content {
    height: min(720px, calc(var(--dydoss-viewport-height, 100dvh) - 88px - var(--dydoss-viewport-offset-top, 0px)));
    max-height: min(720px, calc(var(--dydoss-viewport-height, 100dvh) - 88px - var(--dydoss-viewport-offset-top, 0px)));
    min-height: 0;
  }

  .chat-popup-messages {
    max-height: none;
    min-height: 0;
  }

  .goto-chat-btn,
  .online-chat-btn,
  .share-send-btn,
  .global-chat-send-btn,
  .chat-popup-reply-cancel,
  .global-chat-reply-cancel,
  .show-more-friends-btn,
  .friendship-actions .add-btn,
  .friendship-actions .cancel-btn,
  .header-nav-btn {
    font-size: 0.78em;
    line-height: 1.1;
    min-height: 44px;
    padding: 7px 10px;
  }

  .chat-popup-reply-btn,
  .global-chat-reply-btn {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    top: -7px;
    padding: 1px 5px;
    font-size: 9px;
  }

  .chat-popup-reply-btn span,
  .global-chat-reply-btn span {
    display: none;
  }

  .friends-popup .sidebar-friend-actions .sidebar-chat-btn,
  .friends-popup .sidebar-friend-actions .remove-friend-btn-small {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 8px;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
  }

  .friends-popup .sidebar-friend-actions .sidebar-chat-btn::before {
    content: "\1F4AC";
    font-size: 15px;
  }

  .friends-popup .sidebar-friend-actions .remove-friend-btn-small::before {
    content: "\2716";
    font-size: 15px;
  }
}

@media (max-width: 700px) {
  .desktop-sidepanels-shell,
  .desktop-sidepanels-left,
  .desktop-sidepanels-right {
    display: contents;
  }

  .friends-posts-swap-row {
    display: none;
  }

  .friends-posts-swap-row.is-mobile-embedded {
    display: flex;
    position: sticky;
    left: auto;
    top: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
    padding: 0 0 8px;
    background: linear-gradient(180deg, rgba(241, 248, 255, 0.98), rgba(224, 237, 252, 0.86));
    pointer-events: auto;
  }

  .friends-posts-swap-row.is-mobile-embedded .friends-feed-swap-btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .apps-xp-window,
  .friends-posts-xp-window,
  .online-users-xp-window {
    position: fixed;
    left: 6px;
    right: 6px;
    bottom: calc(var(--social-mobile-nav-height) - 2px);
    top: auto;
    width: auto;
    max-width: none;
    height: min(76vh, calc(var(--dydoss-viewport-height, 100dvh) - var(--social-mobile-nav-height) - max(14px, env(safe-area-inset-top, 0px))));
    max-height: min(76vh, calc(var(--dydoss-viewport-height, 100dvh) - var(--social-mobile-nav-height) - max(14px, env(safe-area-inset-top, 0px))));
    margin: 0;
    z-index: 2055;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(16, 39, 78, 0.34);
    transform: translateY(calc(100% + 18px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: transform 0.26s ease, opacity 0.18s ease, box-shadow 0.22s ease;
  }

  .apps-xp-window.is-open,
  .friends-posts-xp-window.is-open,
  .online-users-xp-window.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .apps-xp-window .xp-titlebar,
  .friends-posts-xp-window .xp-titlebar,
  .online-users-xp-window .xp-titlebar {
    min-height: 38px;
    padding: 0 10px;
  }

  .apps-panel-content,
  .friends-posts-content,
  .online-users-content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .apps-panel-content,
  .friends-posts-content {
    overflow-y: auto;
  }

  .online-users-content {
    overflow: hidden;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .online-users-list-wrap {
    flex: 0 0 38%;
    max-height: 38%;
    min-height: 110px;
  }

  .global-chat-section {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .global-chat-messages {
    flex: 1 1 auto;
    min-height: 120px;
  }

  .global-chat-form {
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    padding-bottom: max(2px, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.92), rgba(234, 243, 255, 0.98));
  }
}

@media (hover: none), (pointer: coarse) {
  .xp-popup-titlebar .xp-popup-close,
  .goto-chat-btn,
  .chat-popup-form button,
  .chat-popup-attach-btn,
  .chat-popup-reply-btn,
  .chat-popup-reply-cancel,
  .global-chat-attach-btn,
  .global-chat-reply-btn,
  .global-chat-reply-cancel,
  .global-chat-send-btn,
  .chat-popup-open-page,
  .show-more-friends-btn,
  .online-chat-btn,
  .share-send-btn {
    min-height: 44px;
  }

  .remove-friend-btn,
  .remove-friend-btn-small {
    min-height: 24px;
    min-width: 24px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    padding: 0;
    font-size: 0.78em;
  }

  .profile-mobile-friends-panel .goto-chat-btn,
  .profile-mobile-friends-panel .remove-friend-btn-small {
    min-height: 34px;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .delete-guestbook-btn {
    min-height: 40px !important;
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .chat-popup-form input {
    min-height: 40px;
    font-size: 16px;
  }

  .chat-popup-content {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .global-chat-form input {
    min-height: 38px;
    font-size: 16px;
  }

  .post-composer-actions .xp-btn,
  .post-composer-actions .xp-file-label,
  .guestbook-form-actions .xp-btn,
  .about-edit-btn,
  .friends-btn,
  .settings-gear-btn {
    min-height: 40px;
  }

  .post-composer-actions .xp-file-label.xp-file-label--icon {
    min-height: 36px;
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
  }

  body[data-social-page="user"] #dm-btn,
  body[data-social-page="user"] .friendship-actions .xp-btn,
  body[data-social-page="user"] .friendship-actions .add-btn,
  body[data-social-page="user"] .friendship-actions .cancel-btn {
    min-height: 34px;
    padding: 3px 8px;
    font-size: 0.68rem;
    border-radius: 8px;
  }

  body[data-social-page="user"] #dm-btn .xp-ui-icon--btn {
    width: 12px;
    height: 12px;
    margin-right: 4px;
  }

  body[data-social-page="user"] .friendship-actions {
    gap: 4px;
  }

  .chat-popup-reply-btn,
  .global-chat-reply-btn {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  #user-posts .post .delete-post,
  .img-grid-large .post .delete-post {
    display: inline-flex;
    opacity: 0.92;
  }

  body[data-social-page] .xp-btn,
  body[data-social-page] .xp-file-label,
  body[data-social-page] .profile-mobile-summary-row,
  body[data-social-page] .post-openable,
  body[data-social-page] .profile-mobile-friends-panel .sidebar-friend-row,
  body[data-social-page] .profile-mobile-friends-panel .sidebar-friend-nickname {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  body[data-social-page] .xp-btn:hover,
  body[data-social-page] .xp-btn:focus,
  body[data-social-page] .xp-btn:focus-visible,
  body[data-social-page] .xp-file-label:hover,
  body[data-social-page] .xp-file-label:focus-visible,
  body[data-social-page] .profile-mobile-summary-row:hover,
  body[data-social-page] .profile-mobile-summary-row:focus-visible {
    background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
    border-color: rgba(93, 116, 149, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 1px 4px rgba(32, 53, 84, 0.14);
    outline: 1.5px solid rgba(86, 107, 138, 0.42);
    outline-offset: 1px;
  }

  body[data-social-page] .xp-btn:active,
  body[data-social-page] .xp-file-label:active,
  body[data-social-page] .profile-mobile-summary-row:active {
    transform: translateY(1px);
    background: linear-gradient(180deg, #e7ecf2 0%, #f5f8fb 100%);
    box-shadow:
      inset 1px 1px 0 rgba(122, 140, 165, 0.68),
      inset -1px -1px 0 rgba(255, 255, 255, 0.82);
  }

  body[data-social-page] .post-openable {
    transition: transform 0.16s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
  }

  body[data-social-page] .post-openable:focus-visible {
    outline: 1.5px solid rgba(84, 106, 138, 0.34);
    outline-offset: 2px;
  }

  body[data-social-page] .post-openable:active {
    transform: scale(0.995);
  }
}

body.dydoss-keyboard-open .chat-popup {
  max-height: calc(var(--dydoss-viewport-height, 100dvh) - 16px);
}

body.dydoss-keyboard-open .chat-popup-content {
  height: calc(var(--dydoss-viewport-height, 100dvh) - 96px);
  max-height: calc(var(--dydoss-viewport-height, 100dvh) - 96px);
}

body.popup-dragging {
  touch-action: none;
}

@media (hover: none), (pointer: coarse) {
  body.popup-dragging {
    overflow: hidden !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

