:root{--bg: #0f1115;--panel: #181b22;--accent: #1db954;--text: #e8eaed;--muted: #9aa0a6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{max-width:760px;margin:0 auto;height:100vh;display:flex;flex-direction:column}.header{padding:16px 20px;border-bottom:1px solid #23262e}.header h1{margin:0;font-size:20px}.messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:14px}.hint{color:var(--muted);text-align:center;margin-top:40px}.msg{display:flex;flex-direction:column;max-width:85%}.msg.user{align-self:flex-end;align-items:flex-end}.msg.assistant{align-self:flex-start}.bubble{padding:10px 14px;border-radius:14px;line-height:1.45}.msg.user .bubble{background:var(--accent);color:#06250f;white-space:pre-wrap}.msg.assistant .bubble>:first-child{margin-top:0}.msg.assistant .bubble>:last-child{margin-bottom:0}.msg.assistant .bubble p{margin:0 0 8px}.msg.assistant .bubble ul,.msg.assistant .bubble ol{margin:0 0 8px;padding-left:20px}.msg.assistant .bubble li{margin:2px 0}.msg.assistant .bubble h1,.msg.assistant .bubble h2,.msg.assistant .bubble h3{margin:10px 0 6px;font-size:16px}.msg.assistant .bubble a{color:var(--accent)}.msg.assistant .bubble img{width:70px;height:70px;object-fit:cover;border-radius:6px;vertical-align:middle}.msg.assistant .bubble code{background:#23262e;padding:1px 5px;border-radius:5px;font-size:13px}.msg.assistant .bubble pre{background:#23262e;padding:10px 12px;border-radius:8px;overflow-x:auto}.msg.assistant .bubble pre code{background:none;padding:0}.msg.assistant .bubble{background:var(--panel)}.trace{margin-bottom:6px;font-size:12px;color:var(--muted)}.trace>summary{cursor:pointer;padding:2px 10px;background:#23262e;border-radius:999px;display:inline-block;list-style:none;-webkit-user-select:none;user-select:none}.trace>summary::-webkit-details-marker{display:none}.trace>summary:before{content:"▸ ";display:inline-block;transition:transform .15s ease}.trace[open]>summary:before{content:"▾ "}.trace-total{opacity:.7}.trace-steps{list-style:none;margin:6px 0 0;padding:8px 12px;background:var(--panel);border-left:2px solid #2a2e37;border-radius:0 8px 8px 0}.trace-step+.trace-step{margin-top:8px}.trace-head{display:flex;align-items:baseline;gap:8px}.trace-glyph{width:1em;flex:none}.trace-step.done .trace-glyph{color:var(--accent)}.trace-step.error .trace-glyph{color:#e5534b}.trace-step.running .trace-glyph{display:inline-block;animation:trace-spin 1s linear infinite}@keyframes trace-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.trace-step.running .trace-glyph{animation:none}}.trace-name{color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.trace-count:before{content:"→ "}.trace-ms{margin-left:auto;opacity:.7}.trace-args{margin:2px 0 0 calc(1em + 8px);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-word}.composer{display:flex;gap:10px;padding:16px 20px;border-top:1px solid #23262e}.composer input{flex:1;background:var(--panel);border:1px solid #2a2e37;color:var(--text);border-radius:10px;padding:10px 14px;font-size:15px}.composer button{background:var(--accent);color:#06250f;border:none;border-radius:10px;padding:0 18px;font-weight:600;cursor:pointer}.composer button:disabled{opacity:.5;cursor:default}.track-card{display:flex;gap:12px;align-items:center;background:var(--panel);border-radius:10px;padding:8px}.track-meta{display:flex;flex-direction:column;gap:2px}.track-name{color:var(--text);font-weight:600;text-decoration:none}.track-artist{color:var(--muted);font-size:13px}
