/* Private library tools: explicit controls, compact rows, no card effects. */
.library-preferences-open {
  overflow: hidden;
}

.rec-play-next {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 6px;
  border: 1px solid #afbed369;
  border-radius: 5px;
  background: #111827e8;
  color: #edf2fc;
  box-shadow: 0 1px 4px #0006;
  cursor: pointer;
  transform: none;
}

.rec-play-next[hidden],
.rec-rating[hidden],
.library-ratings-update[hidden],
.library-ratings-update [hidden],
[data-library-feature][hidden],
.library-preferences-dialog [hidden],
.library-preferences-notice[hidden] {
  display: none !important;
}

/* Small floating controls never add a row or change the card's height. */
.rec-media {
  position: relative;
  container: rating-art / inline-size;
}

.rec-rating {
  position: absolute;
  top: 10px;
  left: 44px;
  max-width: calc(100% - 82px);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
  color: #e2eaf5;
  cursor: default;
  font-family: "Roboto", "Segoe UI", sans-serif;
}

.rec-rating .rec-rating-step {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid #afbed369;
  border-radius: 5px;
  background: #111827e8;
  color: inherit;
  box-shadow: 0 1px 4px #0006;
  font: 500 17px/1 "Roboto", "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
  transform: none;
  cursor: pointer;
}

.rec-rating-value {
  display: block;
  min-width: 0;
  margin-left: 2px;
  padding: 4px 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #111827e8;
  color: #e2eaf5;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}

.rec-rating-value[hidden] { display: none; }
.rec-rating[data-rating-tone="positive"] .rec-rating-value { color: #b0e2cb; }
.rec-rating[data-rating-tone="negative"] .rec-rating-value { color: #efb7ae; }
.rec-rating.has-error .rec-rating-step { border-color: #d58d7f; }

.rec-rating button:hover:not(:disabled) {
  border-color: #a4e0d7;
  background: #223d43f5;
  transform: none;
}

.rec-rating :focus-visible {
  outline: 2px solid #a6ddd0;
  outline-offset: -2px;
}

.rec-rating :disabled { cursor: default; opacity: .45; }

/* Keep desktop cards quiet; touch devices retain directly accessible controls. */
@media (hover: hover) and (pointer: fine) {
  .rec-rating,
  .rec-dismiss-zone,
  .rec-play-next,
  .rec-card .rec-play-next:disabled {
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease-out;
  }

  .rec-card:hover .rec-rating,
  .rec-rating:has(:focus-visible),
  .rec-card:hover .rec-dismiss-zone,
  .rec-dismiss-zone:has(:focus-visible),
  .rec-card:hover .rec-play-next,
  .rec-card .rec-play-next:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transition-duration: 100ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec-rating,
  .rec-card:hover .rec-rating,
  .rec-rating:has(:focus-visible),
  .rec-dismiss-zone,
  .rec-card:hover .rec-dismiss-zone,
  .rec-dismiss-zone:has(:focus-visible),
  .rec-play-next,
  .rec-card .rec-play-next:disabled,
  .rec-card:hover .rec-play-next,
  .rec-card .rec-play-next:focus-visible { transition: none; }
}

.library-ratings-update {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 100050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: min(430px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #708e8a;
  border-radius: 8px;
  background: #162832fa;
  color: #e1f1ef;
  box-shadow: 0 5px 24px #0007;
  font-family: "Roboto", "Segoe UI", sans-serif;
}

.library-ratings-update-status {
  flex: 1 1 100%;
  margin: 0;
  color: inherit;
  font-size: .87rem;
  line-height: 1.4;
}

.library-ratings-update button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #779f9a;
  border-radius: 5px;
  background: #315350;
  color: #edf9f5;
  font: 600 .88rem "Roboto", "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.library-ratings-update button:hover:not(:disabled) { background: #426964; transform: none; }
.library-ratings-update button:disabled { opacity: .55; cursor: default; }
.library-ratings-update button:focus-visible { outline: 2px solid #b4e2d9; outline-offset: 3px; }
.library-ratings-update.is-error { border-color: #d58d7f; }
.library-ratings-update .library-ratings-retry { background: #423632; border-color: #ae8678; }
.library-preferences-open .library-ratings-update { visibility: hidden; }
body:has(.library-ratings-update:not([hidden])) .library-preferences-notice { bottom: 158px; }

@media (max-width: 600px), (pointer: coarse) {
  .rec-rating { top: 8px; }
  .rec-rating .rec-rating-step { flex-basis: 30px; width: 30px; height: 30px; min-height: 30px; }
  .library-ratings-update { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .library-ratings-update button { min-height: 44px; }
}

@media (pointer: coarse) {
  .rec-rating { left: 50px; max-width: calc(100% - 88px); }
}

/* Narrow cards already have space below the art beside the score rail. */
@container rating-art (max-width: 240px) {
  .rec-rating {
    top: auto;
    bottom: 5px;
    left: 6px;
    max-width: calc(100% - 12px);
  }

  @media (max-width: 980px) {
    .rec-rating { left: 44px; max-width: calc(100% - 50px); }

    .rec-media:has(.rec-backlog-potential-badge) .rec-rating { bottom: 0; }
    .rec-media:has(.rec-rating:not([hidden])) .rec-backlog-potential-badge { bottom: 9px; }
    .rec-media:has(.rec-backlog-potential-badge) .rec-rating-step {
      flex-basis: 24px;
      width: 24px;
      height: 24px;
      min-height: 24px;
    }
  }
}

.rec-play-next svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.rec-play-next:hover,
.rec-play-next:focus-visible,
.rec-play-next.is-saved {
  border-color: #a4e0d7;
  background: #223d43f5;
  color: #b8eee1;
  transform: none;
}

.rec-play-next.is-saved svg {
  fill: currentColor;
}

.rec-play-next:disabled {
  cursor: wait;
  opacity: .65;
}

.library-preferences-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100100;
  max-width: min(430px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid #567b79;
  border-radius: 7px;
  background: #182c33f5;
  color: #d7f4ec;
  font-size: .94rem;
  line-height: 1.45;
  box-shadow: 0 5px 24px #0007;
  pointer-events: none;
}

.library-preferences-notice.is-error {
  border-color: #a57067;
  background: #37282bf5;
  color: #ffd6ce;
}

.library-preferences-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  height: min(740px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line, #3e485f);
  border-radius: 12px;
  background: #171f30;
  color: var(--ink, #f1edff);
  box-shadow: 0 24px 80px #03070dc9;
  overflow: hidden;
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.library-preferences-dialog[open] {
  display: flex;
  flex-direction: column;
}

.library-preferences-dialog::backdrop {
  background: #050913bc;
}

.library-preferences-dialog button,
.library-preferences-dialog input,
.library-preferences-dialog select {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}

.library-preferences-dialog button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #46536a;
  border-radius: 6px;
  background: #242f43;
  color: var(--ink, #f1edff);
  cursor: pointer;
  transform: none;
}

.library-preferences-dialog button:hover:not(:disabled) {
  border-color: #7aa5b0;
  background: #2d3b50;
  transform: none;
}

.library-preferences-dialog button:disabled,
.library-preferences-dialog select:disabled {
  cursor: wait;
  opacity: .65;
}

.library-preferences-dialog :focus-visible {
  outline: 2px solid var(--accent, #73ebea);
  outline-offset: 3px;
}

.library-preferences-header {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px 16px;
}

.library-preferences-header h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.library-preferences-private {
  margin: 6px 0 0;
  font-size: .88rem;
  color: var(--muted, #b9c1d2);
}

.library-preferences-dialog .library-preferences-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  border-color: transparent;
  background: transparent;
}

.library-preferences-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid #354157;
}

.library-preferences-dialog .library-preferences-tabs button {
  position: relative;
  padding: 10px 2px 13px;
  border: 0;
  border-radius: 0;
  color: var(--muted, #b9c1d2);
  background: transparent;
  font-weight: 700;
}

.library-preferences-dialog .library-preferences-tabs button[aria-selected="true"] {
  color: #b0e2db;
}

.library-preferences-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 2px 2px 0 0;
  background: #8fcfc6;
}

.library-preferences-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.library-preferences-intro {
  flex: 0 0 auto;
  padding: 16px 22px 8px;
}

.library-preferences-description {
  white-space: pre-line;
  margin: 0 0 14px;
  color: #d3d9e6;
  line-height: 1.5;
  font-size: .95rem;
}

.library-preferences-toolbar {
  display: flex;
  gap: 10px;
}

.library-preferences-dialog .library-preferences-search {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #46536a;
  border-radius: 6px;
  background: #111a29;
  color: var(--ink, #f1edff);
}

.library-preferences-search::placeholder {
  color: #a3adbf;
  opacity: 1;
}

.library-preferences-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  margin-top: 10px;
  color: #adb8ca;
  font-size: .82rem;
  line-height: 1.4;
}

.library-preferences-hint {
  margin: 0;
}

.library-preferences-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 22px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #536b7c transparent;
}

.library-preferences-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-preferences-dialog .library-preferences-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: transparent;
}

.library-preferences-game {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  min-height: 78px;
  padding: 12px 0;
  border-bottom: 1px solid #303d50;
}

.library-preferences-game:last-child {
  border-bottom: 0;
}

.library-preferences-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #41506a;
  border-radius: 4px;
  background: #253146;
  color: #9baec2;
  font-size: 1.1rem;
  font-weight: 700;
}

.library-preferences-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-preferences-game-copy {
  min-width: 0;
}

.library-preferences-game-title {
  display: block;
  color: #e8eef9;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.library-preferences-game-title:hover {
  color: #b0e2db;
  text-decoration: underline;
}

.library-preferences-game-meta {
  display: block;
  margin-top: 4px;
  color: #aebacc;
  font-size: .86rem;
  line-height: 1.3;
}

.library-preferences-dialog .library-preferences-select {
  width: 280px;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 24px 8px 10px;
  border: 1px solid #46536a;
  border-radius: 6px;
  background-color: #222e40;
  color: #e3eaf5;
  font-size: .9rem;
  cursor: pointer;
}

.library-preferences-select option {
  background: #222e40;
  color: #e3eaf5;
}

.library-preferences-dialog .library-preferences-remove {
  padding: 7px 10px;
  background: transparent;
  font-size: .88rem;
}

.library-preferences-item-error {
  grid-column: 2 / -1;
  margin: 0;
  color: #ffb5ab;
  font-size: .86rem;
  line-height: 1.4;
}

.library-preferences-empty {
  display: block;
  max-width: 470px;
  margin: 30px auto;
  padding: 16px 0;
  color: #d3dce9;
  line-height: 1.55;
  text-align: center;
}

.library-preferences-empty strong {
  font-size: 1.08rem;
}

.library-preferences-empty p {
  margin: 8px 0 0;
  color: #adb8ca;
  font-size: .95rem;
}

.library-preferences-footer {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 22px;
  border-top: 1px solid #354157;
  background: #151d2c;
}

.library-preferences-save-status,
.library-preferences-apply-status {
  margin: 0;
  font-size: .87rem;
  line-height: 1.45;
  color: #b0e2db;
  overflow-wrap: anywhere;
}

.library-preferences-save-status.is-error {
  color: #ffb5ab;
}

.library-preferences-apply-status {
  color: #b4c0d2;
}

.library-preferences-save-status:not(:empty) + .library-preferences-apply-status:not(:empty) {
  margin-top: 3px;
}

@media (max-width: 600px) {
  .library-preferences-dialog {
    width: calc(100vw - 16px);
    height: min(820px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 10px;
  }

  .library-preferences-header {
    padding: 16px 14px 12px;
  }

  .library-preferences-tabs {
    padding: 0 14px;
  }

  .library-preferences-intro {
    padding: 12px 14px 8px;
  }

  .library-preferences-scroll {
    padding: 0 14px 12px;
  }

  .library-preferences-game {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px 0;
  }

  .library-preferences-art {
    width: 76px;
    height: 38px;
  }

  .library-preferences-game:has(.library-preferences-select) {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .library-preferences-dialog .library-preferences-select {
    grid-column: 1 / -1;
    width: 100%;
    font-size: .94rem;
  }

  .library-preferences-dialog .library-preferences-remove {
    padding: 7px;
    font-size: .84rem;
  }

  .library-preferences-game-title {
    font-size: .97rem;
  }

  .library-preferences-footer {
    padding: 10px 14px;
  }
}

.library-preferences-dialog.is-taste {
  width: 94vw;
  height: 94dvh;
  max-height: calc(100dvh - 24px);
}

.is-taste .library-preferences-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr));
  column-gap: 32px;
  align-items: start;
}

.is-taste .library-preferences-empty {
  grid-column: 1 / -1;
}

@media (min-width: 601px) {
  .is-taste .library-preferences-game {
    /* Keep ratings beside the game instead of stretching the title column. */
    grid-template-columns: 94px minmax(0, 260px) auto;
    justify-content: start;
  }
}

.library-preferences-reset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.library-preferences-corrections {
  color: #aebacc;
  font-size: .85rem;
}

.library-preferences-influence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-preferences-dialog .library-preferences-apply {
  background: #315350;
  border-color: #779f9a;
  color: #edf9f5;
  font-weight: 700;
}

@media (max-width: 600px) {
  .library-preferences-influence-actions {
    width: 100%;
  }

  .library-preferences-influence-actions button {
    flex: 1 1 100%;
  }
}

.library-preferences-dialog.library-preferences-reset-dialog {
  width: min(460px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow-y: auto;
}

/* Play next is a roomy, sortable queue; the ratings tab keeps its compact list. */
.library-preferences-dialog.is-play-next {
  width: min(1440px, calc(100vw - 40px));
  height: 92dvh;
  max-height: calc(100dvh - 24px);
  font-size: 17px;
}
.is-play-next .library-preferences-header { padding: 24px 28px 18px; }
.is-play-next .library-preferences-header h2 { font-size: 30px; }
.is-play-next .library-preferences-private { font-size: 15px; }
.is-play-next .library-preferences-tabs { padding-inline: 28px; }
.is-play-next .library-preferences-intro { padding: 20px 28px 14px; }
.is-play-next .library-preferences-description { font-size: 16px; }
.is-play-next .library-preferences-subline { font-size: 14px; gap: 8px 18px; }
.is-play-next .library-preferences-scroll { padding: 0 28px 20px; }
.is-play-next .library-preferences-list { display: grid; gap: 12px; }
.is-play-next .library-preferences-game {
  grid-template-columns: 44px clamp(190px, 20vw, 280px) minmax(0, 1fr) minmax(235px, 290px);
  grid-template-areas: "grip art copy controls";
  gap: 18px;
  min-height: 140px;
  padding: 16px;
  border: 1px solid var(--line, #41506a);
  border-radius: 10px;
  background: var(--panel-strong, #1d293b);
  cursor: grab;
}
.is-play-next .library-preferences-game.is-top-choice {
  border-left: 4px solid var(--accent, #8fcfc6);
  background: color-mix(in srgb, var(--accent, #8fcfc6) 7%, var(--panel-strong, #1d293b));
}
.is-play-next .library-preferences-art {
  grid-area: art;
  width: 100%;
  height: auto;
  aspect-ratio: 231 / 87;
  font-size: 32px;
}
.is-play-next .library-preferences-art img { object-fit: contain; }
.is-play-next .library-preferences-game-copy { grid-area: copy; }
.is-play-next .library-preferences-game-title { font-size: 22px; line-height: 1.3; }
.is-play-next .library-preferences-game-meta { margin-top: 8px; font-size: 15px; }
.library-preferences-dialog.is-play-next .library-play-controls {
  grid-area: controls;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.library-preferences-dialog.is-play-next :is(.library-play-controls button, .library-play-status) {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 15px;
}
.library-preferences-dialog.is-play-next .library-play-status { grid-column: 1 / -1; width: 100%; max-width: none; }
.library-preferences-dialog.is-play-next :is(.library-preferences-search, .library-preferences-refresh, .library-preferences-close) { min-height: 46px; }
.library-preferences-dialog.is-play-next .library-preferences-close { width: 46px; flex-basis: 46px; }
.is-play-next .library-preferences-footer { padding: 16px 28px; }
.is-play-next .library-preferences-save-status { font-size: 15px; }
.library-preferences-dialog .library-play-drag {
  grid-area: grip;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 2px;
  border-color: transparent;
  background: transparent;
  color: var(--muted, #b9c1d2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.library-play-position { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.library-play-grip { font-size: 28px; line-height: 1; }
.is-play-next .library-preferences-game.is-play-drag-source { opacity: .25; outline: 2px dashed var(--accent, #8fcfc6); outline-offset: -2px; }
.library-preferences-dialog.is-play-dragging,
.library-preferences-dialog.is-play-dragging * { cursor: grabbing !important; user-select: none; }
.library-preferences-dialog.is-play-dragging .library-preferences-scroll { overflow-anchor: none; }
.library-preferences-dialog .library-play-drag-ghost {
  position: fixed;
  z-index: 30;
  box-sizing: border-box;
  margin: 0;
  pointer-events: none;
  border-color: var(--accent, #8fcfc6);
  box-shadow: 0 18px 45px #0009, 0 0 0 2px color-mix(in srgb, var(--accent, #8fcfc6) 25%, transparent);
  opacity: .96;
  will-change: transform;
}
@media (max-width: 1100px) {
  .is-play-next .library-preferences-game {
    grid-template-columns: 40px minmax(170px, .8fr) minmax(0, 1fr);
    grid-template-areas: "grip art copy" "grip controls controls";
    gap: 12px 16px;
  }
  .library-preferences-dialog.is-play-next .library-play-controls { grid-template-columns: 1fr 1fr 1fr; }
  .library-preferences-dialog.is-play-next .library-play-status { grid-column: auto; }
}
@media (max-width: 600px) {
  .library-preferences-dialog.is-play-next { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .is-play-next .library-preferences-header { padding: 16px 14px 10px; }
  .is-play-next .library-preferences-header h2 { font-size: 25px; }
  .is-play-next .library-preferences-tabs { padding-inline: 14px; gap: 14px; }
  .is-play-next .library-preferences-intro { padding: 12px 14px; }
  .is-play-next .library-preferences-description { font-size: 14px; }
  .is-play-next .library-preferences-scroll { padding: 0 14px 14px; }
  .is-play-next .library-preferences-game {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas: "grip art" "grip copy" "grip controls";
    gap: 10px;
    padding: 12px;
  }
  .is-play-next .library-preferences-game-title { font-size: 19px; }
  .is-play-next .library-preferences-game-meta { font-size: 14px; margin-top: 5px; }
  .library-preferences-dialog.is-play-next .library-play-controls { grid-template-columns: 1fr 1fr; }
  .library-preferences-dialog.is-play-next .library-play-status { grid-column: 1 / -1; }
  .library-preferences-dialog.is-play-next .library-play-controls button { padding-inline: 6px; font-size: 14px; }
  .is-play-next .library-preferences-footer { padding: 12px 14px; }
  .is-play-next .library-play-sort-hint { font-size: 12px; }
}

.library-preferences-reset-dialog h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1.4;
}

.library-preferences-reset-dialog p {
  margin: 12px 0 22px;
  color: #c5cede;
  line-height: 1.5;
}

.library-preferences-reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.library-preferences-reset-actions button {
  min-width: 80px;
  min-height: 40px;
}

.library-preferences-dialog .library-preferences-reset-yes {
  border-color: #779f9a;
  background: #315350;
}

@media (pointer: coarse) {
  .rec-play-next {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
}

@media (min-width: 981px) {
  html[data-header-style="clean"] .top-layout .view-navigation:has(.library-nav-button:not(.hidden)) {
    flex-shrink: 1;
    flex-wrap: wrap;
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .view-navigation .library-nav-button span {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
  }
}
