/* Studio: project list and project shell. Jam Room tokens only. */
.studio-page{padding:0 16px 24px}
.studio-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.studio-new,.studio-primary{min-height:44px;padding:8px 16px;border-radius:12px;border:1px solid var(--accent);background:var(--accent);color:var(--on-accent,#06121f);font-weight:700;white-space:nowrap}
.studio-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.studio-card{border:1px solid var(--line);border-radius:14px;background:var(--raised);display:flex;flex-direction:column}
.studio-card-main{display:flex;flex-direction:column;gap:3px;align-items:flex-start;padding:14px;background:none;border:0;color:var(--text);text-align:left;min-height:44px}
.studio-card-main b{font-size:16px}.studio-card-main small{font-size:12px;color:var(--dim)}
.studio-card-actions{display:flex;gap:8px;padding:0 14px 12px}
.studio-card-actions button{min-height:36px;padding:6px 12px;border-radius:10px;border:1px solid var(--line);background:var(--cell);color:var(--text);font-size:13px}
.studio-card-actions button.is-danger{color:#ffb4a7;border-color:#a86445}
.studio-empty{color:var(--dim);font-size:14px;padding:16px 0}
.studio-toast{position:fixed;left:16px;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));padding:10px 14px;border-radius:12px;background:var(--text);color:var(--bg-top,#15181e);font-size:14px;z-index:30}
.studio-toast[hidden]{display:none}
dialog.studio-sheet{border:0;border-radius:18px 18px 0 0;padding:0;background:var(--bg-bottom,#1e242d);color:var(--text);width:100%;max-width:640px;margin:auto auto 0;max-height:92vh}
dialog.studio-sheet::backdrop{background:rgba(0,0,0,.55)}
dialog.studio-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 6px}
dialog.studio-sheet header h2{margin:0;font-size:22px}
dialog.studio-sheet header button{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--raised);color:var(--text);font-size:18px}
dialog.studio-sheet .studio-sheet-body{padding:0 16px 16px;overflow:auto;max-height:calc(92vh - 70px)}
.studio-seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0 12px}
.studio-seg button{min-height:44px;border-radius:12px;border:1px solid var(--line);background:var(--raised);color:var(--text);font-weight:600}
.studio-seg button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent,#06121f)}
dialog.studio-sheet form{display:flex;flex-direction:column;gap:12px}
dialog.studio-sheet label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--dim)}
dialog.studio-sheet input,dialog.studio-sheet select{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised);color:var(--text);font-size:16px}
.studio-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.studio-songs{display:flex;flex-direction:column;gap:6px;max-height:40vh;overflow:auto;margin-top:8px}
.studio-song{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised);color:var(--text);text-align:left}
.studio-song small{font-size:12px;color:var(--dim)}
.studio-song.on{border-color:var(--accent);background:rgba(232,189,122,.14)}
.studio-project{padding:0 0 24px}
.studio-project-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg-top,#15181e);z-index:2}
.studio-back{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;color:var(--text);text-decoration:none;font-size:22px}
.studio-title{flex:1;min-width:0;display:flex;flex-direction:column}
.studio-name{background:none;border:0;padding:0;color:var(--text);text-align:left;font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:24px}
.studio-title small{font-size:12px;color:var(--dim)}
.studio-who{display:flex;gap:-4px}
.studio-who span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:700 11px system-ui;color:#0e1013;margin-left:-6px;border:2px solid var(--bg-top,#15181e)}
.studio-undo{display:flex;gap:4px}
.studio-undo button{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:var(--raised);color:var(--text);font-size:18px}
.studio-undo button:disabled{opacity:.4}
.studio-body{padding:12px 16px}
.studio-meta{margin:0 0 10px;font-size:13px;color:var(--dim)}
.studio-tracks{display:flex;flex-direction:column;gap:8px}
.studio-track{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--track-color,#888);border-radius:12px;background:var(--raised)}
.studio-track-head{flex:1;min-width:0;display:flex;flex-direction:column}
.studio-track-head b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-track-head small{font-size:12px;color:var(--dim)}
.studio-ms{display:flex;gap:4px}
.studio-ms button{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);background:var(--cell);color:var(--text);font-weight:700;font-size:13px}
.studio-ms [data-mute][aria-pressed=true]{background:#f08a8a;color:#0e1013;border-color:#f08a8a}
.studio-ms [data-solo][aria-pressed=true]{background:var(--accent);color:#0e1013;border-color:var(--accent)}
.studio-ms [data-arm][aria-pressed=true]{background:#e05a5a;color:#fff;border-color:#e05a5a}
.studio-toolbar{display:flex;gap:8px;padding:0 16px;flex-wrap:wrap}
.studio-toolbar button,.studio-upload{min-height:44px;padding:8px 14px;border-radius:12px;border:1px solid var(--line);background:var(--raised);color:var(--text);font-size:14px;display:inline-flex;align-items:center;cursor:pointer}
/* presence chips are buttons now; the project menu sits beside them */
.studio-who button{width:28px;height:28px;min-height:28px;border-radius:50%;display:grid;place-items:center;font:700 11px system-ui;color:#0e1013;margin-left:-6px;border:2px solid var(--bg-top,#15181e);padding:0;cursor:pointer}
.studio-who button.is-following{border-color:#fff;box-shadow:0 0 0 2px var(--accent)}
.studio-more{width:36px;height:36px;min-height:36px;border-radius:50%;border:1px solid var(--line);background:var(--raised);color:var(--text);font-size:18px;line-height:1;padding:0;margin-left:6px}
