.profile-hero {
  --profile-accent: #60a0dc;
  position: relative;
  min-height: 250px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 42%, #252a31);
  border-radius: 8px;
  background: #101318;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
}
.profile-ban-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #842f39;
  border-left: 3px solid #f0525f;
  border-radius: 5px;
  background: linear-gradient(110deg, rgba(102, 24, 34, .58), rgba(31, 15, 19, .96) 72%);
  box-shadow: 0 8px 24px rgba(47, 5, 12, .22), inset 0 1px rgba(255, 255, 255, .025);
  color: #e8c9cd;
}
.profile-ban-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #e14a58;
  border-radius: 50%;
  background: rgba(213, 49, 65, .16);
  color: #ff7581;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.profile-ban-content { min-width: 0; }
.profile-ban-heading { display: block; margin: 1px 0 10px; color: #ff7b86; font-size: 13px; }
.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: #b97a82; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-ban-details strong { display: block; overflow-wrap: anywhere; color: #f2dfe2; font-size: 11px; font-weight: 600; line-height: 1.45; }
.profile-ban-details a { color: #ff919a; text-decoration: none; }
.profile-ban-details a:hover { color: #ffb0b7; text-decoration: underline; }
.profile-hero-banner {
  position: absolute;
  inset: 0 0 auto;
  height: 164px;
  background-color: #121820;
  background-image: radial-gradient(circle at 75% 10%, color-mix(in srgb, var(--profile-accent) 60%, transparent), transparent 45%), linear-gradient(125deg, color-mix(in srgb, var(--profile-accent) 28%, #101318), #0a0c10 72%);
  background-size: cover;
  background-position: center;
}
.profile-hero-banner:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 16, .96)); }
.profile-hero-content { position: relative; display: flex; align-items: flex-end; gap: 18px; min-height: 218px; padding: 24px; }
.profile-hero-avatar { flex: 0 0 104px; width: 104px; height: 104px; border: 4px solid #11151b; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--profile-accent) 22%, #171b22); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.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: 34px; font-weight: 800; }
.profile-hero-identity { min-width: 0; padding-bottom: 5px; }
.profile-hero-name { margin: 0 0 7px; font-size: 24px; line-height: 1.15; }
.profile-hero-title { color: #aab2bf; font-size: 13px; }
.profile-hero-stats { display: flex; gap: 20px; margin-left: auto; padding-bottom: 8px; }
.profile-hero-stat { color: #8e98a7; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.profile-hero-stat strong { display: block; margin-bottom: 3px; color: #ecf1f7; font-size: 16px; letter-spacing: normal; text-transform: none; }
.profile-theme-glass { background: linear-gradient(145deg, rgba(26,31,40,.84), rgba(8,10,14,.96)); backdrop-filter: blur(16px); }
.profile-theme-glass .profile-hero-content { background: linear-gradient(90deg, rgba(12,15,20,.82), rgba(12,15,20,.34)); }
.profile-theme-minimal { border-color: #2a2f38; box-shadow: none; background: #15181d; }
.profile-theme-minimal .profile-hero-banner { height: 128px; filter: saturate(.65); }
.profile-theme-ember { border-color: color-mix(in srgb, var(--profile-accent) 58%, #322019); background: linear-gradient(145deg, #18130f, #0c0d10); }
.profile-theme-ember .profile-hero-banner { background-image: radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--profile-accent) 75%, transparent), transparent 38%), linear-gradient(120deg, #28150d, #090b0f 70%); }
#viewprofile.profile-customized .inform fieldset { border-color: color-mix(in srgb, var(--profile-accent) 25%, #30343b); }
#viewprofile.profile-customized .inform legend { color: color-mix(in srgb, var(--profile-accent) 80%, #fff); }
.profile-appearance-preview { margin: 12px 0 18px; }
.profile-appearance-preview .profile-hero { min-height: 210px; margin: 0; }
.profile-appearance-preview .profile-hero-content { min-height: 176px; padding: 20px; }
.profile-appearance-preview .profile-hero-avatar { flex-basis: 76px; width: 76px; height: 76px; }
.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: #aab4c2; line-height: 1.5; }
.profile-banner-help strong { color: #e8f1ff; }
.profile-banner-file-meta { display: block; min-height: 18px; margin-top: 6px; color: #91a3ba; font-size: 11px; line-height: 1.4; }
.astral-presence { display: inline-flex; align-items: center; gap: 5px; color: #7d8794; font-size: 11px; font-weight: 600; }
.astral-presence:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6f7884; box-shadow: 0 0 0 2px rgba(111,120,132,.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; }
.profile-reputation-stat { text-decoration: none; }
.profile-reputation-stat:hover { text-decoration: none; }
.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: #7f8a99; font-size: 11px; }
.profile-showcase { margin: 0 0 14px; padding: 15px; border: 1px solid color-mix(in srgb, var(--profile-accent) 23%, #292e36); border-radius: 7px; background: rgba(14,17,22,.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 #272d36; border-radius: 6px; background: linear-gradient(145deg, rgba(30,35,43,.86), rgba(17,20,25,.92)); color: #dce4ee; text-decoration: none; }
.profile-showcase-card:hover { border-color: color-mix(in srgb, var(--profile-accent) 48%, #2b313a); text-decoration: none; }
.profile-showcase-card > span { display: block; margin-bottom: 7px; color: color-mix(in srgb, var(--profile-accent) 78%, #d9e7f7); 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%, #2f3540); border-radius: 999px; background: color-mix(in srgb, var(--profile-accent) 10%, #171b21); text-decoration: none; }
.profile-social-links a:hover { border-color: var(--profile-accent); text-decoration: none; }
.profile-reputation-panel { margin: 12px 0 0; padding: 12px; border: 1px solid #232323; border-radius: 0; background: #1a1a1a; box-shadow: none; scroll-margin-top: 16px; }
.reputation-heading { margin: -12px -12px 12px; padding: 8px 10px; border-bottom: 1px solid #232323; background: #141414; }
.reputation-heading > strong { color: #ebf0f7; font-size: 11px; }
.reputation-heading > a { padding: 0; border: 0; border-radius: 0; background: transparent; color: #3c82fa; font-size: 10px; text-decoration: none; }
.reputation-heading > a:hover { color: #6fa8ff; text-decoration: none; }
.reputation-summary { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.reputation-score-orb { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 1px solid #232323; border-radius: 2px; background: #141414; box-shadow: none; color: #ebf0f7; font-size: 17px; line-height: 1; }
.reputation-score-orb.is-positive { border-color: #245d42; background: #141414; box-shadow: none; }
.reputation-score-orb.is-negative { border-color: #67333a; background: #141414; box-shadow: none; }
.reputation-summary-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.reputation-summary-copy > strong { color: #ebf0f7; font-size: 11px; }
.reputation-summary-copy > span { color: #888; font-size: 10px; }
.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: #4d5865; vertical-align: 2px; }
.reputation-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px 12px; margin: 0 0 10px; padding: 10px; border: 1px solid #232323; border-radius: 0; background: #141414; }
.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: 62px; height: 27px; border: 1px solid #3e3e3d; border-radius: 0; background: #212120; color: #ebf0f7; cursor: pointer; font: 700 10px 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: #788493; font-size: 10px; }
.reputation-login-note { color: #8792a0; }
.reputation-empty { margin: 0; padding: 8px 10px; border: 1px solid #232323; border-radius: 0; background: #141414; color: #888; }
.reputation-empty strong { display: block; margin-bottom: 2px; color: #bbb; font-size: 10px; }
.reputation-empty p { margin: 0; padding: 0; color: #777; font-size: 10px; }
.reputation-list { display: grid; gap: 8px; }
.reputation-entry { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 8px; border: 1px solid #232323; border-left: 2px solid #383838; border-radius: 0; background: #141414; }
.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: #252b33; 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: #727d8a; }
.reputation-page { padding: 16px !important; }
.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-menu-icon { display: inline-flex; flex: 0 0 13px; width: 13px; height: 13px; align-items: center; justify-content: center; color: #68778a; 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: #3c82fa; filter: drop-shadow(0 0 3px rgba(60,130,250,.35)); }
@media (max-width: 700px) {
	.profile-ban-notice { grid-template-columns: 28px minmax(0, 1fr); padding: 12px; }
	.profile-ban-icon { width: 26px; height: 26px; }
	.profile-ban-details { grid-template-columns: 1fr; gap: 9px; }
  .profile-hero-content { align-items: flex-start; flex-wrap: wrap; padding: 18px; padding-top: 112px; }
  .profile-hero-avatar { flex-basis: 82px; width: 82px; height: 82px; }
  .profile-hero-stats { width: 100%; margin-left: 100px; margin-top: -32px; }
  .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; }
}
