:root {
  --wine: #641f20;
  --wine-dark: #4f1718;
  --rose: #9a6a67;
  --copper: #b56f47;
  --paper: #f8f1e6;
  --paper-solid: #fbf6ed;
  --parchment: #eadcc5;
  --ink: #502d2b;
  --muted: #7e6660;
  --line: rgba(100, 31, 32, 0.14);
  --shadow: 0 18px 55px rgba(75, 31, 22, 0.17);
  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-script: "Caveat", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(248, 241, 230, 0.82), rgba(248, 241, 230, 0.9)),
    url("./assets/parchment-page-background.jpg") center top / 880px auto repeat;
  color: var(--ink);
  font-family: var(--font-body);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.76), transparent 34rem),
    linear-gradient(90deg, rgba(118, 69, 35, 0.07), transparent 18%, transparent 82%, rgba(118, 69, 35, 0.07));
  content: "";
  pointer-events: none;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(100, 31, 32, 0.68);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

[data-member-only] {
  display: none !important;
}

body[data-auth-state="member"] [data-public-only] {
  display: none !important;
}

body[data-auth-state="member"] [data-member-only] {
  display: flex !important;
}

.hero-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.desktop-chrome {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: 5.15rem;
  pointer-events: none;
}

.chrome-piece {
  pointer-events: auto;
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.desktop-header {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 18rem);
  min-height: 3.25rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 0.27rem;
  background: rgba(251, 246, 237, 0.88);
  box-shadow: 0 12px 35px rgba(73, 28, 22, 0.1);
  backdrop-filter: blur(18px) saturate(1.1);
  transform: translateX(-50%);
}

.desktop-primary-nav {
  display: flex;
  align-items: stretch;
  gap: 0.1rem;
}

.desktop-nav-item {
  position: relative;
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  border: 0;
  border-radius: 0.95rem;
  padding: 0.58rem clamp(0.7rem, 1.15vw, 1.05rem);
  background: transparent;
  color: #704846;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.desktop-nav-item:hover {
  background: rgba(100, 31, 32, 0.07);
  color: var(--wine);
}

.desktop-nav-item:active {
  transform: scale(0.98);
}

.desktop-nav-item.is-current {
  background: var(--wine);
  box-shadow: 0 8px 20px rgba(100, 31, 32, 0.17);
  color: var(--paper-solid);
}

.desktop-nav-item.has-status {
  gap: 0.4rem;
}

.desktop-nav-item small {
  border-radius: 999px;
  padding: 0.18rem 0.3rem 0.16rem;
  background: rgba(181, 111, 71, 0.12);
  color: var(--copper);
  font-family: var(--font-body);
  font-size: 0.43rem;
  letter-spacing: 0.08em;
}

.desktop-nav-item.is-current small {
  background: rgba(255, 255, 255, 0.12);
  color: #f2c39f;
}

.nav-chevron .hero-icon {
  width: 0.72rem;
  height: 0.72rem;
  transition: transform 180ms ease;
}

.listening-trigger[aria-expanded="true"] .nav-chevron .hero-icon {
  transform: rotate(180deg);
}

.desktop-menu-button,
.desktop-icon-button,
.desktop-profile-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(251, 246, 237, 0.88);
  color: var(--wine);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(73, 28, 22, 0.09);
  backdrop-filter: blur(18px);
}

.desktop-menu-button {
  position: absolute;
  top: 1.15rem;
  left: clamp(1rem, 2.4vw, 2.5rem);
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.88rem;
}

.desktop-menu-button .hero-icon,
.desktop-icon-button .hero-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.desktop-account {
  position: absolute;
  top: 0.95rem;
  right: clamp(1rem, 2.4vw, 2.5rem);
}

.public-account-actions {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.desktop-icon-button {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.9rem;
}

.desktop-join-button {
  min-height: 2.65rem;
  border: 0;
  border-radius: 0.95rem;
  padding: 0.68rem 1.12rem;
  background: var(--wine);
  color: var(--paper-solid);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(100, 31, 32, 0.18);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-profile-button {
  width: 2.72rem;
  height: 2.72rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #b97655, var(--wine));
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.chrome-hidden .desktop-header {
  opacity: 0;
  transform: translate(-50%, -5.8rem);
  pointer-events: none;
}

body.chrome-hidden .desktop-menu-button,
body.chrome-hidden .desktop-account {
  opacity: 0;
  transform: translateY(-5.8rem);
  pointer-events: none;
}

.desktop-listening-popover,
.profile-popover {
  position: fixed;
  z-index: 100;
  border: 1px solid var(--line);
  background: rgba(251, 246, 237, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform-origin: top center;
  animation: popover-in 160ms ease-out;
}

@keyframes popover-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem) scale(0.98);
  }
}

.desktop-listening-popover {
  width: 20rem;
  border-radius: 1.25rem;
  padding: 0.52rem;
}

.desktop-listening-popover > p {
  margin: 0;
  padding: 0.42rem 0.62rem 0.5rem;
  color: var(--rose);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-listening-popover > button {
  display: grid;
  width: 100%;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.72rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.desktop-listening-popover > button:hover,
.desktop-listening-popover > button.is-current {
  background: rgba(100, 31, 32, 0.075);
}

.desktop-listening-popover .popover-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.72rem;
  background: rgba(100, 31, 32, 0.07);
  color: var(--wine);
}

.desktop-listening-popover strong,
.desktop-listening-popover small {
  display: block;
}

.desktop-listening-popover strong {
  font-family: var(--font-heading);
  font-size: 0.78rem;
}

.desktop-listening-popover small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.desktop-listening-popover em,
.sheet-primary-links em,
.listening-sheet-options em {
  border-radius: 999px;
  padding: 0.22rem 0.4rem;
  background: rgba(181, 111, 71, 0.11);
  color: var(--copper);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-popover {
  width: 13.5rem;
  border-radius: 1rem;
  padding: 0.6rem;
}

.profile-popover p {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 0.45rem;
  padding: 0.45rem;
}

.profile-popover p span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: white;
  font-size: 0.58rem;
}

.profile-popover p strong {
  font-family: var(--font-heading);
  font-size: 0.72rem;
}

.profile-popover button {
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.65rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.72rem;
  text-align: left;
}

.profile-popover button:hover {
  background: rgba(100, 31, 32, 0.07);
}

main {
  overflow: hidden;
}

.experiment-hero {
  display: grid;
  min-height: 88vh;
  place-content: center;
  justify-items: center;
  padding: 8rem clamp(1.25rem, 6vw, 6rem) 5rem;
  text-align: center;
}

.experiment-badge {
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  background: rgba(251, 246, 237, 0.74);
  color: var(--rose);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.script-note {
  margin: 0 0 0.2rem;
  color: var(--copper);
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-label {
  margin: 0;
  color: var(--rose);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--font-heading);
}

h1 {
  max-width: 13ch;
  margin: 1rem auto;
  color: var(--wine);
  font-size: clamp(3.2rem, 7.4vw, 7.6rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 42rem;
  margin: 0.6rem auto 2rem;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.experiment-controls {
  display: grid;
  min-width: min(100%, 28rem);
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem 1.2rem;
  background: rgba(251, 246, 237, 0.72);
  text-align: left;
}

.preview-control-group {
  display: grid;
  gap: 0.42rem;
}

.preview-control-group > label,
.preview-control-group > span {
  color: var(--rose);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-preview-buttons {
  display: flex;
  gap: 0.35rem;
  border-radius: 0.8rem;
  padding: 0.23rem;
  background: rgba(100, 31, 32, 0.06);
}

.auth-preview-buttons button {
  flex: 1;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.48rem 0.72rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
}

.auth-preview-buttons button.is-active {
  background: var(--paper-solid);
  color: var(--wine);
  box-shadow: 0 5px 14px rgba(80, 34, 27, 0.1);
}

.experiment-controls select {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  padding: 0.58rem 2.2rem 0.58rem 0.7rem;
  background: rgba(251, 246, 237, 0.9);
  color: var(--wine);
  cursor: pointer;
  font: 600 0.72rem/1.2 var(--font-body);
}

.experiment-controls select:focus-visible {
  outline: 3px solid rgba(100, 31, 32, 0.68);
  outline-offset: 3px;
}

.experiment-controls small {
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

.demo-section,
.demo-story,
.demo-quote {
  width: min(100% - 2.5rem, 76rem);
  margin: 0 auto 7rem;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.demo-story h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--wine);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.demo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.demo-card-grid article {
  display: grid;
  min-height: 18rem;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 1.35rem;
  background:
    linear-gradient(160deg, rgba(255, 250, 242, 0.88), rgba(230, 212, 184, 0.6)),
    url("./assets/parchment-page-background.jpg") center / cover;
  box-shadow: 0 18px 45px rgba(83, 45, 28, 0.08);
}

.demo-card-grid article > span {
  color: var(--copper);
  font-family: var(--font-heading);
  font-size: 0.7rem;
}

.demo-card-grid p,
.demo-card-grid h3,
.demo-card-grid small {
  margin: 0;
}

.demo-card-grid p {
  margin-bottom: 0.55rem;
  color: var(--rose);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.demo-card-grid h3 {
  color: var(--wine);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.demo-card-grid small {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.demo-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
  padding-block: 7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-story h2 {
  margin-top: 0.7rem;
}

.demo-story > div:last-child {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.demo-story > div:last-child p {
  margin: 0 0 1.2rem;
}

.demo-quote {
  display: grid;
  min-height: 34rem;
  place-content: center;
  justify-items: center;
  border-radius: 2.5rem;
  padding: clamp(2rem, 7vw, 7rem);
  background: var(--wine);
  color: var(--paper);
  text-align: center;
}

.demo-quote blockquote {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.24;
}

.demo-quote p {
  margin: 1.5rem 0 0;
  color: #dca77e;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.final-demo-section {
  min-height: 45rem;
}

.final-demo-section > p {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.8;
}

.mobile-dock {
  display: none;
}

.navigation-layer {
  position: fixed;
  z-index: 200;
  inset: 0;
}

.navigation-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(51, 22, 20, 0.38);
  cursor: default;
  backdrop-filter: blur(3px);
  animation: backdrop-in 180ms ease-out;
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

.navigation-panel {
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  width: min(25rem, calc(100vw - 1.4rem));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 1.25rem;
  background: rgba(251, 246, 237, 0.98);
  box-shadow: var(--shadow);
  outline: 0;
  animation: drawer-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes drawer-in {
  from {
    transform: translateX(-105%);
  }
}

.sheet-grabber {
  display: none;
}

.navigation-panel-header {
  display: flex;
  min-height: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.navigation-panel-header h2,
.listening-sheet-heading h2 {
  margin: 0.3rem 0 0;
  color: var(--wine);
  font-size: 1.65rem;
}

.navigation-panel-header > button {
  display: flex;
  min-width: 2.65rem;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 0.7rem;
}

.sheet-primary-links {
  display: grid;
  gap: 0.28rem;
}

.sheet-primary-links > button,
.listening-sheet-options > button {
  display: grid;
  width: 100%;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  border: 0;
  border-radius: 1rem;
  padding: 0.8rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.sheet-primary-links > button:hover,
.sheet-primary-links > button.is-current,
.listening-sheet-options > button:hover,
.listening-sheet-options > button.is-current {
  background: rgba(100, 31, 32, 0.07);
}

.sheet-primary-links > button > [data-icon]:first-child,
.listening-sheet-options > button > [data-icon]:first-child {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(100, 31, 32, 0.07);
  color: var(--wine);
}

.sheet-primary-links strong,
.sheet-primary-links small,
.listening-sheet-options strong,
.listening-sheet-options small {
  display: block;
}

.sheet-primary-links strong,
.listening-sheet-options strong {
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.sheet-primary-links small,
.listening-sheet-options small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.sheet-row-chevron .hero-icon,
.listening-sheet-options > button > [data-icon]:last-child .hero-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.sheet-secondary-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.sheet-secondary-links button,
.member-sheet-section button {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.7rem;
  background: rgba(100, 31, 32, 0.045);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  text-align: left;
}

.member-sheet-section {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.member-sheet-section .section-label {
  margin-bottom: 0.35rem;
}

.member-sheet-section button {
  display: flex;
  justify-content: space-between;
}

.sheet-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.sheet-account-actions button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}

.sheet-account-actions button:nth-child(2) {
  border-color: var(--wine);
  background: var(--wine);
  color: white;
}

.listening-sheet-heading {
  padding: 1.2rem 0.4rem 1rem;
}

.listening-sheet-heading h2 {
  margin-top: 0.55rem;
  font-size: 2rem;
}

.listening-sheet-heading > p:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.listening-sheet-options {
  display: grid;
  gap: 0.4rem;
}

.sheet-back-button {
  border: 0 !important;
}

.sheet-back-button[hidden] + button {
  margin-left: auto;
}

.experiment-toast {
  position: fixed;
  z-index: 300;
  bottom: 1.25rem;
  left: 50%;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--wine-dark);
  color: white;
  box-shadow: var(--shadow);
  font-size: 0.7rem;
  transform: translateX(-50%);
  animation: toast-in 180ms ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 0.5rem);
  }
}

body.navigation-open {
  overflow: hidden;
}

@media (max-width: 1120px) and (min-width: 1025px) {
  .desktop-nav-item {
    padding-inline: 0.65rem;
    font-size: 0.61rem;
  }

  .desktop-header {
    max-width: calc(100vw - 14rem);
  }

  .desktop-join-button {
    padding-inline: 0.8rem;
  }
}

@media (max-width: 1024px) {
  body {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }

  .desktop-chrome,
  .desktop-listening-popover,
  .profile-popover {
    display: none !important;
  }

  .experiment-hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .demo-card-grid {
    grid-template-columns: 1fr;
  }

  .demo-card-grid article {
    min-height: 13rem;
  }

  .demo-story {
    grid-template-columns: 1fr;
    padding-block: 4rem;
  }

  .mobile-dock {
    position: fixed;
    z-index: 230;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 4.8rem;
    border: 1px solid var(--line);
    border-radius: 1.45rem;
    padding: 0.32rem;
    background: rgba(251, 246, 237, 0.93);
    box-shadow: 0 16px 45px rgba(63, 25, 20, 0.18);
    backdrop-filter: blur(22px) saturate(1.1);
    transition:
      border-radius 180ms ease,
      box-shadow 180ms ease;
  }

  body[data-auth-state="member"] .mobile-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-dock > button {
    display: flex;
    min-width: 0;
    min-height: 4.1rem;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 1rem;
    padding: 0.35rem 0.12rem;
    background: transparent;
    color: var(--rose);
    cursor: pointer;
  }

  .mobile-dock > button:hover,
  .mobile-dock > button.is-current {
    background: rgba(100, 31, 32, 0.075);
    color: var(--wine);
  }

  .mobile-dock .dock-join {
    color: var(--wine);
  }

  .mobile-dock .hero-icon {
    width: 1.28rem;
    height: 1.28rem;
  }

  .mobile-dock small {
    display: grid;
    min-height: 1.12rem;
    place-items: center;
    font-size: 0.57rem;
    font-weight: 700;
    line-height: 0.98;
    text-align: center;
    white-space: normal;
  }

  body.navigation-open .mobile-dock {
    border-top-color: transparent;
    box-shadow: 0 9px 26px rgba(63, 25, 20, 0.12);
  }

  body.navigation-open .dock-menu {
    background: rgba(100, 31, 32, 0.08);
    color: var(--wine);
  }

  .navigation-panel {
    top: auto;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    width: auto;
    max-height: min(78vh, 43rem);
    border-radius: 1.8rem;
    padding: 0.75rem 1rem 6rem;
    animation: sheet-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  @keyframes sheet-in {
    from {
      transform: translateY(105%);
    }
  }

  .sheet-grabber {
    display: block;
    width: 2.8rem;
    height: 0.25rem;
    margin: 0.1rem auto 0.9rem;
    border-radius: 999px;
    background: rgba(100, 31, 32, 0.18);
  }

  .navigation-backdrop {
    padding: 0;
  }

  .navigation-panel-header {
    margin-bottom: 0.45rem;
  }

  .sheet-primary-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .sheet-primary-links > button {
    grid-template-columns: 2rem minmax(0, 1fr);
    min-height: 4.5rem;
    padding: 0.65rem;
  }

  .sheet-primary-links > button > :last-child:not(span:nth-child(2)) {
    display: none;
  }

  .sheet-primary-links > button > [data-icon]:first-child {
    width: 2rem;
    height: 2rem;
  }

  .sheet-primary-links strong {
    font-size: 0.72rem;
  }

  .sheet-primary-links small {
    font-size: 0.59rem;
  }

  .listening-sheet-options > button {
    min-height: 4.8rem;
  }

  .listening-sheet-options em {
    display: inline-flex;
    width: max-content;
    margin-top: 0.35rem;
  }

  .experiment-toast {
    bottom: calc(6.4rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .experiment-hero {
    padding-inline: 1.1rem;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 4.5rem);
  }

  .demo-section,
  .demo-story,
  .demo-quote {
    width: min(100% - 1.4rem, 76rem);
  }

  .demo-quote {
    min-height: 27rem;
    border-radius: 1.8rem;
  }

  .mobile-dock {
    right: 0.4rem;
    bottom: calc(0.4rem + env(safe-area-inset-bottom));
    left: 0.4rem;
    border-radius: 1.25rem;
  }

  .mobile-dock small {
    font-size: 0.5rem;
    letter-spacing: -0.015em;
  }

  .mobile-dock .hero-icon {
    width: 1.18rem;
    height: 1.18rem;
  }

  .navigation-panel {
    right: 0.4rem;
    bottom: calc(0.4rem + env(safe-area-inset-bottom));
    left: 0.4rem;
    max-height: 86vh;
    padding-inline: 0.75rem;
  }

  .sheet-primary-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sheet-primary-links > button {
    grid-template-columns: 2.15rem minmax(0, 1fr) auto;
    min-height: 4rem;
  }

  .sheet-primary-links > button > :last-child:not(span:nth-child(2)) {
    display: grid;
  }

  .sheet-secondary-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listening-sheet-heading {
    padding-top: 0.5rem;
  }
}

@media (max-width: 365px) {
  .mobile-dock small {
    font-size: 0.46rem;
  }

  .mobile-dock > button {
    padding-inline: 0;
  }
}

/* Refined master navigation experiment */
.desktop-header,
.desktop-menu-button,
.desktop-icon-button,
.desktop-notification-button,
.desktop-profile-button,
.desktop-join-button,
.desktop-listening-popover,
.profile-popover,
.notification-popover,
.navigation-panel,
.mobile-dock {
  corner-shape: squircle;
}

.desktop-header {
  border-radius: 1.35rem;
}

.desktop-primary-nav {
  position: relative;
  isolation: isolate;
}

.desktop-primary-nav::before {
  position: absolute;
  z-index: -1;
  top: var(--desktop-indicator-top, 0);
  left: var(--desktop-indicator-left, 0);
  width: var(--desktop-indicator-width, 0);
  height: var(--desktop-indicator-height, 100%);
  border-radius: 0.95rem;
  background: var(--wine);
  box-shadow: 0 8px 20px rgba(100, 31, 32, 0.17);
  content: "";
  opacity: var(--desktop-indicator-opacity, 0);
  transition:
    left 360ms cubic-bezier(0.22, 1, 0.36, 1),
    width 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
  corner-shape: squircle;
}

.desktop-nav-item {
  z-index: 1;
  padding-inline: clamp(0.9rem, 1.45vw, 1.35rem);
  font-size: 0.65rem;
}

.desktop-nav-item.is-current,
.desktop-nav-item.is-current:hover {
  background: transparent;
  box-shadow: none;
  color: var(--paper-solid);
}

.coming-soon-info,
.menu-soon-info {
  display: inline-grid;
  width: 0.9rem;
  height: 0.9rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--copper);
  font: 700 0.52rem/1 var(--font-body);
  letter-spacing: 0;
  text-transform: lowercase;
}

.desktop-nav-item.is-current .coming-soon-info {
  color: #f3c08d;
}

.coming-soon-tooltip {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.9rem);
  left: 50%;
  width: max-content;
  border: 1px solid rgba(100, 31, 32, 0.12);
  border-radius: 0.7rem;
  padding: 0.48rem 0.62rem;
  background: #d7a04f;
  color: var(--wine-dark);
  box-shadow: 0 9px 24px rgba(80, 34, 27, 0.15);
  font: 700 0.57rem/1 var(--font-body);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translate(-50%, -0.3rem);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  corner-shape: squircle;
}

.coming-soon-tooltip::before {
  position: absolute;
  top: -0.3rem;
  left: calc(50% - 0.3rem);
  width: 0.6rem;
  height: 0.6rem;
  background: #d7a04f;
  content: "";
  transform: rotate(45deg);
}

.desktop-nav-item.has-status:hover .coming-soon-tooltip,
.desktop-nav-item.has-status:focus-visible .coming-soon-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.desktop-menu-button,
.desktop-icon-button,
.desktop-notification-button,
.desktop-profile-button {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0.92rem;
  background: rgba(251, 246, 237, 0.9);
  color: var(--wine);
  box-shadow: 0 12px 32px rgba(73, 28, 22, 0.09);
  backdrop-filter: blur(18px);
}

.desktop-menu-button {
  top: 0.95rem;
}

.desktop-menu-button:hover,
.desktop-icon-button:hover,
.desktop-notification-button:hover,
.desktop-profile-button:hover {
  background: var(--paper-solid);
  transform: translateY(-1px);
}

.desktop-menu-button .hero-icon,
.desktop-icon-button .hero-icon,
.desktop-notification-button .hero-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.desktop-join-button {
  border-radius: 0.98rem;
  padding-inline: 1.45rem;
}

.member-account-actions {
  position: relative;
  align-items: center;
  gap: 0.45rem;
}

.desktop-notification-button,
.desktop-profile-button {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.desktop-notification-button[data-count]:not([data-count="0"])::after {
  position: absolute;
  top: 0.35rem;
  right: 0.32rem;
  display: grid;
  min-width: 0.88rem;
  height: 0.88rem;
  place-items: center;
  border: 2px solid var(--paper-solid);
  border-radius: 999px;
  background: var(--copper);
  color: white;
  content: attr(data-count);
  font: 700 0.43rem/1 var(--font-body);
}

.desktop-profile-button {
  background: linear-gradient(145deg, #b97655, var(--wine));
  color: white;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.desktop-profile-button [data-profile-button-initials] {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  transform: translateY(0.03rem);
}

.notification-popover,
.profile-popover {
  position: fixed;
  z-index: 110;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(251, 246, 237, 0.985);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: popover-in 160ms ease-out;
}

.notification-popover {
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.75rem;
}

.notification-popover > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.3rem 0.7rem;
}

.notification-popover h2,
.profile-popover h2,
.mobile-account-card h2 {
  margin: 0.25rem 0 0;
  color: var(--wine);
  font-size: 0.92rem;
}

.notification-popover > header > button,
.notification-sheet-clear {
  border: 0;
  padding: 0.3rem;
  background: transparent;
  color: var(--copper);
  cursor: pointer;
  font-size: 0.6rem;
  font-weight: 700;
}

.notification-list {
  display: grid;
  gap: 0.35rem;
}

.notification-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  border-radius: 0.85rem;
  padding: 0.65rem;
  background: rgba(100, 31, 32, 0.045);
}

.notification-item > span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.72rem;
  background: rgba(181, 111, 71, 0.12);
  color: var(--wine);
}

.notification-item strong,
.notification-item small {
  display: block;
}

.notification-item strong {
  font-family: var(--font-heading);
  font-size: 0.67rem;
}

.notification-item small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.4;
}

.notification-empty {
  margin: 0;
  padding: 1.4rem 0.7rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.profile-popover {
  width: 18rem;
  padding: 0.8rem;
}

.account-profile {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0.25rem 0.8rem;
}

.account-avatar {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #b97655, var(--wine));
  color: white;
  font: 700 0.7rem/1 var(--font-heading);
  corner-shape: squircle;
}

.account-profile p {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.61rem;
}

.account-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
}

.account-detail span {
  color: var(--muted);
}

.account-detail strong {
  color: var(--wine);
  text-align: right;
}

.manage-membership-button,
.account-logout-button {
  width: 100%;
  min-height: 2.55rem;
  border-radius: 0.78rem;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  corner-shape: squircle;
}

.profile-popover .manage-membership-button,
.mobile-account-card .manage-membership-button {
  margin-top: 0.75rem;
  border: 0;
  background: var(--wine);
  color: white;
}

.profile-popover .account-logout-button,
.mobile-account-card .account-logout-button {
  border: 0;
  background: transparent;
  color: var(--copper);
}

.master-public-menu,
.master-member-menu {
  min-height: calc(100% - 4rem);
}

body[data-auth-state="member"] .master-member-menu {
  display: grid !important;
  gap: 0.65rem;
}

.master-menu-brand {
  display: grid;
  gap: 0.8rem;
  padding: 0.55rem 0.35rem 1.25rem;
}

.master-menu-brand strong {
  color: var(--wine);
  font: 700 1.55rem/1.14 var(--font-heading);
}

.master-menu-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.master-public-links {
  display: grid;
  gap: 0.3rem;
}

.master-public-links button,
.master-public-actions button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  background: rgba(100, 31, 32, 0.045);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.72rem;
  text-align: left;
  corner-shape: squircle;
}

.master-public-actions {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.master-public-actions button:first-child {
  background: var(--wine);
  color: white;
  text-align: center;
}

.master-public-actions button:last-child {
  background: transparent;
  color: var(--copper);
  text-align: center;
}

.master-member-welcome {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) 2.35rem;
  gap: 0.65rem;
  align-items: center;
  padding: 0.25rem 0.25rem 0.55rem;
}

.master-member-avatar {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #b97655, var(--wine));
  color: white;
  font: 700 0.65rem/1 var(--font-heading);
  corner-shape: squircle;
}

.master-member-welcome p {
  margin: 0;
  color: var(--muted);
  font-size: 0.61rem;
}

.master-member-welcome strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--wine);
  font-family: var(--font-heading);
  font-size: 0.76rem;
}

.master-menu-notification {
  position: relative;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  corner-shape: squircle;
}

.master-notification-count {
  position: absolute;
  top: -0.18rem;
  right: -0.18rem;
  display: grid;
  min-width: 0.95rem;
  height: 0.95rem;
  place-items: center;
  border: 2px solid var(--paper-solid);
  border-radius: 999px;
  background: var(--copper);
  color: white;
  font-size: 0.44rem;
  font-weight: 700;
}

.master-continue-button {
  display: flex;
  min-height: 2.75rem;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(181, 111, 71, 0.22);
  border-radius: 0.9rem;
  padding: 0.65rem 0.8rem;
  background: rgba(181, 111, 71, 0.09);
  color: var(--wine);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  corner-shape: squircle;
}

.master-member-nav {
  display: grid;
  gap: 0.2rem;
}

.master-member-nav > button,
.master-community-menu > summary,
.master-community-menu button,
.master-profile-link {
  display: grid;
  width: 100%;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.58rem 0.65rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.68rem;
  text-align: left;
  corner-shape: squircle;
}

.master-member-nav > button:hover,
.master-member-nav > button.is-current,
.master-community-menu button:hover,
.master-community-menu button.is-current,
.master-profile-link:hover {
  background: rgba(100, 31, 32, 0.06);
  color: var(--wine);
}

.master-member-nav .hero-icon,
.master-profile-link .hero-icon,
.master-continue-button .hero-icon,
.master-menu-notification .hero-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.master-community-menu,
.master-collections {
  border: 0;
}

.master-community-menu > summary,
.master-collections > summary {
  list-style: none;
}

.master-community-menu > summary::-webkit-details-marker,
.master-collections > summary::-webkit-details-marker {
  display: none;
}

.master-community-menu[open] > summary [data-icon="chevron-down"] .hero-icon,
.master-collections[open] > summary [data-icon="chevron-down"] .hero-icon {
  transform: rotate(180deg);
}

.master-community-menu > div {
  display: grid;
  gap: 0.1rem;
  margin-left: 1.15rem;
  border-left: 1px solid var(--line);
  padding-left: 0.45rem;
}

.master-community-menu button {
  grid-template-columns: 1.2rem minmax(0, 1fr);
  padding-block: 0.48rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.master-collections {
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.master-collections > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.master-collections > summary .hero-icon {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--rose);
}

.master-collections > div {
  display: grid;
  gap: 0.15rem;
}

.master-collections button {
  display: grid;
  width: 100%;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.5rem 0.6rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.62rem;
  text-align: left;
}

.master-collections button:hover,
.master-collections button.is-active {
  background: rgba(100, 31, 32, 0.05);
  color: var(--wine);
}

.master-membership {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.25rem;
  border-radius: 0.9rem;
  padding: 0.75rem;
  background: rgba(100, 31, 32, 0.045);
  corner-shape: squircle;
}

.master-membership strong {
  color: var(--wine);
  font-family: var(--font-heading);
  font-size: 0.72rem;
}

.master-membership > span,
.master-membership small {
  color: var(--muted);
  font-size: 0.56rem;
}

.membership-meter {
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 31, 32, 0.1);
}

.membership-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--copper);
}

.master-profile-link {
  margin-top: 0.1rem;
  border: 1px solid var(--line);
  color: var(--wine);
  font-weight: 700;
}

.compact-sheet-header {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
  align-items: center;
}

.compact-sheet-header h2 {
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

.mobile-account-card {
  display: grid;
  border-radius: 1rem;
  padding: 0.8rem;
  background: rgba(100, 31, 32, 0.035);
  corner-shape: squircle;
}

@media (max-width: 1120px) and (min-width: 1025px) {
  .desktop-nav-item {
    padding-inline: 0.7rem;
    font-size: 0.59rem;
  }

  .desktop-join-button {
    padding-inline: 1rem;
  }
}

@media (max-width: 1024px) {
  .notification-popover {
    display: none !important;
  }

  .mobile-dock {
    isolation: isolate;
    gap: 4px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
    padding: 0.32rem;
    corner-shape: squircle;
  }

  body[data-auth-state="member"] .mobile-dock {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mobile-dock::before {
    position: absolute;
    z-index: -1;
    top: var(--dock-indicator-top, 0.32rem);
    left: var(--dock-indicator-left, 0.32rem);
    width: var(--dock-indicator-width, 0);
    height: var(--dock-indicator-height, 4.1rem);
    border-radius: 1rem;
    background: var(--wine);
    box-shadow: 0 8px 20px rgba(100, 31, 32, 0.17);
    content: "";
    opacity: var(--dock-indicator-opacity, 0);
    transition:
      left 360ms cubic-bezier(0.22, 1, 0.36, 1),
      width 360ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 150ms ease;
    corner-shape: squircle;
  }

  .mobile-dock > button {
    position: relative;
    z-index: 1;
    min-height: 4.1rem;
    border-radius: 1rem;
    transition: color 160ms ease;
  }

  body[data-auth-state="member"] .mobile-dock > button[data-member-only] {
    display: flex !important;
  }

  .mobile-dock > button:hover {
    background: transparent;
    color: var(--wine);
  }

  .mobile-dock > button.is-current,
  .mobile-dock > button.is-open-target {
    background: transparent;
    color: var(--paper-solid);
  }

  body.navigation-open .mobile-dock > button.is-current:not(.is-open-target) {
    color: var(--rose);
  }

  .mobile-dock > button > span,
  .mobile-dock > button > small {
    transform: translateY(4px);
  }

  .navigation-panel {
    top: auto;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    width: auto;
    max-height: min(82vh, 46rem);
    border-radius: 1.45rem;
    padding: 0.8rem 1rem 5.65rem;
    animation: bottom-shell-grow 300ms cubic-bezier(0.22, 1, 0.36, 1);
    corner-shape: squircle;
  }

  @keyframes bottom-shell-grow {
    from {
      opacity: 0.78;
      clip-path: inset(calc(100% - 5rem) 0 0 round 1.45rem);
    }
    to {
      opacity: 1;
      clip-path: inset(0 round 1.45rem);
    }
  }

  .sheet-grabber,
  .navigation-panel-header > [data-close-navigation] {
    display: none;
  }

  .navigation-panel-header {
    min-height: 2.5rem;
    align-items: center;
    margin-bottom: 0.35rem;
  }

  .main-sheet-view > .navigation-panel-header {
    min-height: 2.65rem;
    border-bottom: 1px solid var(--line);
    padding: 0 0.25rem 0.45rem;
  }

  .main-sheet-view > .navigation-panel-header .section-label {
    display: none;
  }

  .main-sheet-view > .navigation-panel-header h2 {
    margin: 0;
    font-size: 1rem;
  }

  body.navigation-open .mobile-dock {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.navigation-open .dock-menu {
    background: transparent;
  }

  .master-member-menu {
    gap: 0.42rem !important;
  }

  .master-member-welcome {
    padding-block: 0.15rem;
  }

  .master-continue-button {
    min-height: 2.55rem;
  }

  .master-member-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem;
  }

  .master-member-nav > button,
  .master-community-menu > summary {
    min-height: 2.75rem;
    background: rgba(100, 31, 32, 0.035);
  }

  .master-community-menu {
    grid-column: 1 / -1;
  }

  .master-community-menu > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.2rem 0 0;
    border: 0;
    padding: 0;
  }

  .master-collections {
    margin-top: 0;
  }

  .master-collections > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listening-sheet-heading {
    padding: 0.25rem 0.25rem 0.45rem;
  }

  .listening-sheet-heading h2 {
    margin-top: 0.3rem;
    font-size: 1.35rem;
  }

  .listening-sheet-heading > p:last-child {
    margin: 0.4rem 0 0;
    font-size: 0.67rem;
  }

  .listening-sheet-options {
    gap: 0.3rem;
  }

  .listening-sheet-options > button {
    min-height: 4rem;
    padding: 0.62rem;
    background: rgba(100, 31, 32, 0.035);
  }

  .compact-sheet-header {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr) 4.2rem;
  }

  .compact-sheet-header .sheet-back-button {
    min-width: 0;
    min-height: 2.2rem;
    justify-content: flex-start;
    padding-inline: 0;
  }
}

@media (max-width: 560px) {
  .navigation-panel {
    right: 0.4rem;
    bottom: calc(0.4rem + env(safe-area-inset-bottom));
    left: 0.4rem;
    max-height: 88vh;
    padding: 0.68rem 0.68rem 5.55rem;
  }

  .master-member-nav {
    grid-template-columns: 1fr;
  }

  .master-community-menu {
    grid-column: auto;
  }

  .master-collections > div {
    grid-template-columns: 1fr;
  }

  .master-member-nav > button,
  .master-community-menu > summary {
    min-height: 2.55rem;
  }

  .master-community-menu > div {
    grid-template-columns: 1fr 1fr;
  }

  .master-membership {
    padding: 0.62rem;
  }

  .mobile-dock {
    gap: 4px;
  }

  .mobile-dock small {
    font-size: 0.48rem;
  }
}

/* Confirmed sidebar and radius refinements */
.desktop-header {
  border-radius: 1.55rem;
  padding: 0.3rem;
}

.desktop-primary-nav {
  gap: 3px;
}

.desktop-primary-nav::before,
.desktop-nav-item {
  border-radius: 1.18rem;
  corner-shape: squircle;
}

.desktop-nav-item:hover {
  border-radius: 1.18rem;
}

.coming-soon-tooltip,
.coming-soon-tooltip::before {
  background: var(--wine);
}

.coming-soon-tooltip {
  color: var(--paper-solid);
}

.desktop-profile-button:hover {
  background: linear-gradient(145deg, #b97655, var(--wine));
  color: white;
  box-shadow: 0 15px 32px rgba(100, 31, 32, 0.22);
  transform: translateY(-2px);
}

.desktop-menu-button,
.desktop-icon-button,
.desktop-notification-button,
.desktop-profile-button {
  border-radius: 1.08rem;
}

body[data-auth-state="member"] .master-member-menu {
  min-height: calc(100% - 4rem);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
}

.master-member-nav {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.25rem;
}

.master-songbook-menu,
.master-listening-menu,
.master-community-menu {
  display: block;
  border: 0;
}

.master-songbook-menu > summary,
.master-listening-menu > summary,
.master-community-menu > summary,
.master-member-nav > button {
  display: grid;
  width: 100%;
  min-height: 2.85rem;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 0.68rem;
  align-items: center;
  border: 0;
  border-radius: 0.92rem;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.7rem;
  list-style: none;
  text-align: left;
  corner-shape: squircle;
}

.master-songbook-menu > summary::-webkit-details-marker,
.master-listening-menu > summary::-webkit-details-marker,
.master-community-menu > summary::-webkit-details-marker {
  display: none;
}

.master-songbook-menu > summary:hover,
.master-listening-menu > summary:hover,
.master-community-menu > summary:hover,
.master-member-nav > button:hover,
.master-songbook-menu > summary.is-current,
.master-listening-menu > summary.is-current,
.master-community-menu > summary.is-current,
.master-member-nav > button.is-current {
  background: rgba(100, 31, 32, 0.065);
  color: var(--wine);
}

.master-songbook-menu > summary .hero-icon,
.master-listening-menu > summary .hero-icon,
.master-community-menu > summary .hero-icon,
.master-member-nav > button .hero-icon {
  width: 1.08rem;
  height: 1.08rem;
}

.master-songbook-menu > summary [data-icon="chevron-down"] .hero-icon,
.master-listening-menu > summary [data-icon="chevron-down"] .hero-icon,
.master-community-menu > summary [data-icon="chevron-down"] .hero-icon {
  width: 0.82rem;
  height: 0.82rem;
  transition: transform 180ms ease;
}

.master-songbook-menu[open] > summary [data-icon="chevron-down"] .hero-icon,
.master-listening-menu[open] > summary [data-icon="chevron-down"] .hero-icon,
.master-community-menu[open] > summary [data-icon="chevron-down"] .hero-icon {
  transform: rotate(180deg);
}

.master-songbook-collections,
.master-listening-links,
.master-community-menu > div {
  margin: 0.2rem 0 0 1.35rem;
  border-left: 1px solid var(--line);
  padding: 0.2rem 0 0.25rem 0.55rem;
}

.master-songbook-collections .section-label {
  padding: 0.35rem 0.55rem 0.4rem;
  font-size: 0.52rem;
}

.master-songbook-collections [data-master-collections] {
  display: grid;
  gap: 0.12rem;
}

.master-songbook-collections [data-master-collections] button,
.master-listening-links button,
.master-community-menu button {
  display: grid;
  width: 100%;
  min-height: 2.35rem;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 0;
  border-radius: 0.72rem;
  padding: 0.48rem 0.6rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.62rem;
  text-align: left;
  corner-shape: squircle;
}

.master-songbook-collections [data-master-collections] button:hover,
.master-songbook-collections [data-master-collections] button.is-active,
.master-listening-links button:hover,
.master-listening-links button.is-current,
.master-community-menu button:hover,
.master-community-menu button.is-current {
  background: rgba(100, 31, 32, 0.05);
  color: var(--wine);
}

.master-songbook-collections .hero-icon,
.master-listening-links .hero-icon,
.master-community-menu button .hero-icon {
  width: 0.92rem;
  height: 0.92rem;
}

.master-listening-links,
.master-community-menu > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
}

.master-sidebar-tools {
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.master-sidebar-tools > button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 2.65rem;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  padding: 0.58rem 0.7rem;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: left;
  corner-shape: squircle;
}

.master-sidebar-tools > button:hover {
  border-color: var(--line);
  background: rgba(100, 31, 32, 0.045);
}

.master-notification-menu {
  display: block;
}

.master-notification-menu > summary {
  display: grid;
  min-height: 2.65rem;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto 0.85rem;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  padding: 0.58rem 0.7rem;
  color: var(--wine);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 700;
  list-style: none;
  corner-shape: squircle;
}

.master-notification-menu > summary::-webkit-details-marker {
  display: none;
}

.master-notification-menu > summary:hover,
.master-notification-menu[open] > summary {
  border-color: var(--line);
  background: rgba(100, 31, 32, 0.045);
}

.master-notification-menu > summary .hero-icon {
  width: 1rem;
  height: 1rem;
}

.master-notification-menu > summary [data-icon="chevron-down"] .hero-icon {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 180ms ease;
}

.master-notification-menu[open] > summary [data-icon="chevron-down"] .hero-icon {
  transform: rotate(180deg);
}

.master-inline-notifications {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem 0 0.2rem;
}

.master-inline-notifications .notification-item {
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem;
}

.master-inline-notifications .notification-item > span {
  width: 1.9rem;
  height: 1.9rem;
}

.master-inline-notifications .notification-item .hero-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.master-inline-notifications > button {
  justify-self: end;
  border: 0;
  padding: 0.35rem 0.5rem;
  background: transparent;
  color: var(--copper);
  cursor: pointer;
  font-size: 0.56rem;
  font-weight: 700;
}

.master-sidebar-tools .hero-icon {
  width: 1rem;
  height: 1rem;
}

.master-sidebar-tools .master-notification-count {
  position: static;
  border: 0;
}

.navigation-panel-header > button[data-close-navigation] {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.experiment-mobile-player {
  display: none;
}

.profile-popover .manage-membership-button,
.mobile-account-card .manage-membership-button {
  background: var(--wine);
  box-shadow: 0 10px 24px rgba(100, 31, 32, 0.18);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.profile-popover .manage-membership-button:hover,
.mobile-account-card .manage-membership-button:hover {
  background: var(--wine-dark);
  box-shadow: 0 14px 28px rgba(100, 31, 32, 0.24);
  transform: translateY(-1px);
}

.profile-popover .manage-membership-button:active,
.mobile-account-card .manage-membership-button:active {
  box-shadow: 0 8px 18px rgba(100, 31, 32, 0.18);
  transform: translateY(0);
}

.profile-popover .account-logout-button,
.mobile-account-card .account-logout-button {
  display: block;
  width: max-content;
  min-height: 0;
  margin: 0.45rem auto 0;
  padding: 0.28rem 0;
  background: transparent;
  color: var(--copper);
  text-align: center;
  text-decoration: none;
  text-underline-offset: 0.22rem;
}

.profile-popover .account-logout-button:hover,
.mobile-account-card .account-logout-button:hover {
  background: transparent;
  text-decoration: underline;
}

.mobile-dock {
  border-radius: 1.68rem;
}

.mobile-dock::before,
.mobile-dock > button {
  border-radius: 1.22rem;
  corner-shape: squircle;
}

@media (min-width: 1025px) {
  body,
  main,
  .desktop-chrome {
    transition:
      margin-left 300ms cubic-bezier(0.22, 1, 0.36, 1),
      left 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.navigation-open {
    overflow: auto;
  }

  body.navigation-open main {
    margin-left: 25rem;
  }

  body.navigation-open .desktop-chrome {
    left: 25rem;
  }

  body.navigation-open .desktop-menu-button,
  body.navigation-open .desktop-account {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
  }

  .navigation-layer {
    pointer-events: none;
  }

  .navigation-backdrop {
    display: none;
  }

  .navigation-panel {
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(25rem - 10px);
    border-radius: 2rem;
    padding: 1.35rem 1.25rem;
    pointer-events: auto;
    corner-shape: squircle;
  }

  .navigation-panel-header {
    min-height: 3.25rem;
    padding-right: 2.5rem;
  }

  .navigation-panel-header > button[data-close-navigation] {
    position: absolute;
    top: 0.8rem;
    right: 0.85rem;
    width: 2.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
    min-height: 2.4rem;
    padding: 0;
  }

  .navigation-panel-header > button[data-close-navigation]:hover {
    color: var(--copper);
    transform: translateY(-1px);
  }

  .navigation-panel-header > button[data-close-navigation] .hero-icon {
    width: 1.1rem;
    height: 1.1rem;
  }

  .compact-sheet-header {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    padding-right: 2.5rem;
  }

  .notification-sheet-view .compact-sheet-header {
    grid-template-columns: 4.5rem minmax(0, 1fr) 4rem;
  }

  .master-member-nav {
    grid-template-columns: 1fr;
  }

  .master-sidebar-tools {
    position: sticky;
    bottom: 0;
    background: var(--paper-solid);
  }
}

@media (max-width: 1024px) {
  body.preview-player-visible {
    padding-bottom: calc(10.6rem + env(safe-area-inset-bottom));
  }

  body.preview-player-visible .experiment-mobile-player {
    position: fixed;
    z-index: 225;
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    width: calc(90% - 1.17rem);
    min-height: 3.25rem;
    grid-template-columns: 1.55rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 1.55rem;
    padding: 0.4rem 0.7rem;
    background: rgba(251, 246, 237, 0.96);
    box-shadow: 0 14px 38px rgba(63, 25, 20, 0.16);
    backdrop-filter: blur(22px) saturate(1.1);
    transform: translateX(-50%);
    corner-shape: squircle;
  }

  .experiment-player-toggle {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--wine);
    cursor: pointer;
  }

  .experiment-player-toggle .hero-icon {
    width: 1.18rem;
    height: 1.18rem;
    fill: currentColor;
    stroke: none;
  }

  .experiment-player-toggle:focus-visible {
    outline: 0;
    color: var(--copper);
    filter: drop-shadow(0 0 0.28rem rgba(100, 31, 32, 0.28));
  }

  .experiment-player-track {
    display: grid;
    min-width: 0;
    gap: 0.34rem;
  }

  .experiment-player-title {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
  }

  .experiment-player-title strong {
    overflow: hidden;
    color: var(--wine);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .experiment-player-title span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
  }

  .experiment-player-track input {
    min-height: auto;
    margin: 0;
    padding: 0;
    accent-color: var(--wine);
  }

  .experiment-player-track input {
    --player-progress: 16.67%;
    width: 100%;
    height: 0.28rem;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      var(--wine) var(--player-progress),
      rgba(100, 31, 32, 0.14) var(--player-progress)
    );
    appearance: none;
  }

  .experiment-player-track input::-webkit-slider-thumb {
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid var(--paper-solid);
    border-radius: 50%;
    background: var(--wine);
    box-shadow: 0 4px 10px rgba(100, 31, 32, 0.2);
    appearance: none;
  }

  .experiment-player-track input::-moz-range-thumb {
    width: 0.66rem;
    height: 0.66rem;
    border: 2px solid var(--paper-solid);
    border-radius: 50%;
    background: var(--wine);
  }

  .navigation-panel,
  .mobile-dock {
    border-radius: 1.68rem;
  }

  @keyframes bottom-shell-grow {
    from {
      opacity: 0.78;
      clip-path: inset(calc(100% - 5rem) 0 0 round 1.68rem);
    }
    to {
      opacity: 1;
      clip-path: inset(0 round 1.68rem);
    }
  }

  .master-member-nav {
    grid-template-columns: 1fr;
  }

  .master-songbook-menu,
  .master-listening-menu,
  .master-community-menu {
    grid-column: auto;
  }

  .master-songbook-menu > summary,
  .master-listening-menu > summary,
  .master-community-menu > summary,
  .master-member-nav > button {
    min-height: 2.65rem;
    background: transparent;
  }

  .master-songbook-collections,
  .master-listening-links,
  .master-community-menu > div {
    margin-left: 1.1rem;
  }

  .navigation-panel {
    overflow: hidden;
  }

  .sheet-view:not([hidden]) {
    max-height: calc(82vh - 5.4rem);
    overflow-y: auto;
    padding-bottom: 4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 31, 32, 0.2) transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 4rem), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 4rem), transparent 100%);
  }

  body.preview-player-visible .navigation-panel {
    padding-bottom: 10rem;
  }

  body.preview-player-visible .sheet-view:not([hidden]) {
    max-height: calc(82vh - 9.8rem);
  }
}

@media (max-width: 560px) {
  body.preview-player-visible .experiment-mobile-player {
    bottom: calc(5.55rem + env(safe-area-inset-bottom));
    left: 50%;
    width: calc(90% - 0.72rem);
    grid-template-columns: 1.45rem minmax(0, 1fr);
    gap: 0.42rem;
    border-radius: 1.45rem;
    padding-inline: 0.65rem;
  }

  .experiment-player-toggle {
    width: 1.45rem;
    height: 1.45rem;
  }

  .experiment-player-title strong {
    max-width: 12rem;
    font-size: 0.59rem;
  }

  .sheet-view:not([hidden]) {
    max-height: calc(88vh - 5.4rem);
  }

  body.preview-player-visible .sheet-view:not([hidden]) {
    max-height: calc(88vh - 9.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* Production integration: the same master navigation drives every Songbook route. */
body.songbook-production main {
  overflow: visible;
  padding-top: 5.15rem;
}

body.songbook-production[data-authenticated="true"] main,
body.songbook-production[data-authenticated="true"] .site-footer {
  margin-left: 0;
}

body.songbook-production .desktop-nav-item,
body.songbook-production .desktop-listening-popover > a,
body.songbook-production .mobile-dock > a,
body.songbook-production .master-member-nav a,
body.songbook-production .listening-sheet-options > a,
body.songbook-production .master-public-links a {
  text-decoration: none;
}

body.songbook-production .desktop-listening-popover > a {
  display: grid;
  width: 100%;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border-radius: 0.9rem;
  padding: 0.72rem;
  color: var(--ink);
  text-align: left;
}

body.songbook-production .desktop-listening-popover > a:hover,
body.songbook-production .desktop-listening-popover > a.is-current {
  background: rgba(100, 31, 32, 0.075);
}

body.songbook-production .master-public-links a {
  display: block;
  min-height: 2.75rem;
  border-radius: 0.85rem;
  padding: 0.78rem 0.8rem;
  background: rgba(100, 31, 32, 0.045);
  color: var(--ink);
  font-size: 0.72rem;
  corner-shape: squircle;
}

body.songbook-production .master-public-links a:hover {
  background: rgba(100, 31, 32, 0.08);
  color: var(--wine);
}

body.songbook-production .master-member-nav > a,
body.songbook-production .master-community-menu a {
  display: grid;
  width: 100%;
  min-height: 2.85rem;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 0.68rem;
  align-items: center;
  border-radius: 0.92rem;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.7rem;
  text-align: left;
  corner-shape: squircle;
}

body.songbook-production .master-member-nav > a:hover,
body.songbook-production .master-member-nav > a.is-current {
  background: rgba(100, 31, 32, 0.065);
  color: var(--wine);
}

body.songbook-production .master-community-menu a,
body.songbook-production .master-listening-links a {
  display: grid;
  width: 100%;
  min-height: 2.35rem;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border-radius: 0.72rem;
  padding: 0.48rem 0.6rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.62rem;
  corner-shape: squircle;
}

body.songbook-production .master-community-menu a:hover,
body.songbook-production .master-community-menu a.is-current,
body.songbook-production .master-listening-links a:hover,
body.songbook-production .master-listening-links a.is-current {
  background: rgba(100, 31, 32, 0.05);
  color: var(--wine);
}

body.songbook-production .master-community-menu a .hero-icon,
body.songbook-production .master-listening-links a .hero-icon {
  width: 0.92rem;
  height: 0.92rem;
}

body.songbook-production .notification-popover {
  position: fixed;
  z-index: 110;
}

body.songbook-production .profile-popover {
  width: 18rem;
}

body.songbook-production .profile-popover .account-profile p {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0;
}

body.songbook-production .desktop-profile-button.avatar-button {
  border-radius: 1.08rem;
}

body.songbook-production .desktop-profile-button.avatar-button:hover {
  background: linear-gradient(145deg, #b97655, var(--wine));
}

@media (min-width: 1025px) {
  body.songbook-production.navigation-open main,
  body.songbook-production.navigation-open .site-footer {
    margin-left: 25rem;
  }
}

@media (max-width: 1024px) {
  body.songbook-production main {
    padding-top: 0;
  }

  body.songbook-production .mobile-dock > :is(a, button) {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    min-height: 4.1rem;
    flex-direction: column;
    gap: 0.34rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 1.22rem;
    padding: 0.42rem 0.1rem 0.35rem;
    background: transparent;
    color: var(--rose);
    cursor: pointer;
    text-align: center;
    corner-shape: squircle;
  }

  body.songbook-production .mobile-dock > :is(a, button):hover {
    background: transparent;
    color: var(--wine);
  }

  body.songbook-production .mobile-dock > :is(a, button).is-current,
  body.songbook-production .mobile-dock > :is(a, button).is-open-target {
    background: transparent;
    color: var(--paper-solid);
  }

  body.songbook-production .mobile-dock > :is(a, button) > span,
  body.songbook-production .mobile-dock > :is(a, button) > small {
    transform: translateY(4px);
  }

  body.songbook-production .mobile-dock > :is(a, button) .hero-icon {
    width: 1.28rem;
    height: 1.28rem;
  }

  body.songbook-production .mobile-dock > :is(a, button) small {
    max-width: 100%;
    overflow: hidden;
    font: 700 0.5rem/1.08 var(--font-body);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.songbook-production .listening-sheet-options > a {
    display: grid;
    width: 100%;
    min-height: 4rem;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.62rem;
    background: rgba(100, 31, 32, 0.035);
    color: var(--ink);
    text-align: left;
    corner-shape: squircle;
  }

  body.songbook-production .listening-sheet-options > a > [data-icon]:first-child {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.75rem;
    background: rgba(100, 31, 32, 0.07);
    color: var(--wine);
  }

  body.songbook-production.live-player-visible {
    padding-bottom: calc(10.6rem + env(safe-area-inset-bottom));
  }

  body.songbook-production.live-player-visible .global-player {
    right: auto;
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 225;
    display: grid;
    width: calc(90% - 1.17rem);
    min-height: 3.25rem;
    grid-template-columns: 1.55rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.14rem 0.5rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 1.55rem;
    padding: 0.4rem 0.7rem;
    background: rgba(251, 246, 237, 0.96);
    box-shadow: 0 14px 38px rgba(63, 25, 20, 0.16);
    backdrop-filter: blur(22px) saturate(1.1);
    transform: translateX(-50%);
    corner-shape: squircle;
  }

  body.songbook-production .global-player-art,
  body.songbook-production .global-player-info p,
  body.songbook-production .global-player-tools {
    display: none;
  }

  body.songbook-production .global-player-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-right: 5rem;
  }

  body.songbook-production .global-player-info h2 {
    overflow: hidden;
    margin: 0;
    color: var(--wine);
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.songbook-production .global-player-toggle {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 1.55rem;
    height: 1.55rem;
    min-width: 1.55rem;
    min-height: 1.55rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--wine);
    box-shadow: none;
  }

  body.songbook-production .global-player-toggle .hero-icon {
    width: 1.18rem;
    height: 1.18rem;
    fill: currentColor;
    stroke: none;
  }

  body.songbook-production .global-player-toggle:focus-visible {
    outline: 0;
    color: var(--copper);
    filter: drop-shadow(0 0 0.28rem rgba(100, 31, 32, 0.28));
  }

  body.songbook-production .global-player-progress {
    position: relative;
    display: block;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  body.songbook-production .player-time {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.35rem);
    display: flex;
    gap: 0;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
  }

  body.songbook-production .player-time time:first-child::after {
    content: " / ";
    white-space: pre;
  }

  body.songbook-production .global-player-progress .player-range {
    width: 100%;
    min-height: auto;
    margin: 0;
  }

  body.songbook-production.live-player-visible .navigation-panel {
    padding-bottom: 10rem;
  }

  body.songbook-production.live-player-visible .sheet-view:not([hidden]) {
    max-height: calc(82vh - 9.8rem);
  }
}

@media (max-width: 560px) {
  body.songbook-production.live-player-visible .global-player {
    bottom: calc(5.55rem + env(safe-area-inset-bottom));
    width: calc(90% - 0.72rem);
  }

  body.songbook-production.live-player-visible .sheet-view:not([hidden]) {
    max-height: calc(88vh - 9.8rem);
  }
}
