/* BandServer app-specific layout.
   Shared shell/button/table styles live in rsc/shared-ui.css; this file focuses
   on catalog rows, the audio player, stem/status panels, and notes. */

.song-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.rescan-form-bottom {
  display: none;
}

.mobile-home-action-box {
  /* Same actions as the desktop header stack, but placed above Notes on phones. */
  display: none;
}

.home-intro {
  min-width: 0;
}

.home-action-stack {
  /* Desktop: keep Rescan at the top and pin upload buttons lower beside blerb. */
  display: grid;
  align-self: stretch;
  grid-template-rows: auto 1fr;
  width: 172px;
  gap: 8px;
  justify-items: stretch;
}

.home-action-stack button,
.home-upload-actions button {
  width: 100%;
}

.home-upload-actions {
  /* The upload pair sits as a little vertical group under Rescan. */
  display: grid;
  align-self: end;
  gap: 8px;
}

.upload-button {
  background: #d49a22;
  color: #1f2526;
}

.upload-button:hover {
  background: #b77f13;
  color: #ffffff;
}

.guide-box {
  margin-top: 10px;
  margin-bottom: 0;
  padding: 2px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.guide-box p {
  width: 100%;
  color: #3b3b3b;
  line-height: 1.55;
  white-space: pre-line;
}

.mini-player,
.player-panel {
  /* Home player sticks to the bottom of the working pane; song detail player is
     reset to static positioning below. */
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 -4px 18px rgba(31, 37, 38, 0.08);
}

.home-mix-player {
  position: sticky;
  top: 0;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  z-index: 8;
  padding: 7px 10px;
  margin-top: 0;
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(31, 37, 38, 0.12);
}

.home-mix-player > div:first-child {
  min-width: 0;
}

.home-mix-player > div:first-child strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-mix-player .player-visual {
  grid-template-columns: 40px minmax(0, 1fr);
}

.home-mix-player .waveform-canvas {
  height: 38px;
}

.home-mix-player .player-toggle {
  min-width: 40px;
}

.player-panel {
  position: sticky;
  top: 0;
  grid-template-columns: 1fr;
  z-index: 8;
  margin-top: 0;
  margin-bottom: 8px;
  box-shadow: 0 8px 18px rgba(31, 37, 38, 0.12);
}

.now-playing-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.lyrics-toggle {
  flex: 0 0 auto;
}

.lyrics-panel {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.lyrics-panel[hidden] {
  display: none;
}

.lyrics-scroll {
  max-height: 30vh;
  overflow-y: auto;
}

.lyrics-panel-actions {
  display: flex;
  justify-content: flex-end;
}

.lyrics-panel pre {
  margin: 0;
  white-space: pre-wrap;
  text-align: center;
  font: inherit;
  line-height: 1.55;
}

.lyrics-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 31, 38, 0.68);
}

.lyrics-dialog[hidden] {
  display: none;
}

.lyrics-dialog-card {
  width: min(70vw, 980px);
  max-width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfbf7;
  box-shadow: 0 20px 50px rgba(31, 37, 38, 0.28);
}

.lyrics-dialog-card form {
  display: grid;
  gap: 12px;
}

.lyrics-dialog-card textarea {
  width: 100%;
  min-height: 65vh;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  line-height: 1.5;
}

.now-playing p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.now-playing h1 {
  margin: 0;
  overflow-wrap: anywhere;
}

.mini-player span,
.player-panel p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mix-notes-grid,
.stems-status-grid {
  /* Desktop-first two-column working panels. Mobile collapses at the bottom. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}

.stems-panel,
.status-panel,
.mix-panel,
.notes-shortcut-panel {
  max-width: 100%;
}

.stems-panel h2,
.status-panel h2,
.mix-panel h2,
.notes-shortcut-panel h2 {
  height: 28px;
  margin: 0;
  display: flex;
  align-items: center;
}

.notes-shortcut-panel,
.mix-panel {
  display: grid;
  grid-template-rows: 28px minmax(44px, 1fr);
  gap: 8px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title-row h2 {
  height: auto;
}

.shortcut-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.shortcut-actions .button-link {
  width: 100%;
}

.status-panel {
  display: grid;
  grid-template-rows: 28px auto;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
}

.status-table th,
.status-table td {
  height: 44px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.status-table th {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 0;
  visibility: hidden;
}

.status-table td:last-child,
.status-table th:last-child {
  width: 74px;
  text-align: center;
}

.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-form {
  display: inline-block;
  margin: 0;
}

.status-square {
  /* Status color itself carries the state, so dimensions stay fixed. */
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 2px solid #1b1b1b;
  border-radius: 3px;
}

.status-square:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status-black {
  background: #050505;
}

.status-black:hover {
  background: #000000;
}

.status-red {
  background: #c83535;
}

.status-red:hover {
  background: #8f2020;
}

.status-orange {
  background: #df8b1f;
}

.status-orange:hover {
  background: #a76513;
}

.status-green {
  background: #24833f;
}

.status-green:hover {
  background: #185d2d;
}

.mix-panel .track-row {
  border-top: 0;
  min-height: 44px;
  padding: 0;
}

.track-row {
  /* Shared row shape for mix/stem entries: play, file label, download. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.track-row strong {
  overflow-wrap: anywhere;
}

.track-part,
.track-file {
  display: block;
}

.track-part {
  font-size: 14px;
  line-height: 1.15;
}

.track-file {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button {
  width: 36px;
  min-width: 36px;
  min-height: 30px;
  padding: 5px;
}

.missing-button {
  background: #9a9a9a;
  color: #ffffff;
  cursor: default;
}

.track-row.is-missing {
  color: var(--muted);
}

.track-row.is-missing .track-part {
  font-weight: 700;
}

.play-placeholder {
  width: 36px;
  flex: 0 0 36px;
}

audio {
  display: none;
}

.player-visual {
  /* Player controls: toggle, waveform canvas, current-track download button. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.player-toggle {
  min-width: 46px;
  align-self: stretch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.control-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}

.control-icon-play {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.control-icon-pause::before,
.control-icon-pause::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 14px;
  background: currentColor;
  border-radius: 1px;
}

.control-icon-pause::before {
  left: 2px;
}

.control-icon-pause::after {
  right: 2px;
}

.player-download {
  align-self: stretch;
}

.button-link.is-disabled {
  background: #9a9a9a;
  cursor: not-allowed;
  pointer-events: auto;
}

.button-link.is-disabled:hover {
  background: #7f7f7f;
}

.waveform-canvas {
  /* Canvas pixels are sized by app.js to match this CSS box. */
  display: block;
  width: 100%;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f3eb;
  cursor: pointer;
}

.note-marker-tooltip {
  position: fixed;
  z-index: 80;
  max-width: 280px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(31, 37, 38, 0.94);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(31, 37, 38, 0.24);
}

.checklist,
.note-form {
  display: grid;
  gap: 8px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.note {
  padding: 10px;
}

.notes-panel {
  position: relative;
}

.general-notes-panel {
  margin-top: 10px;
}

.general-note-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.general-notes-table th:first-child,
.general-notes-table td:first-child {
  width: 120px;
}

.general-notes-table th:nth-child(2),
.general-notes-table td:nth-child(2) {
  width: 92px;
}

.general-notes-table th:nth-child(3),
.general-notes-table td:nth-child(3) {
  width: auto;
}

.general-notes-table th:last-child,
.general-notes-table td:last-child {
  width: 42px;
  text-align: right;
}

.notes-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.notes-title-row h2,
.notes-title-row p {
  margin-top: 0;
}

.notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.notes-table th,
.notes-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.notes-table th {
  color: var(--muted);
  font-size: 12px;
}

.notes-table th:first-child,
.notes-table td:first-child {
  width: 92px;
}

.notes-table th:nth-child(2),
.notes-table td:nth-child(2) {
  width: 92px;
}

.notes-table th:nth-child(4),
.notes-table td:nth-child(4) {
  width: 220px;
}

.notes-table th:last-child,
.notes-table td:last-child {
  width: 36px;
  text-align: right;
}

.is-timestamped-note {
  cursor: pointer;
}

.is-timestamped-note:hover {
  background: #f7f3eb;
}

.is-timestamped-note td:nth-child(5) {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

.notes-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.notes-actions form {
  margin: 0;
}

.upload-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-actions-inline {
  margin-bottom: 10px;
}

.note-delete-form {
  margin: 0;
}

.note-delete-button {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  background: var(--danger);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.note-delete-button:hover {
  background: #7f2222;
}

.note-dialog,
.upload-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 37, 38, 0.42);
}

.note-dialog[hidden],
.upload-dialog[hidden],
.member-dialog[hidden] {
  display: none;
}

.note-dialog-card,
.upload-dialog-card,
.member-dialog-card {
  width: min(520px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(31, 37, 38, 0.28);
}

.upload-dialog-card {
  width: min(720px, 100%);
}

.upload-list-card {
  width: min(900px, 100%);
}

.upload-form {
  display: grid;
  gap: 12px;
}

.upload-drop-zone {
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--text);
  cursor: pointer;
}

.upload-drop-zone.is-dragging {
  border-color: #d49a22;
  background: #fff1c8;
}

.upload-drop-zone input {
  width: auto;
  margin-top: 8px;
}

.upload-selected {
  min-height: 34px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.upload-selected-list {
  max-height: 150px;
  overflow-y: auto;
}

.upload-dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.upload-status {
  min-height: 20px;
  color: var(--muted);
  font-weight: 700;
}

.upload-list {
  max-height: min(62vh, 620px);
  overflow: auto;
}

.upload-empty-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.upload-table td:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.upload-table form {
  margin: 0;
}

.member-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 37, 38, 0.42);
}

.member-form {
  display: grid;
  gap: 12px;
}

.members-table td:last-child,
.members-table th:last-child {
  width: 130px;
  text-align: right;
}

.member-delete-form {
  display: inline-flex;
  margin: 0;
}

.download-action {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.download-action span {
  color: var(--muted);
  font-size: 12px;
}

.song-downloads-panel .actions {
  align-items: flex-start;
  justify-content: flex-start;
}

.song-upload-actions {
  /* On song pages the upload pair is one right-aligned unit in the downloads row. */
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.song-upload-action {
  display: grid;
  justify-items: stretch;
}

.song-upload-action button {
  min-width: 172px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.logout-form {
  margin: 0;
}

.logout-form button,
[data-cancel-lyrics-editor] {
  background: var(--download);
}

.logout-form button:hover,
[data-cancel-lyrics-editor]:hover {
  background: var(--download-dark);
}

.user-badge {
  max-width: 140px;
  overflow: hidden;
  color: #d6ddde;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-page {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
}

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  justify-items: center;
  width: 100%;
  padding: 28px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left));
  background: #f5f2ec;
}

.login-card {
  width: min(460px, calc(100vw - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(31, 37, 38, 0.16);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.login-brand .server-name {
  min-width: 0;
  color: var(--text);
  font-size: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.login-form button {
  width: 100%;
}

@media (max-width: 820px) {
  .site-header .header-actions {
    display: none;
  }
}

@media (max-width: 760px) {
  /* Phone layout keeps the desktop identity but switches to thumb-sized rows. */
  .pane-header {
    gap: 10px;
  }

  .pane-header .home-action-stack {
    /* Phone layout moves these controls into .mobile-home-action-box. */
    display: none;
  }

  .mobile-home-action-box {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .mobile-home-action-box button {
    width: 100%;
  }

  .home-action-stack,
  .home-upload-actions,
  .pane-header .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-action-stack {
    grid-template-rows: none;
  }

  .download-action {
    align-items: stretch;
    justify-items: stretch;
  }

  .song-downloads-panel .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .song-upload-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .song-upload-action {
    margin-left: 0;
  }

  .song-upload-action button {
    width: 100%;
    min-width: 0;
  }

  .download-action span {
    text-align: left;
  }

  .song-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .song-card-main {
    align-items: flex-start;
  }

  .song-card p {
    display: grid;
    gap: 2px;
  }

  .song-card > .button-link {
    width: auto;
    min-width: 72px;
  }

  .mini-player {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .home-mix-player {
    gap: 6px;
    margin-bottom: 8px;
  }

  .home-mix-player > div:first-child span {
    display: none;
  }

  .player-panel {
    position: sticky;
    top: 0;
    z-index: 8;
    gap: 6px;
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 8px 18px rgba(31, 37, 38, 0.12);
  }

  .now-playing-header {
    align-items: center;
    gap: 8px;
  }

  .now-playing p {
    font-size: 11px;
  }

  .now-playing h1 {
    font-size: 15px;
    line-height: 1.15;
  }

  .lyrics-toggle {
    min-height: 38px;
    padding: 7px 10px;
  }

  .note-meta,
  .mix-notes-grid,
  .stems-status-grid,
  .player-panel {
    grid-template-columns: 1fr;
  }

  .mix-notes-grid,
  .stems-status-grid {
    gap: 8px;
  }

  .stems-panel h2,
  .status-panel h2,
  .mix-panel h2,
  .notes-shortcut-panel h2 {
    height: auto;
  }

  .notes-shortcut-panel,
  .mix-panel,
  .status-panel {
    grid-template-rows: none;
  }

  .shortcut-actions {
    grid-template-columns: 1fr;
  }

  .track-row {
    grid-template-columns: minmax(44px, auto) minmax(0, 1fr) minmax(86px, auto);
    gap: 8px;
    min-height: 54px;
    padding: 6px 0;
  }

  .icon-button,
  .play-placeholder {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .missing-button {
    width: auto;
    padding: 7px 8px;
    font-size: 12px;
  }

  .track-file {
    white-space: normal;
  }

  .player-visual {
    grid-template-columns: 44px minmax(0, 1fr) minmax(76px, auto);
    gap: 7px;
  }

  .mini-player .player-visual {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .player-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .player-download {
    min-height: 44px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .waveform-canvas {
    height: 42px;
  }

  .status-table td {
    height: 48px;
  }

  .status-square {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .notes-title-row,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .notes-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .notes-actions button {
    width: 100%;
  }

  .notes-table,
  .notes-table thead,
  .notes-table tbody,
  .notes-table tr,
  .notes-table th,
  .notes-table td {
    display: block;
  }

  .notes-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .notes-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .notes-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    width: 100% !important;
    padding: 3px 0;
    border-bottom: 0;
    text-align: left !important;
  }

  .notes-table td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .notes-table td:nth-child(1)::before {
    content: "Who";
  }

  .notes-table td:nth-child(2)::before {
    content: "Date";
  }

  .notes-table td:nth-child(3)::before {
    content: "Note";
  }

  .notes-table td:nth-child(4)::before {
    content: "Track";
  }

  .notes-table td:nth-child(5)::before {
    content: "Time";
  }

  .notes-table td:nth-child(6) {
    display: flex;
    justify-content: flex-end;
  }

  .general-notes-table td:nth-child(1)::before {
    content: "Who";
  }

  .general-notes-table td:nth-child(2)::before {
    content: "Date";
  }

  .general-notes-table td:nth-child(3)::before {
    content: "Note";
  }

  .general-notes-table td:nth-child(4) {
    display: flex;
    justify-content: flex-end;
  }

  .general-notes-table td:nth-child(4)::before {
    content: "";
  }

  .note-delete-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .note-dialog,
  .upload-dialog,
  .lyrics-dialog,
  .member-dialog {
    align-items: end;
    padding: 10px;
  }

  .note-dialog-card,
  .upload-dialog-card,
  .lyrics-dialog-card,
  .member-dialog-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .lyrics-dialog-card textarea {
    min-height: 48vh;
  }
}

@media (max-width: 380px) {
  .server-name {
    font-size: 24px;
  }

  .brand-logo {
    width: 64px;
  }

  .footer-actions {
    gap: 6px;
  }

  .home-link,
  .button-link,
  button {
    padding-right: 8px;
    padding-left: 8px;
  }

  .track-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .track-row .download-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .login-shell {
    padding: 18px 12px;
  }

  .login-card {
    width: min(100%, calc(100vw - 24px));
    padding: 16px;
  }

  .login-brand .server-name {
    font-size: 26px;
  }
}
