:root {
  --bg: #0b0c10;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-solid: #15171d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f6;
  --muted: rgba(242, 243, 246, 0.58);
  --faint: rgba(242, 243, 246, 0.16);
  --accent: #c8ff3d;
  --accent-ink: #11140a;
  --mix: #5ad7ff;
  --danger: #ff6b6b;
  --tint: rgb(70, 76, 96);
  --radius: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html { background: var(--bg); } /* not on body, or it would cover the backdrop */
body { overflow-x: hidden; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.35; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }
svg { display: block; fill: currentColor; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), var(--mix), var(--accent));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.link {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link.small { font-size: 13px; text-decoration: none; }
.link.small:hover { color: var(--text); }

/* ---------- auth ---------- */
#auth { display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
  width: min(380px, 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.auth-card h1 { margin: 10px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.auth-lede { margin: 0 0 6px; font-size: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-card input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
}
.auth-card input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.error { color: var(--danger); min-height: 1.2em; margin: 0; font-size: 14px; }

/* ---------- backdrop: the cover's colour, faded into the page ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--tint);
  transition: background-color 1.2s ease;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.25) 0%, rgba(11, 12, 16, 0.85) 45%, var(--bg) 80%);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
  max-width: 1200px;
  margin: 0 auto;
}
.seg {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- layout ---------- */
.layout {
  max-width: 460px;
  margin: 0 auto;
  padding: 4px 16px calc(32px + env(safe-area-inset-bottom));
}
body.simple .adv { display: none !important; }
body.simple .layout { min-height: calc(100vh - 130px); display: flex; flex-direction: column; justify-content: flex-start; }

body.advanced .layout {
  max-width: 1200px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  body.advanced .layout {
    grid-template-columns: 380px minmax(0, 1fr);
    grid-template-areas: "stage library" "decks library";
    align-items: start;
  }
  body.advanced .stage { grid-area: stage; }
  body.advanced .decks { grid-area: decks; }
  body.advanced .library { grid-area: library; }
}

/* ---------- now playing ---------- */
.stage { display: flex; flex-direction: column; align-items: center; text-align: center; }

.art-wrap {
  position: relative;
  width: min(100%, 340px, 38vh);
  aspect-ratio: 1;
  margin: 8px 0 24px;
}
body.advanced .art-wrap { width: min(100%, 260px); margin-bottom: 18px; }
.art {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #22252e;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-b { opacity: 0; will-change: opacity; }
.mix-badge {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.78);
  color: var(--mix);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* placeholder art: a colour from the title and its first letter */
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 40%;
  color: rgba(255, 255, 255, 0.85);
  background: var(--ph, #2a2e38);
}
.art .ph { font-size: 96px; }

.np { width: 100%; min-width: 0; }
.np-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-artist, .np-album {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-artist { font-size: 17px; color: var(--text); opacity: 0.82; }
.np-album { font-size: 14px; color: var(--muted); min-height: 1.2em; }

.scrub { width: 100%; margin-top: 22px; }
.bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--faint);
  cursor: pointer;
  touch-action: none;
}
.bar::before { content: ""; position: absolute; inset: -12px 0; } /* bigger touch target */
.fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--text);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}
.mix-zone {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--mix);
  opacity: 0.5;
}
.times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.transport { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.tbtn {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: transform 0.12s ease;
}
.tbtn svg { width: 30px; height: 30px; }
.tbtn:active { transform: scale(0.92); }
.tbtn.play { width: 74px; height: 74px; background: var(--text); color: var(--bg); }
.tbtn.play svg { width: 32px; height: 32px; }
body.advanced .tbtn.play { width: 64px; height: 64px; }
.tbtn.small { width: 44px; height: 44px; color: var(--muted); position: relative; }
.tbtn.small svg { width: 22px; height: 22px; }
.tbtn.toggle[aria-pressed="true"] { color: var(--accent); }
.tbtn.toggle[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

/* what's playing: all songs or a playlist */
.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 4px 4px 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.source select {
  min-width: 0;
  max-width: 60vw;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* up next */
.upnext { width: 100%; margin-top: 18px; text-align: left; }
.upnext-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 6px; }
.upnext-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
#upnext-mode { font-size: 12px; color: var(--muted); }
#upnext-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.up-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
}
.up-row:disabled { opacity: 1; cursor: default; background: rgba(255, 255, 255, 0.05); }
.up-row:not(:disabled):hover { background: var(--panel); }
.up-row .thumb { width: 42px; height: 42px; }
.up-meta { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.up-meta.live { color: var(--mix); font-weight: 600; }

.mixline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  min-height: 36px;
}
.mixline:empty, .mixline.blank { visibility: hidden; }
#mix-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mix-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.mix-prog { flex: none; width: 0; height: 3px; border-radius: 2px; background: var(--faint); overflow: hidden; transition: width 0.3s; }
.mix-prog > span { display: block; height: 100%; background: var(--mix); transform-origin: left; transform: scaleX(0); }
.mixline.mixing { color: var(--mix); border-color: rgba(90, 215, 255, 0.35); }
.mixline.mixing .mix-dot { background: var(--mix); animation: pulse 1s ease-in-out infinite; }
.mixline.mixing .mix-prog { width: 46px; }
.mixline.err { color: var(--danger); }
@keyframes pulse { 50% { opacity: 0.3; } }

.empty-simple { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }

/* ---------- decks (advanced) ---------- */
.decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.deck {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.deck.live { border-color: rgba(200, 255, 61, 0.45); }
#deck-b.live { border-color: rgba(90, 215, 255, 0.5); }
.deck-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.deck-tag {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--accent);
  color: var(--accent-ink);
}
.deck-tag.b { background: var(--mix); color: #04161d; }
.deck-state { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.deck-track { display: flex; gap: 10px; align-items: center; min-width: 0; }
.thumb {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  overflow: hidden;
  background: #22252e;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph { font-size: 16px; }
.deck-info { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.deck-title, .deck-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-title { font-weight: 600; font-size: 14px; }
.deck-artist { font-size: 12px; color: var(--muted); }
.deck-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 10px 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.deck-stats .up { color: var(--mix); }
.mini { height: 3px; border-radius: 2px; background: var(--faint); overflow: hidden; }
.mini > div { height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.mini.b > div { background: var(--mix); }

.xfader {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.xf-rail { position: relative; flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--mix)); opacity: 0.85; }
.xf-pos { position: absolute; left: 0; top: 0; width: calc(100% - 18px); height: 100%; transform: translateX(0); }
.xf-knob {
  position: absolute;
  top: -8px;
  left: 0;
  width: 18px;
  height: 20px;
  border-radius: 5px;
  background: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.settings {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 2px 4px;
}
.settings select {
  margin-left: 6px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}
.check { display: flex; align-items: center; gap: 6px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- library (advanced) ---------- */
.library { min-width: 0; }
.drop {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding: 22px 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.drop span { color: var(--muted); font-size: 13px; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(200, 255, 61, 0.06); }

.jobs { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.job .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .stage-txt { color: var(--muted); }
.job.err .stage-txt { color: var(--danger); }
.job .jbar { grid-column: 1 / -1; height: 3px; background: var(--faint); border-radius: 2px; overflow: hidden; }
.jobs-sum {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(200, 255, 61, 0.06);
  border: 1px solid rgba(200, 255, 61, 0.25);
  font-size: 13px;
  color: var(--muted);
}
.jobs-sum strong { color: var(--text); }
.jobs-sum .jbar { display: block; height: 3px; margin-top: 8px; background: var(--faint); border-radius: 2px; overflow: hidden; }
.jobs-sum .jbar > span { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform 0.3s; }
.job.more-waiting { display: block; color: var(--muted); text-align: center; }
.job .jbar > div { height: 100%; background: var(--accent); transform-origin: left; transition: transform 0.2s; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 8px; }
.list-head h2 { margin: 0; font-size: 16px; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }

.tracks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.track { border-radius: 12px; transition: background-color 0.2s; }
.track:hover { background: var(--panel); }
.track.open { background: var(--panel); }
.row { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 0; }
.track-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 6px 8px;
  text-align: left;
  border-radius: 10px;
}
.track-main .thumb { width: 44px; height: 44px; }
.info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.t-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-artist { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-meta { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.35; }
.track.playing .t-title { color: var(--accent); }
.tag-next {
  display: none;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 2px;
  background: rgba(90, 215, 255, 0.16);
  color: var(--mix);
}
.track.next .tag-next { display: inline-block; }

/* playlist controls */
.pl-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 4px 10px; }
.chip[aria-pressed="true"], .chip.on { background: rgba(200, 255, 61, 0.14); border-color: rgba(200, 255, 61, 0.45); color: var(--accent); }
.acts-label { align-self: center; font-size: 12px; color: var(--muted); margin-right: 2px; }
.picker {
  margin: 0 0 12px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(200, 255, 61, 0.3);
  background: rgba(200, 255, 61, 0.04);
  max-height: 46vh;
  overflow-y: auto;
}
.picker-head { margin: 4px 8px 8px; font-size: 13px; color: var(--muted); }
.pick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
}
.pick:hover { background: var(--panel); }
.pick .thumb { width: 38px; height: 38px; }
.pick-add {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

/* bars that bounce on the playing song */
.eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding: 12px 10px; background: rgba(0, 0, 0, 0.55); }
.eq i { width: 4px; height: 100%; background: var(--accent); border-radius: 1px; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.track.playing .eq { display: flex; }
body.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.more {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.more svg { width: 20px; height: 20px; }
.more:hover, .track.open .more { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.panel { display: none; padding: 4px 12px 14px 64px; }
.track.open .panel { display: block; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fields input {
  width: 100%;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 14px;
}
.fields input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.chip:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.chip.save { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.danger { color: var(--danger); margin-left: auto; }

/* ---------- CTM Network footer ---------- */
.ctm {
  display: flex;
  justify-content: center;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
}
.ctm a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.ctm a:hover { color: var(--text); border-color: rgba(255, 106, 61, 0.5); }
.ctm strong { color: var(--text); font-weight: 700; }
.ctm-mark {
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff6a3d 55%, #ff3d8b);
  color: #1a0f0a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
#auth { min-height: calc(100vh - 60px); }

/* ---------- duplicates dialog ---------- */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 6, 9, 0.72);
}
.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 20px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.modal p { margin: 0 0 10px; font-size: 14px; }
.dups { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dup { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.dup .thumb { width: 40px; height: 40px; }
.dup .info { flex: 1; min-width: 0; }
.dup select {
  flex: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}
.modal-note { font-size: 12px !important; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media (max-width: 600px) {
  .decks { grid-template-columns: 1fr; }
  .dup { flex-wrap: wrap; }
  .dup select { width: 100%; }
  .panel { padding-left: 12px; }
  .fields { grid-template-columns: 1fr; }
  .transport { gap: 20px; }
  .seg button { padding: 6px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
