/* Loúa repertoire: two clear first choices, with further detail on request. */
body.simple-repertoire {
  background:
    radial-gradient(circle at 82% 0%, rgba(104, 127, 112, 0.11), transparent 32rem),
    linear-gradient(180deg, #fffefa 0%, #fbfaf6 55%, #f4f2eb 100%);
}

body.simple-repertoire [hidden] {
  display: none !important;
}

body.simple-repertoire .topbar {
  min-height: 64px;
  padding: 0.7rem max(1.25rem, calc((100vw - 920px) / 2));
  background: rgba(251, 250, 246, 0.95);
  border-bottom-color: var(--line);
}

body.simple-repertoire .topbar > :last-child:not(.brand) {
  color: var(--muted);
  font-size: 0.8rem;
}

body.simple-repertoire .brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

body.simple-repertoire .workspace {
  display: block;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 6rem;
}

body.simple-repertoire .workspace .intro-panel {
  display: block;
  min-height: 180px;
  margin: 0 0 1.45rem;
  padding: 1.6rem 1.8rem;
  border: 0;
  border-radius: 10px;
  background-color: #8d9f8b;
  background-image:
    linear-gradient(90deg, rgba(26, 61, 49, 0.98) 0%, rgba(38, 72, 58, 0.94) 48%, rgba(71, 99, 78, 0.26) 100%),
    url("assets/chapters/singalong-mark.png");
  background-position: center, right 1.4rem center;
  background-size: cover, auto 90%;
  background-repeat: no-repeat;
  box-shadow: none;
  color: var(--cream);
}

body.simple-repertoire .intro-panel .eyebrow {
  margin-bottom: 0.7rem;
  color: #e6edde;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  opacity: 1;
}

body.simple-repertoire .intro-panel h1 {
  max-width: 38rem;
  margin: 0 0 0.7rem;
  font-size: clamp(2.3rem, 4.7vw, 3.25rem);
  line-height: 1.02;
}

body.simple-repertoire .intro-panel .hero-copy {
  max-width: 34rem;
  margin: 0;
  color: #e2e9df;
  font-size: 0.9rem;
  line-height: 1.55;
  letter-spacing: 0;
}

body.simple-repertoire .simple-finder {
  margin: 0 0 1.2rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

body.simple-repertoire .finder-heading {
  margin: 0 0 1rem;
}

body.simple-repertoire .finder-heading .eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  opacity: 1;
}

body.simple-repertoire #finderTitle {
  margin: 0;
  font-family: var(--editorial-serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

body.simple-repertoire .finder-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

body.simple-repertoire .finder-row > label,
body.simple-repertoire .refine-grid > label {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.simple-repertoire .simple-finder label > span,
body.simple-repertoire .simple-finder .filter-choice > span,
body.simple-repertoire .simple-finder .filter-choice > legend {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}

body.simple-repertoire .simple-finder :is(select, input:not([type="checkbox"])) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(33, 68, 59, 0.23);
  border-radius: 8px;
  background-color: var(--cream);
  box-shadow: none;
  color: var(--ink);
  font-size: 0.88rem;
}

body.simple-repertoire .finder-row label small {
  display: inline;
  margin: 0 0 0 0.3rem;
  font-size: 0.65rem;
}

body.simple-repertoire .simple-finder .finder-row select {
  min-height: 50px;
  border-color: rgba(33, 68, 59, 0.33);
  background-color: #f1f4ed;
  padding-left: 0.9rem;
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 500;
}

body.simple-repertoire .finder-row label > span {
  color: #495c50;
  font-weight: 500;
}

body.simple-repertoire .finder-refinement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.45rem;
}

body.simple-repertoire .finder-refinement-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

body.simple-repertoire .simple-finder :is(select, input):focus {
  border-color: var(--accent);
}

body.simple-repertoire .text-button {
  min-height: 44px;
  padding: 0 0.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

body.simple-repertoire .text-button:hover {
  color: var(--ink);
  background: transparent;
}

body.simple-repertoire #filterToggle {
  flex: 0 0 auto;
  min-width: 66px;
  margin: 0;
}

body.simple-repertoire .refine-panel {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

body.simple-repertoire .refine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

body.simple-repertoire .repertoire-search {
  display: block;
  width: calc((100% - 1rem) / 2);
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

body.simple-repertoire .repertoire-search > span:first-child {
  color: #495c50;
  font-size: 0.78rem;
  font-weight: 500;
}

body.simple-repertoire .repertoire-search .search-input-wrap {
  position: relative;
  display: block;
  margin: 0;
}

body.simple-repertoire .search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
}

body.simple-repertoire .simple-finder .repertoire-search #searchInput {
  min-height: 50px;
  padding: 0.65rem 0.5rem 0.65rem 2rem;
  border: 0;
  border-bottom: 1px solid var(--sage);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.96rem;
}

body.simple-repertoire .repertoire-search #searchInput:focus-visible {
  border-bottom: 2px solid var(--accent);
  outline: none;
}

body.simple-repertoire .refine-grid .filter-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.simple-repertoire .refine-grid .check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  min-height: 44px;
  margin: 0;
}

body.simple-repertoire .refine-grid .check-row label {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: start;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

body.simple-repertoire .refine-grid .check-row label span {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: none;
  letter-spacing: 0;
}

body.simple-repertoire .refine-grid input[type="checkbox"] {
  appearance: auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

body.simple-repertoire .refine-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
  margin-top: 0.6rem;
}

body.simple-repertoire .workspace .catalog-shell {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-margin-top: 5.5rem;
}

body.simple-repertoire .catalog-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(430px, 100%);
  margin: 0 0 1.2rem;
  padding: 0.3rem;
  gap: 0.3rem;
  border: 1px solid rgba(33, 68, 59, 0.18);
  border-radius: 999px;
  background: #eef2eb;
}

body.simple-repertoire .catalog-modes button {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

body.simple-repertoire .catalog-modes button:hover:not(:disabled) {
  background: #e0e8dc;
}

body.simple-repertoire .catalog-modes button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--cream);
}

body.simple-repertoire .catalog-modes button[aria-pressed="true"]:hover {
  background: #193c31;
}

body.simple-repertoire .catalog-modes button:disabled {
  color: #8b9388;
  cursor: default;
}

body.simple-repertoire .catalog-shell > .section-head {
  align-items: start;
  gap: 0.7rem 1.5rem;
  margin-bottom: 0.55rem;
}

body.simple-repertoire #catalogTitle {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
}

body.simple-repertoire #resultSummary {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

body.simple-repertoire #collectionDescription {
  max-width: 46rem;
  margin: 0 0 0.55rem;
  color: #5a665d;
  font-family: var(--clean-sans);
  font-size: 0.86rem;
  line-height: 1.5;
}

body.simple-repertoire .draft-note {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

body.simple-repertoire .song-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0.8rem;
}

body.simple-repertoire .workspace .song-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.simple-repertoire .workspace .song-card:last-child {
  border-bottom: 1px solid var(--line);
}

body.simple-repertoire .workspace .song-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.48rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body.simple-repertoire .workspace .song-card header p {
  font-size: 0.81rem;
  line-height: 1.45;
}

body.simple-repertoire .workspace .song-card .song-reason {
  display: block;
  max-width: 40rem;
  margin: 0.35rem 0 0;
  color: #657067;
  font-size: 0.77rem;
  line-height: 1.5;
}

body.simple-repertoire .song-card :is(.song-rank, .song-meta, .song-badges, .song-fit) {
  display: none;
}

body.simple-repertoire .song-card footer {
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 0;
}

body.simple-repertoire .song-card .mini-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.7rem;
}

body.simple-repertoire .song-card .mini-actions :is(a, button) {
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

body.simple-repertoire .song-card .mini-actions button {
  min-width: 88px;
  padding: 0 0.9rem;
  border: 1px solid rgba(33, 68, 59, 0.2);
  border-radius: 999px;
  background: var(--sage-wash);
  text-decoration: none;
}

body.simple-repertoire .song-card .mini-actions button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
}

body.simple-repertoire .song-card .mini-actions a:hover {
  color: var(--ink);
  background: transparent;
}

body.simple-repertoire .song-card .mini-actions button:hover:not(:disabled) {
  border-color: var(--accent);
  background: #e1e9dd;
  color: var(--accent);
}

body.simple-repertoire .song-card .mini-actions button[aria-pressed="true"]:hover {
  background: #193c31;
  color: var(--cream);
}

body.simple-repertoire .song-card .mini-actions button:disabled {
  border-color: var(--line);
  background: var(--sage-wash);
  color: var(--muted);
  text-decoration: none;
}

body.simple-repertoire .wedding-builder {
  margin: 0 0 1.6rem;
}

body.simple-repertoire .selection-fab {
  min-height: 44px;
  right: 1.25rem;
  bottom: 1.25rem;
  box-shadow: 0 3px 14px rgba(32, 37, 34, 0.12);
}

body.simple-repertoire[data-embed="true"] {
  background: transparent;
}

body.simple-repertoire[data-embed="true"] .workspace {
  width: min(960px, 100%);
  padding-top: 0.5rem;
}

@media (max-width: 600px) {
  body.simple-repertoire .topbar {
    min-height: 58px;
    padding: 0.65rem 1rem;
  }

  body.simple-repertoire .brand small {
    font-size: 0.66rem;
  }

  body.simple-repertoire .workspace,
  body.simple-repertoire[data-embed="true"] .workspace {
    padding: 0.8rem 1rem 6rem;
  }

  body.simple-repertoire .workspace .intro-panel {
    min-height: 0;
    margin-bottom: 1.2rem;
    padding: 1.15rem 1.2rem;
    background-image:
      linear-gradient(90deg, rgba(26, 61, 49, 0.98) 0%, rgba(38, 72, 58, 0.93) 48%, rgba(71, 99, 78, 0.64) 100%),
      url("assets/chapters/singalong-mark.png");
    background-position: center, right -0.9rem center;
    background-size: cover, auto 82%;
  }

  body.simple-repertoire .intro-panel .eyebrow {
    margin-bottom: 0.5rem;
  }

  body.simple-repertoire .intro-panel h1 {
    max-width: 19rem;
    margin-bottom: 0.5rem;
    font-size: clamp(2.05rem, 8vw, 2.6rem);
  }

  body.simple-repertoire .intro-panel .hero-copy {
    max-width: 18rem;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  body.simple-repertoire .finder-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  body.simple-repertoire .finder-heading {
    margin-bottom: 0.85rem;
  }

  body.simple-repertoire #finderTitle {
    font-size: 1.45rem;
  }

  body.simple-repertoire .finder-refinement-row p {
    max-width: 15rem;
    font-size: 0.71rem;
  }

  body.simple-repertoire .simple-finder {
    margin-bottom: 1.15rem;
    padding-bottom: 0.65rem;
  }

  body.simple-repertoire .simple-finder :is(select, input:not([type="checkbox"])) {
    min-height: 46px;
    padding-left: 0.65rem;
    font-size: 16px;
  }

  body.simple-repertoire .simple-finder .finder-row select {
    min-height: 48px;
    padding-left: 0.85rem;
  }

  body.simple-repertoire .repertoire-search {
    width: 100%;
  }

  body.simple-repertoire .simple-finder .repertoire-search #searchInput {
    min-height: 48px;
    font-size: 16px;
  }

  body.simple-repertoire .refine-panel {
    margin-top: 0.6rem;
    padding-top: 1rem;
  }

  body.simple-repertoire .refine-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.simple-repertoire .catalog-shell > .section-head {
    flex-direction: row;
    align-items: start;
    gap: 0.5rem;
  }

  body.simple-repertoire #catalogTitle {
    font-size: 1.6rem;
  }

  body.simple-repertoire .catalog-modes {
    margin-bottom: 1rem;
  }

  body.simple-repertoire .catalog-modes button {
    padding: 0.55rem 0.45rem;
    font-size: 0.78rem;
  }

  body.simple-repertoire #collectionDescription {
    font-size: 0.81rem;
  }

  body.simple-repertoire .draft-note {
    margin-bottom: 0.65rem;
  }

  body.simple-repertoire .workspace .song-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.65rem;
    padding: 0.85rem 0;
  }

  body.simple-repertoire .workspace .song-card h3 {
    font-size: 1.3rem;
  }

  body.simple-repertoire .workspace .song-card header p {
    font-size: 0.75rem;
  }

  body.simple-repertoire .workspace .song-card .song-reason {
    font-size: 0.73rem;
    line-height: 1.45;
  }

  body.simple-repertoire .song-card .mini-actions {
    flex-direction: column;
    align-items: end;
    gap: 0.15rem;
  }

  body.simple-repertoire .song-card .mini-actions :is(a, button) {
    min-height: 44px;
    padding: 0;
    font-size: 0.74rem;
  }

  body.simple-repertoire .song-card .mini-actions button {
    min-width: 78px;
    padding: 0 0.7rem;
  }

  body.simple-repertoire .selection-fab {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Functional controls use the existing quiet green and cream palette. */
body.simple-repertoire .moment-filter {
  border: 0;
  padding: 0;
  margin: 1rem 0 0;
  min-width: 0;
}
body.simple-repertoire .moment-filter legend {
  padding: 0;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.84rem;
}
body.simple-repertoire .moment-options,
body.simple-repertoire .active-refinements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
body.simple-repertoire .moment-options button,
body.simple-repertoire .active-refinements button {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--accent);
  font-size: 0.78rem;
}
body.simple-repertoire .moment-options button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--cream);
}
body.simple-repertoire .moment-options button:disabled {
  opacity: 0.52;
  cursor: default;
}
body.simple-repertoire .filter-help {
  display: block;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 42rem;
}
body.simple-repertoire .filter-choice > .filter-help { margin: 0 0 0.35rem; }
body.simple-repertoire .active-refinements { margin-top: 0.65rem; }
body.simple-repertoire .active-refinements button {
  background: var(--sage-wash);
  min-height: 36px;
}
body.simple-repertoire .song-card .mini-actions .listen-action {
  min-width: 76px;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
}
body.simple-repertoire .song-card .mini-actions .listen-action:hover {
  background: var(--sage-wash);
}
body.simple-repertoire .song-card .mini-actions .listen-action:disabled {
  opacity: 0.5;
  cursor: default;
  background: transparent;
}
body.simple-repertoire .empty-state button { margin: 0.25rem; }
body.simple-repertoire :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
body.simple-repertoire .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
body.simple-repertoire .listen-dialog {
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
}
body.simple-repertoire .listen-dialog::backdrop { background: rgba(20, 37, 31, 0.65); }
body.simple-repertoire .listen-title {
  font-family: var(--editorial-serif);
  font-size: 1.8rem;
  margin: 0.8rem 0 1rem;
  text-transform: none;
  letter-spacing: 0;
}
body.simple-repertoire .listen-close { display: flex; margin-left: auto; }
body.simple-repertoire .listen-frame { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
body.simple-repertoire .listen-media audio { width: 100%; }
body.simple-repertoire .listen-fallback { display: inline-block; margin-top: 1rem; color: var(--accent); font-size: 0.8rem; }
body.simple-repertoire .selection-panel { scroll-padding-block: 1rem; }
@media (max-width: 600px) {
  body.simple-repertoire .moment-options button { min-height: 44px; padding-inline: 0.7rem; }
  body.simple-repertoire .selection-fab {
    right: 1rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
  body.simple-repertoire .workspace { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  body.simple-repertoire .song-card { scroll-margin-bottom: 5rem; }
}

/* Keep saved songs within reach without covering the song list. */
body.simple-repertoire .favorites-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 60px;
  padding: 0.6rem max(1.25rem, calc((100vw - 920px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.82rem;
}

body.simple-repertoire :is(.topbar, .favorites-bar) #selectionToggle {
  position: static;
  flex: 0 0 auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 0.85rem;
  box-shadow: none;
  color: var(--cream);
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body.simple-repertoire .favorites-bar {
    padding: 0.6rem 1rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  body.simple-repertoire .topbar .brand small {
    display: none;
  }
}

/* Advice is optional and stays a quiet part of the song finder. */
body.simple-repertoire .song-advice {
  margin: -0.65rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

body.simple-repertoire .song-advice > .advice-trigger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  min-height: 44px;
  padding: 0.2rem 0 0.55rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.5;
}

body.simple-repertoire .song-advice > .advice-trigger::-webkit-details-marker {
  display: none;
}

body.simple-repertoire .song-advice > .advice-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

body.simple-repertoire .advice-prompt {
  color: var(--muted);
}

body.simple-repertoire .advice-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
}

body.simple-repertoire .song-advice > .advice-trigger:hover .advice-action {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

body.simple-repertoire .advice-chevron {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transform-origin: center;
}

body.simple-repertoire .song-advice[open] .advice-chevron {
  transform: rotate(180deg);
}

body.simple-repertoire .advice-body {
  max-width: 46rem;
  padding: 1rem 0 1.3rem;
  color: #5a665d;
  font-size: 0.84rem;
  line-height: 1.7;
}

body.simple-repertoire .advice-body h3 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

body.simple-repertoire .advice-body p {
  margin: 0 0 0.8rem;
}

body.simple-repertoire .advice-tips {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}

body.simple-repertoire .advice-tip h4 {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-family: var(--clean-sans);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

body.simple-repertoire .advice-tip p {
  margin: 0;
}

body.simple-repertoire .advice-contact {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

body.simple-repertoire .advice-contact h3 {
  font-size: 1.45rem;
}

body.simple-repertoire .advice-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.4rem;
}

body.simple-repertoire .advice-contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.8rem;
  text-underline-offset: 0.25em;
}

@media (max-width: 600px) {
  body.simple-repertoire .song-advice > .advice-trigger {
    padding-bottom: 0.65rem;
    font-size: 0.74rem;
  }

  body.simple-repertoire .advice-body {
    padding-top: 0.85rem;
    font-size: 0.81rem;
  }

  body.simple-repertoire .advice-body h3 {
    font-size: 1.5rem;
  }

  body.simple-repertoire .advice-contact h3 {
    font-size: 1.35rem;
  }
}

/* Small editorial refinements and the personal wishlist. */
body.simple-repertoire .song-advice { background: #f0f3ec; border: 0; border-radius: 8px; padding: 0 1.2rem; margin-top: .3rem; }
body.simple-repertoire .song-advice > .advice-trigger { padding: 1.15rem 0; gap: .7rem 1.5rem; }
body.simple-repertoire .advice-intro { display: grid; gap: .3rem; }
body.simple-repertoire .advice-prompt { font-family: var(--font-heading, Georgia, serif); font-size: 1.2rem; color: var(--accent); }
body.simple-repertoire .advice-subtitle { color: var(--muted); font-size: .83rem; }
body.simple-repertoire .advice-action { font-size: .8rem; }
body.simple-repertoire .selection-panel { max-height: calc(100dvh - 6rem); overscroll-behavior: contain; }
body.simple-repertoire .selection-panel > .section-head { position: sticky; top: -1rem; background: #fffefa; z-index: 2; padding-block: .6rem; }
body.simple-repertoire #closeSelection { min-width: 44px; min-height: 44px; }
body.simple-repertoire .selection-list { margin: .8rem 0; }
body.simple-repertoire .selection-item > div { min-width: 0; overflow-wrap: anywhere; }
body.simple-repertoire .wish-details { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
body.simple-repertoire .wish-details > summary { cursor: pointer; padding: .4rem 0 .9rem; font-weight: 500; }
body.simple-repertoire #wishForm input, body.simple-repertoire #wishForm textarea { width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; }
body.simple-repertoire #wishForm .selection-actions { position: sticky; bottom: -1rem; background: #fffefa; padding: .8rem 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
body.simple-repertoire #wishForm .selection-actions button { min-height: 44px; width: 100%; }
body.simple-repertoire #wishStatus { overflow-wrap: anywhere; }
body.simple-repertoire #wishStatus:empty { display: none; }
@media (max-width: 600px) {
  body.simple-repertoire .song-advice > .advice-trigger { align-items: flex-start; flex-direction: column; }
  body.simple-repertoire .selection-panel { top: .5rem; right: .5rem; width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); box-sizing: border-box; }
  body.simple-repertoire #wishForm .planner-fields { grid-template-columns: 1fr; }
}
body.simple-repertoire #wishForm #copySelection { background: transparent; color: var(--accent); border: 0; box-shadow: none; width: auto; justify-self: center; padding: .3rem .6rem; font-size: .8rem; font-weight: 400; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 600px) {
  body.simple-repertoire .selection-panel { left: .5rem; right: .5rem; width: auto; }
}

body.simple-repertoire .wishlist-empty { text-align: center; padding: 1.5rem 1rem; }
body.simple-repertoire .wishlist-heart { display: block; font-size: 1.8rem; color: var(--accent); margin-bottom: .5rem; }
body.simple-repertoire .wishlist-empty h3 { margin: 0 0 .7rem; font-size: 1.2rem; color: var(--accent); }
body.simple-repertoire .wishlist-empty p { margin: 0; line-height: 1.6; }
body.simple-repertoire #sendWishes:disabled { opacity: .45; cursor: not-allowed; }
@media (min-width: 601px) {
  body.simple-repertoire .workspace .selection-panel { width: min(420px, calc(100vw - 2rem)); box-sizing: border-box; }
}

/* Optional advice opens above the song list without moving it. */
body.simple-repertoire .song-advice > .advice-trigger {
  width: 100%; border: 0; border-radius: 0; background: transparent;
  text-align: left; font-weight: 400; box-shadow: none; color: var(--ink);
}
#adviceDialog {
  width: min(46rem, calc(100vw - 2rem)); max-width: none;
  max-height: min(88dvh, 54rem); margin: auto; padding: 0;
  border: 0; border-radius: 14px; background: #f0f3ec; color: #21443b;
  box-shadow: 0 20px 70px #142a2440; overflow: auto;
}
#adviceDialog::backdrop { background: #172c2466; }
.advice-dialog-header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem;
  background: #f0f3ec; border-bottom: 1px solid #21443b20;
}
.advice-dialog-header h2 { margin: 0; font-family: var(--editorial-serif); font-size: 1.3rem; font-weight: 400; }
body.simple-repertoire #adviceClose {
  flex-shrink: 0; min-height: 44px; padding: .4rem .65rem;
  border: 0; background: transparent; color: #21443b; font-size: .9rem;
}
body.simple-repertoire #adviceDialog .advice-body { padding: 1.4rem; }
html.advice-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  #adviceDialog { width: calc(100vw - 1rem); max-height: 92dvh; }
  .advice-dialog-header { padding: .7rem 1rem; }
  body.simple-repertoire #adviceDialog .advice-body { padding: 1rem; }
}
