.library-section-tabs{display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line);margin:0 0 22px;padding:0 2px}
.library-section-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:0 0 11px;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}
.library-section-tabs button:hover{color:var(--ink)}
.library-section-tabs button.active{color:var(--green);border-bottom-color:var(--green)}
.status-dot{background:#5c6a66;box-shadow:none}.status-dot.connected{background:var(--lime);box-shadow:0 0 0 3px #3b5142}
.library-layout.library-flat{display:block;min-height:0;border:0;background:transparent}
.library-flat .track-panel{padding:4px 0 0}
.library-flat .track-row{padding:0 12px;border-top:0;border-bottom:1px solid #e8edeb;background:transparent}
.library-flat .track-row:not(.header):hover{background:#edf4f1}
.library-flat .track-row.header{border-bottom:1px solid var(--line)}
.row-play{width:30px;height:30px;border:0;border-radius:50%;background:#e5eee9;color:var(--green);display:inline-grid;place-items:center;flex:0 0 30px}
.row-play:hover{background:var(--green);color:#fff;transform:scale(1.04)}
.row-play svg{width:12px;height:12px;fill:currentColor}
.track-title strong{gap:10px}
.track-title strong>span{font-size:12px}
.library-empty,.collection-empty{padding:72px 20px;text-align:center;color:var(--muted)}
.library-empty>svg,.collection-empty>svg{width:30px;height:30px;color:var(--green)}
.library-empty h3,.collection-empty h3{margin:13px 0 5px;color:var(--ink);font-size:17px}
.library-empty p,.collection-empty p{margin:0 auto 18px;font-size:11px;max-width:430px}
.library-empty .primary{display:inline-flex}
.activity-empty{padding:30px 4px;color:var(--muted);font-size:11px}
.collection-grid,.playlist-grid{display:block}
.collection-card,.playlist-card{min-height:0;border:0;border-bottom:1px solid var(--line);padding:17px 4px;background:transparent}
.collection-card:hover,.playlist-card:hover{border-color:var(--line);background:#edf4f1}
.collection-card header,.playlist-card header{align-items:center}
.collection-card footer,.playlist-card footer{border:0;margin-top:8px;padding:0}
.collection-card p,.playlist-card p{margin:6px 0}
.playlist-empty{border:0;background:transparent}
.global-player{position:fixed;left:232px;right:0;bottom:0;z-index:19;height:72px;background:#172521;color:#fff;display:grid;grid-template-columns:minmax(190px,280px) 44px minmax(220px,1fr) 34px;align-items:center;gap:14px;padding:0 22px;box-shadow:0 -8px 25px rgba(9,18,15,.18)}
.global-player[hidden]{display:none}
.global-player-track{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center}
.global-player-track>span:last-child,.global-player-track strong,.global-player-track small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-player-track strong{font-size:11px}.global-player-track small{font-size:9px;color:#91a19c;margin-top:3px}
.global-player-art{width:36px;height:36px;border-radius:50%;background:#2b3c37;color:var(--lime);display:grid;place-items:center}.global-player-art svg{width:16px}
.global-player-play{width:42px;height:42px;border:0;border-radius:50%;background:var(--lime);color:#172521;display:grid;place-items:center;cursor:pointer}.global-player-play svg{width:17px;fill:currentColor}
.global-player-progress input{width:100%;accent-color:var(--lime)}
.global-player-progress span{display:flex;justify-content:space-between;color:#9aaba5;font-size:8px;font-variant-numeric:tabular-nums}
.global-player-close{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#9aaba5;display:grid;place-items:center;cursor:pointer}.global-player-close:hover{background:#2a3a36;color:#fff}.global-player-close svg{width:15px}
.global-player-visible main{padding-bottom:72px}
.global-player-visible .toast{bottom:92px}
.sync-modal{width:min(650px,100%)}
.sync-intro{font-size:11px;line-height:1.6;color:var(--muted);margin:-8px 0 18px}
.sync-file-status{display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sync-file-status>svg{width:24px;color:var(--muted)}.sync-file-status.connected>svg{color:var(--green)}
.sync-file-status strong,.sync-file-status small{display:block}.sync-file-status strong{font-size:11px}.sync-file-status small{font-size:9px;color:var(--muted);margin-top:3px}
.sync-actions{display:flex;gap:8px;flex-wrap:wrap;padding:18px 0 12px}.sync-actions button{height:38px}.sync-actions .primary:disabled{opacity:.42;cursor:not-allowed}
.sync-note{display:flex;gap:8px;align-items:flex-start;font-size:9px;line-height:1.5;color:var(--muted);margin:0}.sync-note svg{width:15px;flex:0 0 15px;color:var(--green)}
@media(max-width:760px){.global-player{left:64px;height:78px;grid-template-columns:1fr 42px 28px;padding:0 12px;gap:9px}.global-player-progress{grid-column:1/-1;grid-row:2;align-self:start;margin-top:-12px}.global-player-track{grid-template-columns:30px minmax(0,1fr)}.global-player-art{width:30px;height:30px}.global-player-play{grid-column:2;grid-row:1}.global-player-close{grid-column:3;grid-row:1}.global-player-visible main{padding-bottom:78px}}
@media(max-width:520px){.library-section-tabs{gap:18px}.sync-actions{display:grid}.sync-actions button{width:100%}}
