:root {
  --sg-paper: #f7f5ef;
  --sg-ink: #153235;
  --sg-pine: #176d65;
  --sg-pine-dark: #10584f;
  --sg-muted: #71817e;
  --sg-line: #d9e1de;
  --sg-soft: #edf3f1;
  --sg-warm: #f2ece3;
  --sg-violet: #6f5795;
  --sg-danger: #a34e43;
  --sg-focus: #6f5795;
  --sg-target: 44px;
  --sg-shadow-float: 0 18px 48px rgba(21, 50, 53, .18);
}

.mp-main .mp-search {
  min-width: 0;
  max-width: 520px;
  overflow: hidden;
}

.mp-main .mp-search input,
.mp-search input {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-main .mp-search-clear {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  margin: -6px -10px -6px 0;
  border-radius: 50%;
  color: #7b848c;
}

.mp-main .mp-search-clear:hover,
.mp-main .mp-search-clear:focus-visible {
  background: rgba(21, 50, 53, .08);
}

.mp-main .mp-search-clear[hidden] {
  display: none;
}

.mp-main .mp-search-clear svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.mp-back {
  min-height: 44px;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mp-back:hover,
.mp-back:focus-visible {
  background: transparent;
}

.sg-mode-toggle {
  display: grid;
  width: 104px;
  min-height: 44px;
  flex: 0 0 104px;
  grid-template-columns: 1fr 1fr;
  margin-left: auto;
  padding: 3px;
  border: 1px solid #c8d4d1;
  border-radius: 999px;
  background: #e4ebe9;
}

.sg-mode-toggle [data-sg-mode] {
  min-width: 0;
  min-height: 36px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #61716e;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.sg-mode-toggle [data-sg-mode][aria-checked="true"] {
  border-color: rgba(21, 50, 53, .08);
  background: #fff;
  color: var(--sg-ink);
}

.sg-mode-toggle [data-sg-mode]:focus-visible,
.sg-meeting-card button:focus-visible,
.sg-meeting-picks button:focus-visible,
.sg-meeting-quick-find button:focus-visible,
.sg-saved-playlists button:focus-visible,
.sg-meeting-panel button:focus-visible,
.sg-meeting-panel a:focus-visible,
.sg-meeting-panel input:focus-visible,
.sg-meeting-panel select:focus-visible {
  outline: 2px solid var(--sg-violet);
  outline-offset: 2px;
}

body.sg-mode-listen .mp-fixed-bg,
body.sg-mode-listen .mp-main,
body.sg-mode-meeting .mp-fixed-bg,
body.sg-mode-meeting .mp-main {
  background: var(--sg-paper);
}

body.sg-mode-meeting .mp-view {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: calc(64px + var(--botnav));
}

.sg-playlist-heading span,
.sg-recent-meetings header span,
.sg-meeting-quick-find header span,
.sg-meeting-picks header span,
.sg-saved-playlists header span {
  display: block;
  color: var(--sg-pine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

body.sg-mode-meeting .sg-meeting-card {
  display: block;
  margin-top: 30px;
  color: var(--sg-ink);
}

.sg-book-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  padding: 18px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--sg-cover-color);
  color: #fff;
  text-align: left;
}

.sg-book-cover::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: rgba(255, 255, 255, .24);
  content: "";
}

.sg-book-cover__title {
  position: relative;
  z-index: 1;
}

.sg-book-cover__title {
  overflow: hidden;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.sg-recommendation-rail {
  margin: 30px 0 26px;
}

.sg-recommendation-rail__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sg-recommendation-rail__head span {
  color: var(--sg-pine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.sg-recommendation-rail__head h2 {
  margin: 4px 0 0;
  color: var(--sg-ink);
  font-size: 24px;
  letter-spacing: -.02em;
}

.sg-recommendation-rail__head button {
  min-height: 44px;
  color: var(--sg-pine);
  font-weight: 750;
}

.sg-recommendation-rail__track {
  display: grid;
  grid-auto-columns: minmax(150px, 22%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.sg-recommendation-rail__track::-webkit-scrollbar {
  display: none;
}

.sg-recommendation-item {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
}

.sg-recommendation-item__main {
  display: block;
  width: 100%;
  text-align: left;
}

.sg-recommendation-item .sg-book-cover {
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
}

.sg-recommendation-item__copy {
  display: block;
  min-width: 0;
  padding: 11px 2px 0;
}

.sg-recommendation-item__copy strong,
.sg-recommendation-item__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-recommendation-item__copy strong {
  color: var(--sg-ink);
  font-size: 15px;
}

.sg-recommendation-item__copy small {
  margin-top: 4px;
  color: var(--sg-muted);
  font-size: 12px;
}

.sg-recommendation-rail--compact .sg-recommendation-rail__track {
  grid-auto-columns: minmax(260px, 31%);
  gap: 24px;
}

.sg-recommendation-group {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(3, minmax(58px, auto));
  gap: 12px;
  scroll-snap-align: start;
}

.sg-recommendation-row {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sg-ink);
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.sg-recommendation-row .sg-book-cover--compact {
  width: 56px;
  height: 56px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  justify-content: center;
  padding: 7px;
  border-radius: 13px;
}

.sg-book-cover--compact .sg-book-cover__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sg-recommendation-row__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sg-recommendation-row__copy:only-child {
  grid-column: 1 / -1;
}

.sg-recommendation-row__copy strong,
.sg-recommendation-row__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-recommendation-row__copy strong {
  font-size: 15px;
}

.sg-recommendation-row__copy span {
  color: var(--sg-muted);
  font-size: 12px;
}

.sg-meeting-collections {
  gap: 16px 14px;
}

body.sg-mode-meeting .sg-meeting-library-heading {
  margin-top: 0;
}

.sg-theme-entry {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  margin: 28px 0 4px;
  padding: 16px 4px;
  border: 0;
  background: transparent;
  color: var(--sg-ink);
  text-align: left;
}

.sg-theme-entry > span {
  display: grid;
  gap: 4px;
}

.sg-theme-entry strong {
  font-size: 20px;
  line-height: 1.25;
}

.sg-theme-entry small {
  color: var(--sg-muted);
  font-size: 13px;
}

.sg-theme-entry .arw {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mp-main .mp-collcard {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mp-main .mp-thlist {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mp-main .mp-throw {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.mp-main .mp-throw:hover {
  background: transparent;
}

.sg-recommendation-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 0;
  color: var(--sg-muted);
  font-size: 14px;
}

body.sg-mode-meeting .sg-weekly-playlist {
  min-width: 0;
  padding: 26px 28px 22px;
  border: 1px solid var(--sg-line);
  border-radius: 24px;
  background: #fff;
}

.sg-playlist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
}

.sg-playlist-heading h2,
.sg-recent-meetings h2,
.sg-meeting-quick-find h2,
.sg-meeting-picks h2,
.sg-saved-playlists h2 {
  margin: 5px 0 0;
  color: var(--sg-ink);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.sg-playlist-heading p {
  margin: 7px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
}

.sg-playlist-notice,
.sg-meeting-message,
.sg-meeting-warning {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--sg-pine);
  background: var(--sg-soft);
  color: var(--sg-ink);
  font-size: 13px;
  line-height: 1.55;
}

.sg-meeting-warning {
  border-left-color: #bc7b27;
  background: #fff7e8;
}

body.sg-mode-meeting .sg-weekly-song-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sg-line);
  list-style: none;
}

body.sg-mode-meeting .sg-weekly-song-row {
  min-height: 56px;
  border-bottom: 1px solid var(--sg-line);
}

.sg-weekly-song-row {
  min-height: 56px;
}

.sg-weekly-song-open {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  text-align: left;
}

.sg-weekly-song-open:active {
  background: var(--sg-soft);
}

.sg-weekly-song-index {
  color: var(--sg-pine);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sg-weekly-song-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sg-weekly-song-copy strong {
  overflow: hidden;
  color: var(--sg-ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-weekly-song-copy small,
.sg-weekly-song-mode {
  color: var(--sg-muted);
  font-size: 12px;
}

.sg-weekly-song-mode {
  padding: 5px 9px;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  white-space: nowrap;
}

.sg-playlist-empty {
  display: grid;
  gap: 6px;
  padding: 24px 2px;
  color: var(--sg-muted);
  line-height: 1.55;
}

.sg-playlist-empty strong {
  color: var(--sg-ink);
  font-size: 16px;
}

.sg-playlist-empty span {
  font-size: 13px;
}

.sg-playlist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 20px;
}

.sg-playlist-primary,
.sg-meeting-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--sg-pine-dark);
  border-radius: 999px;
  background: var(--sg-pine-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.sg-playlist-secondary,
.sg-playlist-refresh,
.sg-meeting-action,
.sg-meeting-actions > button:not(.sg-meeting-primary),
.sg-meeting-compact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sg-pine-dark);
  font-size: 13px;
  font-weight: 750;
}

.sg-playlist-refresh {
  margin-left: auto;
  padding-inline: 10px;
  border-color: transparent;
  background: transparent;
  color: var(--sg-muted);
}

body.sg-mode-meeting .sg-recent-meetings {
  min-width: 0;
  padding-top: 4px;
}

.sg-recent-meetings header,
.sg-meeting-quick-find header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.sg-recent-meetings header button {
  min-height: 44px;
  color: var(--sg-pine);
  font-size: 13px;
  font-weight: 750;
}

.sg-recent-meeting-list {
  margin-top: 14px;
  border-top: 1px solid var(--sg-line);
}

.sg-recent-meeting-row {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--sg-line);
  color: var(--sg-ink);
  text-align: left;
}

.sg-recent-meeting-row span,
.sg-recent-meeting-row small,
.sg-playlist-emptyline {
  color: var(--sg-muted);
  font-size: 12px;
}

.sg-playlist-emptyline {
  margin: 0;
  padding: 22px 0;
  line-height: 1.6;
}

body.sg-mode-meeting .sg-meeting-quick-find {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--sg-line);
}

.sg-meeting-picks,
.sg-saved-playlists {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--sg-line);
}

.sg-meeting-picks header,
.sg-saved-playlists header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.sg-meeting-picks header p {
  margin: 7px 0 0;
  color: var(--sg-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sg-meeting-picks__track,
.sg-saved-playlists__track {
  display: grid;
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  margin-top: 16px;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.sg-meeting-picks__track {
  grid-auto-columns: minmax(174px, 23%);
}

.sg-saved-playlists__track {
  grid-auto-columns: minmax(220px, 31%);
}

.sg-meeting-picks__track::-webkit-scrollbar,
.sg-saved-playlists__track::-webkit-scrollbar,
.sg-meeting-shortcuts::-webkit-scrollbar {
  display: none;
}

.sg-meeting-pick {
  display: grid;
  min-width: 0;
  gap: 9px;
  color: var(--sg-ink);
  text-align: left;
  scroll-snap-align: start;
}

.sg-meeting-pick .sg-book-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sg-meeting-pick__main {
  display: grid;
  min-width: 0;
  gap: 9px;
  color: inherit;
  text-align: left;
}

.sg-meeting-pick__main > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 0 2px;
}

.sg-meeting-pick strong,
.sg-meeting-pick small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-meeting-pick strong {
  font-size: 15px;
}

.sg-meeting-pick small {
  color: var(--sg-muted);
  font-size: 12px;
}

.sg-meeting-pick__add {
  width: max-content;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sg-pine);
  font-size: 12px;
  font-weight: 800;
}

.sg-meeting-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sg-meeting-shortcut {
  position: relative;
  display: grid;
  min-height: 96px;
  align-content: center;
  gap: 5px;
  padding: 16px 42px 16px 16px;
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: #fff;
  color: var(--sg-ink);
  text-align: left;
}

.sg-meeting-shortcut strong {
  font-size: 15px;
}

.sg-meeting-shortcut span {
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.45;
}

.sg-meeting-shortcut i {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--sg-pine);
  font-size: 25px;
  font-style: normal;
  transform: translateY(-50%);
}

.sg-saved-playlists header > button {
  min-height: 44px;
  padding: 0 2px;
  color: var(--sg-pine);
  font-size: 13px;
  font-weight: 750;
}

.sg-saved-playlist {
  display: grid;
  min-height: 108px;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: #fff;
  color: var(--sg-ink);
  text-align: left;
  scroll-snap-align: start;
}

.sg-saved-playlist > span,
.sg-saved-playlist > small {
  color: var(--sg-muted);
  font-size: 12px;
}

.sg-saved-playlist > strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-meeting-panel {
  position: fixed;
  top: var(--topnav);
  right: 0;
  bottom: calc(var(--ph) + var(--botnav));
  left: var(--sw);
  z-index: 36;
  overflow: auto;
  background: var(--sg-paper);
  color: var(--sg-ink);
}

.sg-meeting-panel[hidden] {
  display: none;
}

body.sg-meeting-panel-open {
  overflow: hidden;
}

.sg-meeting-panel-open .mp-view {
  visibility: hidden;
}

.sg-meeting-panel__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(22px, calc((100% - 860px) / 2));
  border-bottom: 1px solid var(--sg-line);
  background: rgba(247, 245, 239, .98);
}

.sg-meeting-panel__lead {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.sg-meeting-panel__back {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--sg-line);
  border-radius: 50%;
  background: #fff;
  color: var(--sg-pine-dark);
  font-size: 29px;
  line-height: 1;
}

.sg-meeting-panel__back[hidden] {
  display: none;
}

.sg-meeting-panel__eyebrow {
  color: var(--sg-pine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.sg-meeting-panel__head h2 {
  margin: 2px 0 0;
  font-size: 23px;
  line-height: 1.2;
}

.sg-meeting-panel__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  color: var(--sg-ink);
  font-size: 25px;
}

.sg-meeting-panel__body {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 28px 22px calc(56px + var(--botnav));
}

.sg-meeting-empty {
  padding: 22px;
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: #fff;
  color: var(--sg-muted);
  line-height: 1.65;
}

.sg-meeting-empty h3 {
  margin: 0 0 7px;
  color: var(--sg-ink);
  font-size: 20px;
}

.sg-meeting-empty p {
  margin: 0 0 18px;
}

.sg-meeting-actions,
.sg-meeting-tabs,
.sg-meeting-member__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.sg-meeting-tabs button[aria-current="true"] {
  border-color: var(--sg-pine);
  background: var(--sg-pine);
  color: #fff;
}

.sg-meeting-list,
.sg-meeting-songlist,
.sg-meeting-search-results {
  display: grid;
  gap: 10px;
}

.sg-meeting-list__row,
.sg-meeting-song,
.sg-meeting-member,
.sg-meeting-search-result {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--sg-line);
  border-radius: 15px;
  background: #fff;
  text-align: left;
}

.sg-meeting-list__row > span:first-child {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.sg-meeting-list__title,
.sg-meeting-song__title {
  min-width: 0;
  flex: 1;
  color: var(--sg-ink);
  font-size: 15px;
  font-weight: 750;
}

.sg-meeting-list__meta,
.sg-meeting-meta,
.sg-meeting-help {
  color: var(--sg-muted);
  font-size: 12px;
}

.sg-meeting-meta {
  margin-bottom: 14px;
}

.sg-meeting-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--sg-soft);
  color: var(--sg-pine-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sg-meeting-form,
.sg-meeting-editor,
.sg-meeting-management {
  display: grid;
  gap: 16px;
}

.sg-meeting-field {
  display: grid;
  gap: 8px;
  color: var(--sg-ink);
  font-size: 13px;
  font-weight: 750;
}

.sg-meeting-field input,
.sg-meeting-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #bdcbc8;
  border-radius: 12px;
  background: #fff;
  color: var(--sg-ink);
  font: inherit;
}

.sg-meeting-choice-list {
  display: grid;
  gap: 10px;
}

.sg-meeting-choice {
  display: grid;
  min-height: 58px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--sg-line);
  border-radius: 15px;
  background: #fff;
  color: var(--sg-ink);
  font-size: 14px;
  font-weight: 700;
}

.sg-meeting-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--sg-pine);
}

.sg-meeting-danger {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(163, 78, 67, .35);
  border-radius: 999px;
  color: var(--sg-danger);
  font-size: 13px;
  font-weight: 800;
}

.sg-meeting-preview,
.sg-meeting-management__block,
.sg-meeting-identity {
  padding: 18px;
  border: 1px solid var(--sg-line);
  border-radius: 17px;
  background: #fff;
}

.sg-meeting-management__block h3,
.sg-meeting-warning h3 {
  margin: 0 0 12px;
}

.sg-meeting-song {
  flex-wrap: wrap;
}

.sg-meeting-song__index {
  width: 28px;
  color: var(--sg-pine);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.sg-meeting-song__open {
  min-width: 0;
  flex: 1;
  color: var(--sg-ink);
  font-size: 15px;
  font-weight: 750;
  text-align: left;
}

.sg-meeting-song__play,
.sg-meeting-song [data-sg-action^="song-"] {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--sg-pine-dark);
  font-size: 12px;
  font-weight: 750;
}

.sg-meeting-search-results:empty {
  display: none;
}

.sg-meeting-loading {
  padding: 28px 0;
  color: var(--sg-muted);
  text-align: center;
}

.sg-meeting-compact--primary {
  border-color: var(--sg-pine);
  background: var(--sg-pine);
  color: #fff;
}

@media(max-width: 899px) {
  body.sg-mode-listen .mp-top,
  body.sg-mode-meeting .mp-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 104px;
    gap: 10px;
    padding: 12px 16px;
  }

  body.sg-mode-listen .mp-menu,
  body.sg-mode-meeting .mp-menu {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    margin-left: -9px;
  }

  .mp-back {
    margin-left: -8px;
  }

  .mp-search {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }

  .mp-main .mp-search {
    grid-column: 2;
    width: 100%;
    max-width: none;
  }

  .sg-mode-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  body.sg-mode-meeting .mp-view {
    padding: 20px 18px calc(44px + var(--botnav));
  }

  body.sg-mode-meeting .sg-meeting-card {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .sg-recommendation-rail__track {
    grid-auto-columns: minmax(180px, 58%);
  }

  .sg-recommendation-rail--compact .sg-recommendation-rail__track {
    grid-auto-columns: minmax(250px, 72%);
  }

  body.sg-mode-meeting .sg-weekly-playlist {
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .sg-playlist-heading h2,
  .sg-recent-meetings h2,
  .sg-meeting-quick-find h2,
  .sg-meeting-picks h2,
  .sg-saved-playlists h2 {
    font-size: 21px;
  }

  .sg-meeting-picks__track {
    grid-auto-columns: minmax(168px, 58%);
  }

  .sg-saved-playlists__track {
    grid-auto-columns: minmax(220px, 78%);
  }

  .sg-meeting-shortcuts {
    grid-template-columns: repeat(3, minmax(172px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .sg-meeting-shortcut {
    min-height: 78px;
  }

  .sg-meeting-panel {
    top: 0;
    right: 0;
    bottom: calc(var(--ph) + var(--botnav));
    left: 0;
  }

  .sg-meeting-panel__head {
    min-height: 70px;
    padding: 11px 16px;
  }

  .sg-meeting-panel__body {
    padding: 22px 16px calc(40px + var(--botnav));
  }

}

@media(max-width: 560px) {
  .sg-recommendation-rail__track {
    grid-auto-columns: calc((100vw - 72px) / 3);
    gap: 12px;
  }

  .sg-recommendation-rail--compact .sg-recommendation-rail__track {
    grid-auto-columns: minmax(250px, calc(100vw - 72px));
    gap: 20px;
  }

  .sg-recommendation-item .sg-book-cover {
    padding: 12px;
    border-radius: 16px;
  }

  .sg-recommendation-item .sg-book-cover__eyebrow,
  .sg-recommendation-item .sg-book-cover__index {
    font-size: 9px;
  }

  .sg-recommendation-item .sg-book-cover__index {
    top: 10px;
    right: 10px;
  }

  .sg-recommendation-item .sg-book-cover__title {
    font-size: 14px;
  }

  .sg-recommendation-item .sg-book-cover__meta,
  .sg-recommendation-item__copy small {
    font-size: 10px;
  }

  .sg-recommendation-item__copy {
    padding-top: 8px;
  }

  .sg-recommendation-item__copy strong {
    font-size: 13px;
  }
}

@media(max-width: 520px) {
  .sg-weekly-song-open {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .sg-playlist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sg-playlist-primary,
  .sg-playlist-secondary {
    width: 100%;
  }

  .sg-playlist-refresh {
    grid-column: 1 / -1;
    margin: 0;
  }

}

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

/* Premium editorial layer: one restrained system across every hymn surface. */
body.sg-mode-listen,
body.sg-mode-meeting {
  color: var(--sg-ink);
  background: var(--sg-paper);
}

body.sg-mode-listen .mp-side,
body.sg-mode-meeting .mp-side {
  border-color: var(--sg-line);
  background: #fbfaf6;
}

body.sg-mode-listen .mp-top,
body.sg-mode-meeting .mp-top {
  border-color: var(--sg-line);
  background: rgba(247, 245, 239, .96);
  box-shadow: none;
}

.mp-main .mp-search {
  min-height: var(--sg-target);
  border-color: #cdd7d3;
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
}

.mp-main .mp-search:focus-within {
  border-color: var(--sg-pine);
  box-shadow: 0 0 0 3px rgba(23, 109, 101, .1);
}

.mp-main .mp-search input {
  color: var(--sg-ink);
  font-size: 15px;
}

.mp-main .mp-search input::placeholder {
  color: #83908d;
}

.mp-main button:focus-visible,
.mp-main a:focus-visible,
.mp-player button:focus-visible,
.mp-queue button:focus-visible,
.mp-np button:focus-visible,
.mp-modal input:focus-visible,
.mp-modal button:focus-visible {
  outline: 2px solid var(--sg-focus);
  outline-offset: 3px;
}

.mp-main button:disabled,
.mp-modal button:disabled,
.sg-meeting-panel button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.mp-view {
  width: min(100%, 1080px);
  margin-right: auto;
  margin-left: auto;
}

.mp-hi {
  color: var(--sg-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 650;
  letter-spacing: -.025em;
}

.mp-hisub {
  color: var(--sg-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mp-sec {
  color: var(--sg-ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.mp-collgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.mp-collcard {
  display: grid;
  width: 100%;
  min-height: var(--sg-target);
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sg-ink);
  text-align: left;
  box-shadow: none;
  appearance: none;
}

.mp-main .mp-collcard {
  min-height: 80px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mp-main .mp-collcard:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.mp-main .mp-collcard:active {
  opacity: .68;
  transform: scale(.99);
}

.mp-main .mp-collcard .ci {
  position: relative;
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--sg-collection-color);
  color: #fff;
  font-size: 23px;
  font-weight: 750;
  line-height: 1;
  box-shadow: inset 4px 0 rgba(255, 255, 255, .16);
}

.mp-collcopy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.mp-main .mp-collcard .cn {
  overflow: hidden;
  color: var(--sg-ink);
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-main .mp-collcard .cc {
  color: var(--sg-muted);
  font-size: 13px;
}

.sg-meeting-collections {
  gap: 16px 28px;
}

.sg-theme-entry {
  min-height: 80px;
  margin: 28px 0 8px;
  padding: 16px 2px;
  border: 0;
}

.sg-theme-entry strong {
  font-size: 20px;
  font-weight: 650;
}

.sg-theme-entry:hover,
.sg-theme-entry:active {
  background: transparent;
  color: var(--sg-pine-dark);
}

.sg-recommendation-rail {
  margin: 36px 0 30px;
  padding-top: 26px;
  border: 0;
}

.sg-theme-entry + .sg-recommendation-rail {
  margin-top: 24px;
  padding-top: 0;
}

.sg-recommendation-rail + .sg-recommendation-rail {
  padding-top: 24px;
}

.sg-recommendation-rail__head {
  margin-bottom: 18px;
}

.sg-recommendation-rail__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.sg-recommendation-rail__copy {
  min-width: 0;
}

.sg-recommendation-rail__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sg-section-accent, var(--sg-pine)) 12%, transparent);
  color: var(--sg-section-accent, var(--sg-pine));
}

.sg-recommendation-rail__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-recommendation-rail__head span {
  color: var(--sg-section-accent, var(--sg-pine));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
}

.sg-recommendation-rail__head h2 {
  margin-top: 5px;
  font-size: 23px;
  font-weight: 650;
}

.sg-recommendation-rail__head button {
  min-width: var(--sg-target);
  min-height: var(--sg-target);
  font-size: 13px;
}

.sg-recommendation-group {
  gap: 14px;
}

.sg-recommendation-row {
  min-height: 64px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
}

.sg-recommendation-row .sg-book-cover--compact {
  width: 58px;
  height: 58px;
  padding: 9px 8px 8px 11px;
  border-radius: 10px;
  box-shadow: inset 3px 0 rgba(255, 255, 255, .16);
}

.sg-book-cover--compact .sg-book-cover__title {
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

.sg-recommendation-row__copy strong {
  color: var(--sg-ink);
  font-weight: 650;
}

.sg-recommendation-row__copy span {
  line-height: 1.45;
}

.sg-recommendation-rail--ranked .sg-recommendation-rail__track {
  grid-auto-columns: min(84vw, 340px);
  gap: 24px;
}

.sg-recommendation-rail--ranked .sg-recommendation-group {
  width: min(84vw, 340px);
  gap: 0;
}

.sg-recommendation-rail--ranked .sg-recommendation-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 64px;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--sg-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sg-ranking-position {
  color: var(--sg-pine);
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.sg-ranking-position-wrap {
  width: 36px;
  min-width: 36px;
  align-self: stretch;
  display: flex;
  flex: 0 0 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.sg-rank-movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 10px;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.sg-rank-movement--up {
  color: #e66f64;
}

.sg-rank-movement--down {
  color: #4da7d8;
}

.sg-rank-movement--new {
  color: #e08a2b;
}

.sg-rank-movement__icon {
  display: inline-flex;
  width: 8px;
  height: 8px;
  align-items: center;
  justify-content: center;
}

.sg-rank-movement__icon svg {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-rank-movement--up .sg-rank-movement__icon {
  transform: rotate(-90deg);
}

.sg-rank-movement--down .sg-rank-movement__icon {
  transform: rotate(90deg);
}

.sg-recommendation-group:first-child .sg-recommendation-row:nth-child(-n + 3) .sg-ranking-position {
  color: #b56a37;
}

.sg-ranking-count {
  color: var(--sg-muted);
  font-size: 12px;
  white-space: nowrap;
}

.sg-ranking-preview-state {
  min-height: 64px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-muted);
  font-size: 13px;
}

.sg-ranking-preview-state button {
  min-height: var(--sg-target);
  color: var(--sg-pine);
  font-weight: 700;
}

.mp-main .mp-heros {
  --mp-hero-size: clamp(190px, 22vw, 236px);
  --mp-persona-width: clamp(104px, 12vw, 132px);
  display: flex;
  gap: 16px;
  padding: 4px 20px 12px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mp-main .mp-hisub {
  margin-bottom: 12px;
}

.mp-main .mp-heros::-webkit-scrollbar {
  display: none;
}

.mp-main .mp-hero {
  position: relative;
  display: flex;
  flex: 0 0 var(--mp-hero-size);
  flex-direction: row;
  align-items: stretch;
  width: var(--mp-hero-size);
  min-width: var(--mp-hero-size);
  height: var(--mp-hero-size);
  min-height: 0;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: inherit;
  transform: none;
  transition: none;
}

.mp-main .mp-hero:hover {
  transform: none;
}

.mp-main .mp-hero--personal {
  flex: 0 0 calc(var(--mp-hero-size) + var(--mp-persona-width));
  width: calc(var(--mp-hero-size) + var(--mp-persona-width));
  min-width: calc(var(--mp-hero-size) + var(--mp-persona-width));
  overflow: hidden;
  border-radius: 18px;
}

.mp-hero-persona {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 var(--mp-persona-width);
  width: var(--mp-persona-width);
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-right: 1px dashed rgba(255, 255, 255, .42);
  border-radius: 18px 0 0 18px;
  background: var(--mp-card-color);
  color: #fff;
  text-align: center;
}

.mp-hero-persona__content {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) 20px;
  padding: 16px 12px 13px;
}

.mp-persona-hello {
  justify-self: start;
  font-size: clamp(22px, 2.3vw, 28px);
  font-style: italic;
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1;
}

.mp-persona-identity {
  align-self: center;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.mp-persona-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  flex: none;
  place-items: center;
  margin: 0 0 7px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  font-size: 28px;
  line-height: 1;
}

.mp-persona-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-persona-name {
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-persona-name--red {
  color: #9f211d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .42);
}

.mp-persona-medals {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 0;
}

.mp-persona-medal {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: var(--mp-medal-color);
  color: #fff;
  box-shadow: 0 1px 3px rgba(16, 41, 38, .18);
}

.mp-persona-medal svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: currentColor;
  stroke: none;
}

.mp-hero-card {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 var(--mp-hero-size);
  width: var(--mp-hero-size);
  min-width: var(--mp-hero-size);
  height: var(--mp-hero-size);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--mp-card-color);
  color: #fff;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
}

.mp-hero--personal .mp-hero-card {
  border-radius: 0 18px 18px 0;
}

.mp-hero-kicker {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: none;
  overflow: hidden;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.14;
  text-overflow: ellipsis;
}

.mp-hero-meta {
  position: absolute;
  right: 56px;
  bottom: 14px;
  left: 14px;
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mp-hero-meta strong,
.mp-hero-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-hero-meta strong {
  color: #fff;
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 720;
  line-height: 1.35;
}

.mp-hero-meta small {
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  line-height: 1.4;
}

.mp-main .mp-hero .go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--mp-card-color);
  box-shadow: none;
  backdrop-filter: none;
}

.mp-main .mp-hero .go svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.mp-hero-open {
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .04em;
}

body.sg-mode-meeting .mp-hero-meta {
  right: 14px;
  bottom: 48px;
}

.mp-lhead {
  padding-top: 4px;
}

.mp-lart {
  border-radius: 12px;
  box-shadow: inset 4px 0 rgba(255, 255, 255, .16);
}

.mp-lart.mp-lart--bare {
  width: 72px !important;
  height: 72px !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mp-lart-color);
}

.mp-lart.mp-lart--bare svg {
  width: 56px;
  height: 56px;
}

.mp-lkind {
  color: var(--sg-pine);
  font-weight: 700;
}

.mp-ltit {
  color: var(--sg-ink);
  font-weight: 650;
  letter-spacing: -.02em;
}

.mp-btn {
  min-height: var(--sg-target);
  border-radius: 10px;
}

.mp-btn.pri {
  background: var(--sg-pine-dark);
}

.mp-btn.sec {
  border-color: var(--sg-line);
  background: transparent;
  color: var(--sg-pine-dark);
}

.mp-main .mp-rows,
.mp-main .mp-aulist {
  overflow: visible;
  border-width: 1px 0;
  border-radius: 0;
  border-color: var(--sg-line);
  background: transparent;
}

.mp-main .mp-row,
.mp-main .mp-aurow {
  min-height: 62px;
  padding: 11px 2px;
  border-color: var(--sg-line);
}

.mp-main .mp-row:hover,
.mp-main .mp-aurow:hover,
.mp-main .mp-row.playing {
  background: var(--sg-soft);
}

.mp-row .rt .t,
.mp-aun {
  color: var(--sg-ink);
  font-weight: 600;
}

.mp-row .ract button {
  width: var(--sg-target);
  height: var(--sg-target);
}

.mp-main .mp-tag {
  padding: 0;
  background: transparent !important;
  color: var(--sg-muted);
  font-weight: 600;
}

.mp-thgrp {
  border-color: var(--sg-line);
}

.mp-thead,
.mp-throw {
  min-height: 56px;
}

.mp-thead {
  color: var(--sg-ink);
  font-weight: 650;
}

.mp-throw {
  border-color: var(--sg-line);
}

.mp-throw .mp-thplay {
  width: var(--sg-target);
  height: var(--sg-target);
}

.mp-lock {
  max-width: 520px;
  margin: 32px auto;
  padding: 48px 24px;
  border-top: 1px solid var(--sg-line);
  border-bottom: 1px solid var(--sg-line);
}

.mp-lock .lk-t {
  color: var(--sg-ink);
  font-weight: 650;
}

.mp-lock .lk-b {
  min-height: var(--sg-target);
  border-radius: 10px;
  background: var(--sg-pine-dark);
}

.mp-modal {
  background: rgba(21, 50, 53, .36);
}

.mp-modal .box {
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sg-shadow-float);
}

.mp-modal label {
  display: block;
  margin-bottom: 8px;
  color: var(--sg-ink);
  font-size: 13px;
  font-weight: 650;
}

.mp-modal input {
  min-height: 48px;
  border-color: #bdcbc8;
  border-radius: 10px;
}

.mp-modal .foot button {
  min-height: var(--sg-target);
  border-radius: 10px;
}

.mp-modal .foot .ok {
  background: var(--sg-pine-dark);
}

.mp-modal .foot .cancel {
  background: var(--sg-soft);
  color: var(--sg-ink);
}

.mp-player,
.mp-queue,
.bp-card {
  color: var(--sg-ink);
}

.mp-player {
  border-color: var(--sg-line);
  background: rgba(255, 255, 255, .96);
}

.mp-queue {
  border-left: 1px solid var(--sg-line);
  box-shadow: var(--sg-shadow-float);
}

.mp-qrow,
.mp-qhead {
  border-color: var(--sg-line);
}

.mp-np,
.mp-relpop {
  color: var(--sg-ink);
}

.np-t,
.rp-tit {
  font-weight: 650;
  letter-spacing: -.02em;
}

.np-vt,
.rp-body {
  color: var(--sg-ink);
}

#npview .np-seg,
#relpop .np-seg {
  gap: 22px;
  border: 0;
  background: transparent;
}

#npview .np-seg button,
#relpop .np-seg button {
  min-height: 44px;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  color: var(--sg-muted);
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
}

#npview .np-seg button.on,
#relpop .np-seg button.on {
  background: transparent;
  color: var(--sg-pine);
  box-shadow: inset 0 -2px var(--sg-pine);
}

#relpop .np-seg.single {
  display: none;
}

#relpop .rp-card {
  border-color: transparent;
  background: var(--sg-paper);
}

#relpop .rp-head {
  min-height: 64px;
  padding: 12px 18px;
  border-color: var(--sg-line);
  background: var(--sg-paper);
}

#relpop .rp-tit {
  color: var(--sg-ink);
  font-size: 17px;
  font-weight: 650;
}

#relpop .rp-btn {
  min-height: 44px;
  border: 0;
  background: transparent;
}

#relpop .rp-player {
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 0;
}

#relpop .rp-play {
  width: 48px;
  height: 48px;
  background: var(--sg-pine);
  box-shadow: none;
  transition: none;
  will-change: auto;
}

#relpop .rp-play:active {
  transform: none;
  opacity: 1;
}

#relpop .rp-seg {
  margin: 0 20px;
  padding: 8px 0 0;
}

#relpop .rp-body {
  padding: 18px 20px 30px;
}

.np-art,
.bp-art {
  box-shadow: inset 4px 0 rgba(255, 255, 255, .16);
}

.mp-gcard,
.mp-dlitem,
.sg-meeting-empty,
.sg-meeting-list__row,
.sg-meeting-song,
.sg-meeting-member,
.sg-meeting-search-result,
.sg-meeting-choice,
.sg-meeting-preview,
.sg-meeting-management__block,
.sg-meeting-identity {
  border-color: var(--sg-line);
  border-radius: 14px;
  box-shadow: none;
}

.sg-meeting-panel__head,
.sg-meeting-panel {
  background: var(--sg-paper);
}

.sg-meeting-field input,
.sg-meeting-field select {
  border-radius: 10px;
}

@media(max-width: 899px) {
  .mp-view {
    width: 100%;
  }

  .mp-collgrid,
  .sg-meeting-collections {
    gap: 14px 18px;
  }

  .mp-main .mp-collcard {
    min-height: 76px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;
  }

  .mp-main .mp-collcard .ci {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }

  .mp-main .mp-collcard .cn {
    font-size: 16px;
  }

  .sg-recommendation-rail--compact .sg-recommendation-rail__track {
    grid-auto-columns: minmax(248px, 78%);
    gap: 20px;
  }

  .sg-recommendation-rail--compact.sg-recommendation-rail--ranked .sg-recommendation-rail__track {
    grid-auto-columns: min(84vw, 340px);
  }

  .mp-main .mp-heros {
    --mp-hero-size: clamp(156px, calc((100vw - 56px) / 2), 184px);
    --mp-persona-width: clamp(92px, 24vw, 108px);
    display: flex;
    gap: 12px;
    padding: 4px 16px 10px 0;
    overflow-x: auto;
  }

  .mp-main .mp-hero {
    min-height: 0;
  }

  .mp-persona-hello {
    font-size: 23px;
  }

  .mp-hero-kicker {
    top: 14px;
    left: 14px;
    font-size: 16px;
  }

}

@media(max-width: 420px) {
  body.sg-mode-listen .mp-top,
  body.sg-mode-meeting .mp-top {
    grid-template-columns: 44px minmax(112px, 1fr) 96px;
    gap: 8px;
    padding: 11px 14px;
  }

  body.sg-mode-listen .mp-menu,
  body.sg-mode-meeting .mp-menu {
    margin-left: -7px;
  }

  .sg-mode-toggle {
    width: 96px;
    flex-basis: 96px;
  }

  .mp-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mp-collgrid,
  .sg-meeting-collections {
    gap: 12px 14px;
  }

  .mp-main .mp-collcard {
    min-height: 70px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
  }

  .mp-main .mp-collcard .ci {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    font-size: 18px;
  }

  .mp-main .mp-collcard .cn {
    font-size: 15px;
  }

  .mp-main .mp-collcard .cc {
    font-size: 12px;
  }

  .sg-recommendation-rail {
    margin-top: 30px;
    padding-top: 22px;
  }

  .sg-recommendation-rail--compact .sg-recommendation-rail__track {
    grid-auto-columns: minmax(246px, calc(100vw - 64px));
  }

  .sg-recommendation-rail--compact.sg-recommendation-rail--ranked .sg-recommendation-rail__track {
    grid-auto-columns: min(84vw, 340px);
  }
}

@media(max-width: 380px) {
  .mp-hero-persona__content {
    padding: 12px 9px 10px;
  }

  .mp-persona-hello {
    font-size: 20px;
  }

  .mp-persona-avatar {
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    font-size: 25px;
  }

  .mp-persona-name {
    font-size: 12px;
  }

  .mp-persona-medals {
    margin-top: 4px;
    gap: 4px;
  }

  .mp-persona-medal {
    width: 18px;
    height: 18px;
  }
}

/* 歌谱与白版：列表不裁角；站内全屏时整套纵向连续阅读 */
.mp-np .np-sheet img {
  border-radius: 0;
  box-shadow: none;
}

#npview #npWhitebox img {
  border-radius: 0;
  box-shadow: none;
}

html.sg-overlay-scroll-lock,
body.sg-overlay-scroll-lock {
  height: 100%;
  overflow: hidden;
  overscroll-behavior-y: none;
}

body.sg-page-stack-open #_bnav {
  display: none !important;
}

.sg-ranking-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.sg-ranking-row .rt {
  text-align: left;
  min-width: 0;
}

.sg-ranking-row .sg-ranking-count {
  justify-self: end;
  white-space: nowrap;
}

#relpop .rp-body,
.sg-zoom.white-modal .sgz-stage {
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.sg-zoom.page-stack {
  inset: 0;
  bottom: 0;
  background: #031747;
}

.sg-zoom.page-stack .sgz-bar,
.sg-zoom.page-stack .sgz-nav {
  display: none;
}

.sg-zoom.page-stack .sgz-stage {
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  padding: 0;
  background: #031747;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.sg-zoom.page-stack .sgz-stage img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
}

.sg-zoom.white-modal {
  background: rgba(12, 18, 24, .96);
  bottom: var(--botnav);
}

.sg-zoom.white-modal .sgz-stage {
  align-items: center;
  justify-content: center;
  padding: 24px 18px 28px;
}

.sg-zoom.white-modal .sgz-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.sgz-hint {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 52px);
  left: 50%;
  z-index: 2;
  max-width: calc(100vw - 40px);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(28, 32, 36, .9);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.sgz-hint.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 聚会看词：阅读型页眉与长标题处理；额外限定层级覆盖页面内的旧样式 */
.mp-np.lyricfull .np-fshead.np-fshead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  padding-right: 8px;
  padding-left: 20px;
}

.mp-np.lyricfull .np-fshead .np-fstit {
  position: relative;
  right: auto;
  left: auto;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  padding: 0 12px 0 0;
  overflow: hidden;
  color: var(--sg-ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  text-overflow: clip;
  white-space: nowrap;
  pointer-events: none;
}

.np-fstit span {
  display: inline-block;
  max-width: none;
  will-change: transform;
}

.np-fstit.is-scrolling {
  text-align: left;
}

.np-fstit.is-scrolling span {
  animation: np-title-pan 8s ease-in-out 1s infinite alternate;
}

@keyframes np-title-pan {
  to {
    transform: translateX(calc(-1 * var(--np-title-shift)));
  }
}

.mp-np.lyricfull .np-fshead .np-fsbtns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 2;
  grid-template-columns: 44px 44px;
  gap: 0;
  margin-left: 0;
}

.mp-np.lyricfull .np-fshead .np-fsbtns button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sg-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.mp-np.lyricfull .np-fshead .np-fsbtns button:hover {
  background: transparent;
  color: var(--sg-ink);
}

.mp-np.lyricfull .np-fshead .np-fsbtns button:active {
  background: transparent;
  color: var(--sg-pine);
  opacity: .58;
}

.np-fsbtns button:focus-visible {
  outline: 2px solid var(--sg-focus);
  outline-offset: -5px;
}

.np-fsbtns button:disabled {
  opacity: .32;
}

.mp-np.lyricfull .np-body {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px calc(var(--ph) + 30px);
}

.mp-np.lyricfull .np-verse {
  max-width: 100%;
  margin: 0 auto 28px;
}

.mp-np.lyricfull .np-vt {
  line-height: 1.82;
  letter-spacing: .01em;
}

.np-vn,
#npview .np-vn,
#relpop .np-vn,
.mp-np.lyricfull .np-vn {
  min-width: 32px;
  height: 32px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sg-pine);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
}

.np-chorus .np-vn,
#npview .np-chorus .np-vn,
#relpop .np-chorus .np-vn,
.mp-np.lyricfull .np-chorus .np-vn {
  min-width: auto;
  padding: 0 11px;
  background: #2563d6;
  color: #fff;
}

@media(prefers-reduced-motion: reduce) {
  .np-fstit.is-scrolling span {
    max-width: 100%;
    overflow: hidden;
    animation: none;
    text-overflow: ellipsis;
  }
}

/* Account hymn usage: keep the compact identity column readable on phones. */
.mp-hero-persona__content {
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 5px;
  padding: 14px 10px 10px;
}

.mp-persona-hello {
  align-self: start;
  font-size: 18px;
  font-weight: 800;
}

.mp-persona-identity {
  justify-content: center;
}

.mp-persona-stat {
  align-self: end;
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 7px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  border-radius: 0;
  color: #fff;
  text-align: center;
}

.mp-persona-stat__label {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.1;
  white-space: nowrap;
}

.mp-persona-stat__value {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.mp-persona-stat__value small {
  font-size: 10px;
  font-weight: 700;
  opacity: .9;
}

@media(max-width: 768px) {
  .mp-main .mp-heros {
    --mp-persona-width: 96px;
  }

  .mp-hero-persona__content {
    row-gap: 4px;
    padding: 11px 9px 8px;
  }

  .mp-persona-avatar {
    width: 52px;
    height: 52px;
    margin-bottom: 5px;
  }

  .mp-persona-name {
    font-size: 12px;
  }

  .mp-persona-stat {
    padding: 6px 0 0;
  }

  .mp-persona-stat__value {
    font-size: 15px;
  }
}

@media(max-width: 380px) {
  .mp-hero-persona__content {
    padding-right: 8px;
    padding-left: 8px;
  }

  .mp-persona-stat__label,
  .mp-persona-stat__value small {
    font-size: 10px;
  }
}
