/* Original Seed on phones and tablets (redesign 2026-11). The Seed is where
   every room began, so it stays audible and in view at the top on every
   screen. Up to 1024 px the old layout hid it; here its row comes back as a
   slim gold strip: under the room name on phones, under the version and
   Desk cards on tablets. Same elements and handlers (play, position, mute,
   insert); the room link stays where it already was. */

@media (max-width: 760px) {
  html body .topbar .top-room-summary {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .topbar .top-room-summary > :not(.top-seed) {
    display: none !important;
  }

  /* The strip takes about 2.8rem, so the phone mixer gives the same back
     and still ends above the tab bar. */
  html body .workspace .mixer-dock {
    min-height: min(27.7rem, calc(78vh - 2.8rem)) !important;
  }
}

/* Tablets: the Seed takes a second row under the version and Desk cards. */
@media (min-width: 761px) and (max-width: 1024px) {
  html body .topbar .top-seed {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}

@media (max-width: 1024px) {
  html body .topbar .top-seed {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.3rem 0.55rem !important;
    border: 1px solid rgba(241, 201, 121, 0.34) !important;
    border-radius: 0.65rem !important;
    background:
      linear-gradient(90deg, rgba(241, 201, 121, 0.12), rgba(241, 201, 121, 0.02) 70%),
      rgba(20, 19, 16, 0.92) !important;
  }

  /* A room still waiting for its Seed shows nothing here. */
  html body .topbar .top-seed:has(#seedDropPanel:not([hidden])) {
    display: none !important;
  }

  html body .topbar .top-seed .seed-card-body {
    display: block !important;
    padding: 0 !important;
  }

  html body .topbar .top-seed .seed-card-body > :not(.seed-wave-row) {
    display: none !important;
  }

  html body .topbar .top-seed .seed-wave-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: stretch !important;
    gap: 0.5rem !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .topbar .top-seed .seed-wave-label {
    flex: 0 0 auto;
    color: var(--gold-2, #f1c979) !important;
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
  }

  html body .topbar .top-seed .seed-player {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
  }

  html body .topbar .top-seed .seed-seek {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html body .topbar .top-seed .seed-player-button,
  html body .topbar .top-seed .seed-insert-button {
    flex: 0 0 auto !important;
    width: 2.1rem !important;
    min-width: 2.1rem !important;
    height: 2.1rem !important;
    padding: 0 !important;
  }
}
