:root{color-scheme:light dark;--bg: #0f1115;--surface: #171a21;--surface-alt: #1f232c;--border: #2a2f3a;--text: #e8eaed;--text-muted: #9aa1ac;--accent: #6ee7b7;--danger: #f87171;--warn: #fbbf24;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}.page-loading{padding:3rem;text-align:center}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center}.login-form{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2rem;width:320px;display:flex;flex-direction:column;gap:.75rem}.login-form h1{margin:0}.subtitle{color:var(--text-muted);margin-top:-.5rem}.login-button{display:inline-block;text-align:center;text-decoration:none;cursor:pointer;background:var(--accent);color:#0f1115;border:none;border-radius:8px;padding:.6rem;font-weight:600}input,select,button{font:inherit;padding:.5rem .6rem;border-radius:8px;border:1px solid var(--border);background:var(--surface-alt);color:var(--text)}button{cursor:pointer;background:var(--accent);color:#0f1115;border:none;font-weight:600}button:disabled{opacity:.6;cursor:not-allowed}.link-button{background:none;color:var(--text-muted);text-decoration:underline;font-weight:400;padding:0}.error-text{color:var(--danger)}.saved-hint{color:var(--accent);margin-left:.5rem}.app-shell{max-width:960px;margin:0 auto;padding:1.5rem}.app-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.app-header nav{display:flex;align-items:center;gap:1rem}.app-header a{color:var(--text)}.current-user{color:var(--text-muted);font-size:.9rem}section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;margin-bottom:1.25rem}.status-card-grid,.playlist-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.status-card{background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;padding:1rem}.status-card-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--text-muted)}.status-connected .status-dot{background:var(--accent)}.status-error .status-dot{background:var(--danger)}dl{display:grid;grid-template-columns:auto 1fr;gap:.25rem .75rem;margin:0;font-size:.9rem}dt{color:var(--text-muted)}dd{margin:0}table.sync-history{width:100%;border-collapse:collapse;font-size:.9rem;table-layout:fixed}table.sync-history th,table.sync-history td{text-align:left;padding:.4rem .6rem;border-bottom:1px solid var(--border);overflow-wrap:anywhere}table.sync-history .col-pair{width:16%}table.sync-history .col-started{width:20%}table.sync-history .col-trigger{width:10%}table.sync-history .col-status,table.sync-history .col-added,table.sync-history .col-removed{width:18%}@media (max-width: 720px){table.sync-history{table-layout:auto}}.count-toggle{background:none;border:none;padding:0;margin:0;font:inherit;color:var(--accent);cursor:pointer;display:inline-flex;align-items:baseline;gap:.3rem}.count-toggle:hover{text-decoration:underline}.count-toggle-caret{font-size:.65em;color:var(--accent);transform:translateY(-1px)}.unmatched-badge{display:block;margin-top:.2rem;font-size:.8rem;color:var(--warn)}.run-detail-row>td{background:var(--surface-alt);padding:.75rem 1rem 1rem}.run-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.5rem 1.5rem}.run-detail-group h4{margin:0 0 .3rem;font-size:.85rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.run-detail-group ul{margin:0;padding-left:1.1rem}.run-detail-group li{margin:.15rem 0;font-size:.88rem}.run-detail-unmatched h4{color:var(--warn)}.run-status-error{color:var(--danger)}.playlist-picker{background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;padding:1rem}.playlist-picker form{display:flex;flex-direction:column;gap:.6rem;margin-top:.5rem}.checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.hint{color:var(--text-muted)}.connection-panel{background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;padding:1rem}.connection-panel h3{margin-top:0}.create-pair-form{display:flex;gap:.5rem;margin-bottom:1rem}.create-pair-form input{flex:1}.pair-card,.pair-status-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;margin-bottom:1.25rem}.pair-card-disabled{opacity:.6}.pair-card-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem;flex-wrap:wrap}.pair-card-header h3{margin:0;cursor:text;flex:1}.pair-card-header input{flex:1}.playlist-picker-disabled,.playlist-picker-readonly{display:flex;flex-direction:column;justify-content:center}.playlist-picker-readonly h4{margin:0 0 .5rem}.unmatched-notice{border-left:3px solid var(--warn);background:var(--surface-alt);border-radius:6px;padding:.6rem .85rem;margin:.5rem 0;font-size:.9rem}.unmatched-notice-summary{margin:0 0 .35rem;color:var(--warn)}.unmatched-notice ul{margin:0;padding-left:1.2rem}.unmatched-notice li{margin:.15rem 0}
