:root {
  --tile-size: 106px;
  --gap: 10px;
  --dock-height: clamp(196px, 30vh, 238px);
  --dock-bg-height: clamp(74px, 12vh, 98px);
  --bank-note-size: 82px;
  --bank-note-gap: 6px;
  --ink: #1f2b46;
  --teal: #009999;
  --teal-dark: #007777;
  --red: #ff5b5b;
  --red-dark: #d34545;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Nunito", "Avenir Next Rounded", "Trebuchet MS", "Verdana", sans-serif;
  color: var(--ink);
  background: #ffffff;
  padding: 12px;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

button:active {
  transform: translateY(1px);
}

#app {
  width: min(1020px, 100%);
  margin: 0 auto;
}

.screen {
  padding: 8px 14px calc(var(--dock-height) + env(safe-area-inset-bottom) + 24px);
  position: relative;
}

.song-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  position: relative;
}

.song-name-input {
  field-sizing: content;
  min-width: 240px;
  max-width: min(760px, 94vw);
  height: 46px;
  border: 0;
  border-bottom: 2px solid #d7e4ff;
  border-radius: 0;
  padding: 0 22px;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 900;
  color: #1b233e;
  background: transparent;
  text-align: center;
}

.song-name-input:focus {
  outline: none;
  border-bottom-color: #009999;
}

.saved-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(480px, calc(100vw - 44px));
  max-height: min(56vh, 430px);
  overflow: auto;
  border: 2px solid #d9e5ff;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 16px 30px rgba(29, 47, 89, 0.2);
  z-index: 32;
}

.saved-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 900;
  color: #2a4478;
}

.saved-list {
  display: grid;
  gap: 8px;
}

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 2px solid #e1ebff;
  border-radius: 10px;
}

.saved-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.saved-meta-name {
  font-size: 0.9rem;
  font-weight: 900;
  color: #17366a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-meta-detail {
  font-size: 0.75rem;
  font-weight: 800;
  color: #4f6796;
}

.saved-actions {
  display: flex;
  gap: 6px;
}

.saved-empty {
  font-size: 0.88rem;
  color: #4f6796;
  font-weight: 800;
}

.top-ui {
  display: grid;
  gap: 2px;
  justify-items: center;
  width: 100%;
  margin-bottom: 2px;
  position: relative;
}

.stars-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding-top: 7px;
}

.star-btn {
  background: transparent;
  border: 0;
  padding: 0 2px;
  line-height: 0;
  cursor: pointer;
}

/* ~10% bigger than the old 20px text star, with rounded points */
.star-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.star-btn polygon {
  fill: none;
  stroke: #512d1b;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.star-btn.filled polygon {
  fill: #512d1b;
}

.composer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  padding-right: clamp(12px, 6vw, 96px);
  margin-top: -4px;
}

.composer-input {
  field-sizing: content;
  min-width: 150px;
  max-width: min(420px, 70vw);
  height: 30px;
  border: 0;
  border-bottom: 2px solid #e9e4da;
  border-radius: 0;
  padding: 0 10px;
  text-align: right;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1.02rem);
  font-weight: 600;
  color: #4a463f;
  background: transparent;
}

.composer-input:focus {
  outline: none;
  border-bottom-color: #009999;
}

.composer-input::placeholder {
  color: #7f96bf;
}

.title-wrap {
  text-align: center;
}

.app-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.9vw, 1.55rem);
  line-height: 1.1;
  color: #17366a;
  font-weight: 900;
}

.meta-text {
  margin: 4px 0 0;
  color: #4f6498;
  font-size: 0.88rem;
  font-weight: 800;
  display: none;
}

.settings-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
}

.settings-btn.active {
  background: #009999;
  color: #fff;
  border-color: #007d7d;
  box-shadow: 0 4px 0 #006767, 0 8px 16px rgba(0, 122, 122, 0.2);
}

.settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(900px, calc(100vw - 44px));
  z-index: 34;
}

.composer-menu-panel .settings,
.composer-menu-panel .toolbar {
  margin-bottom: 8px;
}

.settings {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid #e2ecff;
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(88px, 118px) 1fr minmax(42px, 52px);
  align-items: center;
  gap: 8px;
}

.setting-row-modes {
  grid-template-columns: minmax(88px, 118px) 1fr;
}

.setting-label {
  font-weight: 900;
  color: #2a4478;
  font-size: 0.81rem;
}

.setting-value {
  text-align: center;
  font-weight: 900;
  color: #0f4474;
  background: #ffffff;
  border: 2px solid #d8e6ff;
  border-radius: 999px;
  padding: 1px 4px;
  font-size: 0.74rem;
}

.settings input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.mode-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mode-btn {
  color: #23416e;
  background: #f2f6ff;
  border: 2px solid #d3e1ff;
  min-height: 30px;
  min-width: 72px;
  padding: 5px 9px;
  font-size: 0.76rem;
  border-radius: 10px;
  font-weight: 900;
}

.mode-btn.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal-dark);
}

.mode-btn[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.transport-toolbar {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 80;
  gap: 8px;
}

.transport-manage-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.transport-divider {
  color: #7f96bf;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  margin: 0 2px;
}

.transport-btn {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2fb352;
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.stop-octagon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #e24f4f;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.stop-square {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #fff;
}

.tool-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  border: 2px solid #d8e3f8;
  color: #4f6796;
}

.tool-icon-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon-btn.active {
  background: #009999;
  color: #fff;
  border-color: #007d7d;
}

.mini-btn {
  min-width: 56px;
  min-height: 34px;
  border-radius: 10px;
  border: 0;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  padding: 6px 10px;
}

.teal-btn {
  background: var(--teal);
}

.red-btn {
  background: var(--red);
}

.message {
  min-height: 24px;
  margin: 6px 0 8px;
  color: #446196;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.slots-wrap {
  position: relative;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}

.slots-grid {
  width: fit-content;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Playback glow — drawn inside the score SVG between the staff layer and
   the noteheads. Negative animation-delay resumes bursts across re-renders. */
.beat-wave-svg {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  will-change: transform, opacity;
  animation:
    beatWaveScale 1700ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    beatWaveFade 1700ms cubic-bezier(0.4, 0, 0.5, 1) forwards;
}

@keyframes beatWaveScale {
  from { transform: scale(0.3); }
  to   { transform: scale(2.2); }
}

@keyframes beatWaveFade {
  0%   { opacity: 0; }
  10%  { opacity: 0.85; }
  100% { opacity: 0; }
}

.slots-grid svg {
  display: block;
}

.slots-grid.mode-eighth {
  width: 100%;
}

.slots-grid.mode-eighth svg {
  width: 100%;
  height: auto;
}

.count-in-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #17366a;
  pointer-events: none;
}

.bank-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--dock-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: transparent;
  padding: 8px 10px 10px;
  z-index: 70;
}

.bank-dock::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--dock-bg-height) + env(safe-area-inset-bottom));
  background: #dde3ea;
  box-shadow: 0 -8px 20px rgba(22, 39, 76, 0.08);
  pointer-events: none;
}

.bank-dock-inner,
.bank-area {
  height: 100%;
}

.bank-dock-inner {
  width: min(1020px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bank-area {
  border-radius: 0;
  border: 0;
  background: transparent;
  max-height: calc(var(--dock-height) - 8px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: 6px 8px 10px;
}

.bank-grid {
  width: max-content;
  margin: 0 auto;
}

.bank-grid.bank-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: var(--bank-note-gap);
  padding: 2px 6px 0;
}

.bank-grid.c-major-strip {
  width: calc((9 * var(--bank-note-size)) + (8 * var(--bank-note-gap)) + 14px);
  margin-top: calc(var(--dock-height) - var(--dock-bg-height) - (var(--bank-note-size) * 0.67));
}

.bank-grid.chromatic-strip {
  width: max-content;
  margin-top: calc(var(--dock-height) - var(--dock-bg-height) - (var(--bank-note-size) * 0.67));
}

.bank-area.chromatic-bank-area {
  border-radius: 14px;
  border: 1px solid #cfdcf3;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(240, 246, 255, 0.86));
  padding: 8px 10px 12px;
  overflow-y: visible;
}

.bank-grid.chromatic-piano {
  width: max-content;
  padding: 10px 4px 12px;
  margin-bottom: 4px;
}

.chromatic-piano-strip {
  position: relative;
  width: calc((var(--white-count) * var(--bank-note-size)) + ((var(--white-count) - 1) * var(--bank-note-gap)));
  padding-top: calc(var(--bank-note-size) * 0.72);
}

.chromatic-white-row {
  display: flex;
  gap: var(--bank-note-gap);
  align-items: flex-end;
}

.chromatic-black-row {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--bank-note-size) * 0.86);
  pointer-events: none;
}

.chromatic-black-wrap {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 4;
}

.chromatic-black-wrap .bank-note {
  width: calc(var(--bank-note-size) * 0.9);
  height: calc(var(--bank-note-size) * 1.18);
  min-width: calc(var(--bank-note-size) * 0.9);
  min-height: calc(var(--bank-note-size) * 1.18);
}

.chromatic-black-note {
  border: 0;
  background: linear-gradient(180deg, #3f4c66, #35425b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(20, 29, 43, 0.32),
    0 5px 9px rgba(20, 29, 43, 0.2);
  color: #eef2ff;
}

.chromatic-black-note .note-art {
  margin-top: -6px;
}

.chromatic-black-note .note-label {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}

.note {
  width: var(--tile-size);
  height: var(--tile-size);
  border-radius: 22px;
  border: 3px solid transparent;
  margin: 0;
  padding: 0;
  background: var(--note-color, #ff7a7a);
  color: #fff;
  font-size: clamp(1.75rem, 4.8vw, 2.2rem);
  font-weight: 900;
  display: grid;
  place-items: center;
  user-select: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.note.has-image {
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  border-color: var(--note-color, #8fa3d8);
  color: #20315f;
}

.bank-note {
  width: var(--bank-note-size);
  height: calc(var(--bank-note-size) * 1.12);
  min-width: var(--bank-note-size);
  min-height: calc(var(--bank-note-size) * 1.12);
  border: 3px solid var(--note-color, #c9d7f5);
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f9ff, #edf2ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 0 rgba(25, 46, 93, 0.12),
    0 8px 16px rgba(25, 46, 93, 0.14);
  color: #1f3668;
  font-size: 0.98rem;
  font-weight: 900;
}

.bank-note .note-art {
  width: 82%;
  height: 82%;
  margin-top: -4px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 5px rgba(0, 52, 75, 0.2));
}

.bank-note .note-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  min-width: 0;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.2;
  color: #223e75;
  background: transparent;
  border: 0;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}

.bank-note.chromatic-black-note.has-image,
.bank-note.chromatic-black-note {
  border: 0;
  background: linear-gradient(180deg, #3f4c66, #35425b);
  color: #eef2ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(20, 29, 43, 0.32),
    0 5px 9px rgba(20, 29, 43, 0.2);
}

.bank-note.chromatic-black-note.has-image .note-label,
.bank-note.chromatic-black-note .note-label {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}

.note.note-playing,
.bank-note.note-playing {
  transform: translateY(1px) scale(1.04);
  filter: brightness(1.04);
}

.sr-only {
  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: 980px) {
  :root {
    --bank-note-size: 72px;
    --bank-note-gap: 5px;
  }
}

@media (max-width: 640px) {
  :root {
    --bank-note-size: 62px;
    --dock-height: clamp(164px, 28vh, 196px);
    --dock-bg-height: clamp(58px, 11vh, 76px);
  }

  body {
    padding: 8px;
  }

  .screen {
    padding: 8px 10px calc(var(--dock-height) + env(safe-area-inset-bottom) + 18px);
  }

  .toolbar {
    gap: 8px;
  }
}

/* Built by buildPrintPages() right before printing; hidden on screen */
.print-pages {
  display: none;
}

@media print {
  @page {
    margin: 0.4in;
  }

  body {
    padding: 0;
  }

  /* The live app disappears; only the paginated pages print */
  .screen > *:not(.print-pages) {
    display: none !important;
  }

  .screen {
    padding: 0;
  }

  .print-pages {
    display: block;
  }

  .print-page {
    page-break-after: always;
    break-after: page;
  }

  .print-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .print-page svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 0.14in;
  }

  .print-header {
    text-align: center;
    margin-bottom: 0.16in;
  }

  .print-title {
    font-family: "Nunito", sans-serif;
    font-weight: 900;
    font-size: 22pt;
    color: #1b233e;
  }

  .print-stars {
    color: #512d1b;
    font-size: 13pt;
    letter-spacing: 3px;
    margin-top: 2pt;
  }

  .print-byline {
    text-align: right;
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: 11pt;
    color: #4a463f;
    margin-top: 2pt;
  }
}

/* ── Corner menus (Fable) ─────────────────────────────────────── */
.corner-menus {
  position: fixed;
  top: 12px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 80;
}

.corner-menus .settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(560px, calc(100vw - 28px));
}

.file-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 28px));
  max-height: min(72vh, 560px);
  overflow: auto;
  border: 2px solid #d9e5ff;
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 80;
}

.menu-caption {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7f96bf;
  margin: 6px 6px 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  color: #2a4478;
  cursor: pointer;
}

.menu-item:hover {
  background: #eef4ff;
}

.menu-item.active {
  background: #e2f4f4;
}

.menu-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-item-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.menu-item-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.menu-hint {
  font-size: 0.71rem;
  font-weight: 700;
  color: #8aa0c6;
  line-height: 1.2;
}

.file-panel .saved-panel {
  position: static;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 2px 6px 6px;
  box-shadow: none;
  max-height: 280px;
}

/* ── Chord band + picker (Fable) ──────────────────────────────── */
.chord-hit:hover {
  fill: rgba(0, 153, 153, 0.08);
}

.chord-picker {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 248px;
  padding: 8px;
  border: 2px solid #d9e5ff;
  border-radius: 12px;
  background: #ffffff;
}

.chord-pick {
  width: 52px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0;
}

.chord-pick-clear {
  background: #eef2fa;
  color: #4f6796;
}

/* ── Lyric editor (Fable) ─────────────────────────────────────── */
.lyric-input {
  position: absolute;
  z-index: 6;
  box-sizing: border-box;
  border: 2px solid #b9c5de;
  border-radius: 10px;
  background: #ffffff;
  color: #512d1b;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  text-align: center;
  padding: 0 6px;
  outline: none;
  box-shadow: 0 2px 10px rgba(27, 35, 62, 0.18);
}

.lyric-input:focus {
  border-color: #1e7fc3;
}

/* ── Eraser tool + drag-to-trash ─────────────────────────────────────────── */
/* Destructive mode reads red, not the teal of a normal toggle. */
.eraser-btn.active {
  background: #d1483f;
  border-color: #b23a32;
  color: #fff;
}

.slots-grid.erasing {
  cursor: crosshair;
}

.trash-zone {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(10px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  border: 2px dashed #d98a8a;
  color: #c0504d;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 28px rgba(27, 35, 62, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.12s ease,
    border-color 0.12s ease, color 0.12s ease;
}

.trash-zone.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.trash-zone.armed {
  background: #c0392b;
  border-color: #9a281c;
  border-style: solid;
  color: #fff;
  transform: translateX(-50%) translateY(0) scale(1.06);
}

.trash-zone svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Compose Library integration --- */

/* Teal "Publish" button in the top-right cluster (only shown in library mode).
   Same footprint as the gear/menu icon buttons, but teal and label-wide. */
.publish-icon-btn {
  width: auto;
  min-width: 44px;
  padding: 0 15px;
  gap: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #009999;
  border-color: #007d7d;
  color: #fff;
}
.publish-icon-btn:hover {
  background: #007777;
}
.publish-icon-btn svg {
  stroke: #fff;
}
.publish-icon-btn span {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
}

/* Grayed "Title…" placeholder (shown in library mode when the title is blank) */
.song-name-input::placeholder {
  color: #9fb0d0;
  font-weight: 800;
}

/* Read-only playback embed (#...&view=play): keep the score + transport,
   strip every editing affordance so a song page can iframe it. */
.screen.play-embed .corner-menus,
.screen.play-embed .top-ui,
.screen.play-embed .meta-text,
.screen.play-embed .message,
.screen.play-embed .bank-dock,
.screen.play-embed .eraser-btn {
  display: none !important;
}
.screen.play-embed {
  padding-bottom: 16px;
}
/* Score stays visible but not editable inside the embed. */
.screen.play-embed .slots-wrap {
  pointer-events: none;
}
.screen.play-embed .transport-toolbar {
  pointer-events: auto;
  justify-content: center;
}
