:root {
  font-family: Inter, system-ui, sans-serif;
  color: #eef5ff;
  background: #06111f;
  --blue: #19b9ff;
  --purple: #8965ff;
  --pink: #f15fb7;
  --panel: #0e1c30;
  --muted: #9fb0c4;
  --green: #23df88;
  /* Dark native scrollbars, date pickers and checkboxes to match the theme. */
  color-scheme: dark;
  scrollbar-color: #36506e #0b192b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0, #1a1239 0, transparent 32%), #06111f;
}
.sidebar {
  width: 240px;
  padding: 32px 20px;
  background: #081524;
  border-right: 1px solid #20334b;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  font-size: 26px;
  font-weight: 900;
}
.brand small {
  color: var(--pink);
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 44px;
}
.sidebar nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.sidebar nav button.active,
.sidebar nav button:hover {
  background: #142740;
  color: white;
}
.tagline {
  position: absolute;
  bottom: 28px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
main {
  margin-left: 240px;
  padding: 38px 48px;
  width: calc(100% - 240px);
}
header,
.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 {
  font-size: 36px;
  margin: 3px 0 24px;
}
.eyebrow {
  color: var(--pink);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 2px;
}
button {
  cursor: pointer;
}
.sectionHead button,
.actions button,
#newGig,
#landingSignIn {
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  border: 0;
  color: white;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 900;
}
.hero {
  padding: 28px;
  border: 1px solid #2e83b5;
  border-radius: 22px;
  background: linear-gradient(120deg, #0d2138, #161536);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero h2 {
  font-size: 28px;
  margin: 5px 0;
}
.hero p {
  color: var(--muted);
}
.ready {
  text-align: center;
  color: var(--green);
  border: 1px solid #237e62;
  padding: 15px 22px;
  border-radius: 16px;
  font-size: 11px;
}
.ready strong {
  font-size: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 34px;
}
.grid article,
.card,
.placeholder {
  background: var(--panel);
  border: 1px solid #263b55;
  border-radius: 18px;
  padding: 20px;
}
.grid span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 800;
}
.grid strong {
  display: block;
  font-size: 25px;
  margin-top: 8px;
}
.grid p,
.card p,
.placeholder p {
  color: var(--muted);
}
.cards {
  display: grid;
  gap: 12px;
}
.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card h4 {
  margin: 0 0 5px;
  font-size: 18px;
}
.pill {
  font-size: 10px;
  font-weight: 900;
  color: var(--green);
}
.view {
  display: none;
}
.view.active {
  display: block;
}
dialog {
  border: 1px solid #3c5572;
  border-radius: 20px;
  background: #0b192b;
  color: white;
  width: min(560px, 92vw);
  padding: 26px;
}
dialog::backdrop {
  background: #000a;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
input,
textarea,
select {
  background: #071321;
  color: white;
  border: 1px solid #53677e;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  /* Let form fields shrink inside dialog grids instead of widening the dialog. */
  min-width: 0;
  max-width: 100%;
}
textarea {
  min-height: 72px;
}
select {
  appearance: auto;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.actions .secondary {
  background: #1b2a3d;
}
@media (max-width: 800px) {
  .sidebar {
    width: 76px;
  }
  .brand {
    font-size: 0;
  }
  .brand:after {
    content: "MB";
    font-size: 20px;
  }
  .brand small,
  .sidebar nav button {
    font-size: 0;
  }
  .sidebar nav button:before {
    content: "•";
    font-size: 20px;
  }
  .tagline {
    display: none;
  }
  main {
    margin-left: 76px;
    width: calc(100% - 76px);
    padding: 25px 18px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    align-items: flex-start;
    gap: 15px;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
/* Account and display controls live in one place in the sidebar (design review, 2 Oct). */
.sidebar {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar nav {
  margin-top: 32px;
}
.account {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 8px;
}
.account button {
  border: 1px solid #36506e;
  background: #12233a;
  color: #dce8f6;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 12px;
  text-align: left;
}
.account button:hover {
  background: #1a3150;
}
.account button:disabled {
  opacity: 0.55;
}
#cloudState {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--muted);
}
#cloudState::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5c6f86;
}
#cloudState.connected {
  color: var(--green);
}
#cloudState.connected::before {
  background: var(--green);
}
#cloudState.problem {
  color: #ffb3c1;
}
#cloudState.problem::before {
  background: #ff7b8c;
}
.tagline {
  position: static;
  margin-top: 18px;
}
header {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}
.heroActions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.syncBanner[hidden] {
  display: none;
}
/* Card actions share one quiet style; deletes share the red one. */
.gigOpen,
.gigShare,
.moneyEdit,
.memberRole,
.inviteRevoke {
  border: 1px solid #2e6d96;
  background: #102942;
  color: var(--blue);
  border-radius: 10px;
  padding: 9px 13px;
  font-weight: 900;
}
.gigDelete,
.memberRemove {
  border: 1px solid #dc668a;
  background: #2b1830;
  color: #ffd3df;
  border-radius: 10px;
  padding: 9px 13px;
  font-weight: 800;
}
.roleBadge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #36506e;
  color: #dce8f6;
  text-transform: uppercase;
}
.roleBadge.role-owner {
  border-color: var(--pink);
  color: #ffd0ec;
}
.roleBadge.role-leader {
  border-color: var(--blue);
  color: #bfeaff;
}
.memberCard h4 small {
  color: var(--muted);
  font-weight: 600;
}
.inviteList {
  margin-top: 12px;
}
.contactsHead {
  margin-top: 36px;
}
#inviteCode {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
/* Month calendar. */
.monthHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.monthHead h3 {
  margin: 0 8px;
  min-width: 170px;
  text-align: center;
}
.monthHead button {
  border: 1px solid #2a4561;
  background: #0c1b2c;
  color: #eef5ff;
  border-radius: 9px;
  min-width: 44px;
  min-height: 40px;
  font-weight: 900;
  font-size: 16px;
}
#thisMonth {
  font-size: 11px;
  padding: 0 12px;
}
.monthGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
}
.dayName {
  font-size: 10px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
  padding: 4px 0;
}
.day {
  min-height: 84px;
  background: var(--panel);
  border: 1px solid #1f3248;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.day.blank {
  background: transparent;
  border-color: transparent;
}
.day.today {
  border-color: var(--blue);
}
.dayNum {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.day.today .dayNum {
  color: var(--blue);
}
.dayGig {
  border: 0;
  border-left: 3px solid var(--pink);
  background: #1d2140;
  color: #eef5ff;
  border-radius: 6px;
  padding: 3px 5px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 24px;
}
.dayGig.type-rehearsal {
  border-left-color: var(--blue);
}
.dayGig.type-travel {
  border-left-color: #f5bf68;
}
.dayGig.type-other {
  border-left-color: var(--muted);
}
/* Front page for signed-out visitors. */
.landing {
  display: none;
}
body.signedOut .landing {
  display: block;
}
body.signedOut .view,
body.signedOut .sidebar nav,
body.signedOut main > header,
body.signedOut #refreshCloud {
  display: none;
}
.landingHero {
  padding: 40px 36px;
  border: 1px solid #2e83b5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, #3a1d5c 0, transparent 45%),
    linear-gradient(120deg, #0d2138, #161536);
}
.landingHero h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  margin: 8px 0 16px;
  max-width: 820px;
}
.landingHero p {
  color: #c4d2e2;
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
}
.landingActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
#landingSignIn {
  min-height: 48px;
  padding: 13px 28px;
  font-size: 15px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.features article {
  background: var(--panel);
  border: 1px solid #263b55;
  border-radius: 18px;
  padding: 20px;
}
.features h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
#songFilter {
  width: 100%;
  margin: 0 0 16px;
}
.view > h2 {
  margin-top: 0;
}
.directions {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}
.moneyline {
  font-size: 10px;
  margin: 7px 0 0;
}
.card > div {
  min-width: 0;
}
.card h4 {
  word-break: break-word;
}

.intro {
  color: var(--muted);
  font-size: 12px;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.largeText {
  min-height: 220px;
  font-family: ui-monospace, Consolas, monospace;
  line-height: 1.45;
}
.workshopEdit,
.songEdit {
  border: 1px solid #2e6d96;
  background: #102942;
  color: var(--blue);
  border-radius: 10px;
  padding: 9px 13px;
  font-weight: 900;
}
.picker {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid #263b55;
  border-radius: 12px;
  padding: 6px;
}
.pickrow {
  display: grid;
  grid-template-columns: auto 1fr 64px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-bottom: 1px solid #1b3047;
}
.pickrow:last-child {
  border-bottom: 0;
}
.pickrow span {
  display: grid;
}
.pickrow small {
  color: var(--muted);
}
.pickrow .order {
  width: 60px;
  padding: 7px;
}
@media (max-width: 650px) {
  .three {
    grid-template-columns: 1fr;
  }
  .largeText {
    min-height: 150px;
  }
}

.chordTools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #2b5575;
  border-radius: 14px;
  background: #0b2136;
}
.chordTools b {
  font-size: 15px;
}
.chordTools p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.chordTools button {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border: 0;
  color: white;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 900;
}
.secondaryInline {
  justify-self: start;
  border: 1px solid #35536f;
  background: #14263a;
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 11px;
  font-weight: 800;
  font-size: 10px;
}

fieldset {
  min-width: 0;
  border: 1px solid #53677e;
  border-radius: 12px;
  padding: 10px;
}
legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}
.contactEdit {
  border: 1px solid #2e6d96;
  background: #102942;
  color: var(--blue);
  border-radius: 10px;
  padding: 9px 13px;
  font-weight: 900;
}

.timing {
  border: 1px solid #2b5978;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  color: var(--blue);
  background: #0b2237;
}
.fieldHelp {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.syncBanner {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #33465c;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}
.syncBanner b {
  color: var(--blue);
}
.syncBanner.connected {
  border-color: #247458;
}
.syncBanner.connected b {
  color: var(--green);
}
.syncBanner.welcome {
  border-color: #3a4f8a;
  color: var(--text, #e8eefc);
  font-size: 13px;
}
.calendarTools {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.calMode {
  border: 1px solid #2a4561;
  background: #0c1b2c;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 9px;
  font-weight: 800;
}
.calMode.active {
  color: white;
  border-color: var(--blue);
}
.packGrid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .packGrid {
    grid-template-columns: 1fr;
  }
}

.cueRows {
  display: grid;
  gap: 7px;
  margin: 8px 0;
}
.cueRow {
  display: grid;
  grid-template-columns: 74px 1fr 38px;
  gap: 8px;
  align-items: center;
  border: 1px solid #28445e;
  border-radius: 10px;
  padding: 8px;
}
.cueRow small {
  display: block;
  color: var(--muted);
}
.cueRow > button {
  border: 0;
  background: transparent;
  color: #ff7b8c;
  font-size: 20px;
}
.cueType {
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  border-radius: 20px;
  padding: 6px;
  background: #153149;
}
.cueType.solo {
  color: #ffca77;
}
.cueType.ending,
.cueType.stop {
  color: #ff7b8c;
}
.cueType.vocal,
.cueType.harmony {
  color: #c7a5ff;
}
.cueType.talk,
.cueType.crowd {
  color: #6edaff;
}
.cueAdd {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.7fr auto;
  gap: 7px;
}
.cueAdd button {
  border: 1px solid #2e6d96;
  background: #102942;
  color: var(--blue);
  border-radius: 10px;
  font-weight: 900;
}
@media (max-width: 750px) {
  .cueAdd {
    grid-template-columns: 1fr;
  }
  .cueRow {
    grid-template-columns: 64px 1fr 38px;
  }
}

/* MyBand desktop setlist workshop */
.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 34%) 1fr;
  gap: 16px;
  margin: 16px 0 30px;
  min-height: 520px;
}
.songTray,
.setCanvas {
  background: linear-gradient(180deg, #0b1c30, #091625);
  border: 1px solid #29435f;
  border-radius: 18px;
  padding: 14px;
}
.songTray > label {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 2px 0 9px;
}
.songTray input {
  width: 100%;
  margin-bottom: 10px;
}
.trayList,
.setDropzone {
  display: grid;
  gap: 7px;
}
.trayList {
  max-height: 430px;
  overflow: auto;
  padding-right: 3px;
}
.traySong,
.setSongRow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #29445e;
  background: #10233a;
  border-radius: 12px;
  padding: 10px 11px;
  min-height: 52px;
  touch-action: none;
}
.traySong {
  cursor: grab;
}
.traySong:active,
.setSongRow.dragging {
  cursor: grabbing;
  border-color: var(--blue);
  box-shadow: 0 8px 24px #0007;
  opacity: 0.9;
}
.traySong b,
.setSongRow b {
  display: block;
  font-size: 13px;
}
.traySong small,
.setSongRow small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.traySong button,
.setSongRow button {
  border: 0;
  background: #17344f;
  color: var(--blue);
  border-radius: 9px;
  min-width: 42px;
  min-height: 42px;
  font-weight: 900;
}
.canvasHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
}
.canvasHead b {
  font-size: 18px;
}
.canvasHead small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.canvasHead button {
  border: 0;
  border-radius: 10px;
  padding: 10px 13px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: white;
}
.canvasHead button:disabled {
  opacity: 0.35;
}
.setDropzone {
  min-height: 420px;
  border: 1px dashed #355675;
  border-radius: 14px;
  padding: 9px;
}
.setDropzone.empty:before {
  content: "Drop songs here";
  display: grid;
  place-items: center;
  min-height: 380px;
  color: var(--muted);
  font-weight: 800;
}
.setSongRow {
  grid-template-columns: 34px 1fr auto auto;
  background: linear-gradient(90deg, #102840, #171b3d);
}
.setSongRow .setNo {
  font-weight: 900;
  color: var(--blue);
  text-align: center;
}
.setSongRow .grip {
  font-size: 20px;
  color: var(--muted);
  cursor: grab;
}
.dropMarker {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
}
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .trayList {
    max-height: 250px;
  }
  .setDropzone {
    min-height: 300px;
  }
}

/* Accessible controls and narrow-screen navigation; keep MyBand's palette. */
[hidden] {
  display: none !important;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
header {
  gap: 16px;
  flex-wrap: wrap;
}
.bandSelect {
  max-width: 280px;
}
.bandSelect select {
  width: 100%;
  min-width: 180px;
}
#webError,
.formError {
  padding: 14px;
  border: 1px solid #ff7b8c;
  border-radius: 12px;
  background: #321a2b;
  color: #ffe0e5;
  line-height: 1.5;
}
.songDelete,
.contactDelete,
.setlistDelete {
  border: 1px solid #dc668a;
  background: #2b1830;
  color: #ffd3df;
  border-radius: 10px;
  padding: 10px 13px;
  margin: 4px;
  font-weight: 800;
}
.setActions,
.rowActions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.setActions button {
  min-height: 44px;
}
.traySong {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  touch-action: auto;
}
.setSongRow {
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  touch-action: auto;
}
.traySong input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
}
.traySong b,
.setSongRow b {
  overflow-wrap: anywhere;
}
#addSelectedSongs {
  width: 100%;
  border: 1px solid var(--blue);
  background: #16354d;
  color: #eef5ff;
  border-radius: 10px;
  min-height: 44px;
  margin: 4px 0 12px;
  font-weight: 800;
}
#enhancedVisibility[aria-pressed="true"] {
  outline: 2px solid var(--blue);
}
body.enhanced {
  font-size: 18px;
}
body.enhanced label,
body.enhanced .intro,
body.enhanced .fieldHelp {
  font-size: 15px;
}
body.enhanced button {
  font-size: 15px;
  min-height: 48px;
}
body.enhanced .traySong b,
body.enhanced .setSongRow b {
  font-size: 18px;
}
body.enhanced .traySong small,
body.enhanced .setSongRow small,
body.enhanced .pill {
  font-size: 14px;
}
@media (max-width: 800px) {
  body {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #20334b;
  }
  .brand {
    font-size: 24px;
  }
  .brand:after,
  .sidebar nav button:before {
    content: none;
  }
  .brand small {
    font-size: 11px;
  }
  .sidebar nav {
    margin-top: 14px;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 6px;
  }
  .sidebar nav button {
    font-size: 14px;
    text-align: center;
    min-height: 44px;
  }
  .tagline {
    display: block;
    position: static;
    font-size: 11px;
    margin-top: 12px;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 20px 16px;
  }
  header {
    align-items: flex-start;
  }
  .bandSelect {
    max-width: 100%;
  }
  .hero {
    flex-wrap: wrap;
  }
  .canvasHead {
    flex-wrap: wrap;
  }
  .card {
    gap: 10px;
    flex-wrap: wrap;
  }
  .actions {
    flex-wrap: wrap;
  }
  .syncBanner {
    flex-wrap: wrap;
  }
}
@media (max-width: 450px) {
  .setSongRow {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .setSongRow .grip {
    display: none;
  }
  .rowActions {
    grid-column: 2;
  }
  .cueAdd {
    grid-template-columns: 1fr;
  }
  .bandSelect {
    width: 100%;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Short sets keep natural row heights rather than stretching each song tile. */
.setDropzone {
  align-content: start;
}

/* Published snapshots use the existing MyBand accessible controls and card style. */
.showTools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 18px 0;
}
.showTools label {
  flex: 1;
  min-width: 200px;
}
.showTools button,
#olderShows,
.downloadShow {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #3e6486;
  border-radius: 12px;
  background: #122a43;
  color: #eef5ff;
  font: inherit;
  font-weight: 700;
}
.publishedShow {
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.publishedShow summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--blue);
}
.publishedShow li {
  padding: 5px 0;
  overflow-wrap: anywhere;
}
#showStatus {
  line-height: 1.6;
}
@media (max-width: 600px) {
  .showTools {
    display: grid;
  }
  .publishedShow .downloadShow {
    width: 100%;
  }
}

/* Phone layout (design review, 2 Oct): brand and status on one line, a compact
   two-row menu, then one row of account buttons, so content starts near the top. */
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    overflow: visible;
  }
  .brand {
    font-size: 20px;
    flex: 1;
  }
  .account {
    display: contents;
  }
  #cloudState {
    order: 1;
    margin-left: auto;
    font-size: 10px;
  }
  .sidebar nav {
    order: 2;
    flex-basis: 100%;
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .sidebar nav button {
    font-size: 13px;
    padding: 8px 4px;
    min-height: 40px;
    border: 1px solid #20334b;
  }
  .longLabel {
    display: none;
  }
  .account button {
    order: 3;
    flex: 1 1 auto;
    text-align: center;
    min-height: 40px;
    padding: 8px 10px;
  }
  .tagline {
    display: none;
  }
  header {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
    margin-bottom: 4px;
  }
  .bandSelect {
    width: 100%;
    max-width: none;
  }
  .day {
    min-height: 56px;
    padding: 3px;
  }
  .dayGig {
    font-size: 10px;
    padding: 2px 3px;
  }
  .monthHead h3 {
    min-width: 0;
    flex: 1;
    font-size: 16px;
  }
  .landingHero {
    padding: 26px 20px;
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}
body.signedOut #cloudState {
  display: none;
}
.sectionHead button:disabled,
#newGig:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Drag-and-drop setlist building (2 Oct). */
.setDropzone.empty:before {
  content: attr(data-hint);
  text-align: center;
  padding: 0 20px;
}
.setDropzone.dragOver {
  border-color: var(--blue);
  border-style: solid;
  background: #0e2a44;
}
.setSongRow.dropBefore {
  box-shadow: 0 -4px 0 0 var(--pink);
}
.setSongRow.dropAfter {
  box-shadow: 0 4px 0 0 var(--pink);
}
.traySong.dragging {
  opacity: 0.5;
}
.traySong.inSet small {
  color: #ffd166;
}
.setTitle {
  min-width: 0;
  flex: 1;
}
#activeSetNameInput {
  width: 100%;
  max-width: 420px;
  font-size: 18px;
  font-weight: 800;
  padding: 9px 12px;
}
/* Chord placer (2 Oct). Chord yellow matches the phone's stage chords (#FFD166). */
#songDialog {
  width: min(880px, 94vw);
}
.chordButtons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#placeChords {
  background: #3a2f12;
  border: 1px solid #ffd166;
  color: #ffd166;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 900;
}
#placeChords[aria-expanded="true"] {
  background: #ffd166;
  color: #1a1405;
}
.chordPlacer {
  border: 1px solid #6b5a22;
  border-radius: 14px;
  background: #0d1a2b;
  padding: 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.placerHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.placerHead b {
  color: #ffd166;
}
.placerTools {
  display: flex;
  gap: 6px;
}
.placerTools button,
.customChord button {
  border: 1px solid #36506e;
  background: #12233a;
  color: #dce8f6;
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 800;
  min-height: 40px;
}
.chordPalette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: sticky;
  top: -26px;
  z-index: 1;
  background: #0d1a2b;
  padding: 6px 0;
}
.paletteChord {
  min-width: 52px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #ffd166;
  background: #2a230e;
  color: #ffd166;
  font-weight: 900;
  font-size: 16px;
  cursor: grab;
}
.paletteChord.armed {
  background: #ffd166;
  color: #1a1405;
  box-shadow: 0 0 0 3px #ffd16655;
}
.customChord {
  display: flex;
  gap: 6px;
}
.customChord input {
  flex: 1;
  padding: 9px 12px;
}
.placerLyrics {
  max-height: 46vh;
  overflow: auto;
  border: 1px solid #263b55;
  border-radius: 12px;
  padding: 10px 12px;
  background: #071321;
}
.placerLine {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  min-height: 22px;
  margin-bottom: 6px;
}
.placerWord {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 5px;
  border-radius: 6px;
}
.placerWord.dropHere {
  background: #1d3a57;
  outline: 2px dashed #ffd166;
}
.chordSlot {
  height: 22px;
}
.placedChord {
  height: 22px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #ffd166;
  font-weight: 900;
  font-size: 14px;
  cursor: grab;
}
.placedChord:hover,
.placedChord:focus-visible {
  background: #3a2f12;
}
.wordTarget {
  border: 0;
  background: transparent;
  color: #eef5ff;
  font: inherit;
  font-size: 15px;
  padding: 2px 3px;
  border-radius: 5px;
  cursor: pointer;
}
.wordTarget:hover,
.wordTarget:focus-visible {
  background: #17344f;
}
.wordTarget.lineEnd {
  color: #5c6f86;
  font-size: 13px;
}
body.enhanced .wordTarget {
  font-size: 19px;
}
body.enhanced .placedChord {
  font-size: 17px;
}
/* Privacy policy and other document pages (G8). */
body.docBody {
  display: block;
}
.docPage {
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  padding: 40px 20px 60px;
  line-height: 1.65;
  color: #dce8f6;
}
.docPage h1 {
  margin-top: 6px;
}
.docPage h2 {
  margin-top: 34px;
  font-size: 21px;
}
.docPage h3 {
  margin: 20px 0 4px;
  font-size: 16px;
}
.docPage a,
.siteLinks a {
  color: var(--blue);
}
.docPage li {
  margin: 6px 0;
}
.draftNote {
  border: 2px solid #f5bf68;
  background: #302338;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}
.docMeta {
  color: var(--muted);
}
.siteLinks {
  font-size: 12px;
  margin-top: 10px;
}
@media (max-width: 800px) {
  /* Keeps the phone menu compact; the front page carries its own privacy link. */
  .sidebar .siteLinks {
    display: none;
  }
}
.actions button.dangerButton {
  background: #8f1d3a;
  border: 1px solid #ff7b8c;
}
.docPage form {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #6b2a3c;
  border-radius: 14px;
  background: #0e1c30;
}
.headButtons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sectionHead .headButtons button.quiet {
  background: #12233a;
  border: 1px solid #36506e;
}
/* Gig availability (G5). */
.attendance {
  border: 1px solid #2b5978;
  border-radius: 14px;
  padding: 14px;
  background: #0b2136;
}
.attendance h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.attendanceButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.attendanceButtons button {
  border: 1px solid #36506e;
  background: #12233a;
  color: #dce8f6;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  font-weight: 800;
}
.attendanceButtons button[aria-pressed="true"] {
  border-color: var(--green);
  background: #0f3a2a;
  color: #b9f5d6;
}
#attendanceList {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #dce8f6;
}
#attendanceList li {
  margin: 4px 0;
}
.attend-yes {
  color: var(--green);
}
.attend-maybe {
  color: #f5bf68;
}
.attend-no {
  color: #ff9aaa;
}
.attend-none {
  color: var(--muted);
}
/* Band Pro plan line (G6). */
.planStatus {
  border: 1px solid #36506e;
  border-radius: 12px;
  padding: 10px 14px;
  color: #dce8f6;
  background: #0e1c30;
  font-size: 14px;
}
.planStatus.pro {
  border-color: var(--green);
  color: #b9f5d6;
}

/* Printed setlist (PRINT on a setlist): only the setlist, large and black on white. */
#printSetlist {
  display: none;
}
@media print {
  body > *:not(#printSetlist) {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  #printSetlist {
    display: block;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
  }
  #printSetlist h1 {
    font-size: 26pt;
    margin: 0 0 4pt;
  }
  #printSetlist .printMeta {
    font-size: 11pt;
    color: #444;
  }
  #printSetlist ol {
    padding-left: 28pt;
    font-size: 18pt;
  }
  #printSetlist li {
    padding: 6pt 0;
    border-top: 0.5pt solid #bbb;
    break-inside: avoid;
  }
  #printSetlist li span {
    font-size: 12pt;
    color: #444;
  }
  #printSetlist li em {
    float: right;
    font-style: normal;
    font-size: 12pt;
    color: #444;
  }
}

/* Band notices (dashboard). */
.notices {
  margin-top: 18px;
}
.notices form {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
/* POST NOTICE looks like the site's other main buttons, sized to its text. */
#postNotice {
  justify-self: start;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  border: 0;
  color: white;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 900;
}
.notices textarea {
  width: 100%;
  font: inherit;
  resize: vertical;
}
.noticeHint,
.noticeMeta {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}
.noticeBody {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
