.topbar .library-actions { flex-wrap: nowrap; gap: 8px; align-items: center; }
.library-actions > button, .topbar .import-action, .library-more > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; border-radius: var(--control-radius); }
.topbar .import-action { border: 1px solid var(--line); color: var(--text); background: var(--surface); text-decoration: none; }
.topbar .import-action:hover { border-color: var(--accent); }
.library-more { position: relative; }
.library-more > summary { gap: 8px; cursor: pointer; color: var(--muted); list-style: none; border: 1px solid transparent; }
.library-more > summary::-webkit-details-marker { display: none; }
.library-more > summary svg { width: 16px; height: 16px; }
.library-more[open] > summary, .library-more > summary:hover { background: var(--rail); color: var(--text); }
.library-more-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.library-more-panel > button, .library-more-panel a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--control-radius); text-align: left; text-decoration: none; font-size: .875rem; font-weight: 500; color: var(--text); background: transparent; }
.library-more-panel a:hover, .library-more-panel > button:not(:disabled):hover { background: var(--rail); }
.topbar .library-more-panel p { font-size: .75rem; color: var(--muted); max-width: none; margin: 0; padding: 0 12px 8px; }
.library-account { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.library-actions :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .workspace > .topbar { flex-wrap: wrap; } .topbar .library-actions { width: 100%; } .library-actions > .primary { flex: 1; } }
