:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #17181b;
  --raised: #202225;
  --line: #303236;
  --text: #f0f1f2;
  --muted: #a4a7ad;
  --accent: #83dfc3;
  --accent2: #83dfc3;
  --red: #ff777e;
  --amber: #e9c373;
}
.source-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.source-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--muted);
}
.source-switch button[aria-selected="true"] {
  color: var(--accent);
  background: #26372f;
}
.source-switch svg {
  width: 15px;
  height: 15px;
}
.import-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.preview-state {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.preview-state #preview-status {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-state .badge-res {
  background: transparent;
  padding: 0;
}
.obs-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}
.obs-panel-head {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.obs-panel-head #obs-status {
  color: var(--muted);
  font-size: 12px;
}
.obs-panel label {
  font-size: 12px;
  color: var(--muted);
}
.copy-field {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.copy-field input {
  min-width: 0;
  width: 100%;
  color: var(--text);
  border: 0;
  background: var(--bg);
  padding: 7px 10px;
  font:
    12px Consolas,
    monospace;
}
.footer-note {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label #slate-label {
  flex: 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 12px;
  font-weight: 400;
}
.box label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 6px;
}
.box input[type="url"] {
  width: 100%;
  border: 1px solid #50545b;
  border-radius: 4px;
  background: var(--bg);
  padding: 10px 12px;
  color: var(--text);
}
.source-options {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.source-options summary {
  cursor: pointer;
}
#link-submit {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1001px) {
  .content:has(#obs-panel:not(.hiddenx)) .stage {
    max-height: max(180px, calc(100dvh - 700px));
  }
}
@media (max-width: 680px) {
  .preview-state {
    gap: 6px;
    font-size: 10px;
  }
  .preview-state .badge-res {
    display: none;
  }
  .source-switch button {
    padding: 0 8px;
  }
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.34;
}
button,
input {
  outline-offset: 3px;
}
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  border: 1px solid transparent;
  background: transparent;
}
button:hover:not(:disabled) {
  background: #303337;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h4 {
  font-size: 14px;
  font-weight: 600;
}
button svg {
  pointer-events: none;
}
.mono {
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}
.hiddenx {
  display: none !important;
}
.green {
  color: var(--accent);
}
.red,
.danger {
  color: var(--red);
}
.muted {
  color: var(--muted);
}
.header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #24352f;
  color: var(--accent);
  border-radius: 6px;
}
.brand-icon svg {
  width: 23px;
  height: 23px;
}
.brand h1 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}
.brand p {
  max-width: 185px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 600px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  height: 38px;
  padding-left: 12px;
  background: var(--bg);
}
.pill > .lbl {
  font-size: 12px;
  color: var(--muted);
}
.url {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.pill button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
}
.hdr-right {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-shrink: 0;
}
.badge-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.dot,
.dotg {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.dot.active {
  background: var(--accent);
}
.btn-auth {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}
.btn-auth.open {
  color: var(--accent);
}
.wrap {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 320px;
  min-height: calc(100dvh - 110px);
}
.aside,
.queue-dock {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100dvh - 110px);
  position: sticky;
  top: 0;
}
.aside {
  border-right: 1px solid var(--line);
}
.queue-dock {
  border-left: 1px solid var(--line);
}
.dock-head,
.monitor-head {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}
.sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
.sec-title svg {
  color: var(--muted);
}
.count {
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
  background: #2a2c30;
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 26px;
  text-align: center;
}
.searchbox {
  height: 36px;
  margin: 0 16px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
}
.searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.searchbox:focus-within {
  border-color: var(--accent);
}
.liblist {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
  min-height: 140px;
}
.item {
  padding: 12px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #26282c;
  min-width: 0;
  cursor: pointer;
  border-radius: 3px;
}
.item:hover {
  background: var(--raised);
}
.item.current {
  background: #202e29;
}
.thumb,
.np-thumb {
  position: relative;
  display: grid;
  place-items: center;
  background: #2a2c30;
  color: #777d86;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
}
.thumb {
  width: 68px;
  aspect-ratio: 16/10;
}
.thumb img,
.np-thumb img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta {
  flex: 1;
  min-width: 0;
}
.meta h4 {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.acts {
  display: flex;
  gap: 4px;
}
.icobtn,
.tbtn,
.x {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  color: var(--muted);
}
.icobtn:hover,
.tbtn:hover {
  color: var(--text);
}
.item .icobtn {
  width: 28px;
  height: 32px;
  color: var(--accent);
}
.library-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px;
}
.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px dashed #51565b;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  width: 100%;
  padding: 10px;
}
.dropzone:hover,
.dropzone.over {
  background: #22342c;
  border-color: var(--accent);
}
.library-summary {
  color: var(--muted);
  font-size: 11px;
  margin-top: 9px;
  text-align: center;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 230px;
  text-align: center;
  color: var(--muted);
  padding: 24px 16px;
}
.empty svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.3;
  color: #62686f;
  margin-bottom: 6px;
}
.empty strong {
  font-size: 14px;
  font-weight: 500;
  color: #d0d2d5;
}
.empty span {
  font-size: 12px;
}
.content {
  min-width: 0;
  padding: 0 24px 24px;
}
.monitor-head {
  padding: 0;
  height: 60px;
}
.monitor-head .right {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.monitor-head .right > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.stage {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background: #08090a;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.standby-mark {
  /* Also suppress the overlay in templates cached by an already-running server. */
  display: none !important;
}
@media (min-width: 1001px) {
  .stage {
    max-height: max(220px, calc(100dvh - 550px));
  }
}
.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.badge-res,
.badge-live2 {
  font-size: 11px;
  line-height: 24px;
  padding: 0 8px;
  border-radius: 3px;
  background: #17191de6;
  color: #c5c9cf;
}
.badge-live2 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
}
.badge-live2.on-air {
  background: #a82a32;
  color: #fff;
}
.badge-live2.on-slate {
  background: #383126;
  color: #f0d195;
}
.slate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111316;
}
.slate svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
}
.slate .tag {
  font:
    600 16px "Segoe UI",
    Arial,
    sans-serif;
}
.slate h3 {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.monitor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  min-height: 32px;
  gap: 8px;
}
.preview-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}
.preview-tools .icobtn {
  width: 28px;
  height: 28px;
}
.preview-tools input {
  width: 64px;
  height: 4px;
  accent-color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0 17px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.transport,
.secondary-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.transport {
  gap: 8px;
}
.tbtn {
  width: 36px;
  height: 36px;
}
.tbtn.primary {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #10271f;
  border-radius: 50%;
  margin: 0 4px;
}
.tbtn.primary:hover {
  background: #a4ebd5 !important;
  color: #10271f;
}
.tbtn.on,
.tbtn.amber {
  background: #323023;
  color: var(--amber);
}
.control-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 6px;
}
.now-playing {
  padding-top: 22px;
}
.section-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.np-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.np-thumb {
  width: 92px;
  aspect-ratio: 16/10;
}
.np-meta {
  flex: 1;
  min-width: 0;
}
.np-meta h4 {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.np-meta p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.np-meta b {
  font-weight: 400;
  color: var(--text);
}
.timeline {
  margin: 18px 0 20px;
  position: relative;
  height: 14px;
  display: flex;
  align-items: center;
}
.pbar {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #34383b;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.pbar div {
  height: 100%;
  background: var(--accent);
}
.timeline input {
  width: 100%;
  margin: 0;
  height: 14px;
  opacity: 0;
  cursor: pointer;
  position: relative;
}
.timeline:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.timeline:hover input {
  opacity: 1;
  accent-color: var(--accent);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.chip {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.chip > svg {
  width: 16px;
  color: #7c838d;
}
.chip .k {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.chip .v {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-summary {
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.queue-dock .dock-head {
  height: 60px;
  padding-right: 12px;
}
.queue-dock .sec-title {
  gap: 8px;
}
.queuelist {
  list-style: none;
  padding: 4px 8px;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}
.queuelist li {
  display: grid;
  grid-template-columns: 18px 48px minmax(0, 1fr) 30px;
  column-gap: 9px;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid #292b2f;
  position: relative;
}
.queuelist li:first-child {
  border-left: 2px solid var(--accent);
  padding-left: 4px;
}
.queuelist .thumb {
  width: 48px;
  aspect-ratio: 4/3;
}
.qnum {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.queue-meta {
  min-width: 0;
}
.queue-meta h4 {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-meta p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.queue-actions {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.queue-actions .icobtn {
  width: 28px;
  height: 26px;
}
.queue-actions svg {
  width: 15px;
  height: 15px;
}
.grip {
  display: none;
}
.dragging {
  opacity: 0.4;
}
.queue-bottom {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.queue-bottom svg {
  width: 14px;
  height: 14px;
}
.footer {
  height: 38px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.fgroup {
  display: flex;
  gap: 24px;
}
.fitem {
  display: flex;
  align-items: center;
  gap: 7px;
}
.fitem svg {
  width: 13px;
  height: 13px;
}
.fitem .k {
  color: var(--muted);
}
.fitem .dotg {
  background: var(--accent);
  width: 5px;
  height: 5px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #050607c9;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.box {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid #45484d;
  border-radius: 8px;
  box-shadow: 0 20px 80px #0008;
}
.box.wide {
  max-width: 680px;
  max-height: 85dvh;
  overflow-y: auto;
}
.x {
  position: absolute;
  top: 10px;
  right: 10px;
}
.box .icon {
  color: var(--accent);
  margin-bottom: 14px;
}
.box h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 24px 8px 0;
}
.box p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.box input[type="password"] {
  width: 100%;
  border: 1px solid #50545b;
  border-radius: 4px;
  background: var(--bg);
  padding: 10px 12px;
  color: var(--text);
}
.err {
  color: var(--red);
  font-size: 12px;
  min-height: 24px;
  margin-top: 6px;
}
.row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.btn {
  padding: 8px 14px;
  border: 1px solid #45494e;
  border-radius: 4px;
  font-size: 13px;
}
.btn.primary {
  background: var(--accent);
  color: #10271f;
  border-color: var(--accent);
}
.btn.sm {
  padding: 5px 10px;
  font-size: 12px;
}
.slate-default {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 16px;
  cursor: pointer;
}
.sel {
  border-color: var(--accent) !important;
}
.slate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.slate-cell {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.slate-cell .prev {
  aspect-ratio: 16/9;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.slate-cell .prev img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slate-cell .nm {
  padding: 8px 8px 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slate-cell .ty {
  color: var(--muted);
  padding: 2px 8px;
  font-size: 11px;
}
.slate-cell .acts {
  padding: 8px;
}
.toast {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  background: #2b3b33;
  border: 1px solid #4f8269;
  padding: 11px 18px;
  border-radius: 5px;
  box-shadow: 0 5px 24px #0008;
  z-index: 100;
  max-width: calc(100vw - 32px);
  color: var(--text);
  font-size: 13px;
}
.toast.err {
  background: #422327;
  border-color: #aa555b;
}
.footer-note {
  color: #777e88;
}
.queuelist li.empty {
  display: flex;
  border: 0;
  padding: 24px 16px;
}
.queuelist li {
  grid-template-columns: 18px 48px minmax(0, 1fr) 58px;
}
.queue-actions {
  display: grid;
  grid-template-columns: repeat(2, 28px);
}
.icobtn.red,
.icobtn.danger {
  color: var(--red);
}
@media (min-width: 1800px) {
  .wrap {
    grid-template-columns: 320px minmax(0, 1fr) 380px;
  }
  .content {
    padding: 0 36px 28px;
  }
  .queuelist li {
    grid-template-columns: 20px 64px minmax(0, 1fr) 58px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .queuelist .thumb {
    width: 64px;
  }
  .item {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .thumb {
    width: 80px;
  }
  .meta h4,
  .queue-meta h4 {
    font-size: 14px;
  }
}
@media (max-width: 1200px) {
  .wrap {
    grid-template-columns: 244px minmax(0, 1fr) 280px;
  }
  .header {
    gap: 20px;
    padding: 0 16px;
  }
  .content {
    padding: 0 16px 20px;
  }
  .pill > .lbl {
    display: none;
  }
  .hdr-right {
    gap: 12px;
  }
  .brand h1 {
    font-size: 16px;
  }
  .meta p {
    font-size: 10px;
  }
  .thumb {
    width: 54px;
  }
  .item {
    gap: 7px;
  }
  .dock-head {
    padding: 0 16px;
  }
  .monitor-head .right > span {
    max-width: 120px;
  }
  .transport {
    gap: 2px;
  }
  .secondary-controls {
    gap: 1px;
  }
  .control-divider {
    margin: 0 2px;
  }
  .chip > svg {
    display: none;
  }
  .np-meta h4 {
    font-size: 14px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .queue-dock {
    grid-column: 2;
    position: static;
    max-height: none;
    border-top: 1px solid var(--line);
    border-left: 0;
    min-height: 280px;
  }
  .aside {
    grid-row: 1/3;
    max-height: calc(100dvh - 110px);
  }
  .content {
    padding-bottom: 12px;
  }
  .queue-dock .empty {
    min-height: 150px;
  }
  .header .badge-live {
    display: none;
  }
  .brand p {
    display: block;
  }
  .pill {
    max-width: none;
  }
  .queuelist {
    max-height: 420px;
  }
  .footer-note {
    display: none;
  }
  .queue-bottom {
    display: none;
  }
  .queue-dock .dock-head {
    height: 48px;
  }
  .queue-summary {
    padding-bottom: 10px;
  }
  .monitor-head {
    height: 52px;
  }
  .queue-meta h4 {
    font-size: 14px;
  }
  .queuelist li {
    grid-template-columns: 20px 60px minmax(0, 1fr) 72px;
  }
  .queuelist .thumb {
    width: 60px;
  }
  .queue-actions {
    flex-direction: row;
    gap: 4px;
  }
}
@media (max-width: 680px) {
  .header {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  .brand h1 {
    font-size: 17px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .hdr-right {
    order: 1;
  }
  .pill {
    order: 2;
    flex-basis: 100%;
    height: 34px;
  }
  .pill button {
    height: 32px;
  }
  .btn-auth {
    height: 32px;
  }
  .wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .content {
    order: 0;
    padding: 0 14px 12px;
  }
  .queue-dock {
    order: 1;
    border-bottom: 1px solid var(--line);
    min-height: 260px;
  }
  .aside {
    order: 2;
    border-right: 0;
    position: static;
    max-height: none;
    min-height: 340px;
  }
  .liblist {
    max-height: 420px;
    min-height: 160px;
  }
  .library-bottom {
    margin-top: 14px;
  }
  .monitor-head {
    height: 48px;
  }
  .monitor-head .right > span {
    max-width: 155px;
    font-size: 11px;
  }
  .sec-title {
    font-size: 13px;
  }
  .monitor-foot > span {
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .preview-tools input {
    display: none;
  }
  .toolbar {
    padding: 10px 0 14px;
    gap: 6px;
  }
  .transport {
    gap: 0;
  }
  .tbtn {
    width: 32px;
    height: 34px;
  }
  .tbtn.primary {
    width: 40px;
    height: 40px;
    margin: 0 3px;
  }
  .secondary-controls {
    gap: 0;
  }
  .control-divider {
    display: none;
  }
  .now-playing {
    padding-top: 16px;
  }
  .np-thumb {
    width: 72px;
  }
  .np-row {
    gap: 12px;
  }
  .metrics {
    gap: 8px;
  }
  .chip .v {
    font-size: 11px;
  }
  .section-label {
    margin-bottom: 10px;
  }
  .footer {
    height: auto;
    min-height: 44px;
    padding: 10px 16px;
  }
  .fgroup {
    gap: 8px 20px;
    flex-wrap: wrap;
  }
  .fitem {
    gap: 5px;
    font-size: 10px;
  }
  .slate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .box {
    padding: 24px;
  }
  .queue-dock .dock-head {
    padding-left: 20px;
  }
  .queuelist {
    padding: 0 14px;
  }
  .meta h4 {
    font-size: 14px;
  }
  .meta p {
    font-size: 11px;
  }
  .thumb {
    width: 68px;
  }
  .badge-res,
  .badge-live2 {
    font-size: 10px;
    line-height: 21px;
  }
  .badges {
    top: 8px;
    left: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .item {
    transition:
      background 0.15s,
      color 0.15s;
  }
  .toast {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      bottom: 48px;
    }
    to {
      opacity: 1;
      bottom: 56px;
    }
  }
}
