:root {
  color-scheme: dark;
  --bg: #09080c;
  --surface: rgba(22, 19, 27, 0.82);
  --surface-strong: #17141c;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.105);
  --stroke-strong: rgba(255, 255, 255, 0.19);
  --text: #fbf8fc;
  --muted: #aaa3ae;
  --muted-strong: #cdc6d0;
  --violet: #a855f7;
  --purple: #7c3aed;
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb7185;
  --green: #62e6b5;
  --danger: #ff5d78;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --accent-gradient: linear-gradient(125deg, #7c3aed 0%, #c026d3 48%, #f43f5e 100%);
  --hero-gradient:
    radial-gradient(circle at 74% 19%, rgba(244, 63, 94, 0.5), transparent 22%),
    radial-gradient(circle at 28% 34%, rgba(168, 85, 247, 0.48), transparent 31%),
    linear-gradient(130deg, #171022 0%, #260e25 50%, #270d1b 100%);
  font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 33%, rgba(236, 72, 153, 0.06), transparent 24rem),
    radial-gradient(circle at 11% 72%, rgba(124, 58, 237, 0.07), transparent 28rem),
    var(--bg);
  min-height: 100vh;
  transition: background 240ms ease, color 180ms ease;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.hero-clip-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

body.auth-booting > .topbar,
body.auth-booting > main { visibility: hidden; }
body.auth-gate-active { height: 100dvh; overflow: hidden; }
body.auth-gate-active > .topbar,
body.auth-gate-active > main,
body.auth-gate-active > .mobile-player { display: none !important; }

.mobile-login-experience,
.mobile-login-back { display: none; }

.login-view {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(420px,.92fr);
  min-width: 320px;
  min-height: 100dvh;
  padding: clamp(18px,2.5vw,38px);
  overflow: auto;
  background:
    radial-gradient(circle at 16% 16%,color-mix(in srgb,var(--role-primary,#a855f7) 10%,transparent),transparent 30rem),
    radial-gradient(circle at 88% 82%,color-mix(in srgb,var(--role-secondary,#ec4899) 8%,transparent),transparent 27rem),
    var(--bg);
  isolation: isolate;
}
.login-view::before {
  position: fixed;
  z-index: 0;
  width: 82vmax;
  height: 82vmax;
  top: -45vmax;
  left: -26vmax;
  border-radius: 50%;
  content: "";
  opacity: .34;
  pointer-events: none;
  background: conic-gradient(from 20deg,transparent 0 18%,color-mix(in srgb,var(--role-primary,#a855f7) 32%,transparent) 28%,transparent 43% 58%,color-mix(in srgb,var(--role-secondary,#ec4899) 25%,transparent) 70%,transparent 84%);
  filter: blur(95px);
  animation: loginBackdropOrbit 24s linear infinite;
  will-change: transform;
}
.login-view::after {
  position: fixed;
  z-index: 0;
  inset: -18%;
  content: "";
  opacity: .14;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb,var(--role-primary,#a855f7) 22%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--role-primary,#a855f7) 22%,transparent) 1px,transparent 1px),
    radial-gradient(circle at 74% 38%,color-mix(in srgb,var(--role-secondary,#ec4899) 38%,transparent),transparent 24%);
  background-size: 58px 58px,58px 58px,100% 100%;
  mask-image: radial-gradient(ellipse at center,#000 0 34%,transparent 76%);
  animation: loginGridDrift 28s linear infinite,loginBackdropBreathe 8s ease-in-out infinite;
  will-change: transform,opacity;
}
.login-view > .login-showcase,
.login-view > .login-panel { z-index: 1; }
.login-showcase {
  position: relative;
  min-height: min(760px,calc(100dvh - clamp(36px,5vw,76px)));
  padding: clamp(28px,4vw,56px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 42px 18px 18px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 73% 24%,color-mix(in srgb,var(--role-secondary,#ec4899) 38%,transparent),transparent 25%),
    radial-gradient(circle at 30% 78%,color-mix(in srgb,var(--role-primary,#a855f7) 35%,transparent),transparent 36%),
    linear-gradient(145deg,rgba(14,12,21,.88) 0%,rgba(23,16,32,.79) 48%,rgba(16,16,26,.74) 100%);
  box-shadow:
    0 34px 110px color-mix(in srgb,var(--role-primary,#a855f7) 17%,rgba(0,0,0,.42)),
    inset 1px 1px rgba(255,255,255,.11),
    inset -1px -1px rgba(255,255,255,.025);
  -webkit-backdrop-filter: blur(24px) saturate(132%);
  backdrop-filter: blur(24px) saturate(132%);
  isolation: isolate;
  background-size: 122% 122%,128% 128%,100% 100%;
  animation: loginShowcaseIn 720ms cubic-bezier(.2,.8,.2,1) both,loginShowcaseFlow 17s ease-in-out 720ms infinite alternate;
}
.account-editor .login-showcase { background: radial-gradient(circle at 73% 24%,rgba(34,211,238,.26),transparent 25%),radial-gradient(circle at 30% 78%,rgba(79,70,229,.34),transparent 36%),linear-gradient(145deg,rgba(7,18,30,.88),rgba(10,28,53,.8) 52%,rgba(17,17,40,.76)); }
.login-showcase::before {
  position: absolute;
  z-index: -1;
  width: 56%;
  aspect-ratio: 1;
  top: -18%;
  right: -14%;
  border-radius: 50%;
  content: "";
  opacity: .55;
  background: conic-gradient(from 45deg,transparent,color-mix(in srgb,var(--role-primary,#a855f7) 28%,transparent),transparent 45%,color-mix(in srgb,var(--role-secondary,#ec4899) 24%,transparent),transparent 78%);
  filter: blur(34px);
  animation: loginAurora 13s ease-in-out infinite alternate;
}
.login-showcase::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .2;
  background:
    repeating-linear-gradient(118deg,transparent 0 62px,rgba(255,255,255,.028) 63px,transparent 64px),
    linear-gradient(180deg,transparent 58%,rgba(0,0,0,.2));
}
.login-showcase-head { display: flex; position: relative; z-index: 3; align-items: center; justify-content: space-between; }
.login-brand { display: inline-flex; gap: 11px; align-items: center; color: #fff; font: 800 21px/1 "Manrope",sans-serif; letter-spacing: .09em; text-decoration: none; }
.login-role-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.065); box-shadow: inset 0 1px rgba(255,255,255,.11),0 10px 28px rgba(0,0,0,.12); -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-symbol { position: absolute; z-index: 1; top: 14%; right: 5%; width: min(39vw,430px); aspect-ratio: 1; opacity: .72; animation: loginFloat 7s ease-in-out infinite; }
.login-symbol span { position: absolute; inset: calc(var(--ring,0) * 9%); border: 1px solid color-mix(in srgb,var(--role-primary,#a855f7) calc(43% - var(--ring,0) * 5%),transparent); border-radius: 50%; transform: rotate(calc(var(--ring,0) * 13deg)); }
.login-symbol span:nth-child(1) { --ring: 0; --ring-delay: 1.6s; }
.login-symbol span:nth-child(2) { --ring: 1; --ring-delay: 1.2s; }
.login-symbol span:nth-child(3) { --ring: 2; --ring-delay: .8s; }
.login-symbol span:nth-child(4) { --ring: 3; --ring-delay: .4s; }
.login-symbol span:nth-child(5) { --ring: 4; --ring-delay: 0s; }
.account-owner .login-symbol span { --ring-angle: calc(-18deg + var(--ring,0) * 10deg); height: 42%; top: calc(20% + var(--ring,0) * 5%); border-radius: 50%; transform: rotate(var(--ring-angle)); transform-origin: center; animation: loginOwnerRing 7.2s cubic-bezier(.45,.05,.55,.95) var(--ring-delay) infinite both; will-change: transform,opacity; }
.account-editor .login-symbol span { --ring-angle: calc(8deg + var(--ring,0) * 7deg); border-radius: calc(52px - var(--ring,0) * 7px); transform: rotate(var(--ring-angle)); transform-origin: center; animation: loginEditorRing 7.2s cubic-bezier(.45,.05,.55,.95) var(--ring-delay) infinite both; will-change: transform,opacity; }
.login-symbol i { position: absolute; z-index: 3; width: 10px; height: 10px; top: 50%; left: 50%; border-radius: 50%; background: linear-gradient(145deg,var(--role-primary,#a855f7),var(--role-secondary,#ec4899)); box-shadow: 0 0 24px var(--role-primary,#a855f7),0 0 65px color-mix(in srgb,var(--role-secondary,#ec4899) 55%,transparent); transform: translate(-50%,-50%); animation: loginCorePulse 7.2s ease-in-out infinite; will-change: transform,filter; }
.account-editor .login-symbol i { width: 38px; height: 52px; border-radius: 5px; clip-path: polygon(0 0,100% 50%,0 100%); animation-name: loginEditorCorePulse; }
.login-showcase-copy { position: absolute; z-index: 3; left: clamp(28px,4vw,56px); right: clamp(28px,4vw,56px); bottom: clamp(42px,6vw,82px); max-width: 620px; animation: loginRise 700ms cubic-bezier(.2,.8,.2,1) both; }
.login-showcase-copy > p:first-child { margin: 0 0 16px; color: color-mix(in srgb,var(--role-primary,#c45bea) 76%,#fff); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.login-showcase-copy h2 { margin: 0; font: 800 clamp(48px,6.3vw,92px)/.91 "Manrope",sans-serif; letter-spacing: -.07em; }
.login-showcase-copy h2 span { color: transparent; background: linear-gradient(100deg,#fff 0%,var(--role-primary,#c45bea) 42%,var(--role-secondary,#f43f72) 92%); background-clip: text; -webkit-background-clip: text; }
.login-showcase-copy > p:last-child { max-width: 500px; margin: 24px 0 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.7; }
.login-equalizer { position: absolute; z-index: 2; display: flex; gap: 7px; align-items: center; right: clamp(28px,4vw,56px); bottom: clamp(35px,5vw,65px); height: 58px; opacity: .5; }
.login-equalizer i { width: 3px; height: 42%; border-radius: 9px; background: linear-gradient(to top,var(--role-primary,#a855f7),var(--role-secondary,#ec4899)); transform-origin: center; animation: loginEqualizer 1.55s ease-in-out infinite alternate; }
.login-equalizer i:nth-child(2) { animation-delay: -.75s; }
.login-equalizer i:nth-child(3) { animation-delay: -.25s; }
.login-equalizer i:nth-child(4) { animation-delay: -1.1s; }
.login-equalizer i:nth-child(5) { animation-delay: -.45s; }
.login-equalizer i:nth-child(6) { animation-delay: -.9s; }
.login-equalizer i:nth-child(7) { animation-delay: -.15s; }

.login-panel { position: relative; display: grid; place-items: center; min-height: min(760px,calc(100dvh - clamp(36px,5vw,76px))); padding: clamp(28px,5vw,74px); isolation: isolate; }
.login-panel::before,
.login-panel::after { position: absolute; z-index: -1; border-radius: 50%; content: ""; pointer-events: none; filter: blur(80px); will-change: transform; }
.login-panel::before { width: min(38vw,460px); aspect-ratio: 1; top: 3%; right: -12%; opacity: .17; background: var(--role-primary,#a855f7); animation: loginPanelOrbOne 13s ease-in-out infinite alternate; }
.login-panel::after { width: min(30vw,360px); aspect-ratio: 1; bottom: -7%; left: -12%; opacity: .13; background: var(--role-secondary,#ec4899); animation: loginPanelOrbTwo 16s ease-in-out infinite alternate; }
.login-theme-button { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: var(--text); background: rgba(255,255,255,.065); box-shadow: 0 14px 36px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.12); -webkit-backdrop-filter: blur(22px) saturate(145%); backdrop-filter: blur(22px) saturate(145%); }
.login-theme-button:hover { border-color: color-mix(in srgb,var(--role-primary,#a855f7) 30%,var(--stroke)); transform: rotate(9deg); }
.login-theme-button svg { width: 17px; }
.login-card { position: relative; width: min(100%,470px); padding: clamp(28px,4vw,48px); overflow: hidden; border: 1px solid rgba(255,255,255,.155); border-radius: 30px; background: linear-gradient(145deg,rgba(31,27,37,.68),rgba(15,12,20,.5)); box-shadow: 0 38px 100px rgba(0,0,0,.29),0 8px 32px color-mix(in srgb,var(--role-primary,#a855f7) 8%,transparent),inset 1px 1px rgba(255,255,255,.13),inset -1px -1px rgba(255,255,255,.025); -webkit-backdrop-filter: blur(34px) saturate(148%); backdrop-filter: blur(34px) saturate(148%); isolation: isolate; animation: loginCardIn 620ms cubic-bezier(.2,.8,.2,1) both; }
.login-card::before { position: absolute; z-index: -1; width: 62%; height: 150%; top: -25%; left: -82%; content: ""; pointer-events: none; opacity: .42; background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--role-primary,#a855f7) 14%,#fff),transparent); filter: blur(14px); transform: skewX(-18deg); animation: loginCardSheen 9s ease-in-out 1.4s infinite; will-change: transform; }
.login-card::after { position: absolute; z-index: -1; inset: 1px; border-radius: 29px; content: ""; pointer-events: none; background: linear-gradient(145deg,rgba(255,255,255,.075),transparent 28%,transparent 72%,color-mix(in srgb,var(--role-primary,#a855f7) 5%,transparent)); box-shadow: inset 0 1px rgba(255,255,255,.07); }
.login-card.login-error { animation: loginShake 360ms ease both; }
.login-portals { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; padding: 5px; border: 1px solid rgba(255,255,255,.105); border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: inset 0 1px rgba(255,255,255,.055); -webkit-backdrop-filter: blur(16px) saturate(135%); backdrop-filter: blur(16px) saturate(135%); }
.login-portals a { display: grid; place-items: center; min-height: 38px; border-radius: 10px; color: var(--muted); font-size: 10px; font-weight: 800; text-decoration: none; transition: 180ms ease; }
.login-portals a:hover { color: var(--text); }
.account-editor #loginEditorPortalLink,
.account-viewer #loginViewerPortalLink { color: #fff; background: var(--role-gradient); box-shadow: 0 9px 24px color-mix(in srgb,var(--role-primary) 24%,transparent); }
.login-heading { position: relative; margin: 34px 0 29px; padding-right: 64px; }
.login-lock { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 51px; height: 51px; border-radius: 17px; color: var(--role-primary,#c45bea); background: var(--role-soft,rgba(192,38,211,.12)); box-shadow: inset 0 1px color-mix(in srgb,var(--role-primary,#c45bea) 17%,transparent); }
.login-lock svg { width: 21px; }
.login-heading > p:first-of-type { margin: 0 0 10px; color: var(--role-primary,#c45bea); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.login-heading h1 { margin: 0; font: 800 clamp(34px,4vw,45px)/1 "Manrope",sans-serif; letter-spacing: -.05em; }
.login-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.login-google { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; color: var(--text); background: rgba(255,255,255,.07); box-shadow: inset 0 1px rgba(255,255,255,.08),0 12px 30px rgba(0,0,0,.1); font-size: 11px; font-weight: 800; transition: transform 180ms ease,border-color 180ms ease,background 180ms ease; }
.login-google:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--role-primary,#a855f7) 35%,rgba(255,255,255,.18)); background: rgba(255,255,255,.1); }
.login-google:disabled { cursor: wait; opacity: .65; transform: none; }
.login-google svg { width: 19px; height: 19px; flex: 0 0 auto; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.login-divider::before,.login-divider::after { flex: 1; height: 1px; background: rgba(255,255,255,.1); content: ""; }
.login-form { display: grid; }
.login-form > label { margin: 0 0 8px; color: var(--muted-strong); font-size: 9px; font-weight: 700; }
.login-form > label:not(:first-child) { margin-top: 18px; }
.login-form:not(.signup-mode) > label[for="loginEmailInput"] { margin-top: 0; }
.login-input-wrap { position: relative; display: flex; align-items: center; min-height: 52px; border: 1px solid rgba(255,255,255,.105); border-radius: 15px; background: rgba(255,255,255,.04); box-shadow: inset 0 1px rgba(255,255,255,.045); -webkit-backdrop-filter: blur(16px) saturate(135%); backdrop-filter: blur(16px) saturate(135%); transition: border-color 180ms ease,box-shadow 180ms ease,background 180ms ease; }
.login-input-wrap:focus-within { border-color: color-mix(in srgb,var(--role-primary,#a855f7) 55%,rgba(255,255,255,.18)); background: color-mix(in srgb,var(--role-primary,#a855f7) 7%,rgba(255,255,255,.055)); box-shadow: 0 0 0 4px color-mix(in srgb,var(--role-primary,#a855f7) 9%,transparent),inset 0 1px rgba(255,255,255,.08); }
.login-input-wrap.invalid { border-color: color-mix(in srgb,var(--danger) 66%,var(--stroke)); background: color-mix(in srgb,var(--danger) 5%,var(--surface-strong)); box-shadow: 0 0 0 4px color-mix(in srgb,var(--danger) 9%,transparent); }
.login-input-wrap > svg { flex: 0 0 auto; width: 17px; margin-left: 16px; color: var(--muted); }
.login-input-wrap input { width: 100%; height: 50px; min-width: 0; padding: 0 14px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.login-input-wrap input:focus-visible { outline: 0; }
.login-input-wrap input::placeholder { color: color-mix(in srgb,var(--muted) 72%,transparent); }
.login-password-toggle { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; margin-right: 5px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; }
.login-password-toggle:hover { color: var(--text); background: var(--surface-soft); }
.login-password-toggle[aria-pressed="true"] { color: var(--role-primary,#a855f7); background: var(--role-soft,rgba(192,38,211,.12)); }
.login-password-toggle svg { width: 17px; }
.login-security-note { display: flex; gap: 7px; align-items: center; margin-top: 13px; color: var(--muted); font-size: 8px; }
.login-security-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px color-mix(in srgb,var(--green) 70%,transparent); }
.login-status { min-height: 17px; margin: 13px 0 4px; color: var(--danger); font-size: 9px; line-height: 1.45; }
.login-status.success { color: var(--green); }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0 19px 0 21px; border: 0; border-radius: 15px; color: #fff; background: var(--role-gradient,var(--accent-gradient)); box-shadow: 0 16px 38px color-mix(in srgb,var(--role-primary,#a855f7) 27%,transparent); font-size: 11px; font-weight: 800; transition: transform 180ms ease,box-shadow 180ms ease,opacity 180ms ease; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 44px color-mix(in srgb,var(--role-primary,#a855f7) 34%,transparent); }
.login-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.login-submit svg { width: 17px; transition: transform 180ms ease; }
.login-submit:hover svg { transform: translateX(3px); }
.login-submit::after { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; content: ""; }
.login-submit.loading svg { display: none; }
.login-submit.loading::after { display: block; animation: loginSpin 700ms linear infinite; }
.login-auth-switch { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 16px; color: var(--muted); font-size: 9px; }
.login-auth-switch button { padding: 4px 5px; border: 0; color: var(--role-primary,#34d399); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.login-auth-switch button:hover { color: var(--text); }
.login-invite-note { margin: 19px 0; color: var(--muted); font-size: 8.5px; text-align: center; }
.login-viewer-link { display: grid; grid-template-columns: 34px minmax(0,1fr) 17px; gap: 10px; align-items: center; min-height: 53px; padding: 8px 13px 8px 9px; border: 1px solid rgba(255,255,255,.105); border-radius: 15px; color: var(--muted-strong); background: rgba(255,255,255,.04); box-shadow: inset 0 1px rgba(255,255,255,.045); -webkit-backdrop-filter: blur(16px) saturate(135%); backdrop-filter: blur(16px) saturate(135%); font-size: 9.5px; font-weight: 700; text-decoration: none; transition: 180ms ease; }
.login-viewer-link:hover { color: var(--text); border-color: color-mix(in srgb,var(--role-secondary,#ec4899) 30%,rgba(255,255,255,.16)); background: color-mix(in srgb,var(--role-secondary,#ec4899) 6%,rgba(255,255,255,.055)); transform: translateY(-1px); }
.login-viewer-link > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--role-primary,#a855f7); background: var(--role-soft,rgba(192,38,211,.12)); }
.login-viewer-link > span svg { width: 16px; }
.login-viewer-link > svg { width: 14px; }
.login-footer { position: absolute; bottom: 4px; margin: 0; color: var(--muted); font-size: 8px; letter-spacing: .04em; }

/* Immersive login — one animated canvas, no split banner. */
.login-view {
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  padding: clamp(88px,11vh,116px) 18px 62px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 18%,color-mix(in srgb,var(--role-primary,#a855f7) 18%,transparent),transparent 25rem),
    radial-gradient(circle at 86% 76%,color-mix(in srgb,var(--role-secondary,#ec4899) 15%,transparent),transparent 28rem),
    radial-gradient(circle at 52% 48%,color-mix(in srgb,var(--role-primary,#a855f7) 7%,transparent),transparent 38rem),
    linear-gradient(145deg,#08070b 0%,#100b14 48%,#08090e 100%);
}
.account-editor .login-view {
  background:
    radial-gradient(circle at 16% 18%,rgba(34,211,238,.16),transparent 25rem),
    radial-gradient(circle at 86% 76%,rgba(79,70,229,.16),transparent 28rem),
    radial-gradient(circle at 52% 48%,rgba(34,211,238,.06),transparent 38rem),
    linear-gradient(145deg,#050a12 0%,#071221 48%,#080817 100%);
}
.login-view::before {
  inset: -36%;
  width: auto;
  height: auto;
  top: auto;
  left: auto;
  opacity: .42;
  border-radius: 44%;
  background:
    conic-gradient(from 15deg,transparent 0 12%,color-mix(in srgb,var(--role-primary,#a855f7) 30%,transparent) 24%,transparent 37% 55%,color-mix(in srgb,var(--role-secondary,#ec4899) 24%,transparent) 68%,transparent 83%),
    radial-gradient(circle at center,color-mix(in srgb,var(--role-primary,#a855f7) 9%,transparent),transparent 44%);
  filter: blur(92px);
  animation: loginBackdropOrbit 30s linear infinite;
}
.login-view::after {
  inset: -24%;
  opacity: .12;
  background-image:
    linear-gradient(color-mix(in srgb,var(--role-primary,#a855f7) 20%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--role-primary,#a855f7) 20%,transparent) 1px,transparent 1px),
    radial-gradient(circle at 50% 48%,color-mix(in srgb,var(--role-secondary,#ec4899) 28%,transparent),transparent 28%);
  background-size: 64px 64px,64px 64px,100% 100%;
  mask-image: radial-gradient(ellipse at center,#000 0 28%,transparent 70%);
  animation: loginGridDrift 34s linear infinite,loginBackdropBreathe 9s ease-in-out infinite;
}
.login-shell-head {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - clamp(32px,6vw,88px)),1180px);
  top: clamp(22px,4vw,46px);
  left: 50%;
  transform: translateX(-50%);
  animation: loginHeadIn 700ms cubic-bezier(.2,.8,.2,1) both;
}
.login-shell-actions { display: flex; gap: 10px; align-items: center; }
.login-shell-head .login-brand { color: var(--text); }
.login-shell-head .login-role-chip {
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(255,255,255,.14);
  color: var(--muted-strong);
  background: rgba(255,255,255,.055);
  box-shadow: 0 16px 38px rgba(0,0,0,.14),inset 0 1px rgba(255,255,255,.09);
}
.login-shell-head .login-theme-button {
  position: static;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
.login-cinematic-layer {
  position: fixed;
  z-index: 0;
  inset: -2%;
  pointer-events: none;
  opacity: .58;
  background-image: url("assets/vibe-login-cinematic.webp");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: screen;
  filter: saturate(112%) contrast(105%);
  transform: scale(1.04);
  animation: loginCinematicDrift 24s cubic-bezier(.45,.05,.55,.95) infinite alternate;
  will-change: transform;
}
.account-editor .login-cinematic-layer { opacity: .5; filter: hue-rotate(38deg) saturate(105%) contrast(108%); }
.login-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}
.login-atmosphere::before,
.login-atmosphere::after {
  position: absolute;
  content: "";
  pointer-events: none;
  will-change: transform,opacity;
}
.login-atmosphere::before {
  width: min(82vw,940px);
  aspect-ratio: 1.5;
  border: 1px solid color-mix(in srgb,var(--role-primary,#a855f7) 16%,transparent);
  border-radius: 48% 52% 56% 44% / 58% 44% 56% 42%;
  box-shadow: 0 0 90px color-mix(in srgb,var(--role-primary,#a855f7) 8%,transparent),inset 0 0 80px color-mix(in srgb,var(--role-secondary,#ec4899) 5%,transparent);
  animation: loginRibbonOrbit 18s cubic-bezier(.45,.05,.55,.95) infinite;
}
.login-atmosphere::after {
  width: min(62vw,700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,color-mix(in srgb,var(--role-primary,#a855f7) 13%,transparent),transparent 62%);
  filter: blur(22px);
  animation: loginLightPulse 8s ease-in-out infinite;
}
.login-atmosphere .login-symbol {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  width: min(78vw,760px);
  opacity: .34;
  transform-origin: center;
  animation: loginStageDrift 12s ease-in-out infinite;
}
.login-atmosphere .login-symbol span { border-width: 1px; }
.login-atmosphere .login-symbol i { opacity: .82; }
.login-particles { position: absolute; inset: 0; }
.login-particles i {
  position: absolute;
  width: var(--s);
  height: var(--s);
  top: var(--y);
  left: var(--x);
  border-radius: 50%;
  opacity: 0;
  background: color-mix(in srgb,var(--role-primary,#a855f7) 72%,#fff);
  box-shadow: 0 0 18px color-mix(in srgb,var(--role-primary,#a855f7) 60%,transparent);
  animation: loginParticleSequence 5.6s ease-in-out var(--d) infinite;
}
.login-atmosphere .login-equalizer {
  right: clamp(28px,5vw,72px);
  bottom: clamp(30px,4vw,58px);
  opacity: .34;
}
.login-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 0;
  padding: 0;
  isolation: isolate;
}
.login-panel::before {
  width: min(58vw,560px);
  top: -28%;
  right: 3%;
  opacity: .14;
  filter: blur(92px);
}
.login-panel::after {
  width: min(48vw,440px);
  bottom: -20%;
  left: 2%;
  opacity: .11;
  filter: blur(92px);
}
.login-card {
  width: min(100%,480px);
  margin: 0 auto;
  padding: clamp(30px,4vw,44px);
  border-radius: 34px;
  box-shadow: 0 42px 120px rgba(0,0,0,.34),0 12px 44px color-mix(in srgb,var(--role-primary,#a855f7) 10%,transparent),inset 1px 1px rgba(255,255,255,.14),inset -1px -1px rgba(255,255,255,.025);
  animation: loginCardIn 620ms cubic-bezier(.2,.8,.2,1) both,loginCardBreathe 8s ease-in-out 900ms infinite;
}
.login-card::after { border-radius: 33px; }
.login-heading { margin: 30px 0 27px; }
.login-lock { border: 1px solid color-mix(in srgb,var(--role-primary,#c45bea) 17%,transparent); background: color-mix(in srgb,var(--role-primary,#c45bea) 10%,rgba(255,255,255,.035)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.login-submit { background-size: 180% 180%; animation: loginButtonFlow 6s ease-in-out infinite; }
.login-footer { position: fixed; z-index: 5; right: 0; bottom: 24px; left: 0; text-align: center; }

@keyframes loginAurora { to { transform: translate(-12%,14%) rotate(28deg) scale(1.12); } }
@keyframes loginFloat { 50% { transform: translateY(-13px) rotate(3deg); } }
@keyframes loginBackdropOrbit { to { transform: translate(34vw,26vh) rotate(360deg) scale(1.12); } }
@keyframes loginBackdropBreathe { 0%,100% { opacity: .1; } 50% { opacity: .2; } }
@keyframes loginGridDrift { to { transform: translate3d(58px,58px,0); } }
@keyframes loginShowcaseFlow { 0% { background-position: 20% 22%,25% 72%,center; } 100% { background-position: 78% 42%,62% 38%,center; } }
@keyframes loginPanelOrbOne { to { transform: translate(-26%,38%) scale(1.16); } }
@keyframes loginPanelOrbTwo { to { transform: translate(34%,-32%) scale(1.12); } }
@keyframes loginCardSheen { 0%,16% { transform: translateX(0) skewX(-18deg); opacity: 0; } 34% { opacity: .42; } 52%,100% { transform: translateX(390%) skewX(-18deg); opacity: 0; } }
@keyframes loginHeadIn { from { opacity: 0; transform: translate(-50%,-12px); } to { opacity: 1; transform: translate(-50%,0); } }
@keyframes loginCinematicDrift {
  0% { transform: translate3d(-1.1%,-.7%,0) scale(1.045) rotate(-.35deg); }
  50% { transform: translate3d(.8%,.45%,0) scale(1.07) rotate(.2deg); }
  100% { transform: translate3d(1.2%,-.35%,0) scale(1.055) rotate(.4deg); }
}
@keyframes loginRibbonOrbit {
  0%,100% { opacity: .42; transform: rotate(-9deg) scale(.96); border-radius: 48% 52% 56% 44% / 58% 44% 56% 42%; }
  50% { opacity: .72; transform: rotate(9deg) scale(1.05); border-radius: 56% 44% 47% 53% / 44% 56% 43% 57%; }
}
@keyframes loginLightPulse { 0%,100% { opacity: .5; transform: scale(.88); } 50% { opacity: .92; transform: scale(1.12); } }
@keyframes loginStageDrift { 0%,100% { transform: translate3d(0,8px,0) rotate(-2deg) scale(.98); } 50% { transform: translate3d(0,-10px,0) rotate(2deg) scale(1.025); } }
@keyframes loginParticleSequence {
  0%,100% { opacity: 0; transform: translate3d(0,12px,0) scale(.55); }
  22% { opacity: .72; transform: translate3d(7px,0,0) scale(1); }
  58% { opacity: .28; transform: translate3d(14px,-18px,0) scale(.76); }
  78% { opacity: 0; transform: translate3d(20px,-32px,0) scale(.45); }
}
@keyframes loginCardBreathe {
  0%,100% { box-shadow: 0 42px 120px rgba(0,0,0,.34),0 12px 44px color-mix(in srgb,var(--role-primary,#a855f7) 9%,transparent),inset 1px 1px rgba(255,255,255,.14),inset -1px -1px rgba(255,255,255,.025); }
  50% { box-shadow: 0 48px 128px rgba(0,0,0,.38),0 16px 58px color-mix(in srgb,var(--role-primary,#a855f7) 15%,transparent),inset 1px 1px rgba(255,255,255,.16),inset -1px -1px rgba(255,255,255,.025); }
}
@keyframes loginCardBreatheLight {
  0%,100% { box-shadow: 0 38px 104px rgba(50,31,58,.14),0 10px 38px color-mix(in srgb,var(--role-primary,#a855f7) 7%,transparent),inset 1px 1px rgba(255,255,255,.95),inset -1px -1px rgba(255,255,255,.28); }
  50% { box-shadow: 0 44px 116px rgba(50,31,58,.18),0 15px 52px color-mix(in srgb,var(--role-primary,#a855f7) 12%,transparent),inset 1px 1px rgba(255,255,255,1),inset -1px -1px rgba(255,255,255,.3); }
}
@keyframes loginButtonFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes loginOwnerRing {
  0%,100% { opacity: .36; transform: rotate(var(--ring-angle)) scale(.965); }
  18% { opacity: .94; transform: rotate(calc(var(--ring-angle) + 13deg)) scale(1.035); }
  38% { opacity: .68; transform: rotate(calc(var(--ring-angle) + 21deg)) scale(1.005); }
  66% { opacity: .44; transform: rotate(calc(var(--ring-angle) + 27deg)) scale(.98); }
}
@keyframes loginEditorRing {
  0%,100% { opacity: .34; transform: rotate(var(--ring-angle)) scale(.965); }
  18% { opacity: .9; transform: rotate(calc(var(--ring-angle) + 9deg)) scale(1.028); }
  38% { opacity: .64; transform: rotate(calc(var(--ring-angle) + 15deg)) scale(1.004); }
  66% { opacity: .42; transform: rotate(calc(var(--ring-angle) + 20deg)) scale(.98); }
}
@keyframes loginCorePulse {
  0%,100% { transform: translate(-50%,-50%) scale(.84); filter: brightness(.9); }
  8% { transform: translate(-50%,-50%) scale(1.28); filter: brightness(1.4); }
  22% { transform: translate(-50%,-50%) scale(.98); filter: brightness(1.06); }
}
@keyframes loginEditorCorePulse {
  0%,100% { transform: translate(-50%,-50%) scale(.94); filter: brightness(.95) drop-shadow(0 0 8px color-mix(in srgb,var(--role-primary) 35%,transparent)); }
  8% { transform: translate(-50%,-50%) scale(1.1); filter: brightness(1.3) drop-shadow(0 0 22px color-mix(in srgb,var(--role-primary) 65%,transparent)); }
  22% { transform: translate(-50%,-50%) scale(1); filter: brightness(1.06) drop-shadow(0 0 12px color-mix(in srgb,var(--role-primary) 42%,transparent)); }
}
@keyframes loginRise { from { opacity: 0; transform: translateY(24px); } }
@keyframes loginCardIn { from { opacity: 0; transform: translateX(26px) scale(.985); } }
@keyframes loginShowcaseIn { from { opacity: 0; transform: translateX(-22px) scale(.99); } }
@keyframes loginEqualizer { from { transform: scaleY(.35); opacity: .38; } to { transform: scaleY(1); opacity: .85; } }
@keyframes loginSpin { to { transform: rotate(360deg); } }
@keyframes loginShake { 0%,100% { transform: translateX(0); } 28% { transform: translateX(-7px); } 56% { transform: translateX(6px); } 78% { transform: translateX(-3px); } }
@property --dashboard-trail-angle { syntax: "<angle>"; inherits: false; initial-value: 0turn; }
@keyframes dashboardBorderTrail { to { --dashboard-trail-angle: 1turn; } }

button, input, textarea { font: inherit; }
button { color: inherit; }
button, a, input[type="range"] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #e879f9;
  outline-offset: 3px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

svg path[fill], .main-play svg path, .mobile-play svg path, .center-play svg path, .primary-button svg path {
  fill: currentColor;
  stroke: none;
}

.ambient {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  transition: background 500ms ease;
}

.ambient-one { width: 32vw; height: 32vw; top: 4%; left: -10%; background: rgba(124, 58, 237, 0.1); }
.ambient-two { width: 27vw; height: 27vw; right: -8%; top: 45%; background: rgba(244, 63, 94, 0.09); }

.account-owner {
  --role-primary: #c45bea;
  --role-secondary: #f43f72;
  --role-ink: #7e22ce;
  --role-soft: rgba(192,38,211,.12);
  --role-gradient: linear-gradient(125deg,#7c3aed 0%,#c026d3 48%,#f43f5e 100%);
  --accent-gradient: var(--role-gradient);
  --hero-gradient: radial-gradient(circle at 74% 19%,rgba(244,63,94,.5),transparent 22%),radial-gradient(circle at 28% 34%,rgba(168,85,247,.48),transparent 31%),linear-gradient(130deg,#171022,#260e25 50%,#270d1b);
}
.account-editor {
  --role-primary: #22d3ee;
  --role-secondary: #8b5cf6;
  --role-ink: #0369a1;
  --role-soft: rgba(34,211,238,.11);
  --role-gradient: linear-gradient(125deg,#0891b2 0%,#2563eb 48%,#8b5cf6 100%);
  --accent-gradient: var(--role-gradient);
  --hero-gradient: radial-gradient(circle at 77% 20%,rgba(34,211,238,.35),transparent 25%),radial-gradient(circle at 27% 37%,rgba(79,70,229,.5),transparent 32%),linear-gradient(130deg,#081725,#0d1e3d 52%,#17132f);
}
.account-viewer {
  --role-primary: #34d399;
  --role-secondary: #38bdf8;
  --role-ink: #047857;
  --role-soft: rgba(52,211,153,.11);
  --role-gradient: linear-gradient(125deg,#059669 0%,#0891b2 48%,#3b82f6 100%);
  --accent-gradient: var(--role-gradient);
  --hero-gradient: radial-gradient(circle at 76% 22%,rgba(56,189,248,.32),transparent 25%),radial-gradient(circle at 28% 38%,rgba(16,185,129,.38),transparent 33%),linear-gradient(130deg,#071b1b,#0b2432 52%,#111b35);
}
.account-special-editor {
  --role-primary: #e5b85d;
  --role-secondary: #ffe8a3;
  --role-ink: #8a5a0a;
  --role-soft: rgba(229,184,93,.13);
  --role-gradient: linear-gradient(125deg,#93611b 0%,#d59d39 48%,#f3d382 100%);
  --accent-gradient: var(--role-gradient);
  --hero-gradient: radial-gradient(circle at 77% 20%,rgba(255,226,146,.3),transparent 25%),radial-gradient(circle at 27% 37%,rgba(190,122,27,.46),transparent 32%),linear-gradient(130deg,#171207,#2b1d0b 52%,#1b1409);
}
body.account-owner {
  background:
    radial-gradient(circle at 84% 18%,rgba(244,63,94,.08),transparent 30rem),
    radial-gradient(circle at 9% 73%,rgba(124,58,237,.1),transparent 32rem),
    linear-gradient(180deg,#0b080d 0%,#09080c 100%);
}
body.account-editor {
  background:
    radial-gradient(circle at 84% 18%,rgba(34,211,238,.075),transparent 30rem),
    radial-gradient(circle at 9% 73%,rgba(37,99,235,.105),transparent 32rem),
    linear-gradient(180deg,#080c13 0%,#070a10 100%);
}
body.account-viewer {
  background:
    radial-gradient(circle at 84% 18%,rgba(56,189,248,.07),transparent 30rem),
    radial-gradient(circle at 9% 73%,rgba(16,185,129,.095),transparent 32rem),
    linear-gradient(180deg,#07110f 0%,#060b0c 100%);
}
body.account-special-editor {
  background:
    radial-gradient(circle at 84% 18%,rgba(229,184,93,.09),transparent 30rem),
    radial-gradient(circle at 9% 73%,rgba(157,99,20,.11),transparent 32rem),
    linear-gradient(180deg,#100d08 0%,#090806 100%);
}
.account-editor .ambient-one { background: rgba(37,99,235,.11); }
.account-editor .ambient-two { background: rgba(34,211,238,.09); }
.account-special-editor .ambient-one { background: rgba(170,107,24,.13); }
.account-special-editor .ambient-two { background: rgba(229,184,93,.1); }
.account-viewer .ambient-one { background: rgba(5,150,105,.1); }
.account-viewer .ambient-two { background: rgba(56,189,248,.09); }

.vibe-dock {
  position: fixed;
  z-index: 58;
  top: 50%;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--stroke-strong);
  border-radius: 25px;
  background: rgba(20,17,24,.78);
  box-shadow: 0 22px 60px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.055);
  backdrop-filter: blur(26px) saturate(145%);
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.vibe-dock::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 19px;
  content: "";
  pointer-events: none;
}
.vibe-dock-item {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #aaa3ae;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 6px 16px rgba(0,0,0,.18);
  transform: scale(var(--dock-scale,1));
  transform-origin: left center;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 90ms linear;
  will-change: transform;
}
.vibe-dock-item:hover,
.vibe-dock-item:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 10px 26px rgba(0,0,0,.3);
}
.vibe-dock-item[aria-pressed="true"] {
  color: #fff;
  background: var(--role-gradient,var(--accent-gradient));
  box-shadow: 0 9px 25px color-mix(in srgb,var(--role-primary,#a855f7) 30%,transparent), inset 0 1px rgba(255,255,255,.22);
}
.vibe-dock-icon { display: grid; place-items: center; width: 21px; height: 21px; pointer-events: none; }
.vibe-dock-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vibe-dock-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 13px);
  width: max-content;
  padding: 7px 9px;
  border: 1px solid var(--stroke-strong);
  border-radius: 9px;
  color: #f7f2f8;
  background: rgba(18,15,21,.96);
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-5px,-50%);
  transition: opacity 130ms ease, transform 160ms ease;
}
.vibe-dock-label::before {
  position: absolute;
  top: 50%;
  right: 100%;
  border: 5px solid transparent;
  border-right-color: rgba(18,15,21,.96);
  content: "";
  transform: translateY(-50%);
}
.vibe-dock-item:hover .vibe-dock-label,
.vibe-dock-item:focus-visible .vibe-dock-label { opacity: 1; transform: translate(0,-50%); }
.vibe-dock-divider { position: relative; z-index: 1; width: 27px; height: 1px; margin: 2px 0; background: var(--stroke-strong); }
body.auth-booting > .vibe-dock { visibility: hidden; }
body.auth-gate-active > .vibe-dock { display: none; }

:root[data-color-mode="light"] .vibe-dock {
  border-color: rgba(71,52,78,.16);
  background: rgba(255,255,255,.78);
  box-shadow: 0 22px 60px rgba(80,52,90,.16), inset 0 1px rgba(255,255,255,.9);
}
:root[data-color-mode="light"] .vibe-dock::before { border-color: rgba(63,43,70,.055); }
:root[data-color-mode="light"] .vibe-dock-item { color: #6d6371; background: rgba(69,48,76,.07); box-shadow: inset 0 1px rgba(255,255,255,.65),0 6px 16px rgba(79,56,85,.08); }
:root[data-color-mode="light"] .vibe-dock-item:hover,
:root[data-color-mode="light"] .vibe-dock-item:focus-visible { color: #392c3e; background: rgba(73,49,82,.12); }
:root[data-color-mode="light"] .vibe-dock-item[aria-pressed="true"] { color: #fff; }
:root[data-color-mode="light"] .vibe-dock-label { color: #f7f2f8; background: rgba(32,24,35,.97); }
:root[data-color-mode="light"] .vibe-dock-label::before { border-right-color: rgba(32,24,35,.97); }

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1480px);
  height: 78px;
  margin: 0 auto;
  padding: 0 44px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--text);
  font: 800 20px/1 "Manrope", sans-serif;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-mark img,
.signal-rail-brand img {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard-nav { display: inline-flex; gap: 7px; align-items: center; height: 38px; margin-left: 24px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; color: #928a97; background: transparent; font-size: 10px; font-weight: 700; }
.dashboard-nav svg { width: 15px; height: 15px; }
.dashboard-nav:hover, .dashboard-active .dashboard-nav { color: #f0d2ff; border-color: rgba(216,148,255,.13); background: rgba(168,85,247,.08); }

.topbar-actions, .profile-chip, .hero-actions, .meta-line, .eyebrow, .queue-actions, .text-button, .transport, .utility-row { display: flex; align-items: center; }
.topbar-actions { gap: 10px; }
.playlist-library { position: relative; margin-left: auto; margin-right: 14px; }
.playlist-switcher { display: flex; gap: 8px; align-items: center; height: 40px; max-width: 220px; padding: 0 11px; border: 1px solid var(--stroke); border-radius: 999px; color: #c8c0cb; background: rgba(255,255,255,.045); font-size: 11px; font-weight: 700; }
.playlist-switcher:hover, .playlist-switcher[aria-expanded="true"] { color: #f2d7ff; border-color: rgba(232,182,255,.22); background: rgba(168,85,247,.08); }
.playlist-switcher > svg { width: 15px; flex: 0 0 auto; }
.playlist-switcher #currentPlaylistLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-switcher .switcher-chevron { width: 13px; color: #746d78; }
.playlist-menu { position: absolute; z-index: 45; top: 49px; right: 0; width: min(330px, calc(100vw - 28px)); padding: 10px; border: 1px solid var(--stroke-strong); border-radius: 18px; background: rgba(20,17,24,.98); box-shadow: 0 24px 70px rgba(0,0,0,.55); backdrop-filter: blur(28px); }
.playlist-menu-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 7px 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.playlist-menu-head > div { display: grid; gap: 3px; }
.playlist-menu-head strong { font: 700 12px "Manrope"; }
.playlist-menu-head small { color: #746c78; font-size: 8px; }
.playlist-menu-head button { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 50%; color: #fff; background: var(--accent-gradient); }
.playlist-menu-head button svg { width: 15px; }
.playlist-menu-list { display: grid; gap: 3px; max-height: 310px; padding-top: 7px; overflow-y: auto; }
.playlist-menu-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 52px; padding: 6px 8px; border: 0; border-radius: 12px; color: #d8d0da; background: transparent; text-align: left; }
.playlist-menu-item:hover, .playlist-menu-item.active { background: rgba(168,85,247,.09); }
.playlist-menu-thumb { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 10px; background: linear-gradient(145deg,#3b1858,#bd326f); background-position: center; background-size: cover; font: 800 12px "Manrope"; }
.playlist-menu-copy { display: grid; min-width: 0; gap: 3px; }
.playlist-menu-copy strong, .playlist-menu-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-menu-copy strong { font-size: 10px; }
.playlist-menu-copy small { color: #746c78; font-size: 8px; }
.playlist-role-badge { padding: 5px 7px; border-radius: 999px; color: #d99bfa; background: rgba(168,85,247,.1); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.playlist-role-badge.locked { display: inline-flex; gap: 4px; align-items: center; color: #ffb4c5; background: rgba(244,63,94,.11); }
.playlist-role-badge.locked svg { width: 9px; height: 9px; }

.dashboard-view { width: min(calc(100% - 88px), 1315px); margin: 10px auto 100px; }
.dashboard-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: end; min-height: 330px; padding: 48px 52px; overflow: hidden; border: 0; background: radial-gradient(circle at 76% 20%, rgba(244,63,94,.32), transparent 24%), radial-gradient(circle at 55% 80%, rgba(124,58,237,.34), transparent 34%), linear-gradient(130deg,#181021,#250d25 53%,#260c1a); isolation: isolate; }
.account-owner .dashboard-hero { border-radius: 0; background: radial-gradient(circle at 76% 20%,rgba(244,63,94,.34),transparent 24%),radial-gradient(circle at 55% 80%,rgba(124,58,237,.36),transparent 34%),linear-gradient(130deg,#181021,#250d25 53%,#260c1a); clip-path: url(#ownerBannerWave); filter: drop-shadow(0 1px 0 rgba(244,182,220,.16)) drop-shadow(0 26px 30px rgba(126,34,206,.2)); }
.account-editor .dashboard-hero { border-radius: 0; background: radial-gradient(circle at 78% 18%,rgba(34,211,238,.3),transparent 25%),radial-gradient(circle at 53% 84%,rgba(79,70,229,.4),transparent 35%),linear-gradient(130deg,#071825,#0b2140 52%,#171432); clip-path: url(#editorBannerWave); filter: drop-shadow(0 1px 0 rgba(165,243,252,.16)) drop-shadow(0 26px 28px rgba(3,105,161,.19)); }
.account-viewer .dashboard-hero { border-radius: 0; background: radial-gradient(circle at 78% 18%,rgba(56,189,248,.29),transparent 25%),radial-gradient(circle at 52% 84%,rgba(16,185,129,.34),transparent 36%),linear-gradient(130deg,#071b1b,#0a2930 52%,#101d37); clip-path: url(#viewerBannerWave); filter: drop-shadow(0 1px 0 rgba(153,246,228,.16)) drop-shadow(0 26px 30px rgba(4,120,87,.2)); }
.account-special-editor .dashboard-hero { background: radial-gradient(circle at 78% 18%,rgba(255,226,146,.31),transparent 25%),radial-gradient(circle at 53% 84%,rgba(174,108,23,.42),transparent 35%),linear-gradient(130deg,#161106,#2c1d0a 52%,#191208); filter: drop-shadow(0 1px 0 rgba(255,235,173,.18)) drop-shadow(0 27px 30px rgba(122,75,14,.23)); }
.dashboard-hero::before { position: absolute; inset: 0; opacity: .25; pointer-events: none; content: ""; background: repeating-linear-gradient(112deg,transparent 0 44px,rgba(255,255,255,.025) 45px,transparent 46px); }
.dashboard-hero::after { position: absolute; z-index: 1; inset: 0; border: 0; pointer-events: none; content: ""; background: linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent) top / 88% 1px no-repeat; }
.account-owner .dashboard-hero::after { box-shadow: 0 0 55px rgba(244,63,94,.055) inset; }
.account-editor .dashboard-hero::after { box-shadow: 0 0 55px rgba(34,211,238,.045) inset; }
.account-viewer .dashboard-hero::after { box-shadow: 0 0 55px rgba(16,185,129,.05) inset; }
.account-special-editor .dashboard-hero::after { box-shadow: 0 0 58px rgba(229,184,93,.07) inset; }
.dashboard-hero-copy, .dashboard-stats { position: relative; z-index: 2; }
.role-art { position: absolute; z-index: 1; top: 24px; right: 56px; width: 210px; height: 170px; opacity: .68; pointer-events: none; }
.role-art i, .role-art::before, .role-art::after { position: absolute; display: block; content: ""; }

.account-owner .role-art { width: 235px; transform: rotate(-7deg); }
.account-owner .role-art i { left: 0; width: 100%; height: 62px; border: 0; border-top: 1px solid color-mix(in srgb,var(--role-primary) 58%,transparent); border-radius: 50%; filter: drop-shadow(0 0 9px color-mix(in srgb,var(--role-secondary) 24%,transparent)); }
.account-owner .role-art i:nth-child(1) { top: 12px; transform: rotate(4deg); }
.account-owner .role-art i:nth-child(2) { top: 38px; left: 7%; width: 90%; transform: rotate(-3deg); }
.account-owner .role-art i:nth-child(3) { top: 66px; left: 2%; width: 96%; transform: rotate(5deg); }
.account-owner .role-art i:nth-child(4) { top: 94px; left: 12%; width: 80%; transform: rotate(-4deg); }
.account-owner .role-art i:nth-child(5) { top: 120px; left: 18%; width: 69%; transform: rotate(3deg); }
.account-owner .role-art::before { z-index: 2; top: 78px; left: 49%; width: 7px; height: 7px; border-radius: 50%; background: #f9a8d4; box-shadow: 0 0 17px rgba(244,114,182,.8),0 0 45px rgba(192,38,211,.55); }
.account-owner .role-art::after { top: 44px; left: calc(49% - 31px); width: 68px; height: 68px; border: 1px solid color-mix(in srgb,var(--role-secondary) 21%,transparent); border-radius: 50%; }

.account-editor .role-art { display: flex; align-items: center; justify-content: center; gap: 11px; width: 190px; transform: none; }
.account-editor .role-art i { position: relative; inset: auto; width: 12px; border: 1px solid rgba(165,243,252,.18); border-radius: 999px; background: linear-gradient(to top,color-mix(in srgb,var(--role-secondary) 48%,transparent),color-mix(in srgb,var(--role-primary) 68%,transparent)); box-shadow: 0 0 18px color-mix(in srgb,var(--role-primary) 15%,transparent); }
.account-editor .role-art i:nth-child(1) { height: 44px; }
.account-editor .role-art i:nth-child(2) { height: 82px; }
.account-editor .role-art i:nth-child(3) { height: 122px; }
.account-editor .role-art i:nth-child(4) { height: 72px; }
.account-editor .role-art i:nth-child(5) { height: 36px; }
.account-editor .role-art::before { inset: 15px 2px; opacity: .18; background: repeating-linear-gradient(to bottom,rgba(165,243,252,.45) 0 1px,transparent 1px 22px); }
.account-editor .role-art::after { top: 50%; left: 5px; right: 5px; height: 1px; background: linear-gradient(to right,transparent,rgba(165,243,252,.6),transparent); box-shadow: 0 0 18px rgba(34,211,238,.35); }
.account-special-editor .role-art i { border-color: rgba(255,237,181,.2); }
.account-special-editor .role-art::before { background: repeating-linear-gradient(to bottom,rgba(255,224,137,.48) 0 1px,transparent 1px 22px); }
.account-special-editor .role-art::after { background: linear-gradient(to right,transparent,rgba(255,225,142,.68),transparent); box-shadow: 0 0 20px rgba(229,184,93,.42); }

.account-viewer .role-art { width: 174px; height: 174px; }
.account-viewer .role-art i { border: 1px solid color-mix(in srgb,var(--role-primary) 44%,transparent); border-radius: 50%; }
.account-viewer .role-art i:nth-child(1) { inset: 2px; box-shadow: 0 0 45px color-mix(in srgb,var(--role-secondary) 15%,transparent); }
.account-viewer .role-art i:nth-child(2) { inset: 25px; border-color: color-mix(in srgb,var(--role-secondary) 44%,transparent); }
.account-viewer .role-art i:nth-child(3) { inset: 49px; border-color: color-mix(in srgb,var(--role-primary) 52%,transparent); background: color-mix(in srgb,var(--role-primary) 5%,transparent); }
.account-viewer .role-art i:nth-child(4) { top: 66px; left: 74px; width: 30px; height: 40px; border: 0; border-radius: 0; background: linear-gradient(145deg,var(--role-primary),var(--role-secondary)); clip-path: polygon(8% 0,100% 50%,8% 100%); filter: drop-shadow(0 0 15px color-mix(in srgb,var(--role-primary) 48%,transparent)); }
.account-viewer .role-art i:nth-child(5) { top: 13px; right: 28px; width: 7px; height: 7px; border: 0; background: #a7f3d0; box-shadow: 0 0 14px rgba(52,211,153,.75); }
.dashboard-hero-copy h1 { max-width: 760px; margin: 8px 0 17px; font: 800 clamp(48px,6.2vw,88px)/.92 "Manrope"; letter-spacing: -.065em; }
.dashboard-hero-copy h1 span { color: transparent; background: linear-gradient(100deg,#d8b4fe,#f0abfc 42%,#fb7185); background-clip: text; -webkit-background-clip: text; }
.account-editor .dashboard-hero-copy h1 span { background-image: linear-gradient(100deg,#a5f3fc,#60a5fa 45%,#c4b5fd); }
.account-viewer .dashboard-hero-copy h1 span { background-image: linear-gradient(100deg,#6ee7b7,#67e8f9 46%,#60a5fa); }
.account-special-editor .dashboard-hero-copy h1 span { background-image: linear-gradient(100deg,#fff3c2,#e7bd63 46%,#fff0ad); }
.dashboard-hero-copy > p:not(.kicker) { max-width: 510px; margin: 0 0 25px; color: rgba(255,255,255,.61); font-size: 13px; line-height: 1.65; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3,92px); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(8,6,11,.3); backdrop-filter: blur(20px); }
.dashboard-stats article { display: grid; place-items: center; min-height: 94px; padding: 13px 8px; text-align: center; }
.dashboard-stats article + article { border-left: 1px solid rgba(255,255,255,.09); }
.dashboard-stats span { font: 800 25px/1 "Manrope"; }
.dashboard-stats small { margin-top: 7px; color: #908895; font-size: 8px; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-library { padding-top: 48px; }
.dashboard-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.dashboard-heading h2 { margin: 0; font: 800 31px/1.1 "Manrope"; letter-spacing: -.045em; }
.dashboard-search { display: flex; gap: 9px; align-items: center; width: min(100%,300px); height: 43px; padding: 0 13px; border: 1px solid var(--stroke); border-radius: 13px; background: rgba(255,255,255,.04); }
.dashboard-search:focus-within { border-color: rgba(216,148,255,.38); background: rgba(168,85,247,.055); }
.dashboard-search svg { flex: 0 0 auto; width: 16px; color: #77707b; }
.dashboard-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.dashboard-search input::placeholder { color: #716a75; }
.dashboard-filters { display: flex; gap: 7px; margin: 23px 0 25px; overflow-x: auto; scrollbar-width: none; }
.dashboard-filters::-webkit-scrollbar { display: none; }
.dashboard-filters button { flex: 0 0 auto; height: 35px; padding: 0 14px; border: 1px solid var(--stroke); border-radius: 999px; color: #8e8792; background: rgba(255,255,255,.025); font-size: 9px; font-weight: 700; }
.dashboard-filters button[aria-pressed="true"] { color: #f8eaff; border-color: rgba(216,148,255,.25); background: linear-gradient(120deg,rgba(124,58,237,.34),rgba(236,72,153,.2)); }
.dashboard-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.dashboard-card { position: relative; isolation: isolate; min-width: 0; padding: 11px; overflow: visible; border: 1px solid var(--stroke); border-radius: 22px; background: linear-gradient(150deg,rgba(255,255,255,.064),rgba(255,255,255,.018)); box-shadow: 0 14px 34px rgba(0,0,0,.13); transition: transform 180ms ease,border-color 180ms ease,background 180ms ease,box-shadow 180ms ease; }
.dashboard-card::before { position: absolute; z-index: 3; inset: -1px; padding: 2px; border-radius: inherit; content: ""; pointer-events: none; opacity: 0; background: conic-gradient(from var(--dashboard-trail-angle,0turn),transparent 0 70%,rgba(255,255,255,.08) 78%,rgba(255,255,255,.95) 86%,color-mix(in srgb,var(--role-primary) 82%,#fff) 91%,transparent 100%); filter: drop-shadow(0 0 7px rgba(255,255,255,.65)) drop-shadow(0 0 16px color-mix(in srgb,var(--role-primary) 55%,transparent)); -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity 160ms ease; }
.dashboard-card:hover { transform: translateY(-4px); border-color: transparent; background: linear-gradient(150deg,rgba(168,85,247,.095),rgba(255,255,255,.025)); box-shadow: 0 18px 42px rgba(0,0,0,.2),0 0 32px color-mix(in srgb,var(--role-primary) 12%,transparent); }
.dashboard-card:hover::before, .dashboard-card:focus-within::before { opacity: 1; animation: dashboardBorderTrail 2.15s linear infinite; }
.dashboard-card-open { position: relative; z-index: 1; display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.dashboard-card-cover { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--card-gradient,linear-gradient(145deg,#37194b,#9d296e 56%,#f06579)); background-position: center; background-size: cover; box-shadow: inset 0 1px rgba(255,255,255,.14); }
.dashboard-card-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(160deg,rgba(255,255,255,.07),transparent 42%,rgba(0,0,0,.28)); }
.dashboard-card-letter { position: relative; z-index: 1; font: 800 clamp(31px,5vw,56px)/1 "Manrope"; letter-spacing: -.06em; text-shadow: 0 8px 25px rgba(0,0,0,.35); }
.dashboard-card-badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; gap: 5px; align-items: center; height: 25px; padding: 0 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.84); background: rgba(8,6,11,.54); backdrop-filter: blur(14px); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-card-badge.private { color: #ffc0d1; background: rgba(65,10,35,.6); }
.dashboard-card-badge svg { width: 9px; height: 9px; }
.dashboard-card-play { position: absolute; z-index: 2; right: 11px; bottom: 11px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--accent-gradient); box-shadow: 0 9px 24px rgba(0,0,0,.38); transform: translateY(5px); opacity: 0; transition: 180ms ease; }
.dashboard-card:hover .dashboard-card-play, .dashboard-card-open:focus-visible .dashboard-card-play { opacity: 1; transform: translateY(0); }
.dashboard-card-play svg { width: 17px; }
.dashboard-card-copy { min-width: 0; padding: 14px 3px 6px; }
.dashboard-card-copy h3 { margin: 0; overflow: hidden; font: 750 15px/1.3 "Manrope"; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-card-copy > p { margin: 6px 0 12px; overflow: hidden; color: #837b87; font-size: 9.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-card-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #756e79; font-size: 8px; }
.dashboard-card-role { padding: 5px 7px; border-radius: 999px; color: var(--role-primary); background: var(--role-soft); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.dashboard-create-card { display: grid; place-items: center; min-height: 300px; padding: 28px; border: 1px dashed color-mix(in srgb,var(--role-primary) 24%,transparent); border-radius: 22px; color: #a89eac; background: color-mix(in srgb,var(--role-primary) 3%,transparent); text-align: center; }
.dashboard-create-card:hover { color: var(--text); border-color: color-mix(in srgb,var(--role-primary) 46%,transparent); background: color-mix(in srgb,var(--role-primary) 7%,transparent); }
.dashboard-create-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 18px; color: var(--role-primary); background: var(--role-soft); }
.dashboard-create-icon svg { width: 23px; }
.dashboard-create-card strong { display: block; font: 750 13px "Manrope"; }
.dashboard-create-card small { display: block; max-width: 160px; margin-top: 6px; color: #756e79; font-size: 9px; line-height: 1.45; }
.dashboard-empty { padding: 60px 20px; border: 1px dashed var(--stroke); border-radius: 22px; text-align: center; }
.dashboard-empty h3 { margin: 0; font: 700 17px "Manrope"; }
.dashboard-empty p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.dashboard-active .mobile-player { display: none !important; }
.viewer-only { display: none !important; }
.account-viewer .viewer-only { display: inline-flex !important; }

.icon-button, .round-button, .edit-button, .mini-action, .modal-close {
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.055);
  transition: 180ms ease;
}

.icon-button:hover, .round-button:hover, .edit-button:hover, .mini-action:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--stroke-strong); }
.icon-button { width: 42px; height: 42px; border-radius: 50%; }
.icon-button svg { width: 18px; }

.profile-chip {
  gap: 9px;
  height: 45px;
  padding: 4px 5px 4px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
}
.profile-chip { border-color: color-mix(in srgb,var(--role-primary) 18%,var(--stroke)); }
.account-owner .avatar, .account-owner .mini-avatar, .account-owner .large-avatar,
.account-editor .avatar, .account-editor .mini-avatar, .account-editor .large-avatar,
.account-viewer .avatar, .account-viewer .mini-avatar, .account-viewer .large-avatar { background: var(--role-gradient); }

.presence-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--role-primary); box-shadow: 0 0 10px var(--role-primary); }
.avatar, .mini-avatar, .large-avatar {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #9f56fa, #ef476f);
  color: white;
  font-weight: 700;
}
.profile-chip .avatar::after { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 15px; height: 15px; border: 2px solid var(--bg); border-radius: 50%; color: #fff; background: var(--role-gradient); font: 800 6px/1 "Manrope"; box-shadow: 0 3px 8px rgba(0,0,0,.28); }
.account-owner .profile-chip .avatar::after { content: "O"; }
.account-editor .profile-chip .avatar::after { content: "E"; }
.account-viewer .profile-chip .avatar::after { content: "V"; }
.account-special-editor .profile-chip .avatar::after { content: "S"; color: #211505; }
.avatar { width: 35px; height: 35px; font-size: 11px; }

.hero {
  position: relative;
  width: min(calc(100% - 32px), 1392px);
  min-height: 390px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: var(--hero-gradient);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.hero::before, .hero::after { position: absolute; content: ""; pointer-events: none; }
.hero::before {
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 7, 13, 0.48), rgba(10, 7, 13, 0.05) 60%, rgba(10, 7, 13, 0.28));
}
.hero::after {
  z-index: -1;
  width: 480px;
  height: 480px;
  right: -90px;
  bottom: -300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.hero-noise { position: absolute; inset: 0; opacity: 0.24; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }

.hero-content {
  position: relative;
  display: flex;
  gap: clamp(34px, 4vw, 66px);
  align-items: center;
  min-height: 390px;
  padding: 46px 68px;
}

.cover-shell { position: relative; flex: 0 0 auto; }
.cover-art {
  position: relative;
  width: 244px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 67% 34%, rgba(255,255,255,.22), transparent 3%),
    radial-gradient(circle at 70% 38%, #ff6289 0, #c737b9 14%, transparent 43%),
    radial-gradient(circle at 36% 72%, #6d28d9, transparent 44%),
    linear-gradient(135deg, #190b27, #6c164f 57%, #2a0e25);
  box-shadow: 0 25px 54px rgba(10, 4, 13, 0.48), inset 0 1px rgba(255, 255, 255, 0.17);
  isolation: isolate;
  background-position: center;
  background-size: cover;
}

.cover-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 28%, rgba(0,0,0,.22)); }
.cover-orbit { position: absolute; display: block; border: 1px solid rgba(255,255,255,.17); border-radius: 48%; transform: rotate(-24deg); }
.orbit-one { width: 250px; height: 90px; left: -45px; top: 72px; }
.orbit-two { width: 190px; height: 65px; right: -55px; bottom: 30px; transform: rotate(38deg); }
.cover-word { position: absolute; z-index: 2; top: 41%; left: 50%; transform: translate(-50%, -50%); font: 800 45px/.9 "Manrope"; letter-spacing: -.06em; text-shadow: 0 5px 20px rgba(0,0,0,.34); }
.cover-caption { position: absolute; z-index: 2; left: 50%; top: 60%; transform: translateX(-50%); font: 700 10px/1 "Manrope"; letter-spacing: .35em; text-transform: uppercase; white-space: nowrap; color: rgba(255,255,255,.72); }
.cover-art.customized .cover-orbit, .cover-art.customized .cover-word, .cover-art.customized .cover-caption { display: none; }
.cover-edit { position: absolute; z-index: 4; right: -10px; bottom: -10px; width: 43px; height: 43px; border-radius: 50%; backdrop-filter: blur(18px); }
.cover-edit svg { width: 18px; }

.playlist-identity { min-width: 0; max-width: 750px; padding-top: 4px; }
.eyebrow { flex-wrap: wrap; gap: 9px; margin-bottom: 11px; color: rgba(255,255,255,.68); font: 700 10px/1 "Manrope"; letter-spacing: .16em; }
.eyebrow-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--pink); }
.title-line { display: flex; gap: 14px; align-items: center; }
.title-line h1 { margin: 0; font: 800 clamp(45px, 5.1vw, 77px)/.98 "Manrope", sans-serif; letter-spacing: -0.042em; text-shadow: 0 12px 34px rgba(0,0,0,.25); }
.edit-button { width: 36px; height: 36px; margin-top: 8px; border-radius: 50%; backdrop-filter: blur(18px); }
.edit-button svg { width: 15px; }
.playlist-identity > p { max-width: 630px; margin: 16px 0 16px; color: rgba(255,255,255,.73); font-size: 14px; line-height: 1.65; }
.meta-line { flex-wrap: wrap; gap: 7px; color: rgba(255,255,255,.62); font-size: 11px; }
.meta-line strong { color: rgba(255,255,255,.88); font-weight: 600; }
.mini-avatar { width: 23px; height: 23px; margin-right: 2px; font-size: 8px; }
.hero-actions { gap: 10px; margin-top: 25px; }

.primary-button, .secondary-button, .danger-button, .round-button {
  height: 46px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-width: 126px; padding: 0 21px; border: 0; color: #fff; background: var(--accent-gradient); box-shadow: 0 10px 26px rgba(192, 38, 211, .27); }
.primary-button svg { width: 17px; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 20px; border: 1px solid var(--stroke-strong); background: rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.secondary-button svg { width: 17px; }
.danger-button { min-width: 120px; padding: 0 20px; border: 1px solid rgba(255,93,120,.26); color: #ff8ba0; background: rgba(255,93,120,.09); }
.round-button { width: 46px; flex: 0 0 46px; border-radius: 50%; backdrop-filter: blur(14px); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
  gap: 22px;
  width: min(calc(100% - 88px), 1315px);
  margin: 50px auto 100px;
}
.queue-panel { min-width: 0; }
.photo-gallery-panel { grid-column: 1 / -1; min-width: 0; }
.special-private-pill { padding: 7px 10px; border: 1px solid rgba(34,211,238,.22); border-radius: 999px; color: #8ce8ff; background: rgba(6,182,212,.08); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.photo-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.photo-card { position: relative; min-height: 220px; overflow: hidden; border: 1px solid var(--stroke); border-radius: 22px; background: var(--surface-soft); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.photo-card img { display: block; width: 100%; height: 100%; min-height: 220px; max-height: 420px; object-fit: cover; }
.photo-card footer { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 38px 14px 13px; background: linear-gradient(transparent,rgba(5,4,8,.88)); }
.photo-card footer span { display: grid; gap: 3px; min-width: 0; }
.photo-card footer strong, .photo-card footer small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-card footer strong { color: #fff; font-size: 11px; }
.photo-card footer small { color: rgba(255,255,255,.64); font-size: 8px; }
.photo-delete { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #ff9aae; background: rgba(10,8,12,.5); backdrop-filter: blur(12px); }
.photo-delete svg { width: 14px; }
body.photo-playlist .workspace { grid-template-columns: 1fr; }
body.photo-playlist #playerPanel, body.photo-playlist #videoQueuePanel, body.photo-playlist #mobilePlayer, body.photo-playlist #playAllButton, body.photo-playlist #addVideoButton { display: none !important; }
.private-lock-panel {
  grid-column: 1 / -1;
  width: min(100%, 650px);
  margin: 5px auto 35px;
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid rgba(232,121,249,.18);
  border-radius: 28px;
  background: radial-gradient(circle at 50% -20%, rgba(192,38,211,.18), transparent 52%), rgba(24,19,29,.86);
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
  text-align: center;
}
.private-lock-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; color: #f4a4d3; background: linear-gradient(145deg,rgba(124,58,237,.22),rgba(244,63,94,.14)); box-shadow: 0 16px 38px rgba(124,58,237,.18); }
.private-lock-icon svg { width: 29px; height: 29px; }
.private-lock-panel h2 { margin: 0; font: 800 clamp(25px,5vw,36px)/1.15 "Manrope"; letter-spacing: -.04em; }
.private-lock-panel > p:not(.kicker) { max-width: 470px; margin: 12px auto 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.private-lock-panel form { max-width: 440px; margin: 0 auto; text-align: left; }
.private-lock-panel form > label { display: block; margin-bottom: 8px; color: var(--muted-strong); font-size: 10px; font-weight: 700; }
.unlock-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.unlock-row input { min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--stroke-strong); border-radius: 14px; color: var(--text); background: rgba(255,255,255,.055); }
.private-lock-panel form > small { display: block; margin-top: 9px; color: #766e7a; font-size: 9px; text-align: center; }
.private-lock-panel form > small.error { color: #ff8197; }
.playlist-locked .queue-panel, .playlist-locked .player-panel, .playlist-locked .mobile-player { display: none !important; }
.playlist-locked .hero-actions > :not(#shareButton) { display: none !important; }
.playlist-locked .workspace { grid-template-columns: 1fr; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; padding: 0 4px; }
.kicker { margin: 0 0 6px; color: #c77dff; font: 700 9px/1 "Manrope"; letter-spacing: .18em; }
.account-owner .kicker { color: #d99cff; }
.account-editor .kicker { color: #76dcff; }
.account-viewer .kicker { color: #71e6b9; }
.account-special-editor .kicker { color: #f2cd79; }
.section-heading h2, .modal-head h2 { margin: 0; font: 800 27px/1.15 "Manrope"; letter-spacing: -.04em; }
.queue-actions { gap: 7px; }
.text-button { gap: 7px; height: 36px; padding: 0 11px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 600; }
.text-button svg { width: 16px; }
.text-button:hover, .text-button[aria-pressed="true"] { color: var(--role-primary); background: var(--role-soft); }

.track-list { display: grid; gap: 8px; }
.track-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px 54px minmax(0, 1fr) auto auto;
  gap: 13px;
  align-items: center;
  min-height: 72px;
  padding: 8px 11px 8px 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.track-row:hover { border-color: var(--stroke); background: var(--surface-soft); }
.track-row.active { border-color: color-mix(in srgb,var(--role-primary) 30%,transparent); background: linear-gradient(90deg,var(--role-soft),color-mix(in srgb,var(--role-secondary) 6%,transparent)); }
.track-row.reorder-target { transform: translateY(3px); border-color: rgba(232,121,249,.5); }
.drag-handle { display: grid; place-items: center; width: 22px; height: 38px; padding: 0; border: 0; color: #68616c; background: transparent; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg { width: 15px; }
.track-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--thumb-gradient, linear-gradient(145deg, #382454, #a5256b));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}
.track-thumb::after { position: absolute; inset: 0; content: ""; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(0,0,0,.16)); }
.thumb-initial { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.88); font: 800 18px/1 "Manrope"; }
.thumb-play { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; opacity: 0; color: white; background: rgba(0,0,0,.38); transition: opacity 150ms ease; }
.thumb-play svg { width: 19px; fill: currentColor; stroke: none; }
.track-row:hover .thumb-play, .track-row.active .thumb-play { opacity: 1; }
.track-info { min-width: 0; }
.track-info button { display: block; max-width: 100%; padding: 0; overflow: hidden; border: 0; color: var(--text); background: transparent; font: 700 13px/1.3 "DM Sans"; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.track-info p { max-width: 100%; margin: 5px 0 0; overflow: hidden; color: #807985; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.track-row.active .track-info button { color: var(--role-primary); }
.playing-bars { display: none; gap: 2px; align-items: flex-end; height: 11px; margin-left: 6px; }
.active .playing-bars { display: inline-flex; }
.playing-bars i { width: 2px; height: 5px; border-radius: 2px; background: var(--role-primary); animation: equalizer .8s ease-in-out infinite alternate; }
.playing-bars i:nth-child(2) { height: 10px; animation-delay: -.3s; }
.playing-bars i:nth-child(3) { height: 7px; animation-delay: -.6s; }
@keyframes equalizer { to { height: 2px; } }
.track-duration { color: #746d78; font-size: 10px; font-variant-numeric: tabular-nums; }
.track-menu { width: 34px; height: 34px; border: 0; opacity: .45; color: var(--muted); background: transparent; }
.track-menu:hover { opacity: 1; }
.track-menu svg { width: 16px; }
.track-menu-placeholder { width: 34px; }
.viewer .drag-handle, .viewer .track-menu { display: none; }
.viewer .track-menu-placeholder { display: none; }
.viewer .track-row { grid-template-columns: 54px minmax(0,1fr) auto; padding-left: 9px; }
.editor .drag-handle { visibility: hidden; pointer-events: none; }

.empty-state { padding: 54px 24px; border: 1px dashed var(--stroke-strong); border-radius: var(--radius-lg); text-align: center; background: rgba(255,255,255,.025); }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; color: #d48aff; background: rgba(168,85,247,.12); }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin: 0; font: 700 18px "Manrope"; }
.empty-state p { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }

.player-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(32,27,39,.94), rgba(17,14,21,.96));
  box-shadow: 0 18px 60px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.04);
}
.player-heading { display: flex; gap: 8px; align-items: center; height: 48px; padding: 0 16px; color: #bdb4c0; font: 700 9px/1 "Manrope"; letter-spacing: .16em; }
.player-heading .mini-action { margin-left: auto; }
.player-panel.collapsed .video-stage, .player-panel.collapsed .player-details { display: none; }
.player-panel #collapsePlayerButton svg { transition: transform 180ms ease; }
.player-panel.collapsed #collapsePlayerButton svg { transform: rotate(180deg); }
.now-playing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--role-primary); box-shadow: 0 0 10px var(--role-primary); }
.mini-action { width: 31px; height: 31px; border-color: transparent; border-radius: 50%; background: transparent; }
.mini-action svg { width: 16px; }

.video-stage { position: relative; display: grid; place-items: center; width: min(100%,var(--video-stage-width,100%)); margin-inline: auto; aspect-ratio: var(--video-aspect-ratio,16 / 9); overflow: hidden; background: #0a080c; transition: width 280ms cubic-bezier(.2,.8,.2,1); }
.video-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #050406; }
.video-stage video:not([src]) { display: none; }
.fullscreen-back {
  position: absolute;
  z-index: 9;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  display: none;
  gap: 5px;
  align-items: center;
  height: 42px;
  padding: 0 15px 0 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(8,7,10,.62);
  box-shadow: 0 8px 25px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 700;
}
.fullscreen-back svg { width: 19px; }
.fullscreen-fit {
  position: absolute;
  z-index: 9;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: none;
  gap: 6px;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(8,7,10,.62);
  box-shadow: 0 8px 25px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 700;
}
.fullscreen-fit svg { width: 17px; }
.video-stage:fullscreen, .video-stage.fullscreen-active { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; background: #000; }
.video-stage:fullscreen .fullscreen-back, .video-stage.fullscreen-active .fullscreen-back { display: flex; }
.video-stage:fullscreen .fullscreen-fit, .video-stage.fullscreen-active .fullscreen-fit { display: flex; }
.video-stage:fullscreen .video-badge, .video-stage.fullscreen-active .video-badge { display: none; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 58% 38%, #68175a 0, #27112f 35%, #0a090d 72%); }
.video-placeholder p { position: absolute; bottom: 20px; margin: 0; color: rgba(255,255,255,.46); font-size: 10px; }
.placeholder-glow { position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(244,63,94,.25); filter: blur(45px); }
.placeholder-mark { z-index: 1; display: flex; gap: 5px; align-items: flex-end; height: 44px; opacity: .7; }
.placeholder-mark i { width: 6px; border-radius: 9px; background: linear-gradient(to top, #a855f7, #fb7185); }
.placeholder-mark i:nth-child(1) { height: 18px; }.placeholder-mark i:nth-child(2) { height: 38px; }.placeholder-mark i:nth-child(3) { height: 28px; }.placeholder-mark i:nth-child(4) { height: 44px; }
.center-play { position: relative; z-index: 4; display: grid; place-items: center; width: 54px; height: 54px; padding-left: 3px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(255,255,255,.18); backdrop-filter: blur(14px); box-shadow: 0 8px 28px rgba(0,0,0,.28); transition: transform 160ms ease, opacity 160ms ease; }
.center-play:hover { transform: scale(1.05); }
.center-play svg { width: 22px; }
.is-playing .center-play { opacity: 0; pointer-events: none; }
.video-badge { position: absolute; z-index: 5; top: 12px; left: 13px; padding: 4px 7px; border-radius: 6px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.36); backdrop-filter: blur(8px); font: 800 7px "Manrope"; letter-spacing: .12em; }
.player-details { padding: 18px 20px 19px; }
.playing-copy { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.playing-copy h3 { max-width: 290px; margin: 0; overflow: hidden; font: 700 15px/1.3 "Manrope"; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.playing-copy p { max-width: 290px; margin: 4px 0 0; overflow: hidden; color: #827b86; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.progress-wrap { margin-top: 18px; }
.range { width: 100%; height: 3px; margin: 0; border-radius: 99px; appearance: none; background: linear-gradient(to right, #c454ee var(--range-value, 0%), rgba(255,255,255,.13) var(--range-value, 0%)); cursor: pointer; }
.range::-webkit-slider-thumb { width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; appearance: none; background: #c454ee; box-shadow: 0 2px 7px rgba(0,0,0,.45); opacity: 0; transition: opacity 120ms; }
.range:hover::-webkit-slider-thumb, .range:focus::-webkit-slider-thumb { opacity: 1; }
.time-row { display: flex; justify-content: space-between; margin-top: 7px; color: #6f6873; font-size: 9px; font-variant-numeric: tabular-nums; }
.transport { justify-content: space-between; margin: 10px auto 0; max-width: 280px; }
.transport-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #a8a0ab; background: transparent; }
.transport-button:hover, .transport-button[aria-pressed="true"] { color: #eaa8ff; background: rgba(168,85,247,.1); }
.transport-button svg { width: 18px; }
.repeat-one { position: absolute; display: none; font-size: 7px; font-weight: 800; }
.repeat-one.visible { display: block; }
.main-play { display: grid; place-items: center; width: 51px; height: 51px; padding: 0 0 0 2px; border: 0; border-radius: 50%; background: var(--accent-gradient); box-shadow: 0 10px 28px rgba(192,38,211,.25); transition: transform 160ms; }
.main-play:hover { transform: scale(1.045); }
.main-play svg { width: 21px; }
.pause-icon { display: none; }
.is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.utility-row { position: relative; gap: 5px; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.06); }
.volume-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; color: #77707a; background: transparent; }
.volume-button svg { width: 16px; }
.volume-range { width: 62px; margin-right: auto; --range-value: 85%; }
.speed-button, .fit-button, .quality-button { height: 30px; border: 1px solid var(--stroke); border-radius: 8px; color: #938b97; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 700; }
.speed-button { min-width: 35px; }
.fit-button { display: inline-flex; gap: 4px; align-items: center; padding: 0 8px; }
.fit-button svg { width: 13px; }
.quality-control { position: relative; }
.quality-button { display: grid; grid-template-columns: auto auto; gap: 1px 5px; align-items: center; min-width: 75px; padding: 0 8px; text-align: left; }
.quality-button small { color: #69616d; font-size: 7px; font-weight: 600; }
.speed-button:hover, .fit-button:hover, .quality-button:hover, .quality-button[aria-expanded="true"] { color: #e8b6ff; border-color: rgba(232,182,255,.24); background: rgba(168,85,247,.09); }
.quality-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 38px;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--stroke-strong);
  border-radius: 15px;
  background: rgba(20,17,24,.98);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(24px);
}
.quality-menu-head { display: grid; gap: 3px; padding: 8px 9px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.quality-menu-head strong { color: #f7f1f9; font-size: 11px; }
.quality-menu-head small { color: #746c78; font-size: 8px; }
.quality-menu > button { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; height: 38px; padding: 0 9px 0 30px; border: 0; border-radius: 9px; color: #c9c1cc; background: transparent; text-align: left; font-size: 10px; font-weight: 700; }
.quality-menu > button::before { position: absolute; left: 11px; width: 7px; height: 7px; border: 1px solid #69616d; border-radius: 50%; content: ""; }
.quality-menu > button[aria-checked="true"] { color: #ecb9ff; background: rgba(168,85,247,.1); }
.quality-menu > button[aria-checked="true"]::before { border-color: #df86ff; background: #c85bea; box-shadow: 0 0 8px rgba(200,91,234,.5); }
.quality-menu > button small { color: #746c78; font-size: 8px; font-weight: 500; }
.quality-menu > button:disabled { opacity: .32; cursor: not-allowed; }

.mobile-player { display: none; }

.modal {
  width: min(calc(100% - 28px), 500px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  border-radius: 25px;
  color: var(--text);
  background: rgba(20, 17, 24, 0.96);
  box-shadow: 0 34px 100px rgba(0,0,0,.62);
  backdrop-filter: blur(30px);
}
.modal::backdrop { background: rgba(3,2,5,.7); backdrop-filter: blur(7px); }
.modal form { padding: 25px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 23px; line-height: 1; }
.modal label { display: grid; gap: 8px; margin-top: 15px; color: var(--muted-strong); font-size: 11px; font-weight: 600; }
.modal input:not([type="checkbox"]), .modal textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  resize: vertical;
}
.modal input:not([type="checkbox"]) { height: 45px; padding: 0 13px; }
.modal textarea { padding: 12px 13px; line-height: 1.45; }
.modal input::placeholder, .modal textarea::placeholder { color: #625a66; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 23px; }
.modal-grid.single-action { grid-template-columns: 1fr; }
.slug-input { display: flex; align-items: center; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(255,255,255,.045); }
.slug-input span { padding-left: 13px; color: #69616d; font-size: 11px; }
.slug-input input { border: 0 !important; background: transparent !important; }
.access-note { margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.access-note code { color: #e4b3ff; }
.privacy-settings { display: grid; gap: 2px; margin-top: 18px; padding-top: 2px; }
.privacy-settings > label > small { color: #756d79; font-size: 9px; font-weight: 400; }
.playlist-kind-options, .editor-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; padding: 0; border: 0; }
.playlist-kind-options legend, .editor-type-options legend { grid-column: 1 / -1; color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.modal .playlist-kind-options label, .modal .editor-type-options label { position: relative; display: block; margin: 0; cursor: pointer; }
.playlist-kind-options input, .editor-type-options input { position: absolute; opacity: 0; pointer-events: none; }
.playlist-kind-options label > span, .editor-type-options label > span { display: grid; gap: 5px; min-height: 78px; padding: 14px; border: 1px solid var(--stroke); border-radius: 15px; background: var(--surface-soft); }
.playlist-kind-options input:checked + span, .editor-type-options input:checked + span { border-color: rgba(108,218,255,.55); background: linear-gradient(145deg,rgba(6,182,212,.15),rgba(124,58,237,.11)); box-shadow: 0 12px 26px rgba(6,182,212,.08); }
.playlist-kind-options small, .editor-type-options small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.editor-manager-modal { width: min(calc(100% - 28px), 600px); }
.managed-editor-section { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--stroke); }
.managed-editor-section > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.managed-editor-list { display: grid; gap: 8px; margin-top: 10px; }
.managed-editor-list > p { color: var(--muted); font-size: 10px; }
.managed-editor-card { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface-soft); }
.managed-editor-card > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #d7f7ff; background: linear-gradient(145deg,#0ea5e9,#7c3aed); font: 800 10px "Manrope"; }
.managed-editor-card div { display: grid; gap: 3px; min-width: 0; }
.managed-editor-card strong, .managed-editor-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.managed-editor-card strong { font-size: 10px; }
.managed-editor-card small { color: var(--muted); font-size: 8px; }
.editor-kind-pill { padding: 5px 7px; border-radius: 999px; color: #8ce8ff; background: rgba(6,182,212,.1); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.appearance-modal { width: min(calc(100% - 28px), 560px); }
.appearance-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.appearance-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal .appearance-option { position: relative; display: block; margin: 0; color: inherit; cursor: pointer; }
.appearance-option > input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.appearance-option > span { position: relative; display: grid; gap: 12px; min-height: 150px; padding: 14px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface-soft); transition: 180ms ease; }
.appearance-option:hover > span { border-color: rgba(199,125,255,.42); transform: translateY(-2px); }
.appearance-option > input:focus-visible + span { outline: 2px solid #d66eff; outline-offset: 3px; }
.appearance-option > input:checked + span { border-color: rgba(202,104,244,.62); background: linear-gradient(145deg,rgba(124,58,237,.18),rgba(236,72,153,.1)); box-shadow: 0 12px 28px rgba(124,58,237,.13); }
.appearance-option > span > span:last-of-type { display: grid; align-content: start; gap: 4px; }
.appearance-option strong { font: 750 12px "Manrope"; }
.appearance-option small { color: var(--muted); font-size: 8.5px; line-height: 1.35; }
.appearance-option em { position: absolute; top: 11px; right: 10px; padding: 4px 6px; border-radius: 999px; color: #dca7f7; background: rgba(168,85,247,.12); font-size: 6px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.appearance-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.appearance-icon svg { width: 21px; }
.system-icon { color: #e2b5ff; background: linear-gradient(145deg,rgba(124,58,237,.28),rgba(236,72,153,.18)); }
.light-icon { color: #8c5200; background: linear-gradient(145deg,#fff5b8,#ffc96b); }
.dark-icon { color: #d8ccff; background: linear-gradient(145deg,#31245e,#151024); }
.appearance-save { margin-top: 20px; }
.wide { width: 100%; }
.centered { justify-content: center; width: 100%; margin-top: 8px; }
.account-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--stroke); border-radius: 16px; background: rgba(255,255,255,.035); }
.large-avatar { width: 48px; height: 48px; font-size: 13px; }
.account-card strong, .account-card > div span { display: block; }
.account-card strong { font-size: 13px; }
.account-card div span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.secure-pill { display: inline-flex !important; gap: 5px; align-items: center; padding: 6px 8px; border-radius: 999px; color: var(--green); background: rgba(98,230,181,.08); font-size: 8px; font-weight: 700; }
.secure-pill svg { width: 11px; height: 11px; }
.account-card + .access-note { margin-top: 15px; }
.portal-boundary { display: grid; grid-template-columns: 39px minmax(0,1fr); gap: 11px; align-items: center; margin: 15px 0 11px; padding: 11px 12px; border: 1px solid rgba(200,135,240,.15); border-radius: 14px; background: linear-gradient(120deg,rgba(124,58,237,.1),rgba(236,72,153,.045)); }
.portal-boundary-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: #dfa5ff; background: rgba(168,85,247,.13); }
.account-special-editor .secure-pill { color: #f2cd79; background: rgba(229,184,93,.1); }
.account-special-editor .portal-boundary { border-color: rgba(229,184,93,.2); background: linear-gradient(120deg,rgba(151,96,20,.15),rgba(255,226,146,.055)); }
.account-special-editor .portal-boundary-icon { color: #f2cd79; background: rgba(229,184,93,.13); }
.portal-boundary-icon svg { width: 18px; }
.portal-boundary div { display: grid; gap: 4px; }
.portal-boundary strong { font: 700 11px "Manrope"; }
.portal-boundary small { color: #847c88; font-size: 8.5px; }
.account-action-stack { display: grid; gap: 4px; }
.account-viewer #accountModal { width: min(calc(100% - 28px), 430px); }
.account-viewer #accountModal .modal-head { margin-bottom: 18px; }
.viewer-access-panel { display: grid; gap: 13px; }
.viewer-access-panel[hidden] { display: none; }
.viewer-access-hero { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid rgba(190,116,243,.2); border-radius: 17px; background: linear-gradient(130deg,rgba(124,58,237,.16),rgba(236,72,153,.06)); }
.viewer-access-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #e5adff; background: rgba(168,85,247,.16); }
.viewer-access-icon svg { width: 22px; }
.viewer-access-hero div { display: grid; gap: 4px; min-width: 0; }
.viewer-access-hero strong { font: 750 12px "Manrope"; }
.viewer-access-hero small { color: #8d8591; font-size: 8.5px; }
.viewer-live-pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 999px; color: #71e6b9; background: rgba(98,230,181,.09); font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.viewer-live-pill > span { width: 5px; height: 5px; border-radius: 50%; background: #62e6b5; box-shadow: 0 0 8px rgba(98,230,181,.7); }
.viewer-permission-grid { display: grid; gap: 7px; }
.viewer-permission-grid article { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; align-items: center; min-height: 47px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.025); }
.viewer-permission-grid article > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #db9df7; background: rgba(168,85,247,.11); font-size: 12px; }
.viewer-permission-grid article div { display: grid; gap: 3px; }
.viewer-permission-grid strong { font-size: 10px; }
.viewer-permission-grid small { color: #7f7783; font-size: 8px; }
.viewer-restriction { display: flex; gap: 9px; align-items: center; margin: 0; padding: 9px 11px; border-radius: 12px; color: #918894; background: rgba(255,255,255,.025); font-size: 8.5px; line-height: 1.35; }
.viewer-restriction span { flex: 0 0 auto; color: #d5a5e8; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.viewer-access-panel .primary-button { margin-top: 1px; }

@media (min-width: 821px) {
  .hero.custom-background .playlist-identity {
    padding: 23px 25px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: linear-gradient(135deg,rgba(16,10,20,.72),rgba(15,9,18,.5));
    box-shadow: 0 20px 55px rgba(0,0,0,.2);
    backdrop-filter: blur(16px) saturate(115%);
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .workspace { width: min(calc(100% - 48px),1040px); grid-template-columns: minmax(0,1fr) 320px; gap: 17px; }
  .player-panel { border-radius: 21px; }
  .player-heading { height: 44px; padding: 0 14px; }
  .player-details { padding: 15px 16px 16px; }
  .track-row { grid-template-columns: 19px 49px minmax(0,1fr) auto auto; gap: 10px; min-height: 67px; }
  .track-thumb { width: 49px; height: 49px; }
  .viewer .track-row { grid-template-columns: 49px minmax(0,1fr) auto; }
  .playing-copy h3, .playing-copy p { max-width: 230px; }
  .utility-row { gap: 4px; }
  .volume-range { width: 45px; }
  .quality-button { min-width: 66px; }
}

.switch-label { display: flex !important; grid-template-columns: 1fr auto; justify-content: space-between; align-items: center; padding: 13px 14px; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255,255,255,.035); }
.switch-label span { display: grid; gap: 4px; }
.switch-label strong { color: var(--text); font-size: 11px; }
.switch-label small { color: var(--muted); font-size: 9px; font-weight: 400; }
.switch-label input { width: 40px; height: 22px; appearance: none; border-radius: 99px; background: #37313b; transition: .2s; }
.switch-label input::after { display: block; width: 16px; height: 16px; margin: 3px; border-radius: 50%; content: ""; background: white; transition: transform .2s; }
.switch-label input:checked { background: var(--purple); }
.switch-label input:checked::after { transform: translateX(18px); }
.delete-playlist-button { width: 100%; height: 38px; margin-top: 15px; border: 0; color: #ff8197; background: transparent; font-size: 10px; font-weight: 700; }
.delete-playlist-button:hover { color: #ff9bad; }
.create-playlist-submit { margin-top: 23px; }

.confirm-sheet[hidden] { display: none; }
.confirm-sheet { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; }
.sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(3,2,5,.75); backdrop-filter: blur(6px); }
.confirm-sheet section { position: relative; width: min(100%, 385px); padding: 27px; border: 1px solid var(--stroke-strong); border-radius: 24px; background: #18141c; box-shadow: var(--shadow); text-align: center; }
.danger-symbol { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 16px; color: var(--danger); background: rgba(255,93,120,.1); }
.confirm-sheet h3 { margin: 0; font: 700 19px "Manrope"; }
.confirm-sheet p { margin: 9px 0 22px; color: var(--muted); font-size: 11px; }
.confirm-sheet section > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--stroke-strong); border-radius: 999px; opacity: 0; color: #e9e4eb; background: rgba(25,21,29,.92); box-shadow: 0 15px 40px rgba(0,0,0,.4); backdrop-filter: blur(18px); transform: translate(-50%, 20px); pointer-events: none; transition: 240ms ease; font-size: 11px; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; color: var(--green); }

:root[data-color-mode="light"] {
  color-scheme: light;
  --bg: #f7f3f8;
  --surface: rgba(255,255,255,.88);
  --surface-strong: #fff;
  --surface-soft: rgba(70,42,82,.055);
  --stroke: rgba(58,35,68,.12);
  --stroke-strong: rgba(58,35,68,.2);
  --text: #241928;
  --muted: #756a79;
  --muted-strong: #54485a;
  --green: #087d5a;
  --danger: #d92f50;
  --shadow: 0 24px 70px rgba(62,38,72,.15);
}
:root[data-color-mode="light"] body {
  background:
    radial-gradient(circle at 86% 33%, rgba(236,72,153,.075), transparent 24rem),
    radial-gradient(circle at 11% 72%, rgba(124,58,237,.075), transparent 28rem),
    var(--bg);
}
:root[data-color-mode="light"] body.account-owner {
  --bg: #f7f1f7;
  background:
    radial-gradient(circle at 84% 16%,rgba(244,63,94,.095),transparent 28rem),
    radial-gradient(circle at 8% 69%,rgba(124,58,237,.085),transparent 30rem),
    linear-gradient(180deg,#fcf9fc 0%,#f5edf6 100%);
}
:root[data-color-mode="light"] body.account-editor {
  --bg: #f1f7fb;
  background:
    radial-gradient(circle at 84% 16%,rgba(34,211,238,.115),transparent 28rem),
    radial-gradient(circle at 8% 69%,rgba(79,70,229,.075),transparent 30rem),
    linear-gradient(180deg,#f9fcfe 0%,#ebf3f9 100%);
}
:root[data-color-mode="light"] body.account-viewer {
  --bg: #eff8f5;
  background:
    radial-gradient(circle at 84% 16%,rgba(56,189,248,.105),transparent 28rem),
    radial-gradient(circle at 8% 69%,rgba(16,185,129,.09),transparent 30rem),
    linear-gradient(180deg,#f9fcfb 0%,#e9f5f1 100%);
}
:root[data-color-mode="light"] body.account-special-editor {
  --bg: #faf5e9;
  background:
    radial-gradient(circle at 84% 16%,rgba(229,184,93,.14),transparent 28rem),
    radial-gradient(circle at 8% 69%,rgba(151,96,20,.09),transparent 30rem),
    linear-gradient(180deg,#fffdf7 0%,#f5ecd9 100%);
}
:root[data-color-mode="light"] body::after { opacity: .12; }
:root[data-color-mode="light"] .login-view { background: radial-gradient(circle at 14% 18%,color-mix(in srgb,var(--role-primary,#a855f7) 14%,transparent),transparent 27rem),radial-gradient(circle at 88% 80%,color-mix(in srgb,var(--role-secondary,#ec4899) 11%,transparent),transparent 30rem),radial-gradient(circle at 50% 48%,rgba(255,255,255,.92),transparent 34rem),linear-gradient(145deg,#fbf8fc 0%,#f1eaf5 50%,#f8f5fa 100%); }
:root[data-color-mode="light"] .account-editor .login-view { background: radial-gradient(circle at 14% 18%,rgba(34,211,238,.14),transparent 27rem),radial-gradient(circle at 88% 80%,rgba(79,70,229,.11),transparent 30rem),radial-gradient(circle at 50% 48%,rgba(255,255,255,.94),transparent 34rem),linear-gradient(145deg,#f8fcfe 0%,#eaf3fa 50%,#f4f8fc 100%); }
:root[data-color-mode="light"] .login-card { border-color: rgba(255,255,255,.7); background: linear-gradient(145deg,rgba(255,255,255,.7),rgba(255,255,255,.42)); box-shadow: 0 38px 100px rgba(50,31,58,.16),0 8px 32px color-mix(in srgb,var(--role-primary,#a855f7) 8%,transparent),inset 1px 1px rgba(255,255,255,.95),inset -1px -1px rgba(255,255,255,.28); animation: loginCardIn 620ms cubic-bezier(.2,.8,.2,1) both,loginCardBreatheLight 8s ease-in-out 900ms infinite; }
:root[data-color-mode="light"] .login-card::after { background: linear-gradient(145deg,rgba(255,255,255,.46),transparent 30%,transparent 72%,color-mix(in srgb,var(--role-primary,#a855f7) 6%,transparent)); box-shadow: inset 0 1px rgba(255,255,255,.74); }
:root[data-color-mode="light"] .login-theme-button { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.48); box-shadow: 0 14px 36px rgba(50,31,58,.12),inset 0 1px rgba(255,255,255,.9); }
:root[data-color-mode="light"] .login-shell-head .login-role-chip { border-color: rgba(255,255,255,.7); color: var(--muted-strong); background: rgba(255,255,255,.42); box-shadow: 0 14px 34px rgba(50,31,58,.08),inset 0 1px rgba(255,255,255,.86); }
:root[data-color-mode="light"] .login-cinematic-layer { opacity: .22; mix-blend-mode: multiply; filter: saturate(88%) contrast(91%); }
:root[data-color-mode="light"] .account-editor .login-cinematic-layer { opacity: .2; filter: hue-rotate(38deg) saturate(84%) contrast(91%); }
:root[data-color-mode="light"] .login-atmosphere::before { border-color: color-mix(in srgb,var(--role-primary,#a855f7) 18%,transparent); box-shadow: 0 0 90px color-mix(in srgb,var(--role-primary,#a855f7) 7%,transparent),inset 0 0 80px color-mix(in srgb,var(--role-secondary,#ec4899) 5%,transparent); }
:root[data-color-mode="light"] .login-portals,
:root[data-color-mode="light"] .login-google,
:root[data-color-mode="light"] .login-input-wrap,
:root[data-color-mode="light"] .login-viewer-link { border-color: rgba(255,255,255,.66); background: rgba(255,255,255,.34); box-shadow: inset 0 1px rgba(255,255,255,.72),0 8px 24px rgba(50,31,58,.035); }
:root[data-color-mode="light"] .login-input-wrap:focus-within { border-color: color-mix(in srgb,var(--role-primary,#a855f7) 45%,rgba(255,255,255,.78)); background: color-mix(in srgb,var(--role-primary,#a855f7) 5%,rgba(255,255,255,.5)); }
:root[data-color-mode="light"] .dashboard-card-role { color: var(--role-ink); }
:root[data-color-mode="light"] .account-owner .kicker,
:root[data-color-mode="light"] .account-editor .kicker,
:root[data-color-mode="light"] .account-viewer .kicker { color: var(--role-ink); }
:root[data-color-mode="light"] .dashboard-nav { color: #675b6b; }
:root[data-color-mode="light"] .dashboard-nav:hover,
:root[data-color-mode="light"] .dashboard-active .dashboard-nav { color: #6e2b91; border-color: rgba(124,58,237,.16); background: rgba(124,58,237,.08); }
:root[data-color-mode="light"] .playlist-switcher { color: #4e4253; background: rgba(255,255,255,.78); box-shadow: 0 6px 20px rgba(55,33,65,.06); }
:root[data-color-mode="light"] .playlist-switcher:hover,
:root[data-color-mode="light"] .playlist-switcher[aria-expanded="true"] { color: #6f258f; background: #fff; }
:root[data-color-mode="light"] .playlist-menu { color: var(--text); background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgba(55,31,65,.2); }
:root[data-color-mode="light"] .playlist-menu-head { border-color: var(--stroke); }
:root[data-color-mode="light"] .playlist-menu-head small,
:root[data-color-mode="light"] .playlist-menu-copy small { color: #776b7b; }
:root[data-color-mode="light"] .playlist-menu-item { color: #3c3040; }
:root[data-color-mode="light"] .playlist-menu-item:hover,
:root[data-color-mode="light"] .playlist-menu-item.active { background: rgba(124,58,237,.09); }
:root[data-color-mode="light"] .icon-button,
:root[data-color-mode="light"] .profile-chip { background: rgba(255,255,255,.78); box-shadow: 0 6px 20px rgba(55,33,65,.06); }
:root[data-color-mode="light"] .icon-button:hover { background: #fff; }
:root[data-color-mode="light"] .dashboard-hero,
:root[data-color-mode="light"] .hero { color: #fff; }
:root[data-color-mode="light"] .account-owner .dashboard-hero { filter: drop-shadow(0 1px 0 rgba(126,34,206,.14)) drop-shadow(0 28px 30px rgba(126,34,206,.17)); }
:root[data-color-mode="light"] .account-editor .dashboard-hero { filter: drop-shadow(0 1px 0 rgba(3,105,161,.14)) drop-shadow(0 28px 28px rgba(3,105,161,.16)); }
:root[data-color-mode="light"] .account-viewer .dashboard-hero { filter: drop-shadow(0 1px 0 rgba(4,120,87,.14)) drop-shadow(0 28px 30px rgba(4,120,87,.17)); }
:root[data-color-mode="light"] .account-special-editor .dashboard-hero { filter: drop-shadow(0 1px 0 rgba(138,90,10,.14)) drop-shadow(0 28px 30px rgba(138,90,10,.18)); }
:root[data-color-mode="light"] .dashboard-card { border-color: color-mix(in srgb,var(--role-primary) 12%,rgba(55,33,65,.1)); background: rgba(255,255,255,.82); box-shadow: 0 14px 34px color-mix(in srgb,var(--role-primary) 9%,transparent); }
:root[data-color-mode="light"] .dashboard-card:hover { border-color: color-mix(in srgb,var(--role-primary) 27%,rgba(55,33,65,.08)); background: #fff; }
:root[data-color-mode="light"] .dashboard-card-cover { color: #fff; }
:root[data-color-mode="light"] .private-lock-panel { background: radial-gradient(circle at 50% -20%,rgba(192,38,211,.12),transparent 52%),rgba(255,255,255,.88); box-shadow: var(--shadow); }
:root[data-color-mode="light"] .unlock-row input { background: rgba(255,255,255,.82); }
:root[data-color-mode="light"] .dashboard-card-copy > p,
:root[data-color-mode="light"] .dashboard-card-meta,
:root[data-color-mode="light"] .dashboard-create-card small { color: #766a79; }
:root[data-color-mode="light"] .dashboard-search,
:root[data-color-mode="light"] .dashboard-filters button,
:root[data-color-mode="light"] .empty-state,
:root[data-color-mode="light"] .dashboard-create-card { background: rgba(255,255,255,.7); }
:root[data-color-mode="light"] .dashboard-search,
:root[data-color-mode="light"] .dashboard-filters button,
:root[data-color-mode="light"] .dashboard-create-card { border-color: color-mix(in srgb,var(--role-primary) 13%,rgba(55,33,65,.1)); box-shadow: 0 8px 24px color-mix(in srgb,var(--role-primary) 5%,transparent); }
:root[data-color-mode="light"] .dashboard-filters button { color: #695d6e; }
:root[data-color-mode="light"] .dashboard-filters button[aria-pressed="true"] { color: #642684; background: linear-gradient(120deg,rgba(124,58,237,.15),rgba(236,72,153,.1)); }
:root[data-color-mode="light"] .track-info p,
:root[data-color-mode="light"] .track-duration { color: #766c79; }
:root[data-color-mode="light"] .track-row:hover { background: rgba(124,58,237,.055); }
:root[data-color-mode="light"] .secondary-button { color: #403346; background: rgba(255,255,255,.72); }
:root[data-color-mode="light"] .modal { background: rgba(255,255,255,.97); box-shadow: 0 34px 100px rgba(48,29,57,.28); }
:root[data-color-mode="light"] .modal input:not([type="checkbox"]),
:root[data-color-mode="light"] .modal textarea,
:root[data-color-mode="light"] .slug-input,
:root[data-color-mode="light"] .account-card,
:root[data-color-mode="light"] .switch-label,
:root[data-color-mode="light"] .viewer-permission-grid article,
:root[data-color-mode="light"] .viewer-restriction { background: rgba(70,42,82,.045); }
:root[data-color-mode="light"] .modal input::placeholder,
:root[data-color-mode="light"] .modal textarea::placeholder { color: #9b8f9f; }
:root[data-color-mode="light"] .access-note code { color: #7b2ca1; }
:root[data-color-mode="light"] .portal-boundary,
:root[data-color-mode="light"] .viewer-access-hero { background: linear-gradient(120deg,rgba(124,58,237,.09),rgba(236,72,153,.045)); }
:root[data-color-mode="light"] .appearance-option > input:checked + span { background: linear-gradient(145deg,rgba(124,58,237,.12),rgba(236,72,153,.07)); }
:root[data-color-mode="light"] .appearance-option em { color: #762c9b; }
:root[data-color-mode="light"] .system-icon { color: #6d2f93; }
:root[data-color-mode="light"] .confirm-sheet section { background: #fff; }
:root[data-color-mode="light"] .player-panel,
:root[data-color-mode="light"] .mobile-player,
:root[data-color-mode="light"] .quality-menu {
  --text: #fbf8fc;
  --muted: #aaa3ae;
  --stroke: rgba(255,255,255,.105);
  --stroke-strong: rgba(255,255,255,.19);
  color: #fbf8fc;
}
:root[data-color-mode="light"] .playing-copy h3 { color: #fbf8fc; }
:root[data-color-mode="light"] .toast { border-color: rgba(255,255,255,.16); color: #f7f1f9; }

.viewer .owner-control { display: none !important; }
.account-viewer .creator-control { display: none !important; }
.editor .playlist-owner-control { display: none !important; }
.viewer .hero-actions { margin-top: 24px; }
.editor .owner-only { display: none !important; }
.dragging, .dragging * { user-select: none !important; }

@media (max-width: 980px) {
  .login-view { grid-template-columns: 1fr; place-items: center; align-content: center; padding: 92px 16px 58px; }
  .login-showcase { min-height: 410px; padding: 28px; border-radius: 31px 31px 18px 18px; }
  .login-symbol { top: 1%; right: 3%; width: min(54vw,340px); }
  .login-showcase-copy { left: 28px; right: 28px; bottom: 52px; max-width: 560px; }
  .login-showcase-copy h2 { font-size: clamp(50px,9.5vw,76px); }
  .login-showcase-copy > p:last-child { max-width: 430px; margin-top: 17px; }
  .login-equalizer { right: 28px; bottom: 42px; }
  .login-panel { z-index: 3; min-height: 0; padding: 0; }
  .login-card { margin: 0 auto; }
  .login-shell-head .login-theme-button { position: static; }
  .login-footer { bottom: 22px; }
}

@media (min-width: 981px) and (max-height: 800px) {
  .login-view { padding: 82px 20px 48px; }
  .login-panel { min-height: 0; }
  .login-showcase { padding: 38px 42px; }
  .login-panel { padding: 0; }
  .login-card { padding: 27px 38px; }
  .login-heading { margin: 24px 0 20px; }
  .login-heading > p:last-child { margin-top: 9px; }
  .login-form > label:not(:first-child) { margin-top: 13px; }
  .login-input-wrap { min-height: 48px; }
  .login-input-wrap input { height: 46px; }
  .login-security-note { margin-top: 9px; }
  .login-status { margin-top: 8px; }
  .login-invite-note { margin: 13px 0; }
  .login-footer { bottom: 2px; }
}

@media (max-width: 600px) {
  .login-view { place-items: start center; align-content: start; padding: 82px 10px 52px; }
  .login-showcase { min-height: 335px; padding: 22px; border-radius: 25px 25px 16px 16px; }
  .login-brand { font-size: 17px; }
  .login-role-chip { min-height: 28px; padding: 0 9px; font-size: 7px; }
  .login-symbol { top: 8%; right: -8%; width: 260px; opacity: .5; }
  .login-showcase-copy { left: 22px; right: 22px; bottom: 47px; }
  .login-showcase-copy > p:first-child { margin-bottom: 11px; font-size: 7px; }
  .login-showcase-copy h2 { font-size: clamp(42px,13vw,58px); }
  .login-showcase-copy > p:last-child { display: none; }
  .login-equalizer { display: none; }
  .login-panel { padding: 0; }
  .login-card { margin: 0 auto; padding: 24px 20px; border-radius: 26px; }
  .login-card::after { border-radius: 25px; }
  .login-shell-head { width: calc(100% - 28px); top: 18px; }
  .login-shell-head .login-role-chip { min-height: 34px; padding: 0 11px; }
  .login-shell-head .login-theme-button { width: 34px; height: 34px; flex-basis: 34px; }
  .login-atmosphere .login-symbol { width: 118vw; opacity: .2; }
  .login-atmosphere .login-equalizer { display: none; }
  .login-cinematic-layer { inset: -4%; background-position: 46% center; opacity: .44; }
  :root[data-color-mode="light"] .login-cinematic-layer { opacity: .14; }
  .login-heading { margin: 27px 0 24px; }
  .login-heading h1 { font-size: 34px; }
  .login-lock { width: 46px; height: 46px; border-radius: 15px; }
  .login-footer { bottom: 23px; }
}

@media (max-width: 1030px) {
  .hero-content { padding: 43px; }
  .cover-art { width: 215px; }
  .workspace { width: min(calc(100% - 48px), 940px); }
  .dashboard-view { width: min(calc(100% - 48px),940px); }
  .dashboard-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-hero { padding: 42px; }
}

@media (max-width: 820px) {
  .vibe-dock { display: none; }
  .photo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .photo-card, .photo-card img { min-height: 180px; }
  body { padding-bottom: 84px; }
  .topbar { height: 66px; padding: 0 20px; }
  .role-art { top: 12px; right: 10px; opacity: .35; scale: .72; transform-origin: top right; }
  .dashboard-nav { width: 37px; margin-left: 12px; padding: 0; justify-content: center; }
  .dashboard-nav span { display: none; }
  .playlist-library { margin-right: 5px; }
  .playlist-switcher { max-width: 116px; height: 37px; padding: 0 9px; }
  .playlist-switcher > svg:first-child { display: none; }
  .playlist-menu { position: fixed; top: 61px; right: 10px; }
  .profile-chip > #roleLabel, .presence-dot { display: none; }
  .profile-chip { padding: 3px; border: 0; background: transparent; }
  .hero { width: calc(100% - 20px); min-height: 0; border-radius: 26px; }
  .hero-content { display: block; min-height: 0; padding: 28px 25px 30px; }
  .cover-art { width: 142px; border-radius: 19px; }
  .cover-word { font-size: 29px; }
  .cover-caption { font-size: 6px; }
  .cover-edit { width: 37px; height: 37px; right: -7px; bottom: -7px; }
  .playlist-identity { padding-top: 27px; }
  .title-line h1 { font-size: clamp(40px, 13vw, 62px); }
  .playlist-identity > p { margin: 13px 0; font-size: 12px; line-height: 1.55; }
  .hero-actions { flex-wrap: wrap; }
  .primary-button, .secondary-button { height: 44px; }
  .workspace { display: block; width: calc(100% - 28px); margin: 37px auto 20px; }
  .dashboard-view { width: calc(100% - 28px); margin: 3px auto 45px; }
  .dashboard-hero { display: block; min-height: 0; padding: 34px 27px 40px; }
  .account-owner .dashboard-hero { border-radius: 0; clip-path: url(#ownerBannerWave); }
  .account-editor .dashboard-hero { clip-path: url(#editorBannerWave); }
  .account-viewer .dashboard-hero { border-radius: 0; clip-path: url(#viewerBannerWave); }
  .dashboard-hero-copy h1 { font-size: clamp(46px,13vw,66px); }
  .dashboard-stats { grid-template-columns: repeat(3,1fr); margin-top: 30px; }
  .dashboard-stats article { min-height: 80px; }
  .dashboard-library { padding-top: 37px; }
  .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .dashboard-card { padding: 8px; border-radius: 18px; }
  .dashboard-card-cover { border-radius: 13px; }
  .dashboard-card-play { width: 37px; height: 37px; opacity: 1; transform: none; }
  .dashboard-create-card { min-height: 245px; border-radius: 18px; }
  .private-lock-panel { margin: 0 auto 30px; padding: 34px 22px; border-radius: 24px; }
  .player-panel {
    position: fixed;
    z-index: 50;
    inset: auto 8px 8px;
    max-height: calc(100dvh - 16px);
    border-radius: 27px;
    opacity: 0;
    transform: translateY(110%);
    transition: transform 300ms cubic-bezier(.2,.7,.2,1), opacity 220ms;
  }
  .player-panel.open { opacity: 1; transform: translateY(0); }
  .player-panel .video-stage { max-height: 48vh; }
  .player-heading { height: 50px; }
  .player-details { padding: 19px 20px 24px; }
  .playing-copy h3, .playing-copy p { max-width: 75vw; }
  .mobile-player {
    position: fixed;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0,1fr) 36px 44px 36px;
    gap: 4px;
    align-items: center;
    inset: auto 8px max(8px, env(safe-area-inset-bottom));
    min-height: 67px;
    padding: 7px 8px;
    overflow: hidden;
    border: 1px solid var(--stroke-strong);
    border-radius: 19px;
    background: rgba(25,20,29,.9);
    box-shadow: 0 14px 45px rgba(0,0,0,.48);
    backdrop-filter: blur(25px);
  }
  .mobile-track { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 0; border: 0; color: var(--text); background: transparent; text-align: left; }
  .mobile-thumb { position: relative; display: grid; flex: 0 0 51px; place-items: center; width: 51px; height: 51px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #513073, #b52873); background-position: center; background-size: cover; font: 800 16px "Manrope"; }
  .mobile-copy { display: grid; min-width: 0; gap: 3px; }
  .mobile-copy strong, .mobile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-copy strong { font-size: 11px; }
  .mobile-copy small { color: #817986; font-size: 9px; }
  .mobile-play { display: grid; place-items: center; width: 41px; height: 41px; padding: 0 0 0 2px; border: 0; border-radius: 50%; background: var(--accent-gradient); }
  .mobile-play svg { width: 17px; }
  .mobile-progress { position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(to right, #d15bf0 var(--mobile-progress, 0%), rgba(255,255,255,.08) var(--mobile-progress, 0%)); }
}

@media (max-width: 540px) {
  .brand { font-size: 17px; }
  .role-art { top: 2px; right: -3px; opacity: .3; scale: .58; }
  .hero-content { padding: 24px 21px 27px; }
  .dashboard-heading { display: block; }
  .dashboard-search { width: 100%; margin-top: 17px; }
  .dashboard-filters { margin-top: 16px; }
  .dashboard-card-copy h3 { font-size: 12px; }
  .dashboard-card-copy > p { margin-bottom: 10px; font-size: 8px; }
  .dashboard-card-meta { display: grid; gap: 6px; }
  .dashboard-card-role { justify-self: start; }
  .cover-art { width: 128px; }
  .title-line { gap: 8px; }
  .title-line h1 { font-size: 42px; }
  .edit-button { width: 32px; height: 32px; }
  .eyebrow { font-size: 8px; }
  .hero-actions .primary-button, .hero-actions .secondary-button { flex: 1; padding: 0 14px; }
  .hero-actions .round-button { flex: 0 0 44px; width: 44px; height: 44px; }
  .section-heading { display: block; }
  .queue-actions { justify-content: flex-start; margin: 13px 0 -4px -7px; }
  .track-row { grid-template-columns: 18px 49px minmax(0,1fr) auto; gap: 10px; min-height: 66px; padding-right: 6px; }
  .track-thumb { width: 49px; height: 49px; }
  .track-duration { display: none; }
  .track-menu { width: 29px; }
  .viewer .track-row { grid-template-columns: 49px minmax(0,1fr) auto; }
  .viewer .track-duration { display: block; }
  .modal form { padding: 21px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-grid .primary-button { order: -1; }
  .account-card { grid-template-columns: 44px 1fr; }
  .large-avatar { width: 44px; height: 44px; }
  .secure-pill { grid-column: 1 / -1; justify-self: start; }
  .viewer-access-hero { grid-template-columns: 42px minmax(0,1fr); }
  .viewer-access-icon { width: 42px; height: 42px; }
  .viewer-live-pill { grid-column: 1 / -1; justify-self: start; }
  .viewer-restriction { display: grid; gap: 4px; }
  .appearance-options { grid-template-columns: 1fr; }
  .appearance-option > span { grid-template-columns: 44px minmax(0,1fr); align-items: center; min-height: 76px; }
  .unlock-row { grid-template-columns: 1fr; }
  .unlock-row .primary-button { width: 100%; }
}

/* Minimal, mobile-native authentication journey. */
@media (max-width: 600px) {
  body.mobile-login-splash-active,
  body.mobile-login-welcome-active,
  body.mobile-login-form-active { background: #08070b; }

  .mobile-login-experience {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
    min-height: 100dvh;
    overflow: hidden;
    color: #fdfaff;
    background: #08070b;
  }

  .mobile-login-stage {
    position: absolute;
    inset: 0;
    min-height: 100dvh;
    overflow: hidden;
  }

  .mobile-login-splash {
    display: grid;
    place-items: stretch;
    background: #08070b;
  }

  .mobile-login-splash::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg,transparent 52%,rgba(5,4,8,.28) 78%,rgba(5,4,8,.72));
  }

  .mobile-login-splash > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.025);
    animation: mobileLoginImageSettle 1.25s cubic-bezier(.2,.75,.2,1) both;
  }

  .mobile-login-splash-brand {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: max(36px,calc(env(safe-area-inset-bottom) + 24px));
    left: 0;
    display: flex;
    gap: 11px;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: mobileLoginBrandIn 700ms ease 300ms both;
  }

  .mobile-login-splash-brand .brand-mark { width: 27px; height: 27px; }
  .mobile-login-splash-brand strong { font-size: 18px; letter-spacing: .15em; }

  .mobile-login-welcome {
    display: grid;
    grid-template-rows: min(56dvh,480px) minmax(340px,1fr);
    overflow-y: auto;
    background: #0d0a10;
    scrollbar-width: none;
  }
  .mobile-login-welcome::-webkit-scrollbar { display: none; }

  .mobile-login-visual {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 0 0 34px 34px;
    background: #130b18;
    box-shadow: 0 22px 54px rgba(0,0,0,.25);
  }

  .account-editor .mobile-login-visual { background: #07111c; }

  .mobile-login-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg,rgba(5,4,8,.2),transparent 24%,transparent 72%,rgba(5,4,8,.16));
  }

  .mobile-login-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    animation: mobileLoginVisualIn 850ms cubic-bezier(.2,.75,.2,1) both;
  }

  .mobile-login-meta {
    position: absolute;
    z-index: 2;
    top: max(22px,calc(env(safe-area-inset-top) + 12px));
    right: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.76);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .mobile-login-mini-brand { color: #fff; font-size: 12px; letter-spacing: .2em; }
  .mobile-login-meta > span:last-child {
    min-height: 32px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(10,8,14,.28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-login-welcome-copy {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 28px 24px max(28px,calc(env(safe-area-inset-bottom) + 20px));
    color: #fcf9fd;
    background: #0d0a10;
    animation: mobileLoginCopyIn 650ms cubic-bezier(.2,.75,.2,1) 120ms both;
  }

  .account-editor .mobile-login-welcome,
  .account-editor .mobile-login-welcome-copy { background: #080d14; }

  .mobile-login-welcome-copy > p:first-child {
    margin: 0 0 12px;
    color: var(--role-primary,#bb5df6);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
  }

  .mobile-login-welcome-copy h2 {
    max-width: 330px;
    margin: 0;
    font-size: clamp(32px,9.2vw,39px);
    line-height: 1.04;
    letter-spacing: -.045em;
  }

  .mobile-login-welcome-copy > p:nth-of-type(2) {
    max-width: 330px;
    margin: 14px 0 24px;
    color: rgba(255,255,255,.58);
    font-size: 13px;
    line-height: 1.55;
  }

  .mobile-login-continue {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 0 18px 0 20px;
    border: 0;
    border-radius: 17px;
    color: #fff;
    background: var(--role-gradient,var(--accent-gradient));
    box-shadow: 0 15px 32px color-mix(in srgb,var(--role-primary,#a855f7) 22%,transparent);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-login-continue svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .mobile-login-welcome-copy > a {
    margin-top: 17px;
    color: rgba(255,255,255,.48);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  body.mobile-login-splash-active .login-shell-head,
  body.mobile-login-splash-active .login-cinematic-layer,
  body.mobile-login-splash-active .login-atmosphere,
  body.mobile-login-splash-active .login-panel,
  body.mobile-login-welcome-active .login-shell-head,
  body.mobile-login-welcome-active .login-cinematic-layer,
  body.mobile-login-welcome-active .login-atmosphere,
  body.mobile-login-welcome-active .login-panel {
    opacity: 0;
    pointer-events: none;
  }

  body.mobile-login-form-active .login-view {
    place-items: start center;
    align-content: start;
    min-height: 100dvh;
    padding: 76px 18px max(30px,calc(env(safe-area-inset-bottom) + 18px));
    overflow-y: auto;
    background:
      radial-gradient(circle at 14% 4%,color-mix(in srgb,var(--role-primary,#a855f7) 14%,transparent),transparent 17rem),
      var(--bg);
  }

  body.mobile-login-form-active .login-view::before,
  body.mobile-login-form-active .login-view::after,
  body.mobile-login-form-active .login-cinematic-layer,
  body.mobile-login-form-active .login-atmosphere { display: none; }

  body.mobile-login-form-active .login-shell-head {
    width: auto;
    top: max(16px,env(safe-area-inset-top));
    right: 18px;
    left: auto;
    transform: none;
    animation: none;
  }

  body.mobile-login-form-active .login-shell-head .login-brand,
  body.mobile-login-form-active .login-shell-head .login-role-chip { display: none; }
  body.mobile-login-form-active .login-shell-head .login-theme-button {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-color: var(--stroke);
    background: var(--surface-soft);
  }

  body.mobile-login-form-active .login-panel {
    width: min(100%,430px);
    min-height: 0;
    padding: 0;
  }

  body.mobile-login-form-active .login-panel::before,
  body.mobile-login-form-active .login-panel::after { display: none; }

  body.mobile-login-form-active .login-card {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: mobileLoginCopyIn 520ms cubic-bezier(.2,.75,.2,1) both;
  }

  body.mobile-login-form-active .login-card::before,
  body.mobile-login-form-active .login-card::after { display: none; }

  .mobile-login-back {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface-soft);
  }
  .mobile-login-back svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

  body.mobile-login-form-active .login-portals {
    min-height: 43px;
    margin-left: 55px;
    padding: 4px;
    border-radius: 14px;
  }

  body.mobile-login-form-active .login-portals a { min-height: 33px; }
  body.mobile-login-form-active .login-heading { margin: 42px 0 28px; }
  body.mobile-login-form-active .login-heading h1 { font-size: clamp(36px,10vw,42px); letter-spacing: -.045em; }
  body.mobile-login-form-active .login-heading > p:last-child { max-width: 300px; font-size: 11px; line-height: 1.5; }
  body.mobile-login-form-active .login-lock { display: none; }
  body.mobile-login-form-active .login-form > label { font-size: 9px; }
  body.mobile-login-form-active .login-input-wrap { min-height: 56px; border-radius: 16px; }
  body.mobile-login-form-active .login-input-wrap input { height: 54px; font-size: 12px; }
  body.mobile-login-form-active .login-submit { height: 56px; margin-top: 22px; border-radius: 16px; }
  body.mobile-login-form-active .login-invite-note { margin: 17px 0; }
  body.mobile-login-form-active .login-viewer-link { min-height: 56px; border-radius: 16px; }
  body.mobile-login-form-active .login-footer {
    position: static;
    margin: 24px 0 0;
    font-size: 8px;
  }

  :root[data-color-mode="light"] .mobile-login-welcome,
  :root[data-color-mode="light"] .mobile-login-welcome-copy {
    color: #171219;
    background: #faf7fb;
  }
  :root[data-color-mode="light"] .account-editor .mobile-login-welcome,
  :root[data-color-mode="light"] .account-editor .mobile-login-welcome-copy { background: #f5f9fc; }
  :root[data-color-mode="light"] .mobile-login-welcome-copy > p:nth-of-type(2) { color: rgba(23,18,25,.58); }
  :root[data-color-mode="light"] .mobile-login-welcome-copy > a { color: rgba(23,18,25,.52); }
}

@keyframes mobileLoginImageSettle {
  from { opacity: .7; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1.025); }
}
@keyframes mobileLoginBrandIn {
  from { opacity: 0; transform: translateY(9px); }
}
@keyframes mobileLoginVisualIn {
  from { opacity: .5; transform: scale(1.035); }
}
@keyframes mobileLoginCopyIn {
  from { opacity: 0; transform: translateY(18px); }
}

@media (max-aspect-ratio: 5 / 4) and (min-width: 601px) {
  .login-cinematic-layer {
    inset: -1.5%;
    background-position: center;
    background-size: 100% 100%;
  }
}

@media (max-aspect-ratio: 3 / 4) {
  .login-cinematic-layer {
    background-position: center;
    background-size: auto 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .vibe-dock-item { transform: none !important; }
}
