/* Public profiles share Pixel Night's theme without changing the chat layout. */
.user-profile-link { color: inherit; text-decoration: none; cursor: pointer; }
.user-profile-link:hover { color: var(--personal-accent, #c291f6); }
.user-profile-link:focus-visible, .public-profile button:focus-visible { outline: 2px solid var(--personal-accent, #c291f6); outline-offset: 4px; }
.profile-layout > #public-profile-view {
  --profile-canvas: #111524;
  --profile-surface: #181c2d;
  --profile-edge: #30364f;
  --profile-text: #f6f6ff;
  --profile-muted: #c5cce2;
  --profile-action: #5944b5;
  --profile-gutter: clamp(16px, 2.6vw, 48px);
  --profile-avatar-size: clamp(112px, 12.4vw, 196px);
  width: 100%; min-width: 0; margin: 0 auto; padding: 0 0 clamp(24px, 4vw, 64px);
  background: var(--profile-canvas); color: var(--profile-text);
  border: 1px solid var(--profile-edge); border-radius: 24px;
  overflow-x: hidden;
}
html[data-desktop-layout="fullscreen"]:not(.pixel-night-android) .profile-layout > #public-profile-view,
html.pixel-night-android .profile-layout > #public-profile-view { border: 0; border-radius: 0; }
html.pixel-night-android .profile-layout > #public-profile-view { padding-block-start: 0; }
html[data-color-theme]:not([data-color-theme="pixel-night"]) .profile-layout > #public-profile-view {
  --profile-canvas: var(--theme-canvas);
  --profile-surface: var(--theme-panel);
  --profile-edge: var(--theme-border);
  --profile-text: var(--theme-text);
  --profile-muted: var(--theme-muted);
  --profile-action: var(--theme-action);
}
.public-profile > :is(.wall-status, #public-profile-retry) { margin-inline: var(--profile-gutter); }
.public-profile-cover {
  position: relative;
  aspect-ratio: 4.65;
  background: #101634 url("../images/profile-night-cover.png") center 51% / cover no-repeat;
  overflow: hidden;
}
.public-profile-hero > .public-profile-cover { border-radius: 14px; }
.public-profile-cover img, .public-profile-cover canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.public-profile-cover > [hidden] { display: none; }
.public-profile-summary {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start; column-gap: clamp(14px, 1.9vw, 30px);
  padding: 0 var(--profile-gutter) 0 calc(var(--profile-gutter) + clamp(0px, 1.7vw, 28px));
}
.public-profile-avatar {
  position: relative; width: var(--profile-avatar-size); height: var(--profile-avatar-size);
  margin-top: calc(var(--profile-avatar-size) * -.34);
  border-radius: 50%; border: clamp(2px, .28vw, 4px) solid var(--profile-action);
  background: var(--profile-surface); overflow: hidden;
}
.public-profile-avatar > *, .wall-author-avatar > * { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.public-profile-identity { min-width: 0; padding: clamp(12px, 1.2vw, 20px) 0; }
.public-profile-hero h2 { font-size: clamp(25px, 2.8vw, 44px); line-height: 1.08; margin: 0; overflow-wrap: anywhere; }
.public-profile-login { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.public-profile-tag { color: var(--profile-muted); font-size: clamp(14px, 1.35vw, 21px); overflow-wrap: anywhere; }
.public-profile-login .public-profile-online { flex: 0 0 auto; width: auto; margin: 0; }
.public-profile-online .presence-device { width: clamp(16px, 1.9vw, 29px); height: auto; }
.public-profile-online .presence-device svg { width: 100%; height: auto; }
.public-profile-commands { display: flex; align-items: start; gap: 12px; padding-top: clamp(18px, 2.3vw, 37px); }
.profile-menu-wrap { position: relative; z-index: 5; text-align: left; }
#profile-menu-toggle {
  border: 0; background: transparent; color: var(--profile-text);
  box-shadow: none; letter-spacing: 2px; width: clamp(44px, 4.8vw, 74px); height: clamp(44px, 3.6vw, 57px); border-radius: 18px;
}
#profile-menu-toggle:hover { filter: brightness(1.17); }
.profile-menu { display: flex; flex-direction: column; gap: 6px; position: absolute; right: 0; top: 50px; width: 225px; max-width: calc(100vw - 64px); padding: 6px; border: 1px solid #79639666; border-radius: 16px; background: #191327; box-shadow: 0 12px 35px #0008; }
.public-profile-actions .profile-message-action { min-width: 120px; }
.profile-menu button { width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: #eee4ff; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.profile-menu button:hover { background: #b98ae820; }
.profile-brand-logo { display: block; width: clamp(124px, 10vw, 158px); max-width: 100%; height: auto; }
html[data-color-theme="light"] .profile-brand-logo { filter: brightness(.57) saturate(.85); }
.profile-topbar-actions { display: flex; align-items: center; gap: 8px; }
#profile-settings-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  color: var(--theme-text, #f6efff);
}
#profile-settings-toggle:is(:hover, [aria-expanded="true"]) {
  background: transparent;
}
#profile-settings-toggle:focus-visible { outline: 2px solid var(--theme-accent, #c291f6); outline-offset: 2px; }
#profile-settings-toggle img { display: block; width: 42px; height: 42px; object-fit: contain; }
#profile-settings-menu {
  --settings-drawer-surface: #f5f7fb;
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 25;
  inset-inline-end: 0;
  inset-block: var(--settings-panel-top, 0) var(--settings-panel-bottom, 0);
  width: min(342px, 100vw);
  padding: 0 10px 18px;
  overflow: hidden;
  border-inline-start: 1px solid #d4dfef;
  background: var(--settings-drawer-surface);
  color: #111c32;
  box-shadow: -6px 0 22px #1c315418;
}
.profile-settings-header {
  flex-shrink: 0;
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 8px 20px;
  padding: 14px 0 12px;
  border-bottom: 1px solid #ccd9ef;
  background: var(--settings-drawer-surface);
}
.profile-settings-header h2 { flex: 1; min-width: 0; margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.profile-settings-header h2:focus { outline: none; }
#profile-settings-menu :is(#profile-settings-back, #profile-settings-close) {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
}
#profile-settings-menu :is(#profile-settings-back, #profile-settings-close):hover { background: var(--theme-tint, #dce9fc); }
.profile-settings-header button svg { width: 21px; height: 21px; }
.profile-settings-tiles, .profile-settings-content {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.profile-settings-tiles { align-content: start; }
.profile-settings-footer {
  flex-shrink: 0;
  margin: 12px 8px 0;
  padding-top: 12px;
  border-top: 1px solid var(--theme-border, #ccd9ef);
}
#profile-settings-menu #welcome-logout {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-color: transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--theme-danger, #a12b49);
  font-weight: 600;
  text-align: center;
  transform: none;
}
#profile-settings-menu #welcome-logout:hover { background: #ca587a18; }
#profile-settings-menu #welcome-logout:focus-visible { outline: 2px solid var(--theme-accent, #2856a0); outline-offset: -2px; }
#profile-settings-menu #welcome-logout:disabled { opacity: .55; cursor: wait; }
@media (prefers-reduced-motion: no-preference) {
  #profile-settings-menu:not([hidden]) { animation: profile-settings-fade 210ms ease-out both; }
  #profile-settings-menu :is(.profile-settings-tiles, .profile-settings-content):not([hidden]) {
    animation: profile-settings-content-in 260ms cubic-bezier(.22, .72, .24, 1) both;
  }
}
@keyframes profile-settings-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes profile-settings-content-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
.profile-settings-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.profile-settings-tile {
  --tile-start: #f3f5fd;
  --tile-end: #dce5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 112px;
  min-width: 0;
  padding: 10px 5px;
  border: 1px solid #cfddf4;
  border-radius: 17px;
  background: linear-gradient(150deg, var(--tile-start), var(--tile-end));
  color: inherit;
  font: inherit;
  font-size: clamp(14px, 4.6vw, 17px);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.profile-settings-tile svg { width: 37px; height: 37px; flex: 0 0 auto; color: #2e405b; }
.profile-settings-tile[data-settings-category="account"] {
  --tile-start: #dceafb;
  --tile-end: #c2daf8;
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 20px;
  min-height: 64px;
  font-size: 18px;
}
.profile-settings-tile[data-settings-category="decorations"] { --tile-start: #e9f2fd; --tile-end: #c5e5f9; }
.profile-settings-tile[data-settings-category="appearance"] { --tile-start: #e5effe; --tile-end: #c4defb; }
.profile-settings-tile[data-settings-category="privacy"] { --tile-start: #f1eefc; --tile-end: #ddd6f7; border-color: #ddd4f2; }
.profile-settings-tile[data-settings-category="devices"] { --tile-start: #e7eef9; --tile-end: #c6d6eb; }
.profile-settings-tile:is(:hover, :focus-visible) { border-color: #3481ff; box-shadow: inset 0 0 0 1px #3481ff; }
#profile-settings-menu :is(.profile-settings-tile, #profile-settings-back, #profile-settings-close):focus-visible { outline: 2px solid var(--theme-accent, #2856a0); outline-offset: 2px; }
html:is([data-color-theme="graphite"], [data-color-theme="oled"]) #profile-settings-menu {
  --settings-drawer-surface: var(--theme-panel);
  border-color: var(--theme-border);
  color: var(--theme-text);
  box-shadow: -6px 0 25px #0004;
}
html:is([data-color-theme="graphite"], [data-color-theme="oled"]) .profile-settings-header { border-color: var(--theme-border); }
html:is([data-color-theme="graphite"], [data-color-theme="oled"]) .profile-settings-tile {
  border-color: var(--theme-border);
  background: linear-gradient(150deg, color-mix(in srgb, var(--tile-start) 10%, var(--theme-panel)),
    color-mix(in srgb, var(--tile-end) 20%, var(--theme-panel)));
}
html:is([data-color-theme="graphite"], [data-color-theme="oled"]) .profile-settings-tile svg { color: var(--theme-text); }
.profile-link-feedback { grid-column: 2 / -1; color: var(--profile-muted); font-size: 12px; }
.profile-link-feedback:empty { display: none; }
.public-profile-hero .presence-status { justify-content: start; }
.public-profile-about { color: var(--profile-muted); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 8px 0 0; max-width: 600px; }
.public-profile-about:empty { display: none; }
.public-profile-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; }
.public-profile-actions:empty { display: none; }
.profile-community-feed { display: none; }
#games-nav { position: relative; }
#games-nav .profile-nav-badge { top: 8px; right: 10px; left: auto; }
#platform-content { color: inherit; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#platform-content .service-heading p { margin-top: 0; }
#platform-content .service-section { margin-bottom: 26px; }
#platform-content h2 { margin: 22px 0 12px; font-size: 20px; line-height: 1.3; }
#platform-content h3 { margin: 14px 0 8px; font-size: 16px; }
#platform-content p { margin: 8px 0; }
#platform-content a { color: var(--theme-link, #6c93d1); }
#platform-content .service-products { display: grid; grid-template-columns: 1fr; gap: 10px; }
#platform-content .service-card { padding: 12px; border: 1px solid var(--theme-border, #ccd9ef); border-radius: 12px; background: var(--theme-surface, #fff); }
#platform-content .service-details { display: grid; grid-template-columns: 1fr; gap: 4px; }
#platform-content .service-details dd { margin: 0 0 10px; }
#platform-content .service-document { white-space: pre-wrap; }
#platform-content .service-footer { display: grid; gap: 14px; border-top: 1px solid var(--theme-border, #ccd9ef); }
#platform-content .service-footer h2 { margin-top: 0; }
.public-profile-actions button { min-height: clamp(44px, 3.6vw, 57px); padding: 10px clamp(12px, 1.6vw, 25px); border-radius: 18px; font: inherit; font-size: clamp(13px, 1.25vw, 20px); cursor: pointer; }
#public-profile-view .public-profile-actions .profile-friend-action { background: var(--profile-action); border-color: transparent; color: #fff; }
#public-profile-view .public-profile-actions .profile-friend-action:hover:not(:disabled) { filter: brightness(1.16); }
.profile-friend-action { color: #f8edff; background: linear-gradient(110deg, #34135888, #1d0c3988); border: 1px solid var(--personal-strong, #8f3de0); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.profile-friend-action svg { width: 23px; height: 23px; }
.profile-friend-action:hover { background-color: #7b22b22b; }
.public-profile button:disabled { opacity: .5; cursor: default; }
.public-profile .profile-link-copy, .profile-link-copy { background: none; border: 0; color: #afa2ce; padding: 8px 4px; font: inherit; font-size: 12px; cursor: pointer; }
.profile-link-copy:hover { color: #fff; }
.profile-link-fallback { grid-column: 2 / -1; width: 100%; color: #eee; background: #141126; padding: 10px; border: 1px solid #67547f; border-radius: 10px; font-size: 14px; }
.public-profile-wall { margin: clamp(18px, 1.9vw, 32px) var(--profile-gutter) 0; padding: clamp(14px, 1.5vw, 24px); border: 1px solid var(--profile-edge); border-radius: 24px; background: var(--profile-surface); }
.wall-inline-composer {
  --wall-compose-surface: #15152d;
  --wall-compose-border: #3e365e;
  --wall-compose-text: #f6f1ff;
  --wall-compose-muted: #b6aaca;
  --wall-compose-action: #7734e8;
  display: grid; gap: 8px;
  margin: 0 0 14px; padding: 12px 14px 10px;
  border: 1px solid var(--wall-compose-border); border-radius: 17px;
  background: var(--wall-compose-surface); color: var(--wall-compose-text);
}
html[data-color-theme]:not([data-color-theme="pixel-night"]) .wall-inline-composer {
  --wall-compose-surface: var(--theme-surface);
  --wall-compose-border: var(--theme-border);
  --wall-compose-text: var(--theme-text);
  --wall-compose-muted: var(--theme-muted);
  --wall-compose-action: var(--theme-action);
}
.wall-inline-composer:focus-within { border-color: var(--wall-compose-action); }
#wall-compose-text {
  display: block; width: 100%; min-width: 0; min-height: 40px; max-height: 220px;
  padding: 4px 5px; border: 0; outline: 0; resize: none; field-sizing: content;
  background: transparent; color: var(--wall-compose-text); font: inherit; font-size: 16px; line-height: 1.4;
}
#wall-compose-text::placeholder { color: var(--wall-compose-muted); }
.wall-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.wall-publish-tools { display: flex; align-items: center; gap: clamp(3px, 1vw, 9px); }
.wall-publish-tools::after { content: ""; height: 19px; margin-inline-start: 3px; border-inline-start: 1px solid var(--wall-compose-border); }
#public-profile-view .wall-publish-tools button, #wall-compose-submit, #wall-attachment-remove {
  display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--wall-compose-muted); cursor: pointer;
}
#public-profile-view .wall-publish-tools button:hover:not(:disabled), #wall-attachment-remove:hover:not(:disabled) {
  background: color-mix(in srgb, var(--wall-compose-action) 17%, transparent); color: var(--wall-compose-text);
}
#wall-compose-submit { width: 44px; background: var(--wall-compose-action); color: #fff; }
#wall-compose-submit:hover:not(:disabled) { filter: brightness(1.14); }
#public-profile-view #wall-compose-submit:disabled { opacity: .78; }
.wall-compose-actions svg { width: 21px; height: 21px; }
.wall-compose-attachment { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--wall-compose-border); border-radius: 12px; }
.wall-attachment-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#wall-attachment-name { min-width: 0; overflow-wrap: anywhere; color: var(--wall-compose-muted); font-size: 13px; }
#wall-attachment-remove { width: 32px; height: 32px; font-size: 22px; }
#wall-compose-status { margin: 0; }
.wall-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 0 3px 14px; border-bottom: 1px solid var(--profile-edge); }
.wall-heading h3 { margin: 0; font-size: clamp(20px, 1.9vw, 29px); }
#public-profile-view .wall-heading .profile-link-copy { color: var(--profile-muted); font-size: clamp(13px, 1.25vw, 20px); }
.wall-posts { display: grid; gap: 14px; }
.wall-post { min-width: 0; padding: 20px; border: 1px solid #8870be30; border-radius: 22px; background: linear-gradient(130deg, #101024, #090a19); }
.wall-post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wall-author-avatar { width: 44px; height: 44px; overflow: hidden; border-radius: 50%; flex-shrink: 0; border: 1px solid #bc60f899; }
.wall-post-byline { min-width: 0; flex: 1; }
.wall-author-name { display: block; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.wall-post time { display: block; color: #a69bbf; font-size: 12px; margin-top: 4px; }
.wall-post-delete { flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; border: none; border-radius: 12px; background: transparent; color: #a698bf; cursor: pointer; }
.wall-post-delete:hover { background: #b2416526; color: #f8afd1; }
.wall-post-delete svg { width: 20px; height: 20px; }
.wall-post-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--message-size, 14px); line-height: 1.65; margin: 0; }
.wall-post-text:not(:last-child) { margin-bottom: 16px; }
.wall-post-media { display: block; max-width: 100%; width: auto; max-height: 620px; border-radius: 14px; margin: 0 auto; object-fit: contain; background: #080812; }
.wall-post video { width: 100%; }
.wall-post-link { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; border: 1px solid #8b67b64d; background: #6c34a414; color: #cfb4f4; text-decoration: none; overflow-wrap: anywhere; }
.wall-post-link svg { width: 26px; height: 26px; flex-shrink: 0; }
.wall-empty, .wall-closed-note { color: #a89cbf; font-size: 14px; line-height: 1.5; text-align: center; padding: 26px 12px; margin: 0; }
.public-profile-wall .wall-empty { display: grid; place-items: center; min-height: clamp(72px, 7.1vw, 112px); border: 1px dashed var(--profile-edge); border-radius: 24px; color: var(--profile-muted); font-size: clamp(14px, 1.35vw, 21px); }
.wall-closed-note { padding: 8px 0 20px; }
.wall-status { font-size: 13px; color: #ddbbec; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.wall-status:empty { display: none; }
.wall-more { display: block; margin: 20px auto 0; }
.wall-composer { color-scheme: dark; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #796098; border-radius: 24px; background: #111022; color: #f8f3ff; box-shadow: 0 30px 100px #0009; overflow: auto; }
.wall-composer::backdrop { background: #02020cbb; backdrop-filter: blur(6px); }
.wall-composer form { display: grid; gap: 12px; }
.wall-composer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wall-composer h2 { font-size: 20px; margin: 0; }
.wall-composer label { font-size: 13px; color: #c9bfdd; display: block; margin-bottom: 4px; }
.wall-composer textarea, .wall-composer input { width: 100%; box-sizing: border-box; background: #090919; color: #f7f1ff; border: 1px solid #71618677; border-radius: 14px; padding: 13px; font: inherit; font-size: 16px; }
.wall-composer textarea { resize: vertical; min-height: 110px; max-height: 35dvh; }
.wall-composer textarea:focus, .wall-composer input:focus { outline: 2px solid var(--personal-accent, #c291f6); outline-offset: 1px; }
.wall-composer input[type=file] { font-size: 13px; }
.wall-help { color: #a79dbb; font-size: 12px; line-height: 1.5; margin: 10px 0; }
#wall-attachment-preview img, #wall-attachment-preview video { display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; }
.wall-composer .chat-button { justify-self: end; min-width: 150px; }
.wall-delete-dialog { color-scheme: dark; position: fixed; inset: 0; box-sizing: border-box; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 28px; overflow-y: auto; border: 1px solid #a88bd23d; border-radius: 26px; background: radial-gradient(ellipse at 0 0, #3b1c4d55, transparent 65%), #121021; color: #f7f2ff; box-shadow: 0 28px 90px #0009, inset 0 1px #ffffff08; }
.wall-delete-dialog::backdrop { background: #050410b8; backdrop-filter: blur(7px); }
.wall-delete-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border: 1px solid #ed7faa35; border-radius: 16px; background: #e7709a13; color: #eda0bf; }
.wall-delete-symbol svg { width: 24px; height: 24px; }
.wall-delete-dialog h2 { margin: 0 34px 10px 0; font-size: 23px; line-height: 1.25; letter-spacing: -.03em; }
.wall-delete-dialog > p { margin: 0; color: #b7abc8; font-size: 14px; line-height: 1.55; }
.wall-delete-dialog .wall-delete-preview { margin-top: 18px; padding: 12px 14px; max-height: 85px; overflow: hidden; border-left: 2px solid #a779bf66; border-radius: 0 10px 10px 0; background: #ffffff04; color: #d0c5de; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.wall-delete-dialog .wall-status:not(:empty) { margin-top: 14px; color: #f0b1cb; }
.wall-delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.wall-delete-actions button { min-width: 0; min-height: 46px; padding: 11px 14px; border-radius: 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: background-color .16s, border-color .16s; }
.wall-delete-cancel { border: 1px solid #8a72984d; background: #ffffff06; color: #e0d6ed; }
.wall-delete-cancel:hover { background: #ffffff0e; border-color: #bc99d080; }
.wall-delete-confirm { border: 1px solid #ec95b263; background: #a44870; color: #fff7fb; }
.wall-delete-confirm:hover { background: #b6537e; }
.wall-delete-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #a89ab8; font: inherit; font-size: 26px; cursor: pointer; touch-action: manipulation; }
.wall-delete-close:hover { background: #ffffff0a; color: #fff; }
.wall-delete-dialog button:focus-visible { outline: 2px solid var(--personal-accent, #c291f6); outline-offset: 3px; }
.wall-delete-dialog button:disabled { opacity: .55; cursor: default; }
.profile-cover-dialog { width: min(720px, calc(100% - 24px)); }
.profile-cover-dialog .wall-composer-header h2 { margin: 0; font-size: clamp(19px, 4vw, 25px); }
.profile-cover-preview { border: 1px solid #393352; border-radius: 12px; }
.profile-cover-position { display: grid; gap: 6px; font-size: 13px; }
.profile-cover-position input { width: 100%; accent-color: var(--personal-accent); }
.profile-cover-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-cover-controls button { min-height: 42px; border-radius: 12px; padding: 8px 12px; cursor: pointer; font-size: 13px; }
.profile-cover-controls button:disabled { opacity: .5; cursor: default; }
@media (min-width: 701px) {
  html:not(.pixel-night-android) .profile-layout > #public-profile-view {
    --profile-gutter: 20px;
    --profile-avatar-size: 151px;
    padding-block: 0;
  }
  html:not(.pixel-night-android) #public-profile-content {
    width: 100%;
    margin: 0;
    padding-inline: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(912px, 48vw) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: 0;
    align-items: start;
    height: 100%;
    min-height: 0;
  }
  html:not(.pixel-night-android) .profile-center {
    grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; height: 100%;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  html:not(.pixel-night-android) :is(.public-profile-hero .public-profile-cover, .profile-cover-preview) { aspect-ratio: 4; }
  html:not(.pixel-night-android) .public-profile-hero .public-profile-cover { width: 100%; height: auto; aspect-ratio: 4; }
  html:not(.pixel-night-android) .public-profile-summary {
    column-gap: 16px;
    padding-inline: var(--profile-gutter);
  }
  html:not(.pixel-night-android) .public-profile-avatar { margin-top: -75px; }
  html:not(.pixel-night-android) .public-profile-identity { padding-block: 18px 10px; }
  html:not(.pixel-night-android) .public-profile-hero h2 { font-size: 22px; }
  html:not(.pixel-night-android) .public-profile-login { gap: 8px; margin-top: 6px; }
  html:not(.pixel-night-android) .public-profile-tag { font-size: 14px; }
  html:not(.pixel-night-android) .public-profile-online .presence-device { width: 16px; }
  html:not(.pixel-night-android) .public-profile-commands { gap: 8px; padding-top: 18px; }
  html:not(.pixel-night-android) #profile-menu-toggle { width: 38px; height: 34px; }
  html:not(.pixel-night-android) .profile-menu { top: calc(100% + 6px); }
  html:not(.pixel-night-android) .public-profile-actions button { min-height: 34px; padding: 6px 14px; font-size: 13px; }
  html:not(.pixel-night-android) .public-profile-wall { margin: 16px 0 0; padding: 18px; }
  html:not(.pixel-night-android) .wall-heading { margin-bottom: 10px; padding-bottom: 10px; }
  html:not(.pixel-night-android) .wall-heading h3 { font-size: 19px; }
  html:not(.pixel-night-android) #public-profile-view .wall-heading .profile-link-copy { font-size: 13px; }
  html:not(.pixel-night-android) .public-profile-wall .wall-empty { min-height: 76px; padding: 16px 12px; font-size: 14px; }
}

/* Desktop sidebars occupy the free space beside the centered profile. */
@media (min-width: 701px) {
  html:not(.pixel-night-android) .profile-main-columns { display: contents; }
  html:not(.pixel-night-android) .profile-community-feed {
    grid-column: 1; grid-row: 1 / -1;
    display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; padding: 20px;
    border: 0; border-inline-end: 1px solid var(--profile-edge); border-radius: 0;
    background: var(--profile-surface); color: var(--profile-text);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .profile-community-feed h3 { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--profile-edge); font-size: 20px; }
  .community-feed-empty { display: grid; place-items: center; flex: 1; padding: 35px 20px; text-align: center; color: var(--profile-muted); font-size: 15px; line-height: 1.65; }
  html:not(.pixel-night-android) #profile-wall {
    --profile-edge: #d8c1ed40; --profile-text: #faf5ff; --profile-muted: #d8c9e8;
    display: flex; flex-direction: column; min-width: 0;
    grid-column: 3; grid-row: 1 / -1;
    height: 100%; min-height: 0;
    margin: 0; padding: 18px; border: 0; border-inline-start: 1px solid var(--profile-edge); border-radius: 0;
    background: var(--friends-glass-background); color: var(--profile-text); color-scheme: dark;
  }
  html:not(.pixel-night-android) #profile-wall .wall-heading { flex: 0 0 auto; }
  html:not(.pixel-night-android) #profile-wall .wall-stream { flex: 1 1 0; min-height: 70px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a77bc9 #ffffff0c; padding: 0 3px 12px; }
  html:not(.pixel-night-android) #profile-wall .wall-inline-composer {
    --wall-compose-surface: #1d152ce0; --wall-compose-border: #c4a5df50;
    --wall-compose-text: #faf5ff; --wall-compose-muted: #d8c9e8; --wall-compose-action: #8351bd;
    order: 2; flex: 0 0 auto; margin: 0; padding: 10px 12px;
  }
  html:not(.pixel-night-android) #profile-wall .wall-post { padding: 14px; border-color: var(--profile-edge); background: #21172f9c; color: #faf5ff; }
  html:not(.pixel-night-android) #profile-wall :is(.wall-empty, .wall-closed-note, .wall-post time, .wall-status, .wall-post-menu-toggle) { color: #d8c9e8; }
  html:not(.pixel-night-android) #profile-wall :is(.wall-author-name, .wall-post-text) { color: #faf5ff; }
  html:not(.pixel-night-android) #profile-wall .wall-publish-tools button { background: transparent; color: var(--wall-compose-muted); }
  html:not(.pixel-night-android) #profile-wall .wall-publish-tools svg { color: var(--wall-compose-muted); }
  html:not(.pixel-night-android) #profile-wall #wall-compose-text { max-height: 90px; font-size: 15px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  html:not(.pixel-night-android) .profile-layout > #public-profile-view { --profile-avatar-size: 104px; --profile-gutter: 12px; }
  html:not(.pixel-night-android) .public-profile-avatar { margin-top: -52px; }
  html:not(.pixel-night-android) .public-profile-summary { column-gap: 10px; }
  html:not(.pixel-night-android) .public-profile-hero h2 { font-size: 19px; }
  html:not(.pixel-night-android) .public-profile-commands { grid-column: 1 / -1; justify-content: end; padding-top: 0; }
  html:not(.pixel-night-android) :is(.profile-community-feed, #profile-wall) { padding: 12px; }
  html:not(.pixel-night-android) .profile-community-feed h3 { font-size: 16px; }
  html:not(.pixel-night-android) .community-feed-empty { padding: 18px 0; font-size: 14px; }
  html:not(.pixel-night-android) #profile-wall .wall-heading { gap: 4px; padding-inline: 0; }
  html:not(.pixel-night-android) #profile-wall .wall-heading h3 { font-size: 16px; }
  html:not(.pixel-night-android) #profile-wall .wall-heading .profile-link-copy { font-size: 12px; }
  html:not(.pixel-night-android) #profile-wall .wall-inline-composer { padding: 8px; }
  html:not(.pixel-night-android) #profile-wall .wall-publish-tools { gap: 0; }
  html:not(.pixel-night-android) #profile-wall .wall-publish-tools::after { display: none; }
  html:not(.pixel-night-android) #profile-wall .wall-publish-tools button { width: 28px; height: 34px; }
  html:not(.pixel-night-android) #profile-wall #wall-compose-submit { width: 32px; height: 34px; }
  html:not(.pixel-night-android) #profile-wall .wall-compose-actions { gap: 2px; }
  html:not(.pixel-night-android) #profile-wall .wall-post { padding: 10px; }
  html:not(.pixel-night-android) #profile-wall .wall-post-header { gap: 6px; flex-wrap: wrap; }
  html:not(.pixel-night-android) #profile-wall .wall-author-avatar { width: 30px; height: 30px; }
  html:not(.pixel-night-android) #profile-wall .wall-author-name { font-size: 14px; }
}
@media (max-width: 700px) {
  .profile-layout:has(> #public-profile-view:not([hidden])) { margin-top: 0; }
  .profile-layout > #public-profile-view { --profile-avatar-size: clamp(70px, 22vw, 112px); }
  .public-profile-hero .public-profile-cover { aspect-ratio: 2.55; }
  .public-profile-summary { grid-template-columns: auto minmax(0, 1fr); row-gap: 5px; padding-inline: var(--profile-gutter); }
  .public-profile-identity { padding-block: 9px 0; }
  .public-profile-login { margin-top: 5px; }
  .public-profile-commands { grid-column: 1 / -1; padding-top: 8px; align-items: start; justify-content: space-between; }
  .public-profile-actions { justify-content: start; }
  .profile-link-feedback, .profile-link-fallback { grid-column: 1 / -1; }
  .public-profile-about { font-size: 14px; }
  .public-profile-wall { margin-inline: var(--profile-gutter); border-radius: 18px; }
  .wall-inline-composer { padding: 10px; }
  #public-profile-view .wall-publish-tools button, #wall-compose-submit { width: 44px; height: 44px; }
  .wall-post { padding: 14px; border-radius: 20px; }
  .wall-post-header { gap: 9px; }
  .wall-author-name { font-size: 14px; }
  .wall-author-avatar { width: 40px; height: 40px; }
  .wall-composer { padding: 18px; }
  .wall-delete-dialog { padding: 24px 20px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { .wall-publish-tools button, .wall-delete-actions button { transition: none; } }

/* Public moderation: verification is independent of account roles. */
.pixel-verified-badge { display: inline-block; position: relative; width: max(18px, 1.08em); height: max(18px, 1.08em); margin-inline-start: .3em; vertical-align: -.18em; flex: none; }
.pixel-verified-badge::before { content: ""; position: absolute; inset: 0; background: center / contain no-repeat; }
.pixel-verified-badge[data-badge-kind="official"]::before { background-image: url("../images/badge-official.png"); background-size: 127% auto; }
.pixel-verified-badge[data-badge-kind="developer"]::before {
  background-image: url("../images/badge-developer.png"); background-size: 137% auto;
  clip-path: polygon(50% 3%, 64% 12%, 83% 18%, 88% 32%, 97% 48%, 92% 64%, 81% 76%, 73% 87%, 56% 98%, 42% 98%, 24% 87%, 19% 77%, 7% 68%, 2% 51%, 9% 34%, 16% 19%, 36% 12%);
}
.pixel-verified-badge[data-badge-kind="developer_alt"]::before { background-image: url("../images/badge-developer-alt.png"); background-size: 123% auto; }
.pixel-verified-badge { cursor: help; }
.pixel-verified-badge:focus-visible { outline: 2px solid var(--personal-accent, #c291f6); outline-offset: 2px; border-radius: 4px; }
.profile-badge-tooltip {
  position: fixed; z-index: 200; width: max-content; max-width: calc(100vw - 16px);
  padding: 8px 12px; border-radius: 8px; background: #303033; color: #f7f7fa;
  box-shadow: 0 4px 14px #0006; font: 650 13px/1.4 system-ui, sans-serif;
  pointer-events: none;
}
.profile-badge-tooltip::after {
  content: ""; position: absolute; left: var(--badge-tip-arrow);
  top: 100%; border: 6px solid transparent; border-top-color: #303033;
  transform: translateX(-50%);
}
.profile-badge-tooltip[data-below]::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #303033; }
.wall-post-menu-wrap { position: relative; flex: 0 0 auto; }
.wall-post-menu-wrap:has(.wall-post-menu:not([hidden])) { z-index: 6; }
.wall-post-menu-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: #b9accd; letter-spacing: 2px; font: inherit; cursor: pointer; }
.wall-post-menu-toggle:hover, .wall-post-menu-toggle[aria-expanded="true"] { background: #b98ae820; color: #fff; }
.wall-post-menu { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; width: 210px; max-width: calc(100vw - 64px); padding: 6px; border: 1px solid #79639666; border-radius: 14px; background: #191327; box-shadow: 0 12px 35px #0008; }
.wall-post-menu button { display: flex; align-items: center; gap: 8px; width: 100%; height: auto; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: #eee4ff; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.wall-post-menu button:hover { background: #b98ae820; }
.wall-post-menu .wall-post-delete { color: #f1b2c9; }
.wall-post-menu .wall-post-delete svg { flex: 0 0 20px; }
.wall-post-menu[hidden], #profile-report-account[hidden], .moderation-dialog [hidden] { display: none; }
.moderation-dialog { color-scheme: dark; box-sizing: border-box; width: min(500px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 24px; overflow-y: auto; border: 1px solid #796098; border-radius: 24px; background: #111022; color: #f8f3ff; box-shadow: 0 30px 100px #0009; }
.moderation-dialog::backdrop { background: #02020cbb; backdrop-filter: blur(6px); }
.moderation-dialog form { display: grid; gap: 12px; }
.moderation-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.moderation-header h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.moderation-close { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #c9bfdd; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.moderation-close:hover { background: #ffffff0a; color: #fff; }
.moderation-target { margin: 0 0 6px; color: #c9bfdd; font-size: 14px; overflow-wrap: anywhere; }
.moderation-dialog label { font-size: 14px; color: #eee4ff; }
.moderation-dialog textarea { display: block; box-sizing: border-box; width: 100%; min-height: 130px; max-height: 40dvh; resize: vertical; padding: 13px; border: 1px solid #716186; border-radius: 14px; background: #090919; color: #f7f1ff; font: inherit; font-size: 16px; line-height: 1.5; }
.moderation-dialog textarea::placeholder { color: #a79dbb; }
.moderation-help, .moderation-count { margin: 0; color: #b5a9c8; font-size: 12px; line-height: 1.5; }
.moderation-count { justify-self: end; }
.moderation-status { margin: 0; color: #ddbbec; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-status:empty { display: none; }
.moderation-success { color: #b8dfcf; }
.moderation-error { color: #f0b1cb; }
.moderation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.moderation-actions button { flex: 1 1 auto; min-height: 46px; padding: 11px 16px; border-radius: 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.moderation-cancel { border: 1px solid #8a72984d; background: #ffffff06; color: #e0d6ed; }
.moderation-submit { border: 1px solid #a77ad9; background: #654092; color: #fff; }
.moderation-actions button:hover { filter: brightness(1.12); }
.moderation-dialog button:focus-visible, .moderation-dialog textarea:focus-visible { outline: 2px solid var(--personal-accent, #c291f6); outline-offset: 3px; }
.moderation-dialog button:disabled, .moderation-dialog textarea:disabled { opacity: .6; cursor: default; }
.moderation-dialog textarea[aria-invalid="true"] { border-color: #f0b1cb; }
@media (max-width: 400px) { .moderation-dialog { padding: 18px; } .moderation-header h2 { font-size: 19px; } }
