:root{--bg: #f6f6f4;--surface: #ffffff;--text: #1c1c1c;--muted: #6b6b6b;--border: #e3e3df;--accent: #1db954;--accent-text: #0b6b30;--danger: #c0392b;--danger-bg: #fdecea;--success: #1e7d45;--radius: 12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}@media (prefers-color-scheme: dark){:root{--bg: #121212;--surface: #1c1c1c;--text: #ededed;--muted: #a0a0a0;--border: #2e2e2e;--accent-text: #3ddc7a;--danger: #ff6b5b;--danger-bg: #3a1d1a;--success: #4cd38a}}*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh}a{color:var(--accent-text)}h1,h2,h3,h4{line-height:1.2;margin:1.2em 0 .5em}h1{font-size:clamp(2rem,5vw,3rem);margin-top:0}h2:first-child,h3:first-child{margin-top:0}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap}.brand{font-weight:700;font-size:1.1rem;color:var(--text);text-decoration:none}.nav{display:flex;gap:16px}.nav a{color:var(--muted);text-decoration:none;font-weight:500}.nav a.active{color:var(--text);border-bottom:2px solid var(--accent)}.main{flex:1;padding:24px 16px;display:flex;flex-direction:column}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px;width:100%;max-width:760px;margin:0 auto}.narrow{max-width:600px}.center{text-align:center;margin-left:auto;margin-right:auto}.muted{color:var(--muted)}.small{font-size:.875rem}.block{display:block}.error{color:var(--danger)}.success{color:var(--success)}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row.between{justify-content:space-between;margin-top:24px}.btn{display:inline-block;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:10px 22px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}.btn:disabled{opacity:.5;cursor:default}.btn-primary,.btn-spotify{background:var(--accent);border-color:var(--accent);color:#fff}.btn-spotify{font-size:1.05rem;padding:14px 32px}.btn-danger{color:var(--danger);border-color:var(--danger)}.hero{max-width:640px;margin:8vh auto 0;text-align:center}.lead{font-size:1.15rem;color:var(--muted);margin-bottom:28px}.steps-preview{text-align:left;display:inline-block;margin:32px 0;color:var(--muted)}.choices{border:none;padding:0;margin:24px 0}.choices legend{font-weight:600;margin-bottom:8px}.choice{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;padding:12px;margin-bottom:8px;cursor:pointer}.choice.selected{border-color:var(--accent)}.choice input{margin-top:4px}.agree{display:flex;gap:10px;align-items:flex-start;margin:16px 0 20px}.danger-zone{margin-top:32px;padding-top:8px;border-top:1px solid var(--border)}.spinner{width:40px;height:40px;margin:0 auto 16px;border:4px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.walkthrough{min-height:480px}.dots{display:flex;gap:8px;justify-content:center;margin-bottom:20px}.dot{width:10px;height:10px;border-radius:50%;border:none;padding:0;background:var(--border);cursor:pointer}.dot.active{background:var(--accent)}.avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background:var(--border);display:inline-block;flex-shrink:0}.avatar.sm{width:28px;height:28px}.artist-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:16px}.artist-grid li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}.inline-list{display:flex;gap:16px;flex-wrap:wrap;padding-left:1.2em}.bars{list-style:none;padding:0}.bars li{display:grid;grid-template-columns:auto minmax(80px,160px) 1fr 44px;gap:10px;align-items:center;margin-bottom:6px}.bars li:not(:has(.avatar)){grid-template-columns:minmax(80px,160px) 1fr 44px}.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar{height:10px;background:var(--border);border-radius:5px;overflow:hidden}.bar span{display:block;height:100%;background:var(--accent)}.bar-value{font-variant-numeric:tabular-nums;color:var(--muted);text-align:right}.weights td{padding:8px;vertical-align:top}.weights td:first-child{font-weight:700;font-size:1.2rem;color:var(--accent-text);white-space:nowrap}.mini-graph{width:100%;max-width:360px;display:block;margin:0 auto 8px}.mg-link{stroke:var(--muted)}.mg-link.faded{opacity:.4;stroke-width:1}.mg-node{fill:#4e79a7}.mg-node.faded{opacity:.5}.mg-me{fill:var(--accent)}.mg-text{fill:#fff;font-size:10px;font-weight:700}.main:has(.graph-page){padding:0}.graph-page{flex:1;display:flex;position:relative;min-height:0}.graph-canvas{flex:1;position:relative;min-height:calc(100vh - 60px);overflow:hidden}.empty{max-width:420px;margin:12vh auto 0;text-align:center;padding:0 16px}.legend{position:absolute;left:16px;bottom:16px;display:flex;gap:14px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:.8rem}.legend i{display:inline-block;border-radius:50%;vertical-align:middle;margin-right:4px;background:#4e79a7}.lg-me{width:14px;height:14px;background:var(--accent)!important}.lg-first{width:10px;height:10px}.lg-second{width:7px;height:7px;opacity:.5}.panel{width:340px;max-width:100%;background:var(--surface);border-left:1px solid var(--border);padding:20px;overflow-y:auto;position:relative}.panel-close{position:absolute;top:8px;right:12px;border:none;background:none;font-size:1.6rem;color:var(--muted);cursor:pointer}.big-score{font-size:2rem;font-weight:700;color:var(--accent-text);margin:12px 0 4px}.score-parts{list-style:none;padding:0;display:flex;gap:12px;color:var(--muted);font-size:.875rem}.shared-artists{list-style:none;padding:0}.shared-artists li{display:flex;align-items:center;gap:10px;margin-bottom:8px}.tags{display:flex;flex-wrap:wrap;gap:6px}.tag{border:1px solid var(--border);border-radius:999px;padding:2px 10px;font-size:.8rem}@media (max-width: 720px){.card{padding:20px}.panel{position:absolute;inset:auto 0 0;width:100%;max-height:60%;border-left:none;border-top:1px solid var(--border)}}
