.pun .profile-hero {
  --profile-accent: #e1e1e1;
  position: relative;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 3px;
  background: #141414;
}
.pun #viewprofile .profile-ban-notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #303030;
  border-left: 3px solid #d95461;
  border-radius: 3px;
  background: #141414;
  color: #d4d4d3;
}
.pun .profile-ban-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #684047;
  border-radius: 3px;
  background: #291a1d;
  color: #ef7d86;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.profile-ban-content { min-width: 0; }
.profile-ban-heading { display: block; margin: 1px 0 10px; color: #ebf0f7; font-size: 12px; line-height: 1.4; }
.profile-ban-details { display: grid; grid-template-columns: minmax(140px, 1.4fr) minmax(190px, 1fr) minmax(120px, .65fr); gap: 10px 18px; }
.profile-ban-details > div { min-width: 0; }
.profile-ban-details span { display: block; margin-bottom: 3px; color: #9a9a9a; font-size: 10px; font-weight: 400; }
.profile-ban-details strong { display: block; overflow-wrap: anywhere; color: #d4d4d3; font-size: 11px; font-weight: 600; line-height: 1.45; }
.pun .profile-ban-details a:link, .pun .profile-ban-details a:visited { color: #c7c7c7; text-decoration: none; }
.pun .profile-ban-details a:hover, .pun .profile-ban-details a:focus { color: #e1e1e1; text-decoration: underline; }
.profile-hero-banner {
  position: relative;
  height: 138px;
  background-color: #1a1a1a;
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--profile-accent) 18%, #1a1a1a), #101010 75%);
  background-size: cover;
  background-position: center;
}
.profile-hero-banner:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, .2)); }
.pun .profile-hero-content { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid #303030; background: #141414; }
.pun .profile-hero-avatar { box-sizing: border-box; flex: 0 0 88px; width: 88px; height: 88px; border: 1px solid #383838; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--profile-accent) 12%, #1a1a1a); }
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; font-size: 26px; font-weight: 700; }
.profile-hero-identity { min-width: 0; }
.pun .profile-hero-name { margin: 0 0 4px; font-size: 18px; line-height: 1.2; }
.profile-hero-title { color: #aab2bf; font-size: 11px; }
.pun .profile-hero-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-left: auto; }
.profile-hero-stat { display: inline-flex; align-items: baseline; gap: 4px; color: #9c9c9c; font-size: 10px; white-space: nowrap; }
.profile-hero-stat span { color: #9c9c9c; }
.profile-hero-stat strong { color: #ebf0f7; font-size: 11px; font-weight: 700; }
.profile-theme-glass .profile-hero-content { background: #1b1b1b; }
.pun .profile-theme-minimal { border-color: #292929; }
.profile-theme-minimal .profile-hero-banner { filter: saturate(.75); }
.pun .profile-theme-ember { border-color: #39302a; }
.profile-theme-ember .profile-hero-content { background: #1a1715; }
.profile-theme-ember .profile-hero-banner { background-image: linear-gradient(120deg, color-mix(in srgb, var(--profile-accent) 24%, #241812), #101010 75%); }
#viewprofile.profile-customized .inform fieldset { border-color: color-mix(in srgb, var(--profile-accent) 25%, #353535); }
#viewprofile.profile-customized .inform legend { color: color-mix(in srgb, var(--profile-accent) 80%, #fff); }
.profile-appearance-preview { margin: 12px 0 18px; }
.pun .profile-appearance-preview .profile-hero { margin: 0; }
.profile-appearance-preview .profile-hero-banner { height: 110px; }
.pun .profile-appearance-preview .profile-hero-content { padding: 12px; }
.pun .profile-appearance-preview .profile-hero-avatar { flex-basis: 70px; width: 70px; height: 70px; }
.profile-appearance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-appearance-grid label { padding: 0; }
.profile-appearance-grid input[type="color"], .profile-appearance-grid select, .profile-appearance-grid input[type="file"] { box-sizing: border-box; width: 100%; }
.profile-appearance-grid input[type="color"] { height: 36px; padding: 2px; }
.profile-banner-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.profile-banner-help { margin: 0 0 14px; color: #b5b5b5; line-height: 1.5; }
.profile-banner-help strong { color: #e8f1ff; }
.profile-banner-file-meta { display: block; min-height: 18px; margin-top: 6px; color: #a5a5a5; font-size: 11px; line-height: 1.4; }
.astral-presence { display: inline-flex; align-items: center; gap: 5px; color: #888888; font-size: 11px; font-weight: 600; }
.astral-presence:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #797979; box-shadow: 0 0 0 2px rgba(121, 121, 121,.12); }
.astral-presence.is-online { color: #64d89a; }
.astral-presence.is-online:before { background: #45d98a; box-shadow: 0 0 8px rgba(69,217,138,.72); }
.profile-presence { margin-left: 8px; vertical-align: 1px; }
.pun a.profile-reputation-stat:link, .pun a.profile-reputation-stat:visited { color: #9c9c9c; text-decoration: none; }
.pun a.profile-reputation-stat:hover, .pun a.profile-reputation-stat:focus { color: #e1e1e1; text-decoration: underline; }
.is-positive { color: #5ee096 !important; }
.is-negative { color: #ff707c !important; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.profile-section-heading strong { color: #edf3fa; font-size: 14px; }
.profile-section-heading span { color: #8b8b8b; font-size: 11px; }
.profile-showcase { margin: 0 0 14px; padding: 15px; border: 1px solid color-mix(in srgb, var(--profile-accent) 23%, #2f2f2f); border-radius: 7px; background: rgba(18, 18, 18,.72); }
.profile-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-showcase-card { box-sizing: border-box; min-width: 0; padding: 13px 14px; border: 1px solid #2e2e2e; border-radius: 6px; background: linear-gradient(145deg, rgba(36, 36, 36,.86), rgba(21, 21, 21,.92)); color: #dce4ee; text-decoration: none; }
.profile-showcase-card:hover { border-color: color-mix(in srgb, var(--profile-accent) 48%, #323232); text-decoration: none; }
.profile-showcase-card > span { display: block; margin-bottom: 7px; color: color-mix(in srgb, var(--profile-accent) 78%, #e8e8e8); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-showcase-card strong { display: block; color: #f0f4f9; font-size: 14px; }
.profile-showcase-card p { margin: 6px 0 0; color: #aab4c1; line-height: 1.55; }
.profile-setup-card { grid-row: span 2; }
.profile-social-links { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-social-links a { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--profile-accent) 38%, #373737); border-radius: 999px; background: color-mix(in srgb, var(--profile-accent) 10%, #1c1c1c); text-decoration: none; }
.profile-social-links a:hover { border-color: var(--profile-accent); text-decoration: none; }
.profile-reputation-panel { margin: 0; scroll-margin-top: 16px; }
#viewprofile.profile-customized .profile-reputation-panel fieldset { border-color: #303030; }
#viewprofile.profile-customized .profile-reputation-panel legend { color: #c7c7c7; }
.pun .reputation-toolbar { display: flex; justify-content: flex-end; margin: -2px 0 12px; font-size: 11px; }
.pun .reputation-summary { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.reputation-score-orb { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 1px solid #343434; border-radius: 3px; background: #1a1a1a; color: #ebf0f7; font-size: 18px; line-height: 1; }
.reputation-score-orb.is-positive { border-color: #315d43; }
.reputation-score-orb.is-negative { border-color: #704048; }
.reputation-summary-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.reputation-summary-copy > strong { color: #ebf0f7; font-size: 12px; }
.reputation-summary-copy > span { color: #9ba3ae; font-size: 11px; }
.reputation-summary-copy b { font-size: 11px; }
.reputation-summary-copy i { display: inline-block; width: 3px; height: 3px; margin: 0 5px; border-radius: 50%; background: #595959; vertical-align: 2px; }
.pun .reputation-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px 12px; margin: 0 0 14px; padding: 12px; border: 1px solid #303030; border-radius: 3px; background: #171717; }
.reputation-form label { min-width: 0; }
.reputation-form label strong { display: block; margin-bottom: 5px; color: #cfd7e2; font-size: 11px; }
.reputation-form input[type="text"] { box-sizing: border-box; width: 100%; }
.reputation-vote-buttons { display: flex; align-items: flex-end; gap: 6px; padding-bottom: 1px; }
.reputation-vote-buttons button { min-width: 66px; height: 30px; border: 1px solid #3e3e3d; border-radius: 3px; background: #212120; color: #ebf0f7; cursor: pointer; font: 700 11px Verdana,Arial,sans-serif; }
.reputation-vote-buttons .reputation-positive { border-color: #296344; background: #182a20; }
.reputation-vote-buttons .reputation-negative { border-color: #68373d; background: #2d1b1d; }
.reputation-form > p { grid-column: 1 / -1; margin: 0; color: #858585; font-size: 10px; }
.reputation-login-note { color: #939393; }
.pun .reputation-empty { margin: 0; padding: 12px 0 2px; border-top: 1px solid #303030; color: #9ba3ae; }
.reputation-empty strong { display: block; margin-bottom: 4px; color: #cbd2db; font-size: 11px; }
.reputation-empty p { margin: 0; padding: 0; color: #9c9c9c; font-size: 11px; }
.reputation-list { display: grid; gap: 8px; }
.pun .reputation-entry { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 10px; border: 1px solid #303030; border-left: 2px solid #383838; border-radius: 3px; background: #171717; }
.reputation-entry.is-positive { border-left-color: #3bc47d; }
.reputation-entry.is-negative { border-left-color: #e35b69; }
.reputation-value { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #2c2c2c; color: #dfe6ee; font-size: 15px; font-weight: 800; }
.reputation-entry.is-positive .reputation-value { background: rgba(51,187,115,.14); color: #59da93; }
.reputation-entry.is-negative .reputation-value { background: rgba(224,78,92,.14); color: #ff707c; }
.reputation-entry p { margin: 3px 0; color: #b4bdc9; }
.reputation-entry small { color: #7e7e7e; }
.reputation-page { padding: 16px !important; }
.pun .reputation-actions { margin: 14px 0 0; }
.profile-showcase-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.profile-showcase-editor label, .profile-social-editor label { min-width: 0; }
.profile-showcase-editor input, .profile-showcase-editor textarea, .profile-social-editor input { box-sizing: border-box; width: 100%; }
.profile-showcase-editor textarea { resize: vertical; }
.profile-showcase-editor-wide { grid-column: 1 / -1; }
.profile-social-editor { display: grid; gap: 10px; }
.profile-social-editor-row { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(220px, 1fr); gap: 12px; }
#profile .blockmenu li a { display: flex; align-items: center; gap: 7px; min-height: 15px; }
#profile .blockmenu li.menu-section-start { margin-top: 7px; padding-top: 9px; border-top: 1px solid #343434; }
.profile-menu-icon { display: inline-flex; flex: 0 0 13px; width: 13px; height: 13px; align-items: center; justify-content: center; color: #787878; transition: color .14s ease, filter .14s ease; }
.profile-menu-icon svg { display: block; width: 13px; height: 13px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#profile .blockmenu li.isactive .profile-menu-icon, #profile .blockmenu a:hover .profile-menu-icon { color: #c7c7c7; filter: drop-shadow(0 0 3px rgba(199, 199, 199,.35)); }
@media (max-width: 700px) {
	.pun #viewprofile .profile-ban-notice { padding: 11px; }
	.profile-ban-details { grid-template-columns: 1fr; gap: 9px; }
  .profile-hero-banner { height: 112px; }
  .pun .profile-hero-content { flex-wrap: wrap; padding: 12px; }
  .pun .profile-hero-avatar { flex-basis: 76px; width: 76px; height: 76px; }
  .pun .profile-hero-stats { width: 100%; margin-left: 0; padding-top: 10px; border-top: 1px solid #303030; }
  .profile-appearance-grid { grid-template-columns: 1fr; }
  .profile-showcase-grid, .profile-showcase-editor, .profile-social-editor-row { grid-template-columns: 1fr; }
  .profile-setup-card, .profile-showcase-editor-wide { grid-row: auto; grid-column: auto; }
  .reputation-form { grid-template-columns: 1fr; }
  .reputation-vote-buttons { align-items: center; }
}
