:root {
  --bg: #14111c;
  --bg-raised: #1d1927;
  --bg-hover: #272233;
  --border: #363044;
  --border-bright: #4c4363;
  --text: #f4f2f8;
  --text-dim: #a89fbd;
  --accent: #ff2e7e;
  --accent-2: #8b3df5;
  --accent-soft: rgba(255, 46, 126, 0.13);
  --accent-dim: #c21b5c;
  --accent-text: #ffffff;
  --grad: linear-gradient(135deg, #ff2e7e, #8b3df5);
  --grad-hover: linear-gradient(135deg, #ff4d92, #9d59f7);
  --spotify: #1ed760;
  --danger: #ff5470;
  --radius: 14px;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --glow: 0 4px 22px rgba(255, 46, 126, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--text-dim); }
.small-text { font-size: 13px; color: var(--text-dim); }

code {
  background: var(--bg-hover);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
  border: 1px solid var(--border);
}

::selection { background: rgba(255, 46, 126, 0.35); }

/* ---------- display type ---------- */
.display-type {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ---------- brand ---------- */
.brand-mark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.brand-mark span:last-child {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark.small { font-size: 21px; padding: 4px 8px 16px; justify-content: flex-start; }

/* animated equalizer glyph */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i {
  width: 4px;
  border-radius: 3px;
  background: var(--grad);
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.eq i:nth-child(3) { height: 60%; animation-delay: 0.36s; }
.eq i:nth-child(4) { height: 100%; animation-delay: 0.54s; }
.eq i:nth-child(5) { height: 50%; animation-delay: 0.72s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; } }

/* ---------- buttons & inputs ---------- */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-bright);
  background: var(--bg-hover);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s, box-shadow 0.2s;
}
.btn:hover { border-color: var(--accent); background: #2e2840; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: var(--accent-text);
  box-shadow: var(--glow);
}
.btn-primary:hover { background: var(--grad-hover); border-color: transparent; box-shadow: 0 6px 28px rgba(255, 46, 126, 0.5); }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 14px; font-size: 13px; }

.link-btn {
  background: none; border: none; color: var(--text-dim);
  font-family: var(--font); font-size: 13px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent); }

.icon-btn {
  background: var(--bg-hover); border: 1px solid var(--border); color: var(--text);
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1;
  transition: all 0.15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px rgba(255, 46, 126, 0.3); }

input[type="text"], input[type="password"], select, textarea {
  font-family: var(--font);
  font-size: 14.5px;
  background: #2b2537;
  border: 1.5px solid var(--border-bright);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder, textarea::placeholder { color: #8d84a5; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #675a86; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: #322b41;
  box-shadow: 0 0 0 3px rgba(255, 46, 126, 0.18);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a89fbd' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 45% at 78% 5%, rgba(255, 46, 126, 0.17), transparent 68%),
    radial-gradient(ellipse 55% 42% at 12% 100%, rgba(139, 61, 245, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 30% at 45% 50%, rgba(139, 61, 245, 0.07), transparent 70%),
    var(--bg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.login-card {
  width: 100%;
  max-width: 392px;
  background: rgba(29, 25, 39, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 42px 38px 28px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  position: relative;
}
.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 46, 126, 0.5), transparent 40%, transparent 60%, rgba(139, 61, 245, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-tagline { color: var(--text-dim); margin: 8px 0 30px; }
.login-card form { text-align: left; display: grid; gap: 15px; }
.login-card label { font-size: 13.5px; color: #c9c2da; font-weight: 500; display: grid; gap: 6px; }
.login-footnote { margin-top: 24px; font-size: 12px; color: var(--text-dim); }

/* ---------- app layout ---------- */
.app { display: flex; height: 100vh; }

.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #191521, #131019);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  gap: 4px;
}

.nav { display: grid; gap: 3px; margin-bottom: 20px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; color: var(--text-dim);
  font-family: var(--font); font-size: 14.5px; font-weight: 500;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-item:hover { color: var(--text); background: var(--bg-hover); }
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-left-color: var(--accent);
}
.nav-item.active svg { color: var(--accent); }

.playlists-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); padding: 4px 12px 10px;
}

.playlist-list { flex: 1; overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.playlist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 9px; cursor: pointer;
  color: var(--text-dim); font-size: 13.5px; border: none; background: none;
  font-family: var(--font); text-align: left; width: 100%;
  transition: background 0.12s, color 0.12s;
}
.playlist-item:hover { background: var(--bg-hover); color: var(--text); }
.playlist-item img, .playlist-item .pl-ph {
  width: 32px; height: 32px; border-radius: 7px; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, #322b44, #201b2c);
  display: grid; place-items: center; font-size: 13px;
  border: 1px solid var(--border);
}
.playlist-item .pl-meta { overflow: hidden; line-height: 1.3; }
.playlist-item .pl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-item .pl-count { font-size: 11.5px; color: var(--text-dim); }

.sidebar-footer { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; }
.spotify-status { font-size: 13px; }
.spotify-status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.dot.on { background: var(--spotify); box-shadow: 0 0 8px var(--spotify); }
.dot.off { background: var(--text-dim); }
.user-row { display: flex; justify-content: space-between; align-items: center; }
.user-name { font-weight: 600; font-size: 14px; }

/* ---------- main panels ---------- */
.main {
  flex: 1; overflow: hidden; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 50% 32% at 88% 0%, rgba(255, 46, 126, 0.08), transparent 70%),
    radial-gradient(ellipse 45% 32% at 3% 100%, rgba(139, 61, 245, 0.09), transparent 70%),
    var(--bg);
}
.panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 28px 38px 22px; }
.panel-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.panel-head h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-size: 26px;
}
.panel-head h1::after {
  content: '';
  display: block;
  width: 44px; height: 4px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--grad);
}
.panel-head .muted { font-size: 13.5px; max-width: 560px; margin-top: 8px; }

.target-picker { display: grid; gap: 5px; min-width: 230px; }
.target-picker label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); }

/* ---------- chat ---------- */
.chat-log { flex: 1; overflow-y: auto; padding: 22px 4px; display: grid; gap: 18px; align-content: start; }

.msg { max-width: 760px; animation: msg-in 0.25s ease; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.msg.user { justify-self: end; }
.msg.user .msg-body {
  background: var(--grad);
  color: #fff;
  border-radius: 18px 18px 5px 18px; padding: 11px 17px; font-weight: 500;
  box-shadow: 0 4px 18px rgba(255, 46, 126, 0.25);
}
.msg.bot .msg-body {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 5px 18px 18px 18px; padding: 13px 17px;
  box-shadow: var(--shadow-card);
}
.msg.bot.thinking .msg-body { color: var(--text-dim); font-style: italic; }
.msg.bot.thinking .msg-body::after {
  content: '';
  display: inline-block;
  width: 26px;
  text-align: left;
  animation: dots 1.2s steps(4) infinite;
}
@keyframes dots {
  0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; }
}

/* starter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-family: var(--font); font-size: 13px; color: var(--text);
  background: var(--bg-hover); border: 1px solid var(--border-bright);
  border-radius: 999px; padding: 7px 15px; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }

.track-card {
  background: linear-gradient(180deg, #221d30, #1a1626);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px; display: grid; gap: 10px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.track-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 46, 126, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 46, 126, 0.08);
}
.track-top { display: flex; gap: 12px; }
.track-top img, .track-ph {
  width: 58px; height: 58px; border-radius: 9px; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, #322b44, #201b2c);
  display: grid; place-items: center; font-size: 21px;
  border: 1px solid var(--border);
}
.track-info { min-width: 0; }
.track-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-reason { font-size: 12.5px; color: var(--text-dim); font-style: italic; margin-top: 4px; line-height: 1.4; }
.track-actions { display: flex; gap: 8px; }
.track-embed { border-radius: 12px; overflow: hidden; }
.track-embed iframe { display: block; width: 100%; height: 80px; border: 0; }
.unmatched-note { font-size: 12px; color: var(--danger); margin-top: 4px; }

.chat-input { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.chat-input input {
  flex: 1; border-radius: 999px; padding: 14px 22px;
  background: #2b2537; border: 1.5px solid var(--border-bright);
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.chat-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 46, 126, 0.18), 0 4px 20px rgba(0, 0, 0, 0.3); }

.banner {
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(255, 46, 126, 0.12), rgba(139, 61, 245, 0.1));
  border: 1px solid rgba(255, 46, 126, 0.35);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
}
.banner a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- import ---------- */
.bookmarklet-hint {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px dashed rgba(255, 46, 126, 0.45);
  border-radius: 12px;
}
.bookmarklet-hint a { text-decoration: none; cursor: grab; flex-shrink: 0; }

.url-fetch { display: flex; gap: 10px; padding-top: 20px; }
.url-fetch input { flex: 1; }
.url-fetch .btn { white-space: nowrap; }
#panel-import .import-grid { padding-top: 16px; }

.import-grid { flex: 1; display: grid; grid-template-columns: 1fr 310px; gap: 24px; padding-top: 22px; overflow: hidden; }
#import-text {
  resize: none; height: 100%; min-height: 300px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; line-height: 1.8;
}
.import-side { display: grid; gap: 13px; align-content: start; }
.radio-row { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.radio-row input { width: auto; accent-color: var(--accent); }

.progress-track { height: 9px; background: var(--bg-hover); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress-bar {
  height: 100%; width: 0%;
  background: var(--grad);
  border-radius: 99px; transition: width 0.4s;
  box-shadow: 0 0 10px rgba(255, 46, 126, 0.5);
}
.import-progress { display: grid; gap: 8px; }
.failures {
  max-height: 180px; overflow-y: auto; font-size: 12px; color: var(--text-dim);
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; padding: 11px;
  display: grid; gap: 4px;
}

/* ---------- admin ---------- */
.settings-card {
  margin-top: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  max-width: 660px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.settings-card h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400; font-size: 18px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.settings-grid label { font-size: 13px; color: var(--text-dim); display: grid; gap: 5px; }
.settings-grid .wide { grid-column: 1 / -1; }
.settings-card .btn { justify-self: start; }
#panel-admin { overflow-y: auto; }

.admin-add { display: flex; gap: 10px; align-items: center; padding: 22px 0 4px; flex-wrap: wrap; }
.admin-add input[type="text"], .admin-add input[type="password"] { width: 220px; }
.user-table { margin-top: 14px; display: grid; gap: 7px; max-width: 660px; overflow-y: auto; }
.user-row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 17px;
  transition: border-color 0.15s;
}
.user-row-item:hover { border-color: var(--border-bright); }
.user-row-item .u-name { font-weight: 600; }
.user-row-item .u-meta { font-size: 12.5px; color: var(--text-dim); }
.badge {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(255, 46, 126, 0.4);
  border-radius: 6px; padding: 2px 8px; margin-left: 8px;
}
.btn-danger { color: var(--danger); border-color: rgba(255, 84, 112, 0.35); background: none; }
.btn-danger:hover { background: rgba(255, 84, 112, 0.1); border-color: var(--danger); }

/* ---------- modal & toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 7, 15, 0.72);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 50;
}
.modal {
  background: var(--bg-raised); border: 1px solid var(--border-bright); border-radius: 18px;
  padding: 28px; width: 100%; max-width: 390px; display: grid; gap: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: msg-in 0.2s ease;
}
.modal h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400; font-size: 19px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--bg-raised); border: 1px solid var(--border-bright); color: var(--text);
  border-radius: 999px; padding: 11px 24px; font-size: 14px; z-index: 60;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
  animation: msg-in 0.2s ease;
}
.toast.ok { border-color: var(--accent-dim); }
.toast.err { border-color: var(--danger); }

/* ---------- LIGHT THEME ---------- */
:root[data-theme="light"] {
  --bg: #f6f4f9;
  --bg-raised: #ffffff;
  --bg-hover: #efeaf4;
  --border: #e0d9e8;
  --border-bright: #c9bfd8;
  --text: #221a2e;
  --text-dim: #6d6382;
  --accent: #e91e6f;
  --accent-2: #7c3aed;
  --accent-soft: rgba(233, 30, 111, 0.1);
  --accent-dim: #b81657;
  --grad: linear-gradient(135deg, #e91e6f, #7c3aed);
  --grad-hover: linear-gradient(135deg, #f43c85, #8f55f0);
  --shadow-card: 0 3px 16px rgba(34, 26, 46, 0.08);
  --glow: 0 3px 16px rgba(233, 30, 111, 0.25);
}
:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="password"],
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: #ffffff;
  border-color: var(--border-bright);
  color: var(--text);
}
:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder { color: #9a90ae; }
:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] textarea:focus { background: #ffffff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233, 30, 111, 0.14); }
:root[data-theme="light"] .login-wrap {
  background:
    radial-gradient(ellipse 55% 42% at 78% 5%, rgba(233, 30, 111, 0.14), transparent 68%),
    radial-gradient(ellipse 50% 40% at 12% 100%, rgba(124, 58, 237, 0.14), transparent 70%),
    #f1edf6;
}
:root[data-theme="light"] .login-wrap::before { background-image: radial-gradient(rgba(34, 26, 46, 0.05) 1px, transparent 1px); }
:root[data-theme="light"] .login-card { background: rgba(255, 255, 255, 0.93); box-shadow: 0 30px 80px rgba(34, 26, 46, 0.18); }
:root[data-theme="light"] .login-card label { color: #4a4160; }
:root[data-theme="light"] .sidebar { background: #ffffff; }
:root[data-theme="light"] .main {
  background:
    radial-gradient(ellipse 45% 30% at 88% 0%, rgba(233, 30, 111, 0.06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 3% 100%, rgba(124, 58, 237, 0.07), transparent 70%),
    var(--bg);
}
:root[data-theme="light"] .btn { background: #ffffff; border-color: var(--border-bright); }
:root[data-theme="light"] .btn:hover { background: #f5f1f9; border-color: var(--accent); }
:root[data-theme="light"] .msg.bot .msg-body { background: #ffffff; }
:root[data-theme="light"] .track-card { background: #ffffff; }
:root[data-theme="light"] .track-card:hover { box-shadow: 0 10px 26px rgba(34, 26, 46, 0.12); }
:root[data-theme="light"] .chat-input input { background: #ffffff; box-shadow: 0 3px 14px rgba(34, 26, 46, 0.08); }
:root[data-theme="light"] .chat-input input:focus { box-shadow: 0 0 0 3px rgba(233, 30, 111, 0.14), 0 3px 14px rgba(34, 26, 46, 0.08); }
:root[data-theme="light"] .chip { background: #ffffff; }
:root[data-theme="light"] .banner { border-color: rgba(233, 30, 111, 0.3); }
:root[data-theme="light"] .modal-backdrop { background: rgba(34, 26, 46, 0.4); }
:root[data-theme="light"] .failures, :root[data-theme="light"] #import-text { background: #ffffff; }
:root[data-theme="light"] .playlist-item img, :root[data-theme="light"] .playlist-item .pl-ph,
:root[data-theme="light"] .track-top img, :root[data-theme="light"] .track-ph { background: #efeaf4; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; height: auto; }
  .playlist-list { display: none; }
  .import-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
}
