*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{overscroll-behavior-y:contain}body{font-family:system-ui,-apple-system,sans-serif;background:#f5f5f5;color:#1a1a1a;min-height:100vh}.navbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem;background:#111;color:#fff}.navbar .brand{color:#fff;text-decoration:none;font-weight:700;font-size:1.1rem}.navbar .brand:hover{opacity:.8}.nav-right{display:flex;align-items:center;gap:1rem}.nav-email{font-size:.85rem;opacity:.6}.nav-link{color:#fff;text-decoration:none;font-size:.9rem;opacity:.8}.nav-link:hover{opacity:1}.page{max-width:1000px;margin:2rem auto;padding:0 1.25rem}.center-page{max-width:420px;margin:5rem auto;padding:2rem;background:#fff;border-radius:10px;border:1px solid #e0e0e0;display:flex;flex-direction:column;gap:1rem}.center-page h1{font-size:1.75rem}.center-page p{color:#555}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.three-col{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1.5rem}h1{font-size:1.6rem;margin-bottom:1.25rem}h2{font-size:1.1rem;margin-bottom:.75rem;color:#333}input[type=text],input[type=email]{padding:.5rem .75rem;border:1px solid #ccc;border-radius:6px;font-size:.95rem;width:100%;outline:none}input:focus{border-color:#06c;box-shadow:0 0 0 2px #06c2}button{padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;background:#333;color:#fff;white-space:nowrap;transition:opacity .15s}button:hover{opacity:.8}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:#06c}button.danger{background:#c20}button.small{padding:.25rem .6rem;font-size:.8rem}button.ghost{background:transparent;color:#333;border:1px solid #ccc}button.ghost:hover{background:#f0f0f0;opacity:1}.inline-form{display:flex;gap:.5rem;margin-bottom:1rem}.inline-form input{flex:1}.card-list{list-style:none;display:flex;flex-direction:column;gap:.5rem}.card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem}.card a{text-decoration:none;color:#1a1a1a;font-weight:500}.card a:hover{text-decoration:underline}.actions{display:flex;gap:.5rem;flex-shrink:0}.song-list{list-style:none;display:flex;flex-direction:column;gap:.4rem}.song-list li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;background:#fff;border:1px solid #e0e0e0;border-radius:6px;font-size:.9rem}.song-list li span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sortable-item{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;background:#fff;border:1px solid #e0e0e0;border-radius:6px;margin-bottom:.4rem;font-size:.9rem;-webkit-user-select:none;user-select:none}.sortable-item.dragging{opacity:.4;z-index:10}.sortable-item>.drag-handle{display:inline-flex;align-items:center;cursor:grab;color:#bbb;font-size:1.1rem;flex-shrink:0;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;padding:.5rem .6rem}.drag-handle:active{cursor:grabbing}.sortable-item>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-label{display:inline-block;padding:.5rem 1rem;background:#333;color:#fff;border-radius:6px;cursor:pointer;font-size:.9rem;margin-bottom:.75rem;transition:opacity .15s}.upload-label:hover{opacity:.8}.setlist-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;gap:1rem}.setlist-header h1{margin-bottom:0}.setlist-header-left{display:flex;align-items:center;gap:1rem}.loading{text-align:center;padding:4rem;color:#999}.error{color:#c20;font-size:.875rem;margin-top:.25rem}.empty{color:#999;font-size:.875rem;padding:.5rem 0}.meta{color:#888;font-size:.85rem}.back-link{display:inline-block;color:#06c;text-decoration:none;font-size:.9rem;margin-bottom:1rem}.back-link:hover{text-decoration:underline}section{display:flex;flex-direction:column}.member-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 4px 12px #0002;list-style:none;z-index:10;max-height:200px;overflow-y:auto}.member-dropdown li button{width:100%;text-align:left;background:none;border:none;border-radius:0;padding:.5rem .75rem;color:#1a1a1a;font-size:.9rem;cursor:pointer}.member-dropdown li button:hover{background:#f0f0f0;opacity:1}.notif-badge{display:inline-flex;align-items:center;justify-content:center;background:#c20;color:#fff;font-size:.7rem;font-weight:700;border-radius:999px;min-width:1.25rem;height:1.25rem;padding:0 .35rem;margin-left:.5rem;vertical-align:middle}.notif-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;text-decoration:none;color:#1a1a1a;width:100%;transition:background .1s}.notif-card:hover{background:#f5f5f5}.suggestion-card{flex-direction:column;align-items:flex-start;gap:.5rem;margin-bottom:.5rem}.progress-bar{height:4px;background:#e0e0e0;border-radius:2px;overflow:hidden}.progress-bar:after{content:"";display:block;height:100%;width:40%;background:#06c;border-radius:2px;animation:progress-slide 1.2s ease-in-out infinite}.song-edit-item{min-width:0}.song-edit-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.song-edit-name{flex:1 1 160px;min-width:0;overflow-wrap:anywhere}.song-rename-panel{width:100%;max-width:650px;box-sizing:border-box;margin-top:12px;padding:16px;border:1px solid #ddd;border-radius:10px;background:#f8f9fa}.song-rename-panel label{display:block;margin-bottom:8px;font-weight:600}.song-rename-input{display:block;width:100%;min-width:0;box-sizing:border-box;padding:12px;font-size:16px;border:1px solid #aaa;border-radius:6px}.song-rename-input:focus{outline:2px solid #5685e8;outline-offset:1px}.song-rename-actions{display:flex;gap:10px;margin-top:12px}.song-row{display:flex;align-items:center;width:100%;gap:12px}.song-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.song-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0}.song-edit-item .song-edit-main{display:flex;align-items:center;width:100%;gap:12px;min-width:0}.song-edit-item .song-edit-name{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.song-edit-item .song-edit-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0;margin-left:auto}.song-edit-actions .duration-input{flex-shrink:0;box-sizing:border-box}.song-edit-actions button{white-space:nowrap;flex-shrink:0}@media (max-width: 700px){.song-edit-item .song-edit-main{flex-wrap:wrap}.song-edit-item .song-edit-name{flex-basis:100%}.song-edit-item .song-edit-actions{width:100%;flex-wrap:wrap;justify-content:flex-end;margin-left:0}}.song-link{cursor:pointer;transition:opacity .15s}@media (hover: hover){.song-link:hover{opacity:.55}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#00000080}.modal{display:flex;flex-direction:column;width:100%;max-width:900px;max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);padding:1rem;background:#fff;border-radius:10px;box-shadow:0 10px 40px #0000004d}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.modal-head h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-actions{display:flex;gap:.5rem;flex-shrink:0}.modal-text{display:block;flex:1 1 auto;width:100%;height:60vh;min-height:200px;padding:.75rem;border:1px solid #ccc;border-radius:6px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Courier New,monospace;font-size:14px;line-height:1.4;white-space:pre;overflow:auto;resize:none;-moz-tab-size:4;tab-size:4;outline:none}.modal-text:focus{border-color:#06c;box-shadow:0 0 0 2px #06c2}.modal-status{margin-top:.5rem;min-height:1.25rem}.modal-ok{color:#197;font-size:.875rem}.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:.4rem;vertical-align:middle;transition:background .3s}.status-dot.online{background:#169143;box-shadow:0 0 0 3px #22c55e33}.status-dot.offline{background:#a71111;box-shadow:0 0 0 3px #ef444433}:root{color-scheme:light}[data-theme=dark]{color-scheme:dark}[data-theme=dark] body{background:#121212;color:#e8e8e8}[data-theme=dark] h2{color:#ddd}[data-theme=dark] .navbar{border-bottom:1px solid #2a2a2a}[data-theme=dark] .center-page,[data-theme=dark] .card,[data-theme=dark] .song-list li,[data-theme=dark] .sortable-item,[data-theme=dark] .member-dropdown{background:#1e1e1e;border-color:#333}[data-theme=dark] .center-page p{color:#aaa}[data-theme=dark] .card a,[data-theme=dark] .notif-card{color:#e8e8e8}[data-theme=dark] .notif-card:hover{background:#262626}[data-theme=dark] input[type=text],[data-theme=dark] input[type=email],[data-theme=dark] input[type=password]{background:#1e1e1e;color:#e8e8e8;border-color:#444}[data-theme=dark] button{background:#444}[data-theme=dark] button.primary{background:#06c}[data-theme=dark] button.danger{background:#c20}[data-theme=dark] button.ghost{background:transparent;color:#e8e8e8;border-color:#555}[data-theme=dark] button.ghost:hover{background:#2a2a2a}[data-theme=dark] .upload-label{background:#444}[data-theme=dark] .member-dropdown li button{background:none;color:#e8e8e8}[data-theme=dark] .member-dropdown li button:hover{background:#2a2a2a}[data-theme=dark] .back-link{color:#4da3ff}[data-theme=dark] .meta,[data-theme=dark] .empty,[data-theme=dark] .loading{color:#999}[data-theme=dark] .progress-bar{background:#333}[data-theme=dark] code{background:#2a2a2a!important;color:#e8e8e8}.brand-group{display:flex;align-items:center;justify-content:flex-start;gap:.6rem}button.theme-toggle,[data-theme=dark] button.theme-toggle{background:transparent;color:#fff;border:none;padding:.1rem .4rem;font-size:1.3rem;line-height:1}@media (max-width: 768px){.modal-text{font-size:16px}}.song-edit-name{flex-basis:100%}.song-rename-panel{max-width:100%;padding:12px}.song-rename-input{font-size:16px}@keyframes progress-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}
