:root {
  color-scheme: dark;
  --bg: #080910;
  --bg-soft: #11121c;
  --text: #f5f4fb;
  --muted: #a6a4b5;
  --faint: #737182;
  --line: rgba(255,255,255,.12);
  --glass-light: rgba(255,255,255,.055);
  --glass: rgba(24,24,35,.56);
  --glass-dense: rgba(24,24,36,.78);
  --accent-a: #9d7bff;
  --accent-b: #62d7f3;
  --accent-c: #ef7bbf;
  --success: #63e6b1;
  --warning: #ffcc72;
  --danger: #ff7d8d;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow: 0 24px 70px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.11);
  --max: 1240px;
  --spring: cubic-bezier(.2,.8,.2,1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f7;
  --bg-soft: #e4e7f1;
  --text: #161621;
  --muted: #626173;
  --faint: #888797;
  --line: rgba(25,24,39,.12);
  --glass-light: rgba(255,255,255,.42);
  --glass: rgba(255,255,255,.62);
  --glass-dense: rgba(255,255,255,.84);
  --shadow: 0 24px 70px rgba(44,40,72,.13), inset 0 1px 0 rgba(255,255,255,.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; font-size: 16px; font-weight: 500; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 800; }
h1 { font-size: clamp(2.55rem, 6vw, 5.7rem); line-height: .96; letter-spacing: -.065em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; }
h3 { line-height: 1.2; letter-spacing: -.025em; }
p { color: var(--muted); font-weight: 500; }
small, li, label, summary { font-weight: 500; }
::selection { background: rgba(157,123,255,.35); color: var(--text); }
:focus-visible { outline: 3px solid rgba(98,215,243,.78); outline-offset: 3px; }

.skip-link { position: fixed; top: -100px; left: 20px; z-index: 999; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 12px; }
.skip-link:focus { top: 20px; }
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.ambient::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -15%, rgba(137,110,255,.13), transparent 35%), linear-gradient(180deg, transparent 65%, rgba(21,32,48,.2)); }
.blob { position: absolute; border-radius: 999px; filter: blur(90px); opacity: .16; transform: translate3d(0,0,0); }
.blob-a { width: 520px; height: 520px; background: #8b63ff; top: -210px; left: -150px; }
.blob-b { width: 460px; height: 460px; background: #27c6ee; right: -180px; top: 22%; opacity: .11; }
.blob-c { width: 420px; height: 420px; background: #e96fb4; bottom: -220px; left: 42%; opacity: .1; }
.noise { position: absolute; inset: 0; opacity: .018; 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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.glass { position: relative; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.02)), var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(135%); -webkit-backdrop-filter: blur(22px) saturate(135%); border-radius: var(--radius); overflow: hidden; }
.glass::before { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: linear-gradient(125deg, rgba(255,255,255,.13), transparent 20%, transparent 76%, rgba(98,215,243,.04)); pointer-events: none; }
.glass > * { position: relative; z-index: 1; }
.glass-light { background-color: var(--glass-light); backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%); box-shadow: 0 16px 45px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.1); }
.glass-dense { background-color: var(--glass-dense); backdrop-filter: blur(34px) saturate(145%); -webkit-backdrop-filter: blur(34px) saturate(145%); }
.glass-accent { background: radial-gradient(circle at 8% 0%, rgba(157,123,255,.24), transparent 38%), radial-gradient(circle at 92% 100%, rgba(98,215,243,.13), transparent 34%), var(--glass); }

.topbar { position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), var(--max)); min-height: 64px; border-radius: 24px; display: flex; align-items: center; gap: 28px; padding: 10px 12px 10px 22px; transition: .35s var(--spring); }
.topbar.scrolled { top: 10px; background-color: var(--glass-dense); box-shadow: 0 16px 45px rgba(0,0,0,.3); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 760; letter-spacing: .13em; }
.brand-mark { width: 27px; height: 22px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.brand-mark i { width: 4px; height: 17px; border-radius: 5px; background: linear-gradient(180deg, var(--accent-b), var(--accent-a)); transform: rotate(-20deg); box-shadow: 6px 0 0 var(--accent-a); }
.brand-mark i:last-child { height: 11px; opacity: .68; }
.desktop-nav { display: flex; align-items: center; gap: 6px; margin: auto; }
.desktop-nav a { position: relative; padding: 9px 14px; color: var(--muted); font-size: .9rem; font-weight: 650; border-radius: 13px; transition: .2s; }
.desktop-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-count { position: absolute; top: 2px; right: 1px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-c); color: #fff; font-size: .65rem; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.035); transition: .2s var(--spring); }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.09); transform: translateY(-1px); }
.avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, rgba(157,123,255,.9), rgba(83,65,169,.7)); color: white; font-weight: 750; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 10px 28px rgba(46,30,96,.28); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-small { width: 40px; height: 40px; font-size: .8rem; }
.avatar-large { width: 80px; height: 80px; font-size: 1.35rem; }
.avatar-xl { width: 110px; height: 110px; font-size: 2rem; }
.color-a { background: linear-gradient(145deg, #b26fff, #604ce1); }
.color-b { background: linear-gradient(145deg, #62dbed, #377fd4); }
.color-auto { background: linear-gradient(145deg, var(--accent-a), #477fcf); }
.empty-avatar { background: rgba(255,255,255,.06); border-style: dashed; color: var(--muted); box-shadow: none; }
.page-shell { width: min(calc(100% - 40px), var(--max)); min-height: calc(100vh - 160px); margin: 0 auto; padding: 136px 0 80px; }

.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 15px; padding: 10px 18px; color: var(--text); background: rgba(255,255,255,.055); font-weight: 650; font-size: .92rem; line-height: 1; transition: transform .22s var(--spring), background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.button:active { transform: scale(.97); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-primary { color: #fff; border-color: rgba(255,255,255,.19); background: linear-gradient(135deg, rgba(162,124,255,.98), rgba(98,119,239,.88)); box-shadow: 0 12px 28px rgba(107,77,210,.28), inset 0 1px 1px rgba(255,255,255,.32); }
.button-primary:hover { background: linear-gradient(135deg, #b08aff, #7185f6); box-shadow: 0 15px 38px rgba(107,77,210,.4); }
.button-quiet { background: rgba(255,255,255,.045); }
.button-danger { color: #ffd5da; background: rgba(255,87,112,.11); border-color: rgba(255,125,141,.27); }
.button-small { min-height: 38px; padding: 8px 14px; font-size: .83rem; border-radius: 13px; }
.button-large { min-height: 54px; padding: 14px 23px; border-radius: 18px; }
.button-wide { width: 100%; }
.text-button, .nav-form-button { padding: 5px; border: 0; background: none; color: var(--muted); font-size: .84rem; }
.text-button:hover, .nav-form-button:hover { color: var(--text); }
.danger-text { color: var(--danger) !important; }
.gradient-text { color: transparent; background: linear-gradient(105deg, #bf9cff 5%, #7dddf3 55%, #ee9ac8); -webkit-background-clip: text; background-clip: text; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #bbb2d9; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 750; }
html[data-theme="light"] .eyebrow { color: #695e8a; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(99,230,177,.1), 0 0 18px var(--success); animation: pulse 2.2s infinite; }
.chip { display: inline-flex; align-items: center; width: fit-content; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); font-size: .71rem; font-weight: 650; line-height: 1; }
.chip-success, .chip-ready { color: var(--success); background: rgba(99,230,177,.08); border-color: rgba(99,230,177,.2); }
.chip-muted { color: var(--muted); }
.warning { color: var(--warning); }
.status-orb { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--accent-a); box-shadow: 0 0 14px rgba(157,123,255,.65); }
.status-orb.success { background: var(--success); box-shadow: 0 0 14px rgba(99,230,177,.6); }

.toast-stack { position: fixed; z-index: 300; top: 98px; right: 24px; width: min(390px, calc(100% - 36px)); display: grid; gap: 10px; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; border-radius: 17px; font-size: .88rem; animation: toast-in .4s var(--spring); }
.toast.success { border-color: rgba(99,230,177,.24); }
.toast.warning, .toast.error { border-color: rgba(255,125,141,.28); }
.toast button { border: 0; background: none; color: var(--muted); font-size: 1.4rem; }
.notice { display: flex; flex-direction: column; gap: 3px; padding: 15px 17px; margin: 12px 0; border: 1px solid rgba(98,215,243,.18); border-radius: 14px; background: rgba(98,215,243,.055); font-size: .85rem; }
.notice span { color: var(--muted); }
.notice.warning { border-color: rgba(255,204,114,.24); background: rgba(255,204,114,.06); color: var(--text); }
.inline-error { margin-top: 7px; color: var(--danger); font-size: .78rem; }

.hero { min-height: 660px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 4vw; padding: 30px 0 60px; }
.hero-copy { position: relative; z-index: 5; }
.hero h1 { font-size: clamp(4.3rem, 7.5vw, 7rem); }
.hero-lead { max-width: 575px; font-size: 1.14rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin: 32px 0 30px; }
.play-mini { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: .62rem; }
.hero-note { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.hero-note b { color: var(--text); font-weight: 700; }
.avatar-pile { display: flex; padding-left: 15px; }
.avatar-pile i { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -10px; border-radius: 50%; background: linear-gradient(145deg, #8065dd, #3b6d9b); border: 2px solid var(--bg-soft); color: white; font-style: normal; font-size: .64rem; }
.hero-visual { position: relative; min-height: 570px; }
.hero-visual::before { content: ""; position: absolute; width: 440px; height: 440px; top: 70px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(157,123,255,.22), rgba(98,215,243,.08) 42%, transparent 72%); filter: blur(16px); }
.wave-field { position: absolute; inset: 0; overflow: hidden; opacity: .65; mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent); }
.wave-line { position: absolute; top: 48%; left: -8%; width: 116%; height: 120px; border: 2px solid rgba(119,199,242,.2); border-radius: 45% 55% 51% 49%; transform: rotate(-8deg) skewX(-5deg); }
.wave-two { top: 35%; border-color: rgba(197,119,255,.22); transform: rotate(9deg) scaleY(.7); }
.wave-three { top: 58%; border-color: rgba(239,123,191,.15); transform: rotate(4deg) scaleY(.55); }
.score-sphere { position: absolute; z-index: 4; top: 50%; left: 50%; width: 250px; height: 250px; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: #f8f7ff; background: radial-gradient(circle at 35% 23%, rgba(255,255,255,.23), transparent 25%), linear-gradient(145deg, rgba(165,126,255,.27), rgba(57,116,170,.17)), rgba(18,18,29,.72); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 12px 12px 40px rgba(255,255,255,.045), inset -20px -25px 45px rgba(23,19,66,.25), 0 40px 90px rgba(79,50,170,.3), 0 0 70px rgba(98,215,243,.08); backdrop-filter: blur(24px) saturate(150%); }
.score-sphere::before, .score-sphere::after { content: ""; position: absolute; inset: -22px; border: 1px solid rgba(255,255,255,.07); border-radius: 49% 51% 46% 54%; animation: slow-orbit 14s linear infinite; }
.score-sphere::after { inset: -46px; border-color: rgba(157,123,255,.08); animation-duration: 21s; animation-direction: reverse; }
.score-sphere strong { font-size: 5.4rem; line-height: .95; letter-spacing: -.08em; }
.score-sphere strong small { font-size: 1.8rem; color: #c6b7ed; }
.score-label { margin-bottom: 7px; color: rgba(255,255,255,.56); text-transform: uppercase; letter-spacing: .15em; font-size: .58rem; }
.score-archetype { margin-top: 9px; color: #d3cae9; font-size: .8rem; }
.person-float { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 9px 17px 9px 9px; border-radius: 999px; }
.person-float b, .person-float small { display: block; }
.person-float b { font-size: .83rem; }
.person-float small { color: var(--muted); font-size: .65rem; }
.person-float .avatar { width: 38px; height: 38px; font-size: .75rem; }
.person-a { top: 16%; left: 2%; transform: rotate(-3deg); }
.person-b { right: 0; bottom: 17%; transform: rotate(3deg); }
.genre-chip { position: absolute; z-index: 3; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: .67rem; }
.chip-a { top: 23%; right: 8%; }
.chip-b { left: 8%; bottom: 21%; }
.trust-strip { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 30px; padding: 16px 30px; border-radius: 24px; color: var(--muted); }
.trust-strip span { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.trust-strip i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--text); font-style: normal; }
.trust-strip b { color: var(--faint); font-weight: 600; }
.feature-section { padding: 150px 0 120px; }
.section-heading { margin-bottom: 34px; }
.section-heading h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { max-width: 640px; }
.section-heading.center { text-align: center; }
.section-heading.center p { margin-left: auto; margin-right: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 55px; }
.feature-card { min-height: 360px; padding: 32px; transition: transform .35s var(--spring), border-color .25s; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.2); }
.feature-card.featured { transform: translateY(-18px); }
.feature-card.featured:hover { transform: translateY(-25px); }
.feature-card h3 { margin: 30px 0 13px; font-size: 1.45rem; }
.feature-card p { line-height: 1.65; }
.feature-link { position: absolute; bottom: 28px; color: #c6b7ed; font-size: .78rem; }
.feature-icon { width: 78px; height: 78px; display: grid; place-items: center; position: relative; border-radius: 25px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--accent-b); font-size: 1.6rem; }
.orbit-icon i { position: absolute; width: 54px; height: 24px; border: 1px solid rgba(98,215,243,.28); border-radius: 50%; transform: rotate(30deg); }
.orbit-icon i:nth-child(2) { transform: rotate(-30deg); border-color: rgba(157,123,255,.4); }
.playlist-icon { align-content: center; gap: 6px; }
.playlist-icon i { width: 42px; height: 5px; border-radius: 8px; background: linear-gradient(90deg, var(--accent-a), transparent); }
.playlist-icon i:nth-child(2) { width: 31px; }
.lock-icon { font-size: 2.6rem; }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 260px; padding: 50px 58px; border-radius: var(--radius-lg); }
.cta-panel h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.site-footer { width: min(calc(100% - 40px), var(--max)); margin: 40px auto 0; padding: 25px 0 35px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-links { display: flex; gap: 24px; }

.auth-layout { min-height: calc(100vh - 210px); display: grid; grid-template-columns: 1fr minmax(420px, 520px); align-items: center; gap: 9vw; }
.auth-copy h1 { font-size: clamp(3.4rem, 6vw, 6rem); }
.auth-copy p { max-width: 590px; font-size: 1.05rem; line-height: 1.7; }
.mini-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; color: var(--muted); font-size: .78rem; }
.form-card { padding: clamp(24px, 4vw, 40px); }
.card-heading { margin-bottom: 25px; }
.card-heading h2 { margin: 15px 0 7px; font-size: 2rem; }
.card-heading p { margin: 0; }
.step-badge { display: inline-flex; padding: 6px 10px; border-radius: 99px; color: #c8baff; background: rgba(157,123,255,.1); border: 1px solid rgba(157,123,255,.2); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.field { margin-bottom: 18px; }
.field > label:not(:has(input[type="checkbox"])) { display: block; margin: 0 0 7px 3px; color: #cac7d5; font-size: .76rem; font-weight: 650; }
.field input:not([type="checkbox"]), .field select, .field textarea, .copy-panel input, .danger-cards input { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: rgba(0,0,0,.17); outline: none; font-weight: 550; transition: .2s; }
html[data-theme="light"] .field input:not([type="checkbox"]), html[data-theme="light"] .field select, html[data-theme="light"] .field textarea, html[data-theme="light"] .copy-panel input { background: rgba(255,255,255,.5); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(157,123,255,.65); box-shadow: 0 0 0 4px rgba(157,123,255,.08), inset 0 1px 0 rgba(255,255,255,.06); }
.field-checkbox label { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .78rem; cursor: pointer; }
.field-checkbox input { appearance: none; flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.04); }
.field-checkbox input:checked { background: var(--accent-a); box-shadow: inset 0 0 0 4px rgba(17,15,27,.6); }
.help-text { display: block; margin: 6px 2px 0; color: var(--faint); font-size: .68rem; }
html[data-theme="light"] .field > label:not(:has(input[type="checkbox"])) { color: #575566; }
html[data-theme="light"] .field-checkbox label { color: #656374; }
html[data-theme="light"] .help-text { color: #777586; }
html[data-theme="light"] .form-links span { color: #747283; }
.help-text ul { margin: 5px 0; padding-left: 18px; }
.error-text { display: block; margin: 5px 2px; color: var(--danger); font-size: .72rem; }
.field-error input { border-color: rgba(255,125,141,.5) !important; }
.form-alert { margin-bottom: 15px; padding: 13px; border-radius: 12px; background: rgba(255,125,141,.09); border: 1px solid rgba(255,125,141,.22); color: #ffc1c9; font-size: .8rem; }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-alt { margin: 22px 0 0; text-align: center; font-size: .79rem; }
.form-alt a, .form-links a { color: #c7b8fb; }
.form-links { display: flex; justify-content: space-between; margin-top: 22px; font-size: .77rem; }
.narrow-section { width: min(100%, 640px); margin: 20px auto; }
.wide-narrow { width: min(100%, 900px); }
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 54px; align-items: start; }
.settings-nav { position: sticky; top: 110px; display: grid; gap: 4px; padding: 18px; }
.settings-nav h3 { margin: 6px 10px 12px; }
.settings-nav a, .nav-form-button { width: 100%; padding: 10px 12px; border-radius: 11px; color: var(--muted); text-align: left; font-size: .82rem; }
.settings-nav a:hover, .settings-nav a.active { color: var(--text); background: rgba(255,255,255,.07); }
.settings-main .form-card { margin-bottom: 18px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack-list { display: grid; gap: 10px; margin: 24px 0; }
.list-card { min-height: 76px; padding: 15px 18px; display: flex; align-items: center; gap: 14px; }
.list-card > div:nth-child(2) { flex: 1; }
.list-card h3 { margin: 0 0 4px; font-size: .94rem; }
.list-card p { margin: 0; font-size: .78rem; }
.list-card small { color: var(--faint); }
.clean-list { list-style: none; margin: 15px 0 24px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: .84rem; }
.clean-list li { position: relative; padding-left: 24px; }
.clean-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); }
.muted-list li::before { content: "×"; color: var(--faint); }
.center-state { min-height: calc(100vh - 240px); max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.center-state h1 { margin: 18px 0; font-size: clamp(2.7rem, 6vw, 4.7rem); }
.center-state p { max-width: 560px; }
.state-icon { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 24px; background: rgba(157,123,255,.11); border: 1px solid rgba(157,123,255,.2); color: var(--accent-a); font-size: 2rem; }
.state-icon.success { color: var(--success); background: rgba(99,230,177,.09); border-color: rgba(99,230,177,.2); }
.state-icon.warning { color: var(--warning); }
.empty-state { width: 100%; min-height: 260px; padding: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; grid-column: 1 / -1; }
.empty-state h3 { margin: 18px 0 7px; font-size: 1.3rem; }
.empty-state p { max-width: 460px; }

.dashboard-head, .section-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.dashboard-head h1 { margin-bottom: 0; font-size: clamp(3rem, 5vw, 4.8rem); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 16px; }
.profile-summary { min-height: 390px; padding: 34px; display: flex; flex-direction: column; }
.summary-top { display: flex; align-items: center; gap: 18px; }
.summary-top h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 35px 0 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row > div { padding: 0 18px; border-right: 1px solid var(--line); }
.stat-row > div:first-child { padding-left: 0; }
.stat-row > div:last-child { border-right: 0; }
.stat-row strong, .stat-row span { display: block; }
.stat-row strong { font-size: 1.7rem; letter-spacing: -.04em; }
.stat-row span { color: var(--muted); font-size: .7rem; }
.genre-row { display: flex; flex-wrap: wrap; gap: 7px; }
.genre-row span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; color: #c9bcf2; font-size: .8rem; }
.empty-inline { margin: auto 0 0; }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stat { padding: 23px; min-height: 140px; display: flex; flex-direction: column; }
.mini-stat span { color: var(--muted); font-size: .72rem; }
.mini-stat strong { margin-top: auto; font-size: 2.5rem; letter-spacing: -.05em; }
.mini-stat small { color: var(--faint); }
.track-day { grid-column: 1 / -1; min-height: 220px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 90% 10%, rgba(98,215,243,.14), transparent 45%), var(--glass); }
.track-day h3 { font-size: 1.35rem; }
.track-day a { color: #c9bcf2; font-size: .78rem; }
.content-section { margin-top: 80px; }
.content-section.top-section { margin-top: 0; }
.inner-section { margin-top: 35px; }
.section-title-row h1, .section-title-row h2 { margin-bottom: 6px; }
.section-title-row h1 { font-size: clamp(2.8rem, 5vw, 4.6rem); }
.section-title-row p { margin-bottom: 0; }
.section-title-row > a:not(.button) { color: var(--muted); font-size: .8rem; }
.synthesis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.synthesis-card { min-height: 270px; padding: 22px; display: flex; flex-direction: column; }
.synthesis-avatars { display: flex; margin-bottom: 18px; }
.synthesis-avatars .avatar + .avatar { margin-left: -13px; }
.synthesis-card .chip { margin-bottom: 14px; }
.synthesis-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.synthesis-card p { font-size: .73rem; }
.card-score { margin-top: auto; font-size: 2.25rem; letter-spacing: -.05em; }

.result-hero { position: relative; min-height: 430px; display: grid; grid-template-columns: 1fr 280px 1fr; align-items: center; gap: 25px; max-width: 900px; margin: 0 auto; }
.result-hero::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(157,123,255,.35), rgba(98,215,243,.35), transparent); filter: blur(1px); }
.result-person { position: relative; z-index: 3; text-align: center; }
.result-person .avatar { margin: 0 auto 13px; }
.result-person h3 { margin: 0 0 3px; }
.result-person p { font-size: .72rem; }
.result-core { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.result-sphere { top: auto; left: auto; transform: none; width: 270px; height: 270px; }
.confidence-pill { position: absolute; z-index: 8; bottom: 0; padding: 8px 13px; border-radius: 999px; background: rgba(99,230,177,.07); border: 1px solid rgba(99,230,177,.17); color: var(--success); font-size: .7rem; }
.result-meta { display: flex; justify-content: center; gap: 10px; color: var(--faint); font-size: .73rem; }
.result-intro { margin: 80px auto 40px; max-width: 920px; }
.result-intro h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.12; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 30px; }
.metric { display: grid; place-items: center; padding: 12px; }
.metric-ring { --value: 50; position: relative; width: 116px; height: 116px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent-a) calc(var(--value) * 1%), rgba(255,255,255,.07) 0); }
.metric-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); }
.metric-ring span { position: relative; z-index: 2; font-size: 1.3rem; font-weight: 750; }
.metric h4 { margin: 12px 0 0; font-size: .77rem; color: var(--muted); }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.highlight-card { min-height: 220px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.highlight-card:nth-child(1) { background: radial-gradient(circle at 20% 0, rgba(157,123,255,.16), transparent 45%), var(--glass); }
.highlight-card:nth-child(2) { background: radial-gradient(circle at 80% 0, rgba(98,215,243,.13), transparent 45%), var(--glass); }
.highlight-card:nth-child(3) { background: radial-gradient(circle at 50% 0, rgba(239,123,191,.12), transparent 45%), var(--glass); }
.highlight-card > span { margin-bottom: auto; color: var(--muted); font-size: .7rem; }
.highlight-card h3 { margin: 30px 0 8px; font-size: 1.35rem; }
.highlight-card p { margin: 0; font-size: .78rem; }
.confidence-card { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 30px; padding: 27px; margin: 18px 0; }
.confidence-score { padding-right: 26px; border-right: 1px solid var(--line); }
.confidence-score strong, .confidence-score span { display: block; }
.confidence-score strong { font-size: 2.4rem; }
.confidence-score span { color: var(--muted); font-size: .7rem; }
.confidence-card h3 { margin: 0 0 6px; }
.confidence-card p { margin: 0; font-size: .82rem; }
.playlist-teaser { min-height: 180px; display: grid; grid-template-columns: 170px 1fr auto; gap: 25px; align-items: center; padding: 26px 32px; margin: 18px 0; }
.playlist-covers { position: relative; height: 105px; }
.playlist-covers i { position: absolute; top: 0; left: 34px; width: 100px; height: 100px; display: grid; place-items: center; border-radius: 25px; background: linear-gradient(145deg, #815ed4, #30365e); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 16px 35px rgba(0,0,0,.25); font-size: 1.8rem; font-style: normal; }
.playlist-covers i:first-child { transform: translateX(-28px) rotate(-10deg); }
.playlist-covers i:last-child { transform: translateX(28px) rotate(10deg); background: linear-gradient(145deg, #277d9d, #30365e); }
.playlist-teaser h2 { margin: 0 0 6px; font-size: 1.7rem; }
.playlist-teaser p { margin: 0; font-size: .8rem; }
.bottom-actions, .result-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.result-toolbar { margin: 0 0 20px; align-items: center; color: var(--muted); font-size: .8rem; }

.provider-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.provider-card { min-height: 180px; padding: 23px; display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: start; }
.provider-logo { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-weight: 800; font-size: .86rem; }
.provider-logo.large { width: 80px; height: 80px; border-radius: 25px; font-size: 1.25rem; }
.provider-spotify { background: rgba(29,185,84,.13); color: #5be783; }
.provider-apple { background: rgba(255,255,255,.1); color: var(--text); }
.provider-yandex { background: rgba(255,220,40,.11); color: #ffe14d; }
.provider-vk { background: rgba(0,119,255,.12); color: #65aaff; }
.provider-card h3 { margin: 9px 0 7px; }
.provider-card p { margin: 0; font-size: .77rem; }
.provider-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.provider-title { display: flex; align-items: center; gap: 9px; }
.provider-title h3 { margin: 0; }
.provider-copy p { margin-top: 7px; }
.connected-card { border-color: rgba(99,230,177,.15); }
.info-panel { display: flex; align-items: flex-start; gap: 15px; padding: 20px; margin-top: 18px; }
.info-panel p { margin: 4px 0 0; font-size: .8rem; }
.source-connect-hero { text-align: center; margin-bottom: 30px; }
.source-connect-hero .provider-logo { margin: 0 auto 17px; }
.source-connect-hero h1 { margin: 13px 0 15px; font-size: clamp(2.6rem, 5vw, 4rem); }
.source-connect-hero p { max-width: 580px; margin: 0 auto; }
.connect-card { text-align: center; }
.connect-card .clean-list { text-align: left; }
.auth-code { margin: 2px 0 14px; color: var(--text); font-size: clamp(2.4rem, 9vw, 4.6rem); font-weight: 850; letter-spacing: .12em; line-height: 1; }
.connect-actions { justify-content: center; margin: 24px 0; }
.connect-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.connect-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 12px rgba(255,204,114,.5); animation: pulse 1.8s infinite; }
.connect-status.connected { color: var(--success); border-color: rgba(99,230,177,.25); }
.connect-status.connected i { background: var(--success); box-shadow: 0 0 12px rgba(99,230,177,.55); }
.connect-status.error { color: var(--danger); border-color: rgba(255,125,141,.25); }
.connect-status.error i { background: var(--danger); box-shadow: none; animation: none; }
.security-note { text-align: left; }

.music-profile-hero { min-height: 280px; display: grid; grid-template-columns: 1fr 240px 1fr; align-items: center; gap: 30px; padding: 34px; }
.music-profile-hero h2 { margin: 12px 0 8px; font-size: 2.8rem; }
.profile-radar { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin: auto; }
.profile-radar i { position: absolute; inset: 12%; border: 1px solid rgba(157,123,255,.25); border-radius: 45% 55% 48% 52%; transform: rotate(15deg); }
.profile-radar i:nth-child(2) { inset: 25%; border-color: rgba(98,215,243,.3); transform: rotate(-30deg); }
.profile-radar i:nth-child(3) { inset: 38%; transform: rotate(45deg); }
.profile-radar b { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--accent-a), #526fd5); box-shadow: 0 0 40px rgba(157,123,255,.3); }
.profile-numbers { display: grid; gap: 14px; }
.profile-numbers div { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-numbers strong { font-size: 1.6rem; }
.profile-numbers span { color: var(--muted); font-size: .72rem; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.profile-panel { min-height: 330px; padding: 25px; }
.rank-list { display: grid; gap: 14px; }
.rank-list > div { display: grid; grid-template-columns: 28px 1fr; gap: 3px 8px; align-items: center; }
.rank-list span { color: var(--faint); font-size: .64rem; }
.rank-list b { font-size: .82rem; }
.rank-list i { grid-column: 2; height: 3px; width: var(--rank); max-width: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
.artist-list { display: grid; gap: 10px; }
.artist-list > div { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; }
.artist-list b { font-size: .8rem; }
.artist-list small { color: var(--faint); }
.metrics-panel { display: grid; align-content: start; gap: 17px; }
.meter { display: grid; grid-template-columns: 1fr 40px; gap: 7px; }
.meter span, .meter strong { font-size: .7rem; }
.meter strong { text-align: right; color: var(--muted); }
.meter i { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.06); overflow: hidden; }
.meter i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
.track-list { padding: 10px 18px; }
.track-row { min-height: 70px; display: grid; grid-template-columns: 35px 44px 1fr auto 42px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.track-row:last-child { border-bottom: 0; }
.track-index { color: var(--faint); font-size: .67rem; }
.track-art { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, rgba(157,123,255,.25), rgba(98,215,243,.12)); color: #c7b5ff; }
.track-row b, .track-row small { display: block; }
.track-row b { font-size: .83rem; }
.track-row small { color: var(--muted); font-size: .67rem; }
.track-source { color: var(--faint); font-size: .65rem; }

.create-layout, .accept-layout { display: grid; grid-template-columns: 1fr minmax(460px, 570px); gap: 7vw; align-items: start; }
.create-copy { position: sticky; top: 130px; }
.create-copy h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); }
.profile-ready { display: flex; align-items: center; gap: 13px; padding: 16px; margin: 28px 0; }
.profile-ready > div:nth-child(2) { flex: 1; }
.profile-ready strong, .profile-ready span { display: block; }
.profile-ready span { color: var(--muted); font-size: .7rem; }
.profile-ready a { color: #c7b8fb; font-size: .72rem; }
.privacy-summary h3 { margin: 23px 0 9px; font-size: .84rem; }
.privacy-summary .clean-list { margin: 0; }
.create-form { padding: 38px; }

.invite-ready, .public-invite { max-width: 810px; margin: 20px auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.invite-ready h1, .public-invite h1 { font-size: clamp(3rem, 6vw, 5rem); }
.invite-ready > p, .public-invite > p { max-width: 620px; }
.invite-orbit { position: relative; width: 300px; height: 180px; margin-bottom: 20px; }
.invite-orbit i { position: absolute; inset: 15px 35px; border: 1px solid rgba(157,123,255,.2); border-radius: 50%; transform: rotate(-6deg); }
.invite-orbit i:nth-child(2) { transform: rotate(7deg); border-color: rgba(98,215,243,.22); }
.invite-orbit .avatar { position: absolute; top: 46px; left: 32px; }
.invite-orbit .avatar:last-child { left: auto; right: 32px; }
.invite-orbit.small { height: 150px; }
.copy-panel { width: min(100%, 680px); margin: 25px 0 16px; padding: 20px; text-align: left; }
.copy-panel label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; }
.copy-panel > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copy-feedback { display: block; min-height: 18px; margin-top: 6px; color: var(--success); font-size: .68rem; }
.invite-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 24px; }
.consent-card { width: min(100%, 570px); padding: 24px 30px; margin: 20px 0; text-align: left; }
.consent-card h3 { margin-bottom: 15px; }
.accept-summary { padding-top: 35px; text-align: center; }
.synthesis-avatars.large { justify-content: center; align-items: center; gap: 18px; }
.synthesis-avatars.large .avatar { margin: 0; }
.link-wave { color: var(--accent-b); font-size: 2rem; }
.accept-summary h1 { font-size: clamp(3.2rem, 6vw, 5rem); }
.meta-list { margin-top: 25px; padding: 16px 22px; text-align: left; }
.meta-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.meta-list > div:last-child { border-bottom: 0; }
.meta-list span, .meta-list strong { font-size: .75rem; }
.meta-list span { color: var(--muted); }
.accept-card h2 { margin: 18px 0 12px; }
.accept-card > p { font-size: .85rem; line-height: 1.65; }

.analysis-page { max-width: 800px; margin: 0 auto; text-align: center; }
.analysis-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.analysis-visual { position: relative; height: 250px; overflow: hidden; }
.analysis-core { position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; transform: translate(-50%,-50%); display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 30%), linear-gradient(145deg, rgba(157,123,255,.35), rgba(98,215,243,.2)); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 70px rgba(157,123,255,.25); backdrop-filter: blur(20px); font-size: 1.7rem; animation: breathe 2.4s ease-in-out infinite; }
.analysis-wave { position: absolute; top: 50%; width: 48%; height: 70px; border-top: 2px solid var(--accent-a); border-radius: 50%; opacity: .55; animation: wave-in 2.8s ease-in-out infinite; }
.left-wave { left: 0; transform: rotate(8deg); }
.right-wave { right: 0; transform: rotate(-8deg); border-color: var(--accent-b); animation-delay: -.8s; }
.stage-list { max-width: 450px; margin: 30px auto; padding: 0; list-style: none; text-align: left; counter-reset: stages; }
.stage-list li { counter-increment: stages; position: relative; padding: 9px 0 9px 40px; color: var(--muted); font-size: .78rem; }
.stage-list li::before { content: counter(stages); position: absolute; left: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--faint); font-size: .65rem; }
.analysis-page .notice { max-width: 620px; margin: 20px auto; text-align: left; }
.locked-orb { width: 130px; height: 130px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 25%), rgba(157,123,255,.13); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 25px 70px rgba(99,69,180,.24); font-size: 3rem; }
.ready-pair { min-width: 400px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; margin: 20px 0; }
.ready-pair > div { display: grid; grid-template-columns: 48px 1fr; text-align: left; align-items: center; }
.ready-pair .avatar { grid-row: 1 / 3; }
.ready-pair b { font-size: .82rem; }
.ready-pair small { color: var(--muted); }

.playlist-header { min-height: 240px; padding: 32px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 28px; }
.playlist-header h1 { margin: 0 0 10px; font-size: clamp(2.3rem, 4vw, 3.7rem); }
.playlist-header p { margin-bottom: 15px; }
.playlist-art { position: relative; width: 160px; height: 150px; }
.playlist-art i { position: absolute; top: 20px; left: 30px; width: 110px; height: 110px; display: grid; place-items: center; border-radius: 26px; background: linear-gradient(145deg, #7d59ce, #243c61); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 40px rgba(0,0,0,.3); font-style: normal; font-size: 1.7rem; }
.playlist-art i:first-child { transform: translateX(-25px) rotate(-10deg); }
.playlist-art i:last-child { transform: translateX(25px) rotate(10deg); background: linear-gradient(145deg, #2d9cb3, #28385b); }
.playlist-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 22px 5px 14px; color: var(--muted); font-size: .7rem; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--accent-a); }
.dot.guest { background: var(--accent-b); }.dot.bridge { background: var(--accent-c); }.dot.discovery { background: var(--success); }.dot.common { background: var(--warning); }
.track-row.expanded { grid-template-columns: 35px 44px 1fr auto 118px; min-height: 88px; }
.track-main em { display: block; margin-top: 4px; color: #a89ccc; font-size: .62rem; font-style: normal; }
.category-common { color: var(--warning); }.category-guest { color: var(--accent-b); }.category-bridge { color: var(--accent-c); }.category-discovery { color: var(--success); }
.reaction-form { display: flex; justify-content: flex-end; gap: 4px; }
.reaction-form button { width: 32px; height: 32px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--muted); }
.reaction-form button:hover, .reaction-form button.active { color: #fff; background: rgba(157,123,255,.25); }

.filter-row { display: flex; gap: 4px; padding: 6px; margin-bottom: 18px; border-radius: 16px; overflow-x: auto; }
.filter-row a { flex: 0 0 auto; padding: 9px 14px; border-radius: 11px; color: var(--muted); font-size: .73rem; }
.filter-row a.active { color: var(--text); background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }
.history-list { display: grid; gap: 10px; }
.history-card { min-height: 112px; padding: 19px; display: grid; grid-template-columns: 100px 1fr auto auto; align-items: center; gap: 20px; }
.history-card .synthesis-avatars { margin: 0; }
.history-card .avatar { width: 48px; height: 48px; }
.history-main h3 { margin: 7px 0 3px; }
.history-main p { margin: 0; font-size: .7rem; }
.history-score { font-size: 2.2rem; letter-spacing: -.05em; }
.history-actions { display: flex; gap: 6px; }
.status-waiting { color: var(--warning); }.status-completed { color: var(--success); }.status-error { color: var(--danger); }

.profile-public { max-width: 900px; margin: 0 auto; }
.profile-cover { min-height: 490px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px; text-align: center; }
.profile-cover .chip { margin: 18px 0 10px; }
.profile-cover h1 { margin-bottom: 10px; font-size: clamp(3rem, 6vw, 5rem); }
.profile-cover p { max-width: 500px; }
.profile-cover .stat-row { width: min(100%, 600px); }
.profile-details { margin-top: 14px; padding: 30px; text-align: center; }
.profile-details h2 { font-size: 2.4rem; }
.profile-details .genre-row { justify-content: center; }
.data-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.data-grid .mini-stat { min-height: 120px; }
.danger-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.danger-cards .form-card p { font-size: .8rem; }
.danger-cards form { display: grid; gap: 10px; }
.legal-page { max-width: 860px; margin: 0 auto; padding: clamp(28px, 6vw, 70px); }
.legal-page h1 { margin: 10px 0 50px; font-size: clamp(3rem, 6vw, 5rem); }
.legal-page h2 { margin: 35px 0 10px; font-size: 1.3rem; }
.legal-page p { line-height: 1.8; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 20px 24px; }
.faq-list summary { cursor: pointer; font-weight: 650; }
.faq-list p { margin: 16px 0 0; line-height: 1.7; }
.error-code { color: transparent; background: linear-gradient(100deg, var(--accent-a), var(--accent-b)); background-clip: text; -webkit-background-clip: text; font-size: clamp(5rem, 15vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -.08em; }
.mobile-nav { display: none; }

.reveal { animation: reveal .75s var(--spring) both; }
.delay-1 { animation-delay: .12s; }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(25px) scale(.97); } }
@keyframes pulse { 50% { opacity: .5; box-shadow: 0 0 0 8px rgba(99,230,177,0), 0 0 8px var(--success); } }
@keyframes slow-orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: translate(-50%,-50%) scale(1.08); box-shadow: 0 0 95px rgba(98,215,243,.3); } }
@keyframes wave-in { 50% { height: 100px; opacity: .28; } }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(3.8rem, 8vw, 5.7rem); }
  .synthesis-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-columns { grid-template-columns: 1fr 1fr; }
  .metrics-panel { grid-column: 1 / -1; min-height: 230px; }
  .metric-grid { grid-template-columns: repeat(5, 1fr); padding: 20px 10px; }
  .metric-ring { width: 96px; height: 96px; }
  .provider-card { grid-template-columns: 54px 1fr; }
  .provider-actions { grid-column: 2; flex-direction: row; align-items: center; }
}

@media (max-width: 780px) {
  body { font-size: 15px; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .page-shell { width: min(calc(100% - 24px), var(--max)); padding-top: 108px; padding-bottom: 35px; }
  .topbar { top: 10px; width: calc(100% - 20px); min-height: 58px; border-radius: 20px; padding: 8px 10px 8px 16px; }
  .topbar .brand { font-size: .96rem; }
  .topbar .button-small { min-height: 38px; }
  .desktop-only { display: none !important; }
  .icon-button { width: 38px; height: 38px; }
  .top-actions .avatar { width: 38px; height: 38px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 18px 0 40px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 5.3rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-note { justify-content: center; text-align: left; }
  .hero-visual { min-height: 440px; }
  .score-sphere { width: 210px; height: 210px; }
  .score-sphere strong { font-size: 4.5rem; }
  .person-a { left: -3%; }.person-b { right: -3%; }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 25px; }
  .trust-strip b { display: none; }
  .feature-section { padding: 95px 0 70px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 35px; }
  .feature-card.featured { transform: none; }
  .feature-card.featured:hover { transform: translateY(-8px); }
  .feature-card { min-height: 310px; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 35px 26px; }
  .cta-panel .button { width: 100%; }
  .site-footer { flex-direction: column; gap: 18px; padding-bottom: 110px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .auth-layout, .create-layout, .accept-layout { min-height: auto; grid-template-columns: 1fr; gap: 28px; }
  .auth-copy { text-align: center; }
  .auth-copy h1 { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  .auth-copy p { font-size: .92rem; }
  .mini-trust { justify-content: center; }
  .form-card { padding: 24px 20px; }
  .settings-layout { grid-template-columns: 1fr; gap: 25px; }
  .settings-nav { position: static; display: flex; overflow-x: auto; padding: 7px; border-radius: 16px; }
  .settings-nav h3, .settings-nav form { display: none; }
  .settings-nav a { width: auto; flex: 0 0 auto; }
  .dashboard-head { align-items: flex-start; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-summary { min-height: 360px; padding: 25px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .track-day { min-height: 180px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .section-title-row .inline-actions { width: 100%; }
  .section-title-row .inline-actions .button { flex: 1; }
  .synthesis-grid { grid-template-columns: 1fr; }
  .result-hero { min-height: 430px; grid-template-columns: 1fr 180px 1fr; gap: 5px; }
  .result-sphere { width: 180px; height: 180px; }
  .result-sphere strong { font-size: 4rem; }
  .result-sphere::after { display: none; }
  .result-person .avatar { width: 58px; height: 58px; }
  .result-person h3 { font-size: .8rem; }
  .result-person p { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .metric:last-child { grid-column: 1 / -1; }
  .metric-ring { width: 105px; height: 105px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .highlight-card { min-height: 180px; }
  .confidence-card { grid-template-columns: 1fr; }
  .confidence-score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
  .playlist-teaser { grid-template-columns: 1fr; padding: 25px; text-align: center; }
  .playlist-teaser .playlist-covers { width: 170px; margin: auto; }
  .provider-grid { grid-template-columns: 1fr; }
  .provider-card { min-height: 160px; }
  .music-profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-radar { width: 180px; height: 180px; }
  .profile-columns { grid-template-columns: 1fr; }
  .metrics-panel { grid-column: auto; }
  .track-row { grid-template-columns: 26px 42px 1fr; padding: 10px 0; }
  .track-source, .track-row > strong { display: none; }
  .create-copy { position: static; text-align: center; }
  .privacy-summary { text-align: left; }
  .create-form { padding: 24px 20px; }
  .accept-summary { padding-top: 0; }
  .copy-panel > div { grid-template-columns: 1fr; }
  .copy-panel .button { width: 100%; }
  .ready-pair { min-width: 0; width: 100%; }
  .playlist-header { grid-template-columns: 1fr; text-align: center; padding: 26px; }
  .playlist-art { margin: auto; }
  .playlist-header .genre-row { justify-content: center; }
  .playlist-header .button { width: 100%; }
  .track-row.expanded { grid-template-columns: 28px 42px 1fr; }
  .track-row.expanded .chip { display: none; }
  .reaction-form { grid-column: 3; justify-content: flex-start; }
  .history-card { grid-template-columns: 80px 1fr auto; gap: 12px; }
  .history-actions { grid-column: 1 / -1; }
  .history-actions .button, .history-actions form { flex: 1; }
  .history-actions form .button { width: 100%; }
  .history-score { font-size: 1.7rem; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .danger-cards { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 150; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); min-height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px; border-radius: 24px; overflow: visible; }
  .mobile-nav a { position: relative; height: 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; border-radius: 17px; color: var(--muted); font-size: 1.05rem; transition: .2s var(--spring); }
  .mobile-nav a:active { transform: scale(.9); }
  .mobile-nav small { font-size: .56rem; }
  .mobile-nav .create-orb { width: 62px; height: 62px; margin: -20px auto 0; border-radius: 50%; color: white; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 25%), linear-gradient(145deg, var(--accent-a), #5979e3); border: 1px solid rgba(255,255,255,.24); box-shadow: 0 12px 35px rgba(106,77,205,.45), inset 0 1px 1px rgba(255,255,255,.2); }
  .mobile-nav .create-orb span { font-size: 1.35rem; }
  .mobile-nav .create-orb small { position: absolute; bottom: -12px; color: var(--muted); }
}

@media (max-width: 430px) {
  .top-actions .theme-toggle { display: none; }
  .hero h1 { font-size: 3.6rem; }
  .person-float { padding-right: 10px; }
  .person-float small { display: none; }
  .stat-row > div { padding: 0 9px; }
  .stat-row strong { font-size: 1.35rem; }
  .quick-stats { gap: 10px; }
  .mini-stat { padding: 18px; }
  .result-hero { grid-template-columns: 1fr 160px 1fr; }
  .result-sphere { width: 160px; height: 160px; }
  .result-sphere strong { font-size: 3.6rem; }
  .provider-card { grid-template-columns: 45px 1fr; padding: 18px; }
  .provider-logo { width: 45px; height: 45px; border-radius: 14px; }
  .history-card { grid-template-columns: 65px 1fr; }
  .history-score { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,.28); --muted: #d2d0db; --glass: rgba(11,11,18,.88); }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@supports not (backdrop-filter: blur(10px)) {
  .glass { background-color: color-mix(in srgb, var(--bg-soft) 92%, transparent); }
}
