:root {
  color-scheme: dark;
  --bg: #0c0f0d;
  --bg-soft: #121613;
  --panel: #161a17;
  --panel-2: #1d211d;
  --ink: #f3ebdc;
  --muted: #a6aaa3;
  --line: rgba(245, 237, 220, 0.12);
  --cream: #f3e5c9;
  --blue: #6e9caa;
  --orange: #d69255;
  --green: #7f9b76;
  --danger: #d47464;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(70, 102, 100, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 30%, rgba(176, 114, 62, 0.08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: var(--page);
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(to bottom, rgba(12, 15, 13, 0.96) 62%, rgba(12, 15, 13, 0));
  backdrop-filter: blur(14px);
  transition: transform .28s cubic-bezier(.22,.8,.25,1), opacity .2s ease;
  will-change: transform;
}

body.header-hidden .site-header {
  transform: translateY(calc(-100% - 8px));
  opacity: 0;
  pointer-events: none;
}

.brand,
.desktop-nav button,
.login-button,
.icon-button,
.mobile-nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255,255,255,.025);
}

.brand-mark svg {
  width: 21px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.desktop-nav button {
  padding: 10px 17px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: .2s ease;
}

.desktop-nav button:hover,
.desktop-nav button.is-active {
  background: var(--ink);
  color: #121512;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sync-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a8f88;
  box-shadow: 0 0 0 4px rgba(138,143,136,.08);
}

.sync-indicator.is-online i {
  background: #8cac80;
  box-shadow: 0 0 0 4px rgba(140,172,128,.1);
}

.sync-indicator.is-syncing i {
  background: var(--orange);
  animation: sync-pulse .9s ease infinite alternate;
}

@keyframes sync-pulse {
  to { box-shadow: 0 0 0 7px rgba(214,146,85,0); }
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.icon-button svg {
  width: 19px;
}

.login-button {
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
}

.login-button:hover,
.icon-button:hover {
  border-color: rgba(245, 237, 220, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

#app {
  width: var(--page);
  margin: 0 auto;
}

#app:focus {
  outline: none;
}

.view {
  animation: view-in .42s cubic-bezier(.22,.8,.25,1);
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: 70px;
  padding: 34px 0 62px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero.hero-clean {
  min-height: 540px;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  text-align: center;
}

.hero-clean .hero-copy {
  width: 100%;
}

.hero-clean .eyebrow {
  justify-content: center;
}

.hero-clean h1,
.hero-clean .verse {
  margin-left: auto;
  margin-right: auto;
}

.hero-clean .hero-search {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.random-song-button {
  width: min(100%, 610px);
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 15px;
  margin: 16px auto 0;
  padding: 11px 18px 11px 12px;
  border: 1px solid rgba(216, 139, 75, .36);
  border-radius: 24px;
  background: linear-gradient(110deg, rgba(216, 139, 75, .12), rgba(68, 112, 123, .09));
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.random-song-button:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 139, 75, .7);
  background: linear-gradient(110deg, rgba(216, 139, 75, .18), rgba(68, 112, 123, .13));
}

.random-song-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #161512;
  font-size: 21px;
}

.random-song-button strong,
.random-song-button small {
  display: block;
}

.random-song-button strong {
  font-size: 16px;
}

.random-song-button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.random-song-button b {
  color: var(--orange);
  font-size: 22px;
}

.hero h1 {
  max-width: 670px;
  margin: 22px 0 19px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(64px, 7.2vw, 112px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero h1 em {
  display: block;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(243, 235, 220, .55);
}

.verse {
  max-width: 455px;
  margin: 0 0 28px;
  color: #c6c7c0;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
}

.verse cite {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-style: normal;
}

.hero-search,
.library-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 6px 7px 6px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.hero-search svg,
.library-search svg {
  flex: 0 0 auto;
  width: 21px;
  color: var(--muted);
}

.hero-search input,
.library-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.hero-search input::placeholder,
.library-search input::placeholder {
  color: #7f837d;
}

.search-submit,
.primary-button,
.secondary-button,
.small-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.search-submit,
.primary-button {
  background: var(--cream);
  color: #151714;
}

.search-submit {
  align-self: stretch;
  min-width: 112px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 21px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.primary-button:hover,
.search-submit:hover {
  background: #fff5e3;
  transform: translateY(-1px);
}

.hero-art {
  position: relative;
  min-height: 530px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card.main {
  inset: 0 22px 14px 76px;
  background: url("./assets/worship-real.jpg") center 34%/cover;
}

.hero-card.main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,6,5,.87), transparent 60%);
}

.hero-card.main span {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  max-width: 260px;
  font-size: 34px;
  font-weight: 950;
  line-height: .88;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.hero-card.floating {
  left: 0;
  bottom: 44px;
  z-index: 3;
  width: 168px;
  height: 190px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 28%, rgba(238,182,112,.22), transparent 64%),
    radial-gradient(circle at 20% 25%, #3e6e7f, transparent 45%),
    #281f1a;
  transform: rotate(-4deg);
}

.hero-card.floating strong {
  font-size: 18px;
  letter-spacing: -.03em;
}

.hero-note {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 3;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13,16,14,.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.home-section {
  padding: 70px 0;
}

.section-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.05em;
}

.text-button {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.05fr .8fr .9fr;
  grid-template-rows: 210px 210px;
  gap: 15px;
}

.category-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .25s ease, border-color .25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .9;
  background:
    linear-gradient(132deg, transparent 32%, rgba(255,255,255,.08) 33%, transparent 36%),
    linear-gradient(150deg, transparent 54%, rgba(255,255,255,.06) 56%, transparent 60%);
}

.category-card:nth-child(1) {
  grid-row: span 2;
  background: url("./assets/worship-real.jpg") center 34%/cover;
}

.category-card:nth-child(1)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4,6,5,.9), rgba(4,6,5,.18));
}

.category-card:nth-child(2) {
  background:
    radial-gradient(circle at 85% 10%, rgba(128, 180, 193, .45), transparent 38%),
    linear-gradient(140deg, #15272c, #111412 58%, #433326);
}

.category-card:nth-child(3) {
  background:
    radial-gradient(circle at 10% 90%, rgba(223, 150, 85, .5), transparent 36%),
    linear-gradient(145deg, #38261b, #101614 55%, #1b2f34);
}

.category-card:nth-child(4) {
  grid-column: span 2;
  background:
    linear-gradient(118deg, transparent 42%, rgba(222, 154, 94, .28) 50%, transparent 67%),
    linear-gradient(145deg, #15272c, #2d2720 52%, #101210);
}

.category-card small {
  color: rgba(255,255,255,.64);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.category-card strong {
  max-width: 290px;
  font-size: clamp(25px, 3vw, 43px);
  line-height: .9;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.song-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.song-card {
  position: relative;
  overflow: hidden;
  min-height: 206px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: .25s ease;
}

.song-card:hover {
  background: var(--panel-2);
  transform: translateY(-3px);
}

.song-card .song-number {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
}

.song-card h3 {
  max-width: 85%;
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.035em;
}

.song-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.meta-pill {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bdc0b9;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.favorite-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(12, 15, 13, .55);
  color: var(--muted);
  cursor: pointer;
}

.favorite-button svg {
  width: 17px;
}

.favorite-button.is-active {
  color: var(--cream);
  background: rgba(214,146,85,.17);
}

.quote-band {
  margin: 58px 0 18px;
  padding: 72px 6vw;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 8%, rgba(103, 146, 159, .22), transparent 26%),
    radial-gradient(circle at 90% 90%, rgba(214, 146, 85, .18), transparent 32%),
    var(--panel);
  text-align: center;
}

.quote-band blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.quote-band p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-top {
  padding: 64px 0 26px;
}

.page-heading {
  align-items: center;
}

.page-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.library-toolbar {
  position: sticky;
  top: 82px;
  z-index: 30;
  padding: 13px 0 18px;
  background: linear-gradient(to bottom, var(--bg) 75%, transparent);
  transition: top .28s cubic-bezier(.22,.8,.25,1);
}

.library-search {
  max-width: 720px;
  min-height: 56px;
  margin-bottom: 14px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.filter-chip.is-active {
  background: var(--ink);
  color: #151714;
}

.library-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.editor-actions svg {
  width: 14px;
  vertical-align: -2px;
}

.library-list {
  display: grid;
  gap: 9px;
  padding-bottom: 80px;
}

.song-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
  transition: .2s ease;
}

.song-list-item:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.035);
}

.song-list-main {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.song-list-main h3 {
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-list-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.key-badge {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(110,156,170,.22), rgba(214,146,85,.13));
  color: var(--cream);
  font-size: 17px;
  font-weight: 850;
}

.list-stats {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.list-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
}

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

.list-actions button {
  position: static;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.detail-view {
  padding: 44px 0 80px;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.back-button svg {
  width: 18px;
}

.song-hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  margin-top: 23px;
  display: flex;
  align-items: flex-end;
  padding: 42px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(to top, rgba(5,7,6,.92), rgba(5,7,6,.08)),
    url("./assets/worship-real.jpg") center 38%/cover;
}

.song-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -48%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
}

.song-hero-content {
  position: relative;
  z-index: 2;
}

.song-hero h1 {
  max-width: 830px;
  margin: 13px 0 9px;
  font-size: clamp(48px, 8vw, 100px);
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.song-hero p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

.print-meta {
  display: none;
}

.song-detail-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 46px;
  padding-top: 38px;
}

.song-structure {
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
}

.structure-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.structure-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.structure-heading .eyebrow {
  font-size: 8px;
}

.structure-heading strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.structure-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px;
  scrollbar-width: thin;
}

.structure-chip {
  position: relative;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(117, 170, 180, .55);
  border-radius: 50%;
  background: rgba(117, 170, 180, .06);
  color: #9fc9d1;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.structure-chip.kind-verse { border-color: rgba(125, 132, 218, .58); color: #adb3ff; background: rgba(125, 132, 218, .07); }
.structure-chip.kind-chorus { border-color: rgba(216, 139, 75, .7); color: var(--orange); background: rgba(216, 139, 75, .08); }
.structure-chip.kind-prechorus { border-color: rgba(207, 118, 85, .58); color: #e4a287; }
.structure-chip.kind-bridge { border-color: rgba(104, 168, 122, .62); color: #8fc59e; }
.structure-chip.kind-instrumental { border-color: rgba(104, 168, 122, .62); color: #8fc59e; }

.structure-chip.is-current {
  color: #111411;
  background: #9fc9d1;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 24px rgba(159,201,209,.28);
  transform: scale(1.08);
}

.structure-chip.kind-verse.is-current { background: #adb3ff; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 24px rgba(173,179,255,.3); }
.structure-chip.kind-chorus.is-current { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 24px rgba(216,139,75,.32); }
.structure-chip.kind-prechorus.is-current { background: #e4a287; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 24px rgba(228,162,135,.3); }
.structure-chip.kind-bridge.is-current,
.structure-chip.kind-instrumental.is-current { background: #8fc59e; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 24px rgba(143,197,158,.3); }

.structure-chip.is-current span {
  color: #111411;
}

.structure-chip i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--orange);
}

.structure-add {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
}

.song-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.performance-setup {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.022);
}

.setup-control {
  display: flex;
  align-items: center;
  height: 44px;
}

.setup-label {
  padding-inline: 12px 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.setup-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.setup-reset {
  width: 42px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(216,139,75,.08);
  color: var(--orange);
  cursor: pointer;
  font: 800 19px/1 Inter, sans-serif;
}

.song-view-tools {
  display: flex;
  gap: 7px;
}

.song-view-tools .secondary-button {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 10px;
}

.song-history-controls {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.022);
}

.song-history-title {
  padding-inline: 13px 9px;
  color: var(--muted);
  font: 800 8px/1 Inter, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.song-history-controls button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font: 800 10px/1 Inter, sans-serif;
}

.song-history-controls button span {
  color: var(--orange);
  font-size: 18px;
}

.song-history-controls button:disabled {
  opacity: .32;
  cursor: default;
}

.song-history-controls button:not(:disabled):hover {
  background: rgba(216,139,75,.09);
}

.font-size-control {
  min-height: 42px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: 800 10px/1 Inter, sans-serif;
}

.font-size-control button,
.font-size-control select {
  min-width: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.font-size-control button {
  cursor: pointer;
  font-size: 17px;
}

.font-size-control button:disabled {
  cursor: default;
  opacity: .3;
}

.font-size-control select {
  min-width: 62px;
  padding: 0 7px;
  border-inline: 1px solid var(--line);
  color: var(--cream);
  cursor: pointer;
  text-align: center;
  text-align-last: center;
}

.font-size-control select option {
  background: #171a18;
  color: var(--cream);
}

.song-scroll-controls {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .018);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.floating-controls-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}

.floating-controls-layer:empty {
  display: none;
}

.floating-controls-layer .song-scroll-controls {
  pointer-events: auto;
}

.scroll-mode-button,
.scroll-small-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 12px/1 Inter, sans-serif;
}

.scroll-small-button {
  color: var(--muted);
}

.scroll-mode-button:hover,
.scroll-small-button:hover {
  border-color: rgba(216, 139, 75, .58);
  color: var(--cream);
}

.scroll-mode-button.is-active {
  border-color: var(--orange);
  background: rgba(216, 139, 75, .14);
  color: var(--orange);
}

.scroll-small-button.is-active {
  border-color: rgba(216, 139, 75, .5);
  background: rgba(216, 139, 75, .1);
  color: var(--orange);
}

.scroll-speed-options,
.metronome-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scroll-speed-options .scroll-small-button {
  padding-inline: 12px;
}

.scroll-control-icon {
  display: inline-block;
  margin-right: 6px;
}

.scroll-speed-short,
.scroll-panel-toggle {
  display: none;
}

.metronome-controls {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.metronome-controls .scroll-small-button {
  min-height: 32px;
  padding-inline: 11px;
}

.metronome-step,
.metronome-reset {
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 800 12px/1 Inter, sans-serif;
}

.metronome-step:hover,
.metronome-reset:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--cream);
}

.metronome-bpm-input {
  width: 47px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 139, 75, .45);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--orange);
  font: 900 13px/1 Inter, sans-serif;
  text-align: center;
  appearance: textfield;
}

.metronome-bpm-input::-webkit-inner-spin-button,
.metronome-bpm-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.metronome-bpm-label {
  margin-left: -3px;
  color: var(--muted);
  font: 700 9px/1 Inter, sans-serif;
}

.scroll-mode-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.scroll-live {
  display: none;
  min-width: 0;
  max-width: 330px;
  overflow: hidden;
  color: var(--muted);
  font: 700 11px/1.3 Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-scroll-controls.is-floating {
  position: fixed;
  top: auto;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  width: 54px;
  display: grid;
  grid-template-columns: 1fr;
  flex: 0 0 auto;
  gap: 6px;
  margin: 0;
  padding: 6px;
  border-radius: 20px;
  border-color: rgba(216, 139, 75, .55);
  background: rgba(18, 21, 18, .94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(20px);
  transform: none;
  touch-action: manipulation;
  transition: bottom .28s cubic-bezier(.22,.8,.25,1), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.song-scroll-controls.is-floating .scroll-mode-button,
.song-scroll-controls.is-floating .scroll-speed-cycle,
.song-scroll-controls.is-floating .scroll-panel-toggle {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 15px;
}

.song-scroll-controls.is-floating .scroll-control-icon {
  margin: 0;
}

.song-scroll-controls.is-floating .scroll-control-label,
.song-scroll-controls.is-floating .scroll-speed-long,
.song-scroll-controls.is-floating .metronome-controls,
.song-scroll-controls.is-floating .scroll-live {
  display: none;
}

.song-scroll-controls.is-floating .scroll-speed-options {
  width: 100%;
  display: block;
}

.song-scroll-controls.is-floating .scroll-speed-short {
  display: inline;
}

.scroll-panel-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  cursor: pointer;
  font: 900 18px/1 Inter, sans-serif;
}

.song-scroll-controls.is-floating.is-expanded {
  width: min(280px, calc(100vw - 20px));
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 7px;
  padding: 8px;
  border-radius: 20px;
}

.song-scroll-controls.is-floating.is-expanded > [data-timed-scroll] {
  width: 100%;
  grid-column: 1;
}

.song-scroll-controls.is-floating.is-expanded .scroll-panel-toggle {
  grid-column: 2;
  grid-row: 1;
}

.song-scroll-controls.is-floating.is-expanded .scroll-speed-options,
.song-scroll-controls.is-floating.is-expanded .metronome-controls {
  grid-column: 1 / -1;
  width: 100%;
}

.song-scroll-controls.is-floating.is-expanded .scroll-speed-cycle {
  width: 100%;
}

.song-scroll-controls.is-floating.is-expanded .scroll-control-label,
.song-scroll-controls.is-floating.is-expanded .scroll-speed-long {
  display: inline;
}

.song-scroll-controls.is-floating.is-expanded .scroll-speed-short {
  display: none;
}

.song-scroll-controls.is-floating.is-expanded .scroll-control-icon {
  margin-right: 6px;
}

.song-scroll-controls.is-floating.is-expanded .metronome-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

body.song-scroll-floating .song-toolbar::after {
  content: "";
  flex: 1 1 100%;
  height: var(--scroll-controls-space, 60px);
}

.transpose-control {
  display: flex;
  align-items: center;
  height: 46px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.transpose-control button,
.transpose-control .transpose-key {
  display: grid;
  height: 100%;
  min-width: 44px;
  place-items: center;
  border: 0;
  background: transparent;
}

.transpose-control button {
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
}

.transpose-control .transpose-key {
  min-width: 62px;
  border-inline: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.transpose-key strong,
.transpose-key small {
  display: block;
  line-height: 1.05;
  text-align: center;
}

.transpose-key small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.capo-control {
  display: flex;
  align-items: center;
  height: 46px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.capo-control > span {
  padding-inline: 14px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.capo-control button,
.capo-control strong {
  display: grid;
  height: 100%;
  min-width: 38px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
}

.capo-control button {
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.capo-control button:disabled {
  cursor: default;
  opacity: .3;
}

.capo-control strong {
  min-width: 58px;
  color: var(--ink);
  font-size: 11px;
}

.lyrics {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--lyrics-size, 16px);
  line-height: 1.45;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  font-variant-ligatures: none;
  tab-size: 4;
}

.song-section {
  --section-accent: #9fc9d1;
  --section-border: rgba(117, 170, 180, .42);
  position: relative;
  min-inline-size: 0;
  margin-bottom: 16px;
  padding: 19px 20px 20px;
  scroll-margin-top: 118px;
  border: 1px solid var(--section-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .015);
  box-shadow: 0 15px 45px rgba(0,0,0,.1);
  touch-action: pan-y;
}

.song-section.kind-verse { --section-accent: #adb3ff; --section-border: rgba(125, 132, 218, .58); }
.song-section.kind-chorus { --section-accent: var(--orange); --section-border: rgba(216, 139, 75, .7); }
.song-section.kind-prechorus { --section-accent: #e4a287; --section-border: rgba(207, 118, 85, .58); }
.song-section.kind-bridge,
.song-section.kind-instrumental { --section-accent: #8fc59e; --section-border: rgba(104, 168, 122, .62); }
.song-section.kind-intro,
.song-section.kind-outro,
.song-section.kind-tag { --section-accent: #9fc9d1; --section-border: rgba(117, 170, 180, .52); }

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
  padding-top: 2px;
}

.section-code {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--section-accent);
  border-radius: 50%;
  color: var(--section-accent);
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 900;
}

.section-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 14px);
  padding: 0 11px 0 0;
  color: var(--section-accent);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-note {
  flex: 1 1 180px;
  margin: 0;
  color: #d8b38e;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-style: italic;
  line-height: 1.35;
  text-align: right;
}

.section-actions {
  display: flex;
  flex: 1 0 100%;
  gap: 7px;
  padding-top: 2px;
  font-family: Inter, sans-serif;
}

.section-actions button {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 800;
}

.section-actions button:hover,
.structure-add:hover {
  border-color: rgba(216, 139, 75, .5);
  color: var(--orange);
}

.section-actions .section-delete-button {
  margin-left: auto;
  border-color: rgba(238, 103, 89, .3);
  color: #d98f86;
}

.section-actions .section-delete-button:hover {
  border-color: rgba(238, 103, 89, .62);
  color: #ff9d91;
}

.section-content {
  margin-top: 17px;
}

.lyric-line {
  min-width: 0;
  max-width: 100%;
  min-height: 1.45em;
  margin-bottom: 5px;
  border-radius: 9px;
  transition: background .22s ease, box-shadow .22s ease, color .22s ease;
}

.aligned-lyric-line {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: .18em;
}

.lyric-word {
  min-width: 0;
  max-width: 100%;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  padding-top: 1.15em;
}

.word-chord {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  min-height: 1.15em;
  color: var(--orange);
  font-weight: 800;
  line-height: 1.15;
  white-space: pre;
}

.word-text {
  display: block;
  max-width: 100%;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lyric-line.no-chords .word-chord {
  display: none;
}

.lyric-line.no-chords .lyric-word {
  padding-top: 0;
}

.chord-only-line {
  color: var(--orange);
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chord-line {
  display: block;
  min-height: 1.1em;
  color: var(--orange);
  font-weight: 800;
  white-space: pre;
}

.lyric-text {
  white-space: pre;
}

.lyrics.hide-chords .chord-line {
  display: none;
}

.lyrics.hide-chords .word-chord,
.lyrics.hide-chords .chord-only-line {
  display: none;
}

.song-sidebar {
  align-self: start;
  position: sticky;
  top: 112px;
  transition: top .28s cubic-bezier(.22,.8,.25,1);
}

.song-sidebar-toggle {
  display: none;
}

.song-sidebar-content {
  display: block;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.info-row:last-child { border-bottom: 0; }
.info-row strong { color: var(--ink); text-align: right; }
.info-row strong small { color: var(--muted); font-size: 9px; font-weight: 700; }

.source-link {
  color: var(--cream);
  text-decoration: none;
}

.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(238, 103, 89, .42);
  border-radius: 999px;
  background: rgba(238, 103, 89, .08);
  color: #ff9d91;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.danger-button:hover {
  background: rgba(238, 103, 89, .16);
  border-color: rgba(238, 103, 89, .68);
}

.source-link:hover {
  text-decoration: underline;
}

.sidebar-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.sidebar-actions button {
  width: 100%;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-bottom: 80px;
}

.playlist-grid.is-empty {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.playlist-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(110,156,170,.21), transparent 43%),
    var(--panel);
  cursor: pointer;
  text-align: left;
}

.playlist-card:nth-child(2n) {
  background:
    radial-gradient(circle at 10% 100%, rgba(214,146,85,.22), transparent 43%),
    var(--panel);
}

.generate-card {
  border-color: rgba(216, 139, 75, .38);
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 139, 75, .3), transparent 46%),
    radial-gradient(circle at 0 100%, rgba(110, 156, 170, .18), transparent 48%),
    var(--panel);
}

.generate-card .playlist-symbol {
  color: var(--orange);
}

.smart-generate-card {
  border-color: rgba(110, 156, 170, .48);
  background:
    radial-gradient(circle at 90% 10%, rgba(110, 156, 170, .34), transparent 48%),
    radial-gradient(circle at 0 100%, rgba(123, 108, 181, .2), transparent 48%),
    var(--panel);
}

.smart-generate-card .playlist-symbol {
  color: #9acbd6;
}

.playlist-card h2 {
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.04em;
}

.playlist-card p,
.playlist-card small {
  margin: 0;
  color: var(--muted);
}

.playlist-symbol {
  font-family: Georgia, serif;
  font-size: 68px;
  line-height: 1;
  opacity: .72;
}

.create-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  border-style: dashed;
  color: var(--muted);
  text-align: center;
}

.create-card > div {
  width: 100%;
  display: grid;
  justify-self: stretch;
  justify-items: center;
  align-content: center;
  gap: 14px;
}

.create-card span {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 25px;
}

.create-card strong {
  display: block;
  width: 100%;
  text-align: center;
}

.playlist-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.playlist-modal-actions p {
  flex: 1 1 260px;
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.playlist-editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 13px;
}

.playlist-editor-heading > div {
  display: grid;
  gap: 5px;
}

.playlist-editor-heading strong {
  font-size: 18px;
}

.playlist-editor-heading small {
  color: var(--muted);
  font-size: 11px;
}

.playlist-editor-list,
.playlist-picker-list {
  display: grid;
  gap: 8px;
}

.playlist-editor-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 10px 8px 7px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.022);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.playlist-editor-row.is-dragging {
  opacity: .58;
  border-color: var(--orange);
  background: rgba(216,139,75,.09);
}

.playlist-editor-row.drop-before::before,
.playlist-editor-row.drop-after::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(216,139,75,.65);
}

.playlist-editor-row.drop-before::before { top: -6px; }
.playlist-editor-row.drop-after::after { bottom: -6px; }

.playlist-drag-handle {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: grab;
  font: 900 18px/1 Inter, sans-serif;
  letter-spacing: -5px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.playlist-drag-handle:active { cursor: grabbing; color: var(--orange); }

.playlist-editor-number {
  color: var(--muted);
  font: 700 10px/1 Inter, sans-serif;
}

.playlist-editor-song {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.playlist-editor-song strong,
.playlist-picker-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-editor-song small,
.playlist-picker-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-remove-song {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(190,82,65,.5);
  border-radius: 999px;
  background: transparent;
  color: #e8a097;
  cursor: pointer;
  font: 700 10px/1 Inter, sans-serif;
}

.playlist-editor-empty,
.playlist-picker-empty {
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: 17px;
  color: var(--muted);
  text-align: center;
}

.playlist-picker-search {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}

.playlist-picker-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255,255,255,.025);
  color: var(--ink);
  font: inherit;
}

.playlist-picker-search input:focus { border-color: rgba(216,139,75,.72); }

.playlist-picker-row {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.018);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.playlist-picker-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.playlist-picker-row > b {
  color: var(--orange);
  font-size: 20px;
  text-align: center;
}

.playlist-picker-row:hover {
  border-color: rgba(216,139,75,.48);
  background: rgba(216,139,75,.06);
}

.playlist-performance-bar {
  position: sticky;
  top: 82px;
  z-index: 42;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 18px;
  padding: 11px 12px 11px 18px;
  border: 1px solid rgba(216,139,75,.34);
  border-radius: 20px;
  background: rgba(14,17,15,.94);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  transition: top .28s cubic-bezier(.22,.8,.25,1);
}

body.header-hidden .library-toolbar,
body.header-hidden .playlist-performance-bar,
body.header-hidden .song-structure {
  top: 0;
}

body.header-hidden .song-sidebar {
  top: 20px;
}

.playlist-performance-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 12px;
}

.playlist-performance-copy .eyebrow { color: var(--orange); font-size: 8px; }
.playlist-performance-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.playlist-performance-copy small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }

.playlist-performance-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
}

.playlist-performance-actions button {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--ink);
  cursor: pointer;
  font: 700 19px/1 Inter, sans-serif;
}

.playlist-performance-actions button:disabled { opacity: .28; cursor: default; }

.playlist-transition-card,
.playlist-finish-card {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(216,139,75,.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(216,139,75,.15), transparent 42%),
    var(--panel);
}

.transition-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.transition-heading h2,
.playlist-finish-card h2 { margin: 8px 0 5px; font-size: clamp(27px, 4vw, 43px); line-height: .98; letter-spacing: -.045em; }
.transition-heading p { margin: 0; color: var(--muted); }

.playlist-next-preview {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.025);
}

.playlist-next-preview > div > small { display: block; margin: 3px 0 13px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.preview-line { margin-top: 10px; font-family: "IBM Plex Mono", monospace; }
.preview-line b { display: block; min-height: 1.2em; color: var(--orange); white-space: pre; }
.preview-line span { display: block; color: var(--ink); }
.playlist-swipe-hint { margin: 16px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.playlist-finish-card .secondary-button { margin-top: 18px; }

body.paper-mode .playlist-performance-bar { background: rgba(234,228,216,.95); }

.modal-layer:empty { display: none; }

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 4, .78);
  backdrop-filter: blur(14px);
}

.modal {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: #151916;
  box-shadow: 0 40px 100px rgba(0,0,0,.62);
  animation: modal-in .25s ease both;
}

.modal.wide { width: min(760px, 100%); }

@keyframes modal-in {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.modal-header h2 {
  margin: 5px 0 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.045em;
}

.modal-close {
  flex: 0 0 auto;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(255,255,255,.025);
  color: var(--ink);
}

.field textarea {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, monospace;
  line-height: 1.6;
}

.field select option {
  background: #151916;
}

.helper-text {
  margin: -5px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.demo-login {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(110,156,170,.2);
  border-radius: 16px;
  background: rgba(110,156,170,.07);
  color: #b8c9cc;
  font-size: 12px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 150;
  max-width: calc(100vw - 30px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: #151714;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: .25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-nav { display: none; }

body.paper-mode {
  --bg: #eae4d8;
  --bg-soft: #ded7ca;
  --panel: #f1ece2;
  --panel-2: #fffaf0;
  --ink: #181b18;
  --muted: #676c66;
  --line: rgba(20, 26, 21, .14);
  --cream: #243a37;
  color-scheme: light;
}

body.paper-mode .site-header {
  background: linear-gradient(to bottom, rgba(234,228,216,.96) 62%, transparent);
}

body.paper-mode .library-toolbar {
  background: linear-gradient(to bottom, var(--bg) 75%, transparent);
}

body.paper-mode .hero h1 em {
  -webkit-text-stroke-color: rgba(24,27,24,.55);
}

body.paper-mode .modal { background: #f1ece2; }
body.paper-mode .field select option { background: #f1ece2; }

@media (max-width: 980px) {
  :root { --page: min(100% - 36px, 820px); }
  .hero { grid-template-columns: 1fr .8fr; gap: 34px; min-height: 570px; }
  .hero-card.main { inset: 10px 0 25px 20px; }
  .hero-card.floating { width: 130px; height: 155px; }
  .category-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 250px 180px 180px; }
  .category-card:nth-child(1) { grid-row: span 2; }
  .category-card:nth-child(4) { grid-column: span 2; }
  .song-detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .song-sidebar { position: static; order: -1; }
  .song-sidebar-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    font: 800 11px/1 Inter, sans-serif;
  }
  .song-sidebar-content { display: none; margin-top: 10px; }
  .song-sidebar.is-expanded .song-sidebar-content { display: block; }
  .song-structure {
    position: sticky;
    top: 82px;
    z-index: 38;
    background: rgba(14,17,15,.94);
    box-shadow: 0 14px 40px rgba(0,0,0,.34);
    backdrop-filter: blur(18px);
  }
  body.paper-mode .song-structure { background: rgba(234,228,216,.94); }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 28px); --radius-xl: 28px; --radius-lg: 21px; }
  .app-shell { padding-bottom: 94px; }
  .site-header { height: 72px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .brand-copy small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .icon-button { display: none; }
  .sync-indicator { display: none; }
  .song-scroll-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .song-scroll-controls.is-floating {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 78px));
  }
  .song-scroll-controls > [data-timed-scroll] { grid-column: 1 / -1; }
  .song-scroll-controls > .scroll-speed-options,
  .song-scroll-controls > .metronome-controls { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
  .scroll-speed-options .scroll-small-button { width: 100%; }
  .metronome-controls { justify-content: center; }
  .scroll-mode-button,
  .scroll-small-button { min-height: 42px; padding-inline: 10px; font-size: 10px; }
  .login-button { min-height: 38px; padding-inline: 15px; }
  .mobile-nav {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 80;
    width: min(calc(100% - 22px), 480px);
    height: 66px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(19,22,19,.9);
    box-shadow: 0 18px 55px rgba(0,0,0,.52);
    backdrop-filter: blur(22px);
    transform: translateX(-50%);
    transition: transform .28s cubic-bezier(.22,.8,.25,1), opacity .2s ease;
  }
  body.mobile-nav-hidden .mobile-nav {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 28px));
  }
  body.mobile-nav-hidden .song-scroll-controls.is-floating {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 17px;
    color: #8f948e;
    font-size: 9px;
  }
  .mobile-nav button svg { width: 20px; height: 20px; }
  .mobile-nav button.is-active { background: var(--ink); color: #131613; }
  body.paper-mode .mobile-nav { background: rgba(240,235,224,.94); border-color: rgba(0,0,0,.1); }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 0 44px;
  }
  .hero-clean { min-height: auto; padding-top: 50px; }
  .hero h1 { margin-top: 19px; font-size: clamp(56px, 18vw, 86px); }
  .verse { font-size: 15px; }
  .hero-search { min-height: 58px; padding-left: 16px; }
  .search-submit { min-width: 94px; }
  .hero-art { min-height: 440px; order: -1; }
  .hero-card.main { inset: 0 0 0 32px; }
  .hero-card.main span { left: 25px; bottom: 24px; font-size: 30px; }
  .hero-card.floating { left: 0; bottom: 30px; width: 120px; height: 145px; }
  .hero-note { top: 22px; right: -4px; }
  .home-section { padding: 46px 0; }
  .section-heading { align-items: end; }
  .section-heading h2, .page-heading h1 { font-size: 36px; }
  .category-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 170px 190px; gap: 10px; }
  .category-card { padding: 18px; }
  .category-card:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .category-card:nth-child(4) { grid-column: span 2; }
  .category-card strong { font-size: 27px; }
  .song-row-grid { grid-template-columns: 1fr; }
  .song-card { min-height: 185px; }
  .quote-band { margin-top: 34px; padding: 52px 24px; }

  .page-top { padding-top: 34px; }
  .page-heading { display: grid; gap: 14px; }
  .page-heading p { font-size: 13px; }
  .library-toolbar { top: 70px; }
  .song-list-item { grid-template-columns: 48px 1fr auto; gap: 12px; padding-right: 12px; }
  .editor-actions { gap: 12px; }
  .editor-actions .text-button { font-size: 11px; }
  .key-badge { width: 48px; height: 48px; border-radius: 14px; }
  .list-stats { display: none; }
  .list-actions .favorite-button { width: 38px; height: 38px; }

  .detail-view { padding-top: 25px; }
  .playlist-performance-bar { top: 71px; min-height: 58px; margin: 10px 0 13px; padding: 8px 9px 8px 13px; border-radius: 17px; }
  .playlist-performance-copy { grid-template-columns: 1fr; gap: 3px; }
  .playlist-performance-copy small { display: none; }
  .playlist-performance-actions button { width: 40px; height: 40px; border-radius: 12px; }
  .song-hero { min-height: 340px; padding: 26px; }
  .song-hero h1 { font-size: clamp(50px, 16vw, 76px); }
  .song-structure { padding: 7px 9px; border-radius: 16px; }
  .song-structure { top: 71px; }
  .structure-track { scrollbar-width: none; }
  .structure-track::-webkit-scrollbar { display: none; }
  .structure-chip { flex-basis: 36px; width: 36px; height: 36px; }
  .song-detail-layout { grid-template-columns: 1fr; padding-top: 26px; }
  .song-sidebar { position: static; order: -1; }
  .song-sidebar-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    font: 800 11px/1 Inter, sans-serif;
  }
  .song-sidebar-content { display: none; margin-top: 10px; }
  .song-sidebar.is-expanded .song-sidebar-content { display: block; }
  .song-toolbar { position: relative; top: auto; z-index: 20; padding: 10px; margin-inline: -5px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,17,15,.9); backdrop-filter: blur(16px); }
  body.paper-mode .song-toolbar { background: rgba(234,228,216,.92); }
  .performance-setup { width: 100%; justify-content: center; }
  .song-view-tools { width: 100%; }
  .song-view-tools .secondary-button { flex: 1 1 auto; }
  .song-history-controls { margin-left: auto; }
  .song-view-tools .font-size-control { flex: 1 1 146px; }
  .lyrics { max-width: 100%; overflow-x: hidden; font-size: var(--lyrics-size, 15px); }
  .section-content, .lyric-line { min-width: 0; max-width: 100%; }
  .lyric-text, .chord-line, .aligned-lyric-line {
    max-width: 100%;
  }
  .song-section { padding: 16px; border-radius: 19px; scroll-margin-top: 155px; }
  .section-header { align-items: flex-start; }
  .section-note { flex-basis: 100%; text-align: left; }
  .section-actions { overflow-x: auto; padding-bottom: 2px; }
  .section-actions button { flex: 0 0 auto; }
  body.song-scroll-running .section-actions,
  body.song-scroll-running .structure-add { display: none !important; }

  .playlist-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .playlist-card { min-height: 220px; padding: 19px; }
  .playlist-card h2 { font-size: 22px; }
  .playlist-modal-actions { display: grid; gap: 10px; }
  .playlist-modal-actions .primary-button { width: 100%; }
  .playlist-editor-heading { align-items: stretch; display: grid; }
  .playlist-editor-heading .primary-button { width: 100%; }
  .playlist-editor-row { grid-template-columns: 40px 24px minmax(0, 1fr) auto; gap: 7px; padding-right: 8px; }
  .playlist-drag-handle { width: 40px; }
  .playlist-remove-song { padding-inline: 9px; }
  .playlist-transition-card, .playlist-finish-card { margin-top: 24px; padding: 20px 16px; border-radius: 22px; }
  .transition-heading { align-items: stretch; display: grid; }
  .transition-heading .primary-button { width: 100%; }
  .playlist-next-preview { grid-template-columns: 36px 1fr; gap: 11px; padding: 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal { padding: 22px; border-radius: 24px; }
  .toast { bottom: 91px; }
}

@media (max-width: 430px) {
  .playlist-grid.is-empty { grid-template-columns: 1fr; }
  .random-song-button { grid-template-columns: 42px 1fr auto; padding-right: 14px; border-radius: 21px; }
  .random-song-icon { width: 42px; height: 42px; }
  .hero-art { min-height: 400px; }
  .hero-card.main { left: 18px; background-position: center 20%; }
  .hero-card.floating { width: 105px; height: 128px; border-radius: 20px; }
  .hero-note { padding: 11px 12px; font-size: 9px; }
  .hero-search { display: grid; grid-template-columns: auto 1fr; min-height: 0; border-radius: 23px; padding: 15px; }
  .hero-search .search-submit { grid-column: 1 / -1; min-height: 44px; margin-top: 3px; }
  .category-grid { grid-template-rows: 240px 160px 180px; }
  .category-card strong { font-size: 23px; }
  .category-card:nth-child(1) { background-position: center 20%; }
  .playlist-grid { grid-template-columns: 1fr; }
  .playlist-card { min-height: 190px; }
  .song-hero { min-height: 300px; background-position: center, center 20%; }
  .song-hero-content { width: 100%; min-width: 0; max-width: 100%; }
  .song-hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 13.5vw, 56px);
    line-height: .94;
    overflow-wrap: anywhere;
  }
  .song-hero h1.hero-title-long { font-size: clamp(35px, 11.5vw, 48px); }
  .song-hero h1.hero-title-extra-long { font-size: clamp(30px, 10vw, 42px); }
  .song-toolbar .secondary-button { padding-inline: 14px; }
  .song-history-controls { width: 100%; }
  .song-history-title { margin-right: auto; }
  .song-history-controls button { flex: 0 1 auto; justify-content: center; }
  .detail-view { overflow-x: clip; }
  .performance-setup { max-width: 100%; box-sizing: border-box; }
  .setup-label { display: none; }
  .transpose-control button { min-width: 35px; }
  .transpose-control .transpose-key { min-width: 52px; }
  .capo-control button { min-width: 32px; }
  .capo-control strong { min-width: 45px; }
  .setup-reset { width: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@page {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    width: auto;
    min-height: auto;
    background: #fff !important;
    color: #111 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body::before {
    display: none !important;
  }

  .site-header,
  .mobile-nav,
  .back-button,
  .song-toolbar,
  .song-scroll-controls,
  .playlist-performance-bar,
  .playlist-transition-card,
  .playlist-finish-card,
  .song-sidebar,
  .structure-add,
  .section-actions,
  #modal-layer,
  #toast {
    display: none !important;
  }

  .app-shell,
  #app,
  .view,
  .detail-view {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .song-hero {
    min-height: 0 !important;
    padding: 0 0 6mm !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #111 !important;
  }

  .song-hero::before,
  .song-hero::after {
    display: none !important;
  }

  .song-hero .eyebrow {
    color: #666 !important;
  }

  .song-hero h1 {
    max-width: none;
    margin: 2mm 0 1.5mm;
    color: #111 !important;
    font-size: 24pt;
    line-height: 1;
    letter-spacing: -.025em;
  }

  .song-hero p {
    color: #555 !important;
    font-size: 10pt;
  }

  .print-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm 6mm;
    margin-top: 4mm;
    color: #444;
    font-family: Inter, sans-serif;
    font-size: 8.5pt;
  }

  .song-structure {
    margin: 0 0 6mm;
    padding: 0 0 4mm;
    border: 0;
    border-bottom: .3mm solid #bbb;
    border-radius: 0;
    background: none !important;
  }

  .structure-heading {
    margin-bottom: 3mm;
  }

  .structure-heading .eyebrow,
  .structure-heading strong {
    color: #555 !important;
  }

  .structure-track {
    flex-wrap: wrap;
    gap: 2mm;
    overflow: visible;
    padding: 0;
  }

  .structure-chip {
    flex-basis: 8mm;
    width: 8mm;
    height: 8mm;
    border-color: #555 !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 7pt;
  }

  .structure-chip i {
    border-color: #fff;
    background: #555;
  }

  .song-detail-layout {
    display: block;
    padding: 0;
  }

  .lyrics {
    column-count: 2;
    column-gap: 7mm;
    column-rule: .2mm solid #ddd;
    overflow: visible;
    color: #111 !important;
    font-size: 8.2pt !important;
    line-height: 1.25;
  }

  .song-section {
    display: inline-block;
    width: 100%;
    margin: 0 0 3mm;
    padding: 2.5mm 3mm 3mm;
    break-inside: avoid;
    border: .3mm solid #aaa !important;
    border-radius: 4mm;
    background: #fff !important;
  }

  .section-legend {
    padding-right: 2.5mm;
    background: #fff;
    color: #111 !important;
    font-size: 8pt;
  }

  .section-code {
    flex-basis: 7mm;
    width: 7mm;
    height: 7mm;
    border-color: #555 !important;
    color: #111 !important;
    font-size: 7pt;
  }

  .section-note {
    margin: 0 0 2mm;
    color: #555 !important;
    font-size: 7.5pt;
    text-align: right;
  }

  .section-content {
    margin-top: 1.8mm;
  }

  .lyric-line {
    min-height: 0;
    margin-bottom: 1mm;
  }

  .chord-line,
  .lyric-text,
  .word-chord,
  .word-text,
  .chord-only-line {
    max-width: 100%;
  }

  .chord-line {
    color: #111 !important;
  }

  .word-chord,
  .chord-only-line {
    color: #111 !important;
  }
}
