:root {
  color-scheme: dark;
  --ui-bg: #05070b;
  --ui-bg-2: #080b12;
  --ui-panel: rgba(13, 16, 24, .74);
  --ui-panel-solid: #0d1018;
  --ui-panel-2: rgba(18, 22, 32, .66);
  --ui-border: rgba(255, 255, 255, .09);
  --ui-border-strong: rgba(255, 255, 255, .17);
  --ui-text: #edf4ff;
  --ui-muted: #8794a7;
  --ui-dim: #596477;
  --ui-accent: #9fd8ff;
  --ui-danger: #ff6f91;
  --ui-success: #8effbd;
  --ui-shadow: 0 30px 100px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text, var(--ui-text));
  background:
    radial-gradient(circle at 14% 0%, rgba(118, 168, 255, .10), transparent 32rem),
    radial-gradient(circle at 86% 10%, rgba(126, 87, 255, .08), transparent 30rem),
    linear-gradient(180deg, #05070b, #070a11 45%, #05070b);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  background: linear-gradient(135deg, rgba(210, 236, 255, .98), rgba(132, 187, 255, .94));
  color: #06101d;
  font-weight: 850;
  letter-spacing: -.01em;
  box-shadow: 0 18px 54px rgba(110, 175, 255, .16);
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
  cursor: pointer;
}
button:hover, .button-link:hover { transform: translateY(-1px); box-shadow: 0 22px 64px rgba(110, 175, 255, .22); }
button:active, .button-link:active { transform: translateY(0) scale(.99); }
.button-ghost, button.secondary {
  background: rgba(255, 255, 255, .055);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  box-shadow: none;
}
.button-ghost:hover, button.secondary:hover { border-color: var(--ui-border-strong); background: rgba(255,255,255,.075); box-shadow: none; }
button.danger {
  background: rgba(255, 111, 145, .10);
  color: #ffc8d5;
  border: 1px solid rgba(255, 111, 145, .24);
  box-shadow: none;
}
.compact-button { padding: 8px 11px; border-radius: 11px; font-size: 13px; }
code { padding: 2px 6px; border-radius: 8px; background: rgba(255,255,255,.055); color: #dff4ff; }

/* public profile */
.public-body {
  overflow-x: hidden;
  min-height: 100svh;
  background: var(--bg, #05070b);
}
.background-root {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  background: linear-gradient(145deg, var(--gradient-from, #101827), var(--gradient-to, #06070b));
}
.bg-media {
  position: absolute;
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  object-fit: cover;
  object-position: var(--bg-x, 50%) var(--bg-y, 50%);
  filter: blur(min(var(--bg-blur, 2px), 12px));
  transform: scale(clamp(1, var(--bg-scale, 1), 1.22));
  transform-origin: center;
}
.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent, #9fd8ff) 17%, transparent), transparent 34rem),
    linear-gradient(145deg, var(--gradient-from, #101827), var(--gradient-to, #06070b));
}
.bg-dim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.05), rgba(0,0,0,.56)),
    rgba(0,0,0,var(--bg-dim, .5));
}
.fog-layer {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.06), transparent 22rem),
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent, #9fd8ff) 8%, transparent), transparent 28rem);
  filter: blur(28px);
  animation: drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}
.noise-layer {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: repeating-radial-gradient(circle at 20% 40%, rgba(255,255,255,.42), rgba(255,255,255,.42) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.snow-layer {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1.5px), radial-gradient(circle, color-mix(in srgb, var(--accent, #9fd8ff) 30%, transparent) 1px, transparent 1.5px);
  background-size: 86px 86px, 136px 136px;
  animation: snowfall 34s linear infinite;
  opacity: .20;
  pointer-events: none;
}
@keyframes snowfall { from { background-position: 0 -160px, 30px -110px; } to { background-position: 0 920px, 30px 850px; } }
@keyframes drift { from { transform: translate3d(-1%, -1%, 0) scale(1); } to { transform: translate3d(1.5%, 1%, 0) scale(1.015); } }
.enter-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: grid;
  place-items: center;
  gap: 13px;
  align-content: center;
  background: rgba(3, 5, 9, .72);
  color: var(--text, #edf4ff);
  z-index: 20;
  backdrop-filter: blur(14px);
  box-shadow: none;
}
.enter-screen span:last-child { text-transform: lowercase; letter-spacing: .08em; color: rgba(237,244,255,.82); }
.enter-orb {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.88), color-mix(in srgb, var(--accent, #9fd8ff) 45%, transparent) 34%, color-mix(in srgb, var(--accent, #9fd8ff) 8%, transparent) 72%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 56px color-mix(in srgb, var(--glow, #9fd8ff) 22%, transparent);
}
.enter-screen.is-gone { opacity: 0; pointer-events: none; transition: opacity .42s ease; }
.public-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 44px) 14px;
  opacity: 1;
  transition: opacity .42s ease, transform .42s ease;
  perspective: 1100px;
}
.public-shell.is-hidden { opacity: 0; transform: translateY(8px) scale(.99); pointer-events: none; }
.profile-card {
  width: min(clamp(320px, var(--card-width, 420px), 480px), calc(100vw - 28px));
  padding: clamp(20px, 4vw, 26px);
  border-radius: clamp(18px, var(--card-radius, 24px), 32px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.012)),
    rgba(9, 12, 18, var(--card-opacity, .84));
  border: 1px solid rgba(255,255,255,.105);
  box-shadow:
    0 22px 80px rgba(0,0,0,.48),
    0 0 48px color-mix(in srgb, var(--glow, #9fd8ff) 9%, transparent);
  backdrop-filter: blur(min(var(--card-blur, 14px), 22px));
  text-align: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .16s ease, border-color .16s ease;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.07), transparent 15rem),
    linear-gradient(135deg, rgba(255,255,255,.065), transparent 32%);
}
.profile-card > * { position: relative; }
.animated-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 180deg, transparent, var(--accent, #9fd8ff), transparent 34%, transparent);
  animation: spin 8s linear infinite;
  opacity: .48;
}
@keyframes spin { to { transform: rotate(1turn); } }
.profile-meta-row {
  min-height: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 8px;
  color: color-mix(in srgb, var(--muted, #9ba8bc) 88%, transparent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.profile-meta-row span {
  padding: 0;
  border: 0;
  background: transparent;
}
.profile-identity { display: grid; justify-items: center; gap: 8px; }
.avatar-wrap {
  width: clamp(72px, var(--avatar-size, 96px), 104px);
  height: clamp(72px, var(--avatar-size, 96px), 104px);
  margin: 0 auto 5px;
  border-radius: var(--avatar-radius, 999px);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  position: relative;
}
.avatar-glow { box-shadow: 0 0 0 5px rgba(255,255,255,.022), 0 0 44px color-mix(in srgb, var(--glow, #9fd8ff) 31%, transparent); }
.avatar { width: 100%; height: 100%; object-fit: cover; object-position: var(--avatar-x, 50%) var(--avatar-y, 50%); transform: scale(clamp(.75, var(--avatar-zoom, 1), 1.65)); }
.avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent, #9fd8ff); font-size: calc(clamp(72px, var(--avatar-size, 96px), 104px) * .42); font-weight: 950; }
.display-name {
  margin: 0;
  font-size: clamp(2.05rem, 8vw, 3rem);
  line-height: .94;
  letter-spacing: -.068em;
  color: var(--text, #edf4ff);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.name-glow { text-shadow: 0 0 24px color-mix(in srgb, var(--glow, #9fd8ff) 36%, transparent); }
.username { margin: 0; color: var(--muted, #9ba8bc); font-size: 14px; }
.status-pill {
  display: inline-flex;
  margin: 5px auto 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.095);
  color: var(--text, #edf4ff);
  font-size: 13px;
  line-height: 1;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) 8%, rgba(255,255,255,.035));
  border: 1px solid color-mix(in srgb, var(--badge-color) 20%, transparent);
  font-weight: 740;
  font-size: 12px;
}
.badges b { font-size: 10px; font-weight: 900; opacity: .86; }
.bio {
  margin: 17px auto 0;
  color: color-mix(in srgb, var(--text, #edf4ff) 76%, var(--muted, #9ba8bc));
  line-height: 1.55;
  white-space: pre-wrap;
  max-width: 48ch;
  font-size: 14.5px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 9px;
  margin-top: 18px;
}
.profile-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.052);
  border: 1px solid rgba(255,255,255,.085);
  color: var(--text, #edf4ff);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
  overflow: hidden;
}
.profile-link:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent, #9fd8ff) 8%, rgba(255,255,255,.055)); border-color: color-mix(in srgb, var(--accent, #9fd8ff) 28%, rgba(255,255,255,.10)); }
.link-icon { color: var(--accent, #9fd8ff); font-weight: 850; min-width: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .95; }
.profile-modules {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.public-connection, .audio-card {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 17px;
  background: rgba(255,255,255,.047);
  border: 1px solid rgba(255,255,255,.085);
  text-align: left;
  overflow: hidden;
}
.public-connection:hover { border-color: color-mix(in srgb, var(--accent, #9fd8ff) 25%, rgba(255,255,255,.10)); background: color-mix(in srgb, var(--accent, #9fd8ff) 7%, rgba(255,255,255,.047)); }
.public-connection img, .public-connection > span, .audio-cover {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.08);
}
.public-connection div, .audio-card div { min-width: 0; }
.public-connection small, .tiny-label {
  display: block;
  color: var(--muted, #9ba8bc);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .115em;
  line-height: 1.2;
}
.public-connection strong, .audio-card strong {
  display: block;
  color: var(--text, #edf4ff);
  font-size: 14px;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-card small {
  display: block;
  color: var(--muted, #9ba8bc);
  margin-top: 2px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-cover-fallback { color: var(--accent, #9fd8ff); font-size: 18px; }
.profile-footer {
  margin-top: 16px;
  color: var(--muted, #9ba8bc);
  font-size: 12px;
  opacity: .70;
}
@media (max-width: 520px) {
  .profile-card { padding: 19px; }
  .display-name { font-size: clamp(1.9rem, 12vw, 2.65rem); }
  .profile-meta-row { justify-content: center; margin-top: 0; }
  .link-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .snow-layer, .fog-layer, .animated-border::after { animation: none; }
  .profile-link, button, .button-link, .public-shell { transition: none; }
}

/* studio + admin */
.studio-body, .admin-body { min-height: 100svh; color: var(--ui-text); background: radial-gradient(circle at 20% -5%, rgba(105, 165, 255, .13), transparent 34rem), radial-gradient(circle at 88% 16%, rgba(143, 95, 255, .10), transparent 32rem), linear-gradient(180deg, #05070b, #070a11 38%, #05070b); }
.glassbar, .topbar { width: min(1320px, calc(100% - 32px)); margin: 14px auto 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(9,12,18,.62); backdrop-filter: blur(18px); box-shadow: 0 20px 90px rgba(0,0,0,.22); }
.studio-topbar, .topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; position: sticky; top: 12px; z-index: 10; }
.brand-mark, .brand { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 950; letter-spacing: -.045em; color: #f2f7ff; }
.brand-mark span, .brand { font-size: 18px; }
.brand-mark small { color: var(--ui-muted); font-weight: 700; }
.top-actions, .topbar nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-actions a, .topbar a, .subtle-link { color: #b7c3d3; }
.top-actions a:hover, .topbar a:hover, .subtle-link:hover { color: #f2f7ff; }
.inline-form { display: inline; margin: 0; }
.inline-form button { white-space: nowrap; }
.studio-shell, .dashboard { width: min(1320px, calc(100% - 32px)); margin: 28px auto 80px; position: relative; }
.compact-hero, .dash-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 20px; }
.studio-hero h1, .dash-heading h1, .auth-card h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.1rem); line-height: .94; letter-spacing: -.075em; }
.eyebrow { margin: 0 0 10px; color: var(--ui-accent); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.muted { color: var(--ui-muted); }
.hero-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.saved-pill, .saved, .success-panel { color: var(--ui-success); border-color: rgba(142,255,189,.2) !important; background: rgba(142,255,189,.075) !important; }
.saved-pill, .saved { padding: 10px 13px; border-radius: 999px; border: 1px solid rgba(142,255,189,.2); font-weight: 800; font-size: 13px; }
.alert { padding: 12px 14px; border: 1px solid rgba(255,111,145,.26); background: rgba(255,111,145,.1); color: #ffc6d1; border-radius: 14px; }
.studio-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-preview-rail { display: grid; gap: 18px; position: sticky; top: 98px; }
.studio-panel, .panel, .auth-card { border: 1px solid var(--ui-border); background: linear-gradient(180deg, rgba(15,19,29,.78), rgba(9,12,18,.72)); border-radius: 26px; padding: 20px; box-shadow: var(--ui-shadow); backdrop-filter: blur(18px); }
.editor-shell { padding: 0; overflow: hidden; }
.preview-frame { position: relative; min-height: 310px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: #080b12; display: grid; place-items: center; }
.preview-frame > img, .preview-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; filter: blur(2px); transform: scale(1.04); }
.preview-vignette { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent, rgba(0,0,0,.55)); }
.preview-mini-card { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 200px; padding: 20px; border-radius: 22px; background: rgba(7,10,16,.72); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.preview-mini-card img, .preview-mini-card span { width: 78px; height: 78px; border-radius: 999px; object-fit: cover; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--ui-accent); font-weight: 950; font-size: 32px; }
.preview-mini-card small, .preview-mini-card em { color: var(--ui-muted); font-style: normal; }
.full-button { display: block; text-align: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.055); border: 1px solid var(--ui-border); color: #dceaff; margin-top: 14px; }
.full-button:hover { border-color: rgba(159,216,255,.28); background: rgba(159,216,255,.065); }
.quick-upload-panel h2, .profile-preview-card h2, .panel h2, .studio-panel h2 { margin: 0 0 8px; letter-spacing: -.035em; }
.quick-upload-grid { display: grid; gap: 10px; margin-top: 14px; }
.mini-upload { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); }
.mini-upload label { display: grid; gap: 8px; }
.mini-upload label span { color: #d7e3f5; font-weight: 780; }
.mini-upload button { padding: 8px 10px; border-radius: 11px; font-size: 13px; }
.tab-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); scrollbar-width: thin; }
.tab-button { flex: 0 0 auto; padding: 10px 13px; border-radius: 999px; background: transparent; color: #9ca9bc; border: 1px solid transparent; box-shadow: none; font-size: 13px; }
.tab-button:hover { transform: none; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.08); box-shadow: none; }
.tab-button.is-active { color: #06101d; background: linear-gradient(135deg, #ddf2ff, #8fc9ff); border-color: transparent; box-shadow: 0 14px 38px rgba(110,175,255,.16); }
.tabbed-editor { position: relative; }
.tab-panel { display: none; padding: 24px; min-height: 560px; }
.tab-panel.is-active { display: block; animation: tabIn .14s ease-out; }
@keyframes tabIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.05em; }
.panel-heading p { margin: 5px 0 0; color: var(--ui-muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.compact-fields { grid-template-columns: 1fr 1fr; }
.full-span { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #b8c4d4; font-size: 14px; }
label small { color: var(--ui-dim); }
input, textarea, select { width: 100%; color: var(--ui-text); background: rgba(255,255,255,.052); border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 11px 12px; outline: none; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
input:focus, textarea:focus, select:focus { border-color: rgba(159,216,255,.42); box-shadow: 0 0 0 4px rgba(159,216,255,.075); background: rgba(255,255,255,.072); }
input:disabled { opacity: .65; }
textarea { resize: vertical; min-height: 140px; }
input[type="color"] { padding: 5px; height: 43px; }
input[type="range"] { accent-color: #9fd8ff; padding-inline: 0; background: transparent; }
.range-grid label { position: relative; }
.range-grid output { color: var(--ui-dim); font-size: 12px; justify-self: end; }
.subsection-card { margin-top: 18px; padding: 16px; border: 1px solid rgba(255,255,255,.075); border-radius: 20px; background: rgba(255,255,255,.025); }
.subsection-card h3 { margin: 0 0 12px; letter-spacing: -.03em; }
.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.toggle { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid transparent; }
.toggle input { width: auto; accent-color: #9fd8ff; }
.toggle:has(input:checked) { border-color: rgba(159,216,255,.22); background: rgba(159,216,255,.07); }
.range-toggle { grid-column: 1 / -1; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); }
.links-editor { display: grid; gap: 10px; }
.link-row { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(90px,.45fr) minmax(220px,1.6fr) auto; gap: 9px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.032); border: 1px solid rgba(255,255,255,.07); }
.icon-button { width: 42px; height: 42px; padding: 0; border-radius: 13px; background: rgba(255,255,255,.052); color: #c9d5e6; border: 1px solid rgba(255,255,255,.08); box-shadow: none; font-size: 20px; }
.icon-button:hover { box-shadow: none; background: rgba(255,111,145,.10); color: #ffd3dc; border-color: rgba(255,111,145,.24); }
.split-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.connection-card { position: relative; display: grid; gap: 14px; padding: 17px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.connection-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(159,216,255,.5), transparent); opacity: .45; }
.connection-head { display: flex; align-items: center; gap: 12px; }
.connection-head h3 { margin: 0; letter-spacing: -.035em; }
.connection-head p { margin: 3px 0 0; color: var(--ui-muted); font-size: 13px; }
.service-dot { width: 36px; height: 36px; border-radius: 13px; display: block; background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.discord-dot { background: radial-gradient(circle at 35% 25%, #fff, #8ea1ff 35%, #5865f2); }
.spotify-dot { background: radial-gradient(circle at 35% 25%, #fff, #52ff91 35%, #1db954); }
.connection-avatar { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); }
.connection-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.disabled-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 13px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); color: var(--ui-muted); font-size: 13px; }
.badge-picker { display: flex; flex-wrap: wrap; gap: 9px; }
.badge-toggle { --badge-color: #9fd8ff; display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--badge-color) 18%, rgba(255,255,255,.10)); background: rgba(255,255,255,.045); color: #dceaff; cursor: pointer; }
.badge-toggle input { width: auto; accent-color: var(--badge-color); }
.badge-toggle span { display: inline-flex; align-items: center; gap: 6px; color: var(--badge-color); font-weight: 750; font-size: 13px; }
.badge-toggle b { font-size: 10px; opacity: .85; }
.badge-toggle:has(input:checked) { background: color-mix(in srgb, var(--badge-color) 9%, rgba(255,255,255,.045)); border-color: color-mix(in srgb, var(--badge-color) 34%, transparent); }
.asset-list { display: grid; gap: 8px; }
.asset-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px; border-radius: 15px; background: rgba(255,255,255,.045); border: 1px solid transparent; overflow: hidden; }
.asset-list a:hover { border-color: rgba(159,216,255,.18); background: rgba(159,216,255,.06); }
.asset-type { color: #9fd8ff; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.asset-list strong { font-size: 13px; color: #dceaff; }
.asset-list small { color: var(--ui-muted); }
.sticky-savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(7,10,16,.78); backdrop-filter: blur(18px); }
.sticky-savebar span { color: var(--ui-muted); font-size: 13px; }

/* auth/admin shared */
.auth-card { width: min(480px, calc(100% - 32px)); margin: 12vh auto; }
.auth-card .subtle-link { display: inline-block; margin-top: 16px; }
.stack-form { display: grid; gap: 13px; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.wide-panel { grid-column: 1 / -1; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.075); vertical-align: middle; }
th { color: var(--ui-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.token-box { display: block; padding: 14px; overflow: auto; white-space: nowrap; }
.badge-admin-grid { display: grid; gap: 12px; margin-top: 14px; }
.badge-admin-card { display: grid; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.badge-admin-card small { display: block; margin-top: 4px; color: var(--ui-muted); }
.badge-picker.compact { gap: 7px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 1080px) {
  .studio-layout { grid-template-columns: 1fr; }
  .profile-preview-rail { position: static; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .connection-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .glassbar, .topbar, .studio-shell, .dashboard { width: min(100% - 22px, 1320px); }
  .studio-topbar, .topbar, .compact-hero, .dash-heading { align-items: flex-start; flex-direction: column; }
  .profile-preview-rail, .panel-grid { grid-template-columns: 1fr; }
  .field-grid, .toggle-grid, .compact-fields { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 1fr; }
  .icon-button { width: 100%; }
  .tab-panel { padding: 18px; }
  .sticky-savebar { padding: 12px 18px; align-items: stretch; flex-direction: column; }
  .profile-card { padding: 22px; }
}

/* v1.0.5 profile studio performance pass */
html { scroll-behavior: auto; }
.profile-studio-v2-body {
  background:
    radial-gradient(circle at 18% -10%, rgba(92, 140, 210, .10), transparent 30rem),
    linear-gradient(180deg, #040609, #070910 48%, #040609);
}
.profile-studio-v2 {
  width: min(1180px, calc(100% - 24px));
  margin: 18px auto 32px;
}
.studio-topbar-lean,
.studio-hero-lean,
.editor-shell-v2,
.studio-panel.editor-shell-v2 {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.24) !important;
}
.studio-topbar-lean {
  position: sticky;
  top: 10px;
  z-index: 30;
  background: rgba(7, 9, 14, .94) !important;
}
.studio-hero-lean {
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;
  background: rgba(9, 12, 18, .76);
}
.editor-shell-v2 {
  overflow: clip;
  background: rgba(8, 10, 16, .92) !important;
  border-radius: 22px !important;
}
.studio-tabs-row,
.tab-strip.studio-tabs-row {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(8, 10, 16, .98) !important;
  scrollbar-width: thin;
}
.studio-tabs-row .tab-button,
.tab-strip.studio-tabs-row .tab-button {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 9px 13px;
  border-radius: 12px;
  color: #aab5c6;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none !important;
  transform: none !important;
}
.studio-tabs-row .tab-button:not(:last-child) {
  margin-right: 6px;
}
.studio-tabs-row .tab-button:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 18px;
  margin-left: 6px;
  background: rgba(255,255,255,.10);
  pointer-events: none;
}
.studio-tabs-row .tab-button.is-active {
  color: #08111d;
  background: linear-gradient(135deg, #edf8ff, #8fc9ff);
  border-color: transparent;
}
.tabbed-editor-v2 {
  min-height: 420px;
  position: relative;
}
.tab-panel[hidden] { display: none !important; }
.tabbed-editor-v2 .tab-panel {
  min-height: 0 !important;
  padding: 22px;
  contain: layout paint;
}
.tabbed-editor-v2 .tab-panel.is-active {
  display: block;
  animation: none !important;
}
.studio-grid-tight {
  gap: 11px;
}
.studio-grid-tight input,
.studio-grid-tight textarea,
.studio-grid-tight select,
.upload-card-v2 input,
.upload-card-v2 select {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.085);
}
.upload-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.upload-card-v2 {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background: rgba(255,255,255,.028);
}
.upload-card-v2 strong { font-size: 15px; letter-spacing: -.02em; }
.upload-card-v2 span { color: var(--ui-muted); font-size: 12px; }
.upload-card-v2 button { padding: 9px 11px; border-radius: 12px; font-size: 13px; }
.compact-section { padding: 14px; margin-top: 12px; border-radius: 18px; }
.compact-effect-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.connection-grid-v2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.connection-card-v2 { box-shadow: none; }
.link-row-v2 { grid-template-columns: minmax(130px,.9fr) minmax(96px,.5fr) minmax(240px,1.8fr) 42px; }
.badge-picker-v2 { max-width: 780px; }
.compact-assets {
  max-height: 260px;
  overflow: auto;
}
.sticky-savebar-v2 {
  position: sticky;
  bottom: 0;
  z-index: 22;
  background: #070a10 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.bg-media { will-change: auto; }
.fog-layer, .snow-layer, .noise-layer { will-change: auto; }
@media (max-width: 1120px) {
  .upload-grid-v2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .compact-effect-grid, .connection-grid-v2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .profile-studio-v2 { width: min(100% - 18px, 1180px); margin-top: 12px; }
  .studio-tabs-row, .tab-strip.studio-tabs-row { top: 10px; padding: 8px; }
  .upload-grid-v2, .compact-effect-grid, .connection-grid-v2 { grid-template-columns: 1fr; }
  .tabbed-editor-v2 .tab-panel { padding: 16px; }
  .link-row-v2 { grid-template-columns: 1fr; }
  .sticky-savebar-v2 { align-items: stretch; flex-direction: column; }
}

/* v1.0.7 public profile redesign */
.profile-card-v3 {
  width: min(clamp(318px, var(--card-width, 388px), 430px), calc(100vw - 28px));
  padding: 18px;
  border-radius: clamp(18px, var(--card-radius, 24px), 30px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(7, 9, 14, clamp(.72, var(--card-opacity, .84), .92));
  border: 1px solid rgba(255,255,255,.105);
  box-shadow: 0 24px 86px rgba(0,0,0,.56), 0 0 42px color-mix(in srgb, var(--glow, #9fd8ff) 7%, transparent);
  backdrop-filter: blur(min(var(--card-blur, 12px), 16px));
  text-align: center;
}
.profile-card-v3::before {
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--accent, #9fd8ff) 10%, transparent), transparent 13rem),
    linear-gradient(135deg, rgba(255,255,255,.055), transparent 38%);
}
.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--muted, #9ba8bc) 86%, transparent);
  font-size: 11px;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.profile-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .72; }
.profile-views { flex: 0 0 auto; color: color-mix(in srgb, var(--text, #edf4ff) 72%, var(--muted, #9ba8bc)); }
.profile-identity-v3 { gap: 6px; }
.avatar-wrap-v3 {
  width: clamp(66px, var(--avatar-size, 84px), 92px);
  height: clamp(66px, var(--avatar-size, 84px), 92px);
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 5px rgba(255,255,255,.028), 0 0 34px color-mix(in srgb, var(--glow, #9fd8ff) 19%, transparent);
}
.display-name-v3 {
  font-size: clamp(2rem, 9vw, 2.65rem);
  line-height: .96;
  letter-spacing: -.07em;
}
.username-v3 { font-size: 13px; opacity: .90; }
.status-pill-v3 {
  margin-top: 7px;
  padding: 7px 13px;
  font-size: 12.5px;
  background: rgba(255,255,255,.050);
  border-color: rgba(255,255,255,.095);
}
.badges-v3 { margin-top: 13px; gap: 7px; }
.badges-v3 span { padding: 6px 9px; font-size: 11.5px; background: color-mix(in srgb, var(--badge-color) 11%, rgba(255,255,255,.035)); }
.bio-v3 {
  margin-top: 15px;
  max-width: 38ch;
  color: color-mix(in srgb, var(--text, #edf4ff) 80%, var(--muted, #9ba8bc));
  font-size: 14px;
}
.profile-section-v3 {
  margin-top: 14px;
  padding-top: 0;
}
.section-label {
  display: block;
  margin: 0 0 7px 2px;
  color: color-mix(in srgb, var(--muted, #9ba8bc) 84%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: left;
}
.profile-link-list {
  display: grid;
  gap: 8px;
}
.profile-link-v3 {
  min-height: 45px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.052);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text, #edf4ff);
  text-align: left;
  transition: transform .13s ease, background .13s ease, border-color .13s ease;
}
.profile-link-v3:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent, #9fd8ff) 8%, rgba(255,255,255,.056));
  border-color: color-mix(in srgb, var(--accent, #9fd8ff) 26%, rgba(255,255,255,.09));
}
.profile-link-v3 strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  letter-spacing: -.01em;
}
.link-token {
  min-width: 32px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding-inline: 8px;
  border-radius: 999px;
  color: var(--accent, #9fd8ff);
  background: color-mix(in srgb, var(--accent, #9fd8ff) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #9fd8ff) 20%, transparent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.link-arrow, .connection-open { color: color-mix(in srgb, var(--text, #edf4ff) 62%, transparent); font-size: 14px; }
.connection-list-v3 {
  display: grid;
  gap: 8px;
}
.connection-v3 {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255,255,255,.048);
  border: 1px solid rgba(255,255,255,.088);
  transition: transform .13s ease, background .13s ease, border-color .13s ease;
}
.connection-v3:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #9fd8ff) 22%, rgba(255,255,255,.10));
  background: color-mix(in srgb, var(--accent, #9fd8ff) 6%, rgba(255,255,255,.05));
}
.connection-avatar-v3 {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--accent, #9fd8ff);
  font-size: 11px;
  font-weight: 950;
}
.connection-copy-v3 { min-width: 0; }
.connection-service-v3 {
  display: block;
  margin-bottom: 2px;
  color: color-mix(in srgb, var(--muted, #9ba8bc) 88%, transparent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.connection-copy-v3 strong {
  display: block;
  color: var(--text, #edf4ff);
  font-size: 13.5px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connection-copy-v3 small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  min-width: 0;
  color: var(--muted, #9ba8bc);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.presence-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #747d8c;
  box-shadow: 0 0 0 3px rgba(255,255,255,.025);
}
.presence-dot.is-online { background: #4ade80; }
.presence-dot.is-idle { background: #facc15; }
.presence-dot.is-dnd { background: #fb7185; }
.presence-dot.is-offline, .presence-dot.is-unknown { background: #747d8c; }
.audio-card-v3 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 18px;
  background: rgba(255,255,255,.048);
  border: 1px solid rgba(255,255,255,.088);
  text-align: left;
}
.audio-cover-v3 {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.09);
}
.audio-copy-v3 { min-width: 0; }
.audio-copy-v3 .section-label { margin-bottom: 2px; }
.audio-copy-v3 strong {
  display: block;
  color: var(--text, #edf4ff);
  font-size: 13.5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-copy-v3 small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #9ba8bc);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uid-footnote { margin: 14px 0 0; color: var(--muted, #9ba8bc); font-size: 11px; opacity: .64; }
@media (max-width: 520px) {
  .profile-card-v3 { width: min(390px, calc(100vw - 22px)); padding: 16px; }
  .profile-topline { justify-content: center; }
  .profile-address { display: none; }
  .display-name-v3 { font-size: clamp(2rem, 11vw, 2.45rem); }
}

/* v1.0.8 public profile rebuild: wider card, proper link buttons, real connection cards */
.public-body-v4 {
  background: var(--bg, #05070b);
}
.public-shell-v4 {
  min-height: 100svh;
  padding: clamp(18px, 4vw, 48px) 16px;
  display: grid;
  place-items: center;
}
.profile-card-v4 {
  width: min(clamp(380px, var(--card-width, 560px), 720px), calc(100vw - 32px));
  padding: clamp(22px, 4vw, 34px);
  border-radius: clamp(20px, var(--card-radius, 24px), 34px);
  background:
    radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--accent, #9fd8ff) 14%, transparent), transparent 17rem),
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.020)),
    rgba(7, 9, 14, clamp(.74, var(--card-opacity, .84), .94));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 28px 110px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 58px color-mix(in srgb, var(--glow, #9fd8ff) 8%, transparent);
  backdrop-filter: blur(min(var(--card-blur, 14px), 18px));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-card-v4::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent),
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.045), transparent 16rem);
  opacity: .82;
}
.profile-card-v4 > * { position: relative; }
.profile-topline-v4 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 18px;
}
.profile-topline-v4 span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: color-mix(in srgb, var(--muted, #9ba8bc) 92%, var(--text, #f5f8ff));
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.profile-hero-v4 {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.avatar-wrap-v4 {
  width: clamp(74px, var(--avatar-size, 92px), 112px);
  height: clamp(74px, var(--avatar-size, 92px), 112px);
  margin: 0 auto 12px;
  border-radius: var(--avatar-radius, 999px);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.070);
  box-shadow: 0 0 0 6px rgba(255,255,255,.024), 0 0 46px color-mix(in srgb, var(--glow, #9fd8ff) 22%, transparent);
  overflow: hidden;
}
.display-name-v4 {
  margin: 0;
  max-width: 100%;
  color: var(--text, #f5f8ff);
  font-size: clamp(2.45rem, 8vw, 4.45rem);
  line-height: .92;
  letter-spacing: -.08em;
  overflow-wrap: anywhere;
}
.username-v4 {
  margin: 0;
  color: color-mix(in srgb, var(--muted, #9ba8bc) 92%, var(--text, #f5f8ff));
  font-size: 14px;
}
.status-pill-v4 {
  margin: 9px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.052);
  border: 1px solid rgba(255,255,255,.10);
  color: color-mix(in srgb, var(--text, #f5f8ff) 92%, var(--accent, #9fd8ff));
  font-size: 13px;
  line-height: 1;
}
.badges-v4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 17px 0 0;
}
.badges-v4 span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--badge-color) 10%, rgba(255,255,255,.035));
  border: 1px solid color-mix(in srgb, var(--badge-color) 25%, rgba(255,255,255,.06));
  color: var(--badge-color);
  font-size: 12px;
  font-weight: 800;
}
.badges-v4 b {
  font-size: 10px;
  font-weight: 950;
  opacity: .9;
}
.bio-v4 {
  width: min(100%, 68ch);
  margin: 20px auto 0;
  color: color-mix(in srgb, var(--text, #f5f8ff) 84%, var(--muted, #9ba8bc));
  font-size: 15px;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.link-stack-v4 {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  margin: 22px auto 0;
}
.link-button-v4 {
  min-height: 54px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030)),
    rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.105);
  color: var(--text, #f5f8ff);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.link-button-v4:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #9fd8ff) 35%, rgba(255,255,255,.12));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #9fd8ff) 9%, rgba(255,255,255,.075)), rgba(255,255,255,.036)),
    rgba(255,255,255,.052);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 34px rgba(0,0,0,.20);
}
.link-mark-v4 {
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent, #9fd8ff) 12%, rgba(255,255,255,.035));
  border: 1px solid color-mix(in srgb, var(--accent, #9fd8ff) 18%, transparent);
  color: var(--accent, #9fd8ff);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  overflow: hidden;
}
.link-text-v4 { min-width: 0; display: grid; gap: 2px; }
.link-text-v4 strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.link-text-v4 small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: color-mix(in srgb, var(--muted, #9ba8bc) 88%, transparent);
  font-size: 12px;
}
.link-action-v4 {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: color-mix(in srgb, var(--text, #f5f8ff) 76%, transparent);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.module-grid-v4 {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px auto 0;
}
.module-grid-v4.has-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-card-v4,
.audio-card-v4 {
  min-height: 70px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.026)),
    rgba(255,255,255,.040);
  border: 1px solid rgba(255,255,255,.10);
  text-align: left;
  color: var(--text, #f5f8ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.050);
}
.service-card-v4:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #9fd8ff) 30%, rgba(255,255,255,.11));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #9fd8ff) 8%, rgba(255,255,255,.065)), rgba(255,255,255,.028)),
    rgba(255,255,255,.046);
}
.service-avatar-shell-v4 {
  position: relative;
  width: 48px;
  height: 48px;
  display: block;
}
.service-avatar-v4,
.audio-cover-v4 {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255,255,255,.072);
  border: 1px solid rgba(255,255,255,.095);
  color: var(--accent, #9fd8ff);
  font-size: 11px;
  font-weight: 950;
}
.presence-dot-v4 {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #747d8c;
  border: 3px solid rgba(8, 10, 15, .96);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10);
}
.presence-dot-v4.is-online { background: #4ade80; }
.presence-dot-v4.is-idle { background: #facc15; }
.presence-dot-v4.is-dnd { background: #fb7185; }
.presence-dot-v4.is-offline,
.presence-dot-v4.is-unknown { background: #747d8c; }
.service-copy-v4,
.audio-copy-v4 {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.service-copy-v4 small,
.audio-copy-v4 small {
  color: color-mix(in srgb, var(--muted, #9ba8bc) 90%, transparent);
  font-size: 10.5px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.service-copy-v4 strong,
.audio-copy-v4 strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text, #f5f8ff);
  font-size: 14px;
  line-height: 1.12;
}
.service-copy-v4 em,
.audio-copy-v4 em {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: color-mix(in srgb, var(--muted, #9ba8bc) 86%, transparent);
  font-size: 12px;
  font-style: normal;
}
.service-open-v4,
.audio-play-indicator-v4 {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.042);
  color: color-mix(in srgb, var(--text, #f5f8ff) 72%, transparent);
  font-size: 13px;
}
.audio-card-v4 {
  width: min(100%, 560px);
  margin: 14px auto 0;
}
.audio-play-indicator-v4 { cursor: pointer; }
.uid-footnote-v4 {
  margin: 18px 0 0;
  color: var(--muted, #9ba8bc);
  font-size: 11px;
  opacity: .62;
}
@media (max-width: 640px) {
  .profile-card-v4 {
    width: min(440px, calc(100vw - 22px));
    padding: 20px 15px;
  }
  .profile-topline-v4 { margin-bottom: 14px; }
  .profile-topline-v4 span:first-child { display: none; }
  .display-name-v4 { font-size: clamp(2.35rem, 13vw, 3.55rem); }
  .bio-v4 { font-size: 14.5px; }
  .module-grid-v4.has-two { grid-template-columns: 1fr; }
  .link-stack-v4, .module-grid-v4, .audio-card-v4 { width: 100%; }
  .link-button-v4 { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .link-action-v4 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .link-button-v4,
  .service-card-v4 { transition: none; }
  .link-button-v4:hover,
  .service-card-v4:hover { transform: none; }
}
