/* The workspace between the header and the player is one scroll surface. */
:root {
  --stack-header-height: calc(78px + env(safe-area-inset-top, 0px));
  --player-height: 106px;
  --stack-margin: max(clamp(20px, 3.5vw, 58px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}
.topbar {
  height: var(--stack-header-height);
  padding: env(safe-area-inset-top, 0px) var(--stack-margin) 0;
  gap: 14px;
  justify-content: flex-start;
}
.topbar h1 {
  margin: 0;
  font: 500 clamp(21px, 2.1vw, 30px)/1.15 Manrope, var(--font);
  letter-spacing: -.055em;
}
.topbar .logo-button { flex: 0 0 auto; }
.workspace {
  height: calc(100dvh - var(--stack-header-height) - var(--player-height));
  min-height: 0;
  max-width: none;
  perspective: none;
}
.stack-stage {
  inset: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: none;
  user-select: none;
}
.stack-stage::-webkit-scrollbar { display: none; }
.stack-stage:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.stack {
  position: relative;
  width: 100%;
  left: auto;
  height: auto;
  perspective: none;
  isolation: isolate;
}
.stack-row {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.stack-row .album-card, .stack-row .album-label {
  position: absolute;
  pointer-events: auto;
  margin: 0;
}
.stack-row .album-card {
  transform-origin: center;
  transition: none;
  will-change: auto;
  -webkit-user-drag: none;
  box-shadow: 0 1px 0 #b8b7a88a, 1px 3px 0 #171815, 0 9px 14px -8px #000d;
}
.stack-row .album-card img { object-fit: cover; -webkit-touch-callout: none; }
.stack-row .album-label {
  display: block;
  border-radius: 3px;
  min-height: 44px;
  padding: 2px 0;
  background: transparent;
  text-align: left;
  line-height: 1.25;
}
.album-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Manrope, var(--font);
  font-size: clamp(16px, 1.2vw, 18px);
  color: #d0d3c9;
  font-weight: 500;
  letter-spacing: -.04em;
}
.focused .album-title { color: var(--text); }
.stack-row:not(.focused) .album-title, .stack-row:not(.focused) .album-credit { -webkit-line-clamp: 1; }
.stack-row:not(.focused) .album-label { max-height: var(--label-rest-height); }
.stack-row:not(.focused) .album-title { line-height: 1.1; }
.stack-row:not(.focused) .album-credit { line-height: 1.2; }
.album-credit {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(12px, 1vw, 14px);
  margin-top: 3px;
  color: #a1a89a;
}
.album-year { color: #939a8b; white-space: nowrap; }
.stack-tools {
  position: absolute;
  z-index: 5;
  top: 0;
  right: var(--stack-margin);
  display: flex;
  gap: 3px;
}
.stack-tools[hidden] { display: none; }
.stack-tools button { width: 36px; height: 36px; }
.stack-tools svg { width: 17px; height: 17px; }
.workspace .popover, .workspace .searchbar {
  top: 43px;
  right: var(--stack-margin);
}
.edit-list { inset: 0 var(--stack-margin) 0; padding: 45px 0 28px; }
.assistant-launch { right: var(--stack-margin); bottom: calc(var(--player-height) + 17px); }
@media (max-width: 700px) {
  :root { --stack-header-height: calc(66px + env(safe-area-inset-top, 0px)); --player-height: 93px; }
  .topbar { gap: 11px; }
  .album-title { font-size: 16px; }
  .album-credit { line-height: 1.35; }
  .stack-tools button { width: 44px; height: 44px; }
}
