:root {
  color-scheme: dark;
  --bg: #292b30;
  --panel: #222429;
  --deep: #191b20;
  --text: #f2f3f5;
  --muted: #b2b7c2;
  --accent: #8a93ff;
  --line: #41444e;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
  background: #383b44;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 14px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:hover:not(:disabled) {
  background: #454957;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b5bdff;
  outline-offset: 3px;
}
input,
select {
  background: var(--deep);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 8px 12px;
  min-width: 0;
}
a {
  color: #c0c6ff;
}
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.shared-app {
  max-width: 1700px;
  margin: auto;
  padding: 24px 32px 110px;
}
.shared-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.shared-heading h1 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 450;
  margin: 2px 0;
}
.shared-wordmark {
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.shared-wordmark > span {
  color: #a6aeff;
}
.shared-account {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shared-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #626cbe;
  border-radius: 8px;
  background: #343b68;
  color: #f0f1ff;
  text-decoration: none;
  font-size: 13px;
}
.shared-account button {
  font-size: 12px;
  background: transparent;
}
.shared-connection {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.shared-connection > [data-connection] {
  flex: 1;
  overflow-wrap: anywhere;
}
.shared-connection > [data-connection][data-ready="true"] {
  color: #97dfba;
}
.shared-connection button {
  background: transparent;
  font-size: 12px;
  padding: 8px;
}
.shared-layout {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 30px;
}
.shared-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0;
}
.shared-nav button {
  text-align: left;
  background: transparent;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}
.shared-nav button[aria-pressed="true"] {
  background: #3c4058;
  color: #e0e3ff;
}
.shared-nav button small {
  margin-left: auto;
}
.shared-nav p {
  font-size: 11px;
  color: #a4aab6;
  margin: 24px 14px 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.shared-nav > small {
  font-size: 11px;
  color: #9fa5b0;
  padding: 24px 14px;
}
.shared-library {
  min-width: 0;
}
.shared-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.shared-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  background: var(--deep);
  border-radius: 8px;
  padding: 0 12px;
}
.shared-search > span {
  font-size: 25px;
  color: var(--muted);
}
.shared-search input {
  border: 0;
  width: 100%;
  background: none;
}
.shared-tools select {
  max-width: 160px;
}
.shared-tools .primary {
  background: #5c67db;
  color: white;
  white-space: nowrap;
}
.shared-mobile-filters {
  display: none;
}
.shared-pads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.shared-pad {
  position: relative;
  min-width: 0;
  border-radius: 12px;
  background: #33363d;
  border: 1px solid transparent;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 230px;
}
.shared-pad:hover {
  border-color: #616b9b;
  background: #393d49;
}
.shared-pad.is-playing {
  border-color: #9ba6ff;
  background: #3d425c;
}
.shared-play {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  text-align: left;
  background: transparent;
  width: 100%;
  padding: 10px;
  min-height: 225px;
  gap: 4px;
  touch-action: manipulation;
}
.shared-play:hover:not(:disabled) {
  background: transparent;
}
.shared-art {
  height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #262933;
  margin-bottom: 8px;
  color: #aeb6ff;
  font-size: 42px;
}
.shared-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shared-play strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.shared-play small {
  font-size: 11px;
  color: #afb6c4;
}
.shared-play-label {
  font-size: 11px;
  color: #b5bfff;
  margin-top: auto;
  padding-top: 8px;
}
.shared-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #191b23e8;
  color: #c8cfe5;
  font-size: 25px;
  z-index: 1;
}
.shared-favorite[aria-pressed="true"] {
  color: #ffd486;
}
.shared-empty {
  padding: 65px 15px;
  text-align: center;
  color: var(--muted);
}
.shared-stopbar {
  position: fixed;
  z-index: 20;
  left: 32px;
  right: 104px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  background: #1b1d24f5;
  border: 1px solid #4b4e5c;
  border-radius: 12px;
  box-shadow: 0 8px 30px #0004;
}
.shared-stopbar > span {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.shared-stop {
  background: #97404f;
  color: #fff;
  min-height: 48px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  white-space: nowrap;
}
.shared-stop:hover:not(:disabled) {
  background: #ac4b5d;
}
.remote-page .shared-stopbar {
  right: 32px;
}
.install-help {
  margin: 35px 0 0 214px;
  font-size: 12px;
  color: var(--muted);
  max-width: 600px;
}
.install-help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.install-help p {
  margin: 8px 0 16px;
  line-height: 1.7;
}
.install-help a {
  display: inline-block;
  padding: 12px;
}
.update-note {
  font-size: 12px;
  margin: 14px 0;
}
.shared-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.shared-rows .shared-pad {
  display: flex;
  align-items: center;
  min-height: 84px;
  contain-intrinsic-size: auto 84px;
}
.shared-rows .shared-play {
  flex: 1;
  min-height: 80px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 10px;
  align-items: center;
}
.shared-rows .shared-art {
  grid-row: 1/3;
  height: 60px;
  margin: 0;
}
.shared-rows .shared-play-label {
  display: none;
}
.shared-rows .shared-favorite {
  position: static;
  flex-shrink: 0;
  margin: 6px;
}
.shared-row-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 8px;
}
.shared-row-actions button {
  font-size: 12px;
}
.shared-details {
  background: #252831;
  color: var(--text);
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 1px solid #535969;
  border-radius: 12px;
  padding: 24px;
}
.shared-details::backdrop {
  background: #101116bd;
}
.shared-details .dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.shared-details h2 {
  margin: 0;
  font-size: 18px;
}
.shared-details form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.shared-details input,
.shared-details select {
  width: 100%;
}
.shared-details .shared-check {
  flex-direction: row;
  align-items: center;
}
.shared-check input {
  width: 24px;
  min-height: 24px;
}
.shared-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.shared-detail-actions .primary {
  background: #5c67db;
}
.shared-detail-actions .danger {
  background: #74323e;
  margin: 0;
}
.shared-details [role="status"] {
  color: #e5b5ae;
}
.shared-details input[type="file"] {
  max-width: 100%;
  font-size: 12px;
}
@media (max-width: 760px) {
  .shared-app {
    padding: 18px 16px 142px;
  }
  .shared-heading {
    gap: 10px;
  }
  .shared-wordmark {
    font-size: 23px;
  }
  .shared-heading h1 {
    font-size: 12px;
  }
  .shared-account .shared-login {
    padding: 8px;
    font-size: 12px;
  }
  .shared-connection {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .shared-layout {
    display: block;
  }
  .shared-nav {
    display: none;
  }
  .shared-tools {
    gap: 7px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .shared-tools .shared-search {
    flex: 1;
    min-width: 130px;
  }
  .shared-tools select {
    max-width: 125px;
    font-size: 12px;
    padding: 8px;
  }
  .shared-tools .primary {
    font-size: 12px;
  }
  .shared-mobile-filters {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
  }
  .shared-mobile-filters button {
    background: #22252d;
    font-size: 12px;
  }
  .shared-mobile-filters button[aria-pressed="true"] {
    background: #444d7a;
  }
  .shared-pads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shared-play {
    min-height: 217px;
  }
  .shared-art {
    height: 115px;
  }
  .shared-stopbar,
  .remote-page .shared-stopbar {
    left: 12px;
    right: 82px;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .remote-page .shared-stopbar {
    right: 12px;
  }
  .shared-stopbar > span {
    font-size: 10px;
    line-height: 1.35;
  }
  .shared-stop {
    font-size: 13px;
    min-height: 48px;
  }
  .install-help {
    margin: 20px 0 0;
  }
  .shared-row-actions {
    flex-wrap: wrap;
    padding: 4px;
    max-width: 110px;
  }
  .shared-row-actions button {
    padding: 8px;
  }
  .shared-rows .shared-play {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 5px;
    min-width: 0;
  }
  .shared-rows .shared-art {
    height: 44px;
  }
  .shared-rows .shared-play strong {
    font-size: 12px;
  }
  .shared-rows .shared-play small {
    font-size: 9px;
  }
  .shared-rows .shared-favorite {
    margin: 0;
    width: 44px;
    font-size: 22px;
  }
  .shared-rows .shared-row-actions {
    max-width: 90px;
  }
  .shared-rows .shared-row-actions button:first-child {
    width: 100%;
  }
  .shared-details {
    padding: 18px;
  }
  .shared-details form > label {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.shared-wordmark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #a6aeff;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.shared-art > span {
  font-family: "DejaVu Sans", sans-serif;
}
