/* Pixel Night profile: quiet neon surfaces, timeline posts and a publication dock. */
#welcome-screen:has(#public-profile-view:not([hidden])) {
  --pn-canvas: #0e1222;
  --pn-panel: #111526;
  --pn-text: #f5f3ff;
  --pn-muted: #b7c1dd;
  --pn-edge: #c2bbff1c;
  --pn-card: linear-gradient(135deg, #222139c9, #1a1d32d9);
  --pn-tool: #d3c4ff0b;
  --pn-accent: #c988fa;
  --pn-glow: #8436c91f;
  background: var(--pn-canvas);
}
html[data-color-theme="oled"] #welcome-screen:has(#public-profile-view:not([hidden])) {
  --pn-canvas: #080a12;
  --pn-panel: #0b0d17;
  --pn-card: linear-gradient(135deg, #171524, #11131e);
  --pn-edge: #b8a4e520;
  --pn-glow: #7232a914;
}
html[data-color-theme="light"] #welcome-screen:has(#public-profile-view:not([hidden])) {
  --pn-canvas: #f0f3fc;
  --pn-panel: #f5f6fd;
  --pn-text: #1b223d;
  --pn-muted: #626d8d;
  --pn-edge: #62589728;
  --pn-card: linear-gradient(135deg, #ffffff, #ecebfa);
  --pn-tool: #8079bc0d;
  --pn-accent: #7d3bb8;
  --pn-glow: #a384d914;
}
#welcome-screen #public-profile-view {
  --profile-canvas: var(--pn-canvas);
  --profile-surface: var(--pn-panel);
  --profile-text: var(--pn-text);
  --profile-muted: var(--pn-muted);
  --profile-edge: var(--pn-edge);
  background: var(--pn-canvas);
  color: var(--pn-text);
}
#welcome-screen:has(#public-profile-view:not([hidden])) .profile-topbar {
  background: linear-gradient(110deg, var(--pn-panel), var(--pn-canvas));
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, #51d2ed80, #ab5bfca0 60%, #7a51d72b) 1;
}
#welcome-screen:has(#public-profile-view:not([hidden])) > .profile-nav {
  border-color: var(--pn-edge);
  background: linear-gradient(110deg, var(--pn-panel), var(--pn-canvas));
}
#welcome-screen:has(#public-profile-view:not([hidden])) .profile-nav-button { color: var(--pn-muted); }
#welcome-screen:has(#public-profile-view:not([hidden])) .profile-nav-button.active {
  border: 1px solid #a98ad43d;
  background: linear-gradient(110deg, #54cbe31f, #9761cf38 65%, #8b36d32b);
  color: var(--pn-text);
  box-shadow: inset 0 1px #ba91ee1c;
}
#public-profile-view .profile-community-feed {
  padding: 20px;
  background: radial-gradient(ellipse at 25% 100%, var(--pn-glow), transparent 70%), var(--pn-canvas);
  border-color: var(--pn-edge);
  color: var(--pn-text);
}
#public-profile-view .community-feed-empty {
  display: block;
  flex: 0 0 auto;
  padding: 22px;
  border: 1px solid var(--pn-edge);
  border-radius: 18px;
  background: var(--pn-card);
  color: var(--pn-muted);
  text-align: start;
  line-height: 1.6;
}
.community-feed-empty strong { display: block; color: var(--pn-text); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.community-feed-empty p { margin: 8px 0 0; font-size: 14px; }
#public-profile-view #profile-wall {
  --profile-text: var(--pn-text);
  --profile-muted: var(--pn-muted);
  --profile-edge: var(--pn-edge);
  container: profilewall / inline-size;
  background: radial-gradient(ellipse at 45% 100%, var(--pn-glow), transparent 64%), var(--pn-canvas);
  border-color: var(--pn-edge);
  color: var(--pn-text);
  color-scheme: inherit;
}
#public-profile-view #profile-wall .wall-stream { scrollbar-color: #ad79ce66 transparent; }
#public-profile-view #profile-wall .wall-posts { position: relative; gap: 30px; }
#public-profile-view #profile-wall .wall-posts:has(.wall-post)::before {
  content: ""; position: absolute; top: 19px; bottom: 20px; left: 7px; width: 1px;
  background: linear-gradient(var(--pn-accent), #ae7bdd38 85%, transparent);
}
#public-profile-view #profile-wall .wall-post {
  position: relative; min-width: 0; padding: 0 0 0 24px;
  border: 0; border-radius: 0; background: transparent; color: var(--pn-text); box-shadow: none;
}
#public-profile-view #profile-wall .wall-post::before {
  content: ""; position: absolute; top: 16px; left: 3px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--pn-accent); box-shadow: 0 0 9px #be6aef66;
}
#public-profile-view #profile-wall .wall-post-header { align-items: center; flex-wrap: nowrap; gap: 10px; margin: 0 0 10px; }
#public-profile-view #profile-wall .wall-author-avatar { width: 40px; height: 40px; border: 1px solid var(--pn-edge); }
#public-profile-view #profile-wall .wall-post-byline { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 3px; }
#public-profile-view #profile-wall .wall-author-name { color: var(--pn-text); font-size: 16px; font-weight: 600; line-height: 1.4; }
#public-profile-view #profile-wall .wall-post time { display: inline; margin: 0; color: var(--pn-muted); font-size: 13px; line-height: 1.4; }
#public-profile-view #profile-wall .wall-post time::before { content: "·"; margin-inline-end: 8px; }
#public-profile-view #profile-wall .wall-post-menu-toggle { color: var(--pn-muted); width: 36px; min-width: 36px; height: 40px; padding: 4px; }
#public-profile-view #profile-wall .wall-post-menu { width: min(210px, calc(100cqw - 36px)); }
#public-profile-view #profile-wall .wall-post-body {
  min-width: 0; padding: 16px 18px; border: 1px solid var(--pn-edge); border-radius: 16px;
  background: var(--pn-card); color: var(--pn-text);
}
#public-profile-view #profile-wall .wall-post-text { color: var(--pn-text); font-size: 16px; line-height: 1.55; }
#public-profile-view #profile-wall :is(.wall-empty, .wall-closed-note, .wall-status, .wall-help) { color: var(--pn-muted); }
#public-profile-view #profile-wall .wall-empty { min-height: 110px; padding: 28px 12px; border: 0; font-size: 14px; }
#public-profile-view #profile-wall .wall-post-media { max-height: 420px; border-radius: 10px; }
#public-profile-view #profile-wall .wall-inline-composer {
  --wall-compose-surface: transparent;
  --wall-compose-border: var(--pn-edge);
  --wall-compose-text: var(--pn-text);
  --wall-compose-muted: var(--pn-muted);
  --wall-compose-action: var(--pn-accent);
  position: relative; padding: 18px 20px; gap: 14px;
  border: 0; border-radius: 0; background: radial-gradient(ellipse at 65% 0, var(--pn-glow), transparent 80%);
}
#public-profile-view #profile-wall .wall-inline-composer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, #5fcde720, #b54af4bd 58%, #5fcde720);
}
#public-profile-view #profile-wall .wall-inline-composer:focus-within::before { background: linear-gradient(90deg, #51d8ef66, #c56bfd, #51d8ef66); }
#public-profile-view #profile-wall #wall-compose-text { max-height: 100px; padding: 2px 0; color: var(--pn-text); font-size: 16px; line-height: 1.5; }
#public-profile-view #profile-wall #wall-compose-text::placeholder { color: var(--pn-muted); }
#public-profile-view #profile-wall .wall-publish-tools { gap: 10px; }
#public-profile-view #profile-wall .wall-publish-tools::after { display: none; }
#public-profile-view #profile-wall .wall-publish-tools button {
  width: 44px; height: 44px; border: 1px solid var(--pn-edge); border-radius: 50%;
  background: var(--pn-tool); color: var(--pn-text); box-shadow: inset 0 1px #b59ee70b;
}
#public-profile-view #profile-wall .wall-publish-tools svg { width: 21px; height: 21px; color: inherit; }
#public-profile-view #profile-wall .wall-publish-tools button:hover { background: #a573d41f; }
#public-profile-view #profile-wall #wall-compose-submit {
  width: auto; min-width: 132px; height: 44px; padding: 0 18px; border: 1px solid #95bcf45c; border-radius: 14px;
  font: inherit; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #31c9df 5%, #647be1 44%, #9634e5 88%); color: #fff;
  box-shadow: 0 2px 14px #7432b62b;
}
#public-profile-view #profile-wall #wall-compose-submit:disabled { opacity: .5; }
#public-profile-view #profile-wall #wall-compose-submit:focus-visible { outline: 2px solid var(--pn-accent); outline-offset: 3px; }
@media (min-width: 701px) {
  html:not(.pixel-night-android) #public-profile-view #profile-wall { padding: 0; }
  html:not(.pixel-night-android) #public-profile-view #profile-wall .wall-stream { padding: 24px 20px 20px; }
  html:not(.pixel-night-android) #public-profile-view #profile-wall .wall-inline-composer { margin: 0; order: 2; }
}
@container profilewall (max-width: 300px) {
  #public-profile-view #profile-wall .wall-post { padding-inline-start: 18px; }
  #public-profile-view #profile-wall .wall-post-header { gap: 5px; flex-wrap: wrap; }
  #public-profile-view #profile-wall .wall-author-avatar { width: 30px; height: 30px; }
  #public-profile-view #profile-wall .wall-post-menu-wrap { margin-inline-start: auto; }
  #public-profile-view #profile-wall .wall-post-byline { column-gap: 4px; }
  #public-profile-view #profile-wall .wall-author-name { font-size: 14px; }
  #public-profile-view #profile-wall .wall-post-body { padding: 12px; }
  #public-profile-view #profile-wall .wall-post-text { font-size: 14px; }
  #public-profile-view #profile-wall .wall-inline-composer { padding: 14px 10px; }
  #public-profile-view #profile-wall .wall-publish-tools { gap: 3px; }
  #public-profile-view #profile-wall .wall-publish-tools button { width: 30px; height: 34px; }
  #public-profile-view #profile-wall #wall-compose-submit { width: auto; min-width: 118px; height: 38px; padding-inline: 12px; border-radius: 12px; }
  #public-profile-view #profile-wall .wall-compose-actions { gap: 3px; }
  #public-profile-view #profile-wall #wall-compose-text { font-size: 14px; }
}
@container profilewall (max-width: 340px) {
  #public-profile-view #profile-wall .wall-compose-actions { flex-wrap: wrap; row-gap: 12px; }
  #public-profile-view #profile-wall .wall-publish-tools { flex-basis: 100%; }
  #public-profile-view #profile-wall #wall-compose-submit { width: 100%; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  html:not(.pixel-night-android) #public-profile-view #profile-wall .wall-stream { padding: 16px 10px; }
  #public-profile-view .profile-community-feed { padding: 12px; }
  #public-profile-view .community-feed-empty { padding: 14px; }
  .community-feed-empty strong { font-size: 16px; }
}
@media (max-width: 700px) {
  #public-profile-view #profile-wall { padding: 0 0 14px; overflow: hidden; }
  #public-profile-view #profile-wall .wall-stream { padding: 0 12px; }
  #public-profile-view #profile-wall .wall-inline-composer { margin-bottom: 20px; }
}
html.pixel-night-android #public-profile-view #profile-wall { padding: 0 0 14px; overflow: hidden; }
html.pixel-night-android #public-profile-view #profile-wall .wall-stream { padding: 0 12px; }
