:root {
  color-scheme: dark;
  --accent: var(--brand-cyan);
  --accent-soft: var(--brand-blue-ink);
  --background: var(--brand-navy);
  --surface-hero: var(--brand-navy-hover);
  --surface-content: #eaf2f6;
  --surface-panel: var(--brand-soft-2);
  --surface-control: #fff;
  --surface-card: #fff;
  --text: #f3f4f6;
  --text-muted: #b7c0ca;
  --ink: var(--brand-navy);
  --ink-muted: #5d6d80;
  --border: #244569;
  --border-light: #d4e2ea;
  --focus: var(--brand-cyan);
  --shadow-surface: 0 12px 30px rgba(0, 22, 62, 0.2);
  --shadow-card: 0 4px 14px var(--brand-shadow-medium);
  --radius-small: 10px;
  --radius-medium: 14px;
  --radius-large: 20px;
  --bottom-nav-height: calc(70px + env(safe-area-inset-bottom, 0px));
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -12%, rgba(34, 62, 91, 0.22), transparent 34rem),
    var(--background);
}

body.is-preparing .app-shell {
  visibility: hidden;
}

.music-view.internet-search-demo > :not(#internetSearchExperience) {
  display: none !important;
}

.internet-search-active {
  background: #f0f2f3;
}

.internet-search-active .app-header {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.internet-search-active .app-header__inner {
  min-height: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.internet-search-active .app-header__area {
  display: none;
}

.internet-search-active .app-main {
  background: #fbfbfa;
}

.internet-search-active .primary-nav a[aria-current="page"] {
  color: var(--brand-blue-ink);
  background: var(--brand-selection-bg);
  border-color: transparent;
  box-shadow: none;
}

.internet-search-active .primary-nav a[aria-current="page"] span,
.internet-search-active .primary-nav a[aria-current="page"] svg {
  color: var(--brand-cyan);
}

.internet-search-active .primary-nav a[aria-current="page"]::after {
  display: none;
}

.music-view.internet-search-demo {
  min-height: calc(100dvh - 52px - var(--bottom-nav-height));
  margin: -18px -12px -20px;
  padding: 0;
  background: #fbfbfa;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.internet-search {
  min-width: 0;
  color: #18212c;
  background: #f8f8f6;
}

.internet-search-heading {
  margin: 0 0 24px;
  text-align: center;
}

.internet-search-heading h1,
.internet-search-heading p,
.internet-search-recent h2,
.internet-search-results-heading h1,
.internet-search-results-heading p,
.internet-search-preview__header h1,
.internet-search-preview__header p,
.internet-search-source__header h1,
.internet-search-source__header p,
.internet-search-form-error {
  margin: 0;
}

.internet-search-heading h1 {
  font-size: clamp(2rem, 7.5vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.internet-search-heading h1:focus,
.internet-search-results-heading h1:focus,
.internet-search-preview__header h1:focus,
.internet-search-source__header h1:focus,
.internet-search-editor__toolbar h1:focus {
  outline: 0;
}

.internet-search-heading > p:last-child {
  max-width: 480px;
  margin: 10px auto 0;
  color: #687383;
  font-size: 0.96rem;
  line-height: 1.5;
}

.internet-search-home {
  display: grid;
  width: min(100%, 720px);
  min-height: calc(100dvh - 52px - var(--bottom-nav-height));
  align-content: start;
  margin: 0 auto;
  padding: clamp(64px, 15vh, 136px) 18px 48px;
}

.internet-search-home__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--brand-blue-ink);
  font-size: 0.76rem;
  font-weight: 760;
}

.internet-search-home__brand .internet-search-icon {
  width: 17px;
  height: 17px;
}

.internet-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.internet-search-form__bar {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
  min-height: 54px;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e5e7;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(24, 31, 39, 0.075), 0 1px 2px rgba(24, 31, 39, 0.04);
}

.internet-search-form--compact {
  position: sticky;
  z-index: 8;
  top: 64px;
  margin-bottom: 18px;
}

.internet-search input,
.internet-search select,
.internet-search textarea {
  color-scheme: light;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: #18212c;
  background: #fff;
  border: 1px solid #ccd2d8;
  border-radius: 10px;
  font: inherit;
}

.internet-search-form__bar input {
  height: 52px;
  padding: 0 48px 0 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
  outline: 0;
}

.internet-search-form__bar:focus-within {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px var(--brand-focus-ring), 0 10px 30px rgba(21, 30, 40, 0.1);
}

.internet-search-form__bar input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.internet-search-form__bar input::-webkit-search-cancel-button {
  display: none;
}

.internet-search-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.internet-search-button--primary {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: 0 7px 18px var(--brand-shadow-medium);
}

.internet-search-button--primary:hover {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
}

.internet-search-button--secondary {
  color: var(--brand-navy);
  background: var(--brand-soft-2);
  border-color: var(--brand-border-strong);
}

.internet-search-button--text,
.internet-search-button--text-strong,
.internet-search-button--icon-text {
  color: #596575;
  background: transparent;
  border-color: transparent;
}

.internet-search-button--text-strong {
  color: var(--brand-blue-ink);
}

.internet-search-button--icon-text {
  padding-right: 8px;
  padding-left: 8px;
}

.internet-search-button--chip {
  min-height: 44px;
  padding: 8px 12px;
  color: var(--brand-navy);
  background: #fff;
  border-color: var(--brand-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 2px 7px rgba(35, 42, 49, 0.035);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.internet-search-button--chip:hover {
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
  box-shadow: 0 4px 11px var(--brand-shadow-subtle);
}

.internet-search-button:active {
  transform: translateY(1px);
}

.internet-search-button--search-icon {
  width: 44px;
  min-width: 44px;
  padding: 0;
  color: #596575;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.internet-search-button--search-icon > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.internet-search-form__bar > .internet-search-button:first-child {
  color: var(--brand-blue-ink);
}

.internet-search-form__clear {
  position: absolute;
  top: 4px;
  right: 5px;
}

.internet-search-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.internet-search-recent {
  width: min(100%, 660px);
  margin: 13px auto 0;
}

.internet-search-recent__header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.internet-search-recent__header h2 {
  color: #3d4650;
  font-size: 0.8rem;
  font-weight: 740;
  letter-spacing: -0.01em;
}

.internet-search-recent__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.internet-search-results-view,
.internet-search-preview,
.internet-search-editor,
.internet-search-source {
  width: min(100%, 900px);
  min-height: calc(100dvh - 52px - var(--bottom-nav-height));
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 42px) 44px;
}

.internet-search-results-view {
  width: min(100%, 820px);
  padding: 16px clamp(16px, 4vw, 38px) 44px;
}

.internet-search-home,
.internet-search-results-view {
  animation: internet-search-enter 150ms ease-out;
}

.internet-search-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 12px;
}

.internet-search-results-heading h1 {
  font-size: 1.16rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.internet-search-results-heading p {
  flex: 0 0 auto;
  color: #7d858e;
  font-size: 0.74rem;
  font-weight: 620;
  white-space: nowrap;
}

.internet-search-results {
  display: grid;
  gap: 7px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.internet-search-form__spinner {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 17px;
  width: 19px;
  height: 19px;
  box-sizing: border-box;
  border: 3px solid #d8dde1;
  border-top-color: #7a8791;
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  animation: internet-search-form-spin 700ms linear infinite;
}

@keyframes internet-search-form-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.internet-search-results__group-label {
  margin: 0;
  padding: 2px 3px 4px;
  color: var(--brand-blue-ink);
  background: transparent;
  border: 0;
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.015em;
}

.internet-search-results__group-label:not(:first-child) {
  margin-top: 10px;
}

.internet-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: #18212c;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e7e6e3;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(24, 31, 39, 0.035), 0 1px 2px rgba(24, 31, 39, 0.025);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.internet-search-result:last-child {
  border-bottom-color: #e7e6e3;
}

.internet-search-result--group-start {
  border-top: 5px solid #f7f7f5;
}

.internet-search-result:hover {
  background: var(--brand-soft-2);
  border-color: var(--brand-border-strong);
  box-shadow: 0 7px 18px var(--brand-shadow-subtle), 0 2px 4px rgba(0, 22, 62, 0.035);
  transform: translateY(-1px);
}

.internet-search-result:focus-visible {
  border-color: var(--brand-cyan);
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: 1px;
}

.internet-search-results__empty {
  margin: 0;
  padding: 24px 16px;
  color: #6b7581;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed var(--brand-border-strong);
  border-radius: 14px;
  font-size: 0.84rem;
  text-align: center;
}

.internet-search-more {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 16px;
  padding: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft-2) 0%, #fff 78%);
  border: 1px solid var(--brand-border);
  border-radius: 15px;
  box-shadow: 0 6px 18px var(--brand-shadow-subtle);
}

.internet-search-more::after {
  position: absolute;
  top: -34px;
  right: -28px;
  width: 92px;
  height: 92px;
  background: var(--brand-selection-bg);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.internet-search-more .internet-search-button {
  position: relative;
  z-index: 1;
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: 0 6px 14px var(--brand-shadow-medium);
}

.internet-search-more .internet-search-button:hover {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
}

.internet-search-more p {
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 540px;
  color: #737b84;
  font-size: 0.71rem;
  line-height: 1.4;
}

.internet-search-result:disabled {
  color: #18212c;
  cursor: wait;
  opacity: 1;
}

.internet-search-result[aria-busy="true"] {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.internet-search-result__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border: 1px solid var(--brand-selection-bg);
  border-radius: 12px;
}

.internet-search-result--personal .internet-search-result__icon {
  color: var(--brand-blue-ink);
  background: var(--brand-soft-2);
}

.internet-search-result__copy {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
}

.internet-search-result__title,
.internet-search-result__artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internet-search-result__title {
  grid-column: 1 / -1;
  font-size: 0.93rem;
  font-weight: 770;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.internet-search-result__artist {
  color: #717983;
  font-size: 0.76rem;
  line-height: 1.3;
}

.internet-search-result--internal .internet-search-result__icon {
  color: #356a4b;
  background: #edf7f0;
  border-color: #dcecdf;
}

.internet-search-result--suggestion .internet-search-result__icon {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-color: var(--brand-border);
}

.internet-search-result__tone {
  padding: 3px 7px;
  color: var(--ink-muted);
  background: #edf5f8;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 650;
}

@keyframes internet-search-enter {
  from {
    opacity: 0.72;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.internet-search-result__arrow {
  width: 18px;
  height: 18px;
  color: #9ba1a8;
  transition: color 150ms ease, transform 150ms ease;
}

.internet-search-result:hover .internet-search-result__arrow {
  color: var(--brand-blue-ink);
  transform: translateX(2px);
}

.internet-search-result__opening {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--brand-blue-ink);
  font-size: 0.7rem;
  white-space: nowrap;
}

.internet-search-result__spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand-border-strong);
  border-top-color: var(--brand-blue-ink);
  border-radius: 50%;
  animation: internet-search-spin 700ms linear infinite;
}

@keyframes internet-search-spin {
  to { transform: rotate(360deg); }
}

.internet-search-skeletons {
  display: grid;
  gap: 7px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.internet-search-skeleton {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  grid-template-rows: 15px 12px;
  min-height: 66px;
  gap: 7px 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e7e6e3;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(24, 31, 39, 0.03);
}

.internet-search-skeleton span {
  display: block;
  background: linear-gradient(90deg, #eff1f2 25%, #f7f8f8 50%, #eff1f2 75%);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: internet-search-shimmer 1.2s linear infinite;
}

.internet-search-skeleton span:first-child {
  grid-row: 1 / 3;
  height: 42px;
  border-radius: 12px;
}

.internet-search-skeleton span:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  width: 58%;
}

.internet-search-skeleton span:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  width: 38%;
}

.internet-search-skeleton span:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 12px;
  height: 18px;
  align-self: center;
  justify-self: center;
}

@keyframes internet-search-shimmer {
  to { background-position: -200% 0; }
}

.internet-search-empty {
  display: grid;
  max-width: 520px;
  justify-items: center;
  margin: 42px auto 0;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(24, 31, 39, 0.035);
  text-align: center;
}

.internet-search-empty__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-radius: 50%;
}

.internet-search-empty .internet-search-heading h1 {
  font-size: clamp(1.45rem, 6vw, 2rem);
}

.internet-search-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.internet-search-toolbar {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.internet-search-options {
  position: relative;
}

.internet-search-options__menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  width: 230px;
  overflow: hidden;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(18, 26, 34, 0.16);
}

.internet-search-button--menu {
  justify-content: flex-start;
  color: #26313d;
  background: transparent;
  border: 0;
  font-weight: 650;
}

.internet-search-button--menu:hover {
  background: var(--brand-soft);
}

.internet-search-preview__header {
  position: relative;
  padding: 0 0 22px;
  border-bottom: 1px solid #eceeef;
}

.internet-search-preview__header h1 {
  margin-right: 72px;
  font-size: clamp(1.75rem, 6vw, 2.7rem);
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.internet-search-preview__header p {
  margin-top: 6px;
  color: #66717e;
  font-size: 0.95rem;
}

.internet-search-tone {
  position: absolute;
  top: 2px;
  right: 0;
  padding: 6px 10px;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
}

.internet-search-chord {
  padding: 28px 0 32px;
  color: #26313d;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  line-height: 1.68;
  white-space: pre;
}

.internet-search-chord__line {
  min-height: 1.68em;
  overflow-x: auto;
  scrollbar-width: thin;
}

.internet-search-chord__line--chord {
  color: var(--brand-blue-deep);
  font-weight: 760;
}

.internet-search-chord__line--section {
  margin-top: 12px;
}

.internet-search-save-dock {
  position: sticky;
  z-index: 7;
  bottom: calc(var(--bottom-nav-height) + 8px);
  display: flex;
  justify-content: center;
  padding: 10px;
  pointer-events: none;
}

.internet-search-save-dock > * {
  width: min(100%, 440px);
  pointer-events: auto;
}

.internet-search-save-dock .internet-search-button {
  min-height: 50px;
  border-radius: 14px;
}

.internet-search-saved {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #276244;
  background: rgba(238, 249, 242, 0.96);
  border: 1px solid #b9ddc7;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 55, 37, 0.1);
  font-size: 0.85rem;
  font-weight: 720;
}

.internet-search-editor__toolbar {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
  min-height: 50px;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eceeef;
}

.internet-search-editor__toolbar h1 {
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

.internet-search-editor__toolbar .internet-search-button:first-child {
  justify-self: start;
}

.internet-search-editor__toolbar .internet-search-button:last-child {
  justify-self: end;
}

.internet-search-editor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px;
  gap: 14px;
}

.internet-search-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #596575;
  font-size: 0.76rem;
  font-weight: 720;
}

.internet-search-field--content {
  grid-column: 1 / -1;
}

.internet-search-field textarea,
.internet-search-manual textarea {
  min-height: 320px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
}

.internet-search input:focus-visible,
.internet-search select:focus-visible,
.internet-search textarea:focus-visible {
  border-color: var(--brand-cyan);
  outline: 2px solid var(--brand-focus-ring);
  outline-offset: 1px;
}

.internet-search .internet-search-form__bar input:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.internet-search-form-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #8c2d25;
  background: #fff2f0;
  border-radius: 9px;
  font-size: 0.83rem;
}

.internet-search-source {
  max-width: 720px;
}

.internet-search-source__header {
  margin-top: 30px;
  text-align: center;
}

.internet-search-source__header h1 {
  font-size: clamp(1.65rem, 6vw, 2.5rem);
  letter-spacing: -0.035em;
}

.internet-search-source__artist {
  margin-top: 7px !important;
  color: #687383;
}

.internet-search-source__instruction {
  max-width: 520px;
  margin: 24px auto 0 !important;
  color: #3e4955;
  line-height: 1.5;
}

.internet-search-source__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.internet-search-source-options {
  display: grid;
  width: min(100%, 420px);
  gap: 8px;
  margin: 26px auto 0;
}

.internet-search-source-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 11px 14px;
  color: #344150;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  font: inherit;
  font-weight: 680;
  text-align: left;
}

.internet-search-source-option--selected {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
}

.internet-search-source-option .internet-search-icon {
  width: 19px;
  height: 19px;
}

.internet-search-source__unavailable {
  width: min(100%, 420px);
  margin: 22px auto 0;
  text-align: center;
}

.internet-search-source > .internet-search-button--primary {
  display: flex;
  width: min(100%, 320px);
  margin: 28px auto 0;
}

.internet-search-manual {
  display: grid;
  max-width: 620px;
  gap: 8px;
  margin: 28px auto 0;
}

.internet-search-manual label {
  color: #596575;
  font-size: 0.78rem;
  font-weight: 720;
}

.internet-search-inline-status {
  max-width: 660px;
  margin: 12px auto 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
  text-align: center;
}

.internet-search-preview-skeleton {
  display: grid;
  gap: 16px;
  padding-top: 30px;
}

.internet-search-preview-skeleton span {
  display: block;
  width: 72%;
  height: 18px;
  background: #eceeef;
  border-radius: 999px;
}

.internet-search-preview-skeleton span:first-child {
  width: 48%;
  height: 34px;
}

.internet-search-preview-skeleton span:nth-child(3) {
  width: 92%;
}

.internet-search-modal-layer {
  position: fixed;
  z-index: 70;
  inset: 0 0 var(--bottom-nav-height);
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 12px;
}

.internet-search-button--backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(13, 19, 26, 0.48);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(2px);
}

.internet-search-button--backdrop > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.internet-search-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - var(--bottom-nav-height) - 24px);
  overflow: auto;
  padding: 18px;
  color: #18212c;
  background: #fff;
  border-radius: 22px 22px 14px 14px;
  box-shadow: 0 -12px 42px rgba(13, 19, 26, 0.2);
}

.internet-search-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

.internet-search-modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.internet-search-modal__header h2:focus {
  outline: 0;
}

.internet-search-modal__description {
  margin: 6px 0 18px;
  color: #687383;
  font-size: 0.9rem;
  line-height: 1.45;
}

.internet-search-modal__success {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 10px 0 16px;
  color: #27704a;
  background: #eaf7ef;
  border-radius: 50%;
}

.internet-search-modal__actions {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.internet-search-source-details {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eceeef;
  font-size: 0.82rem;
}

.internet-search-source-details dt {
  color: #596575;
  font-weight: 720;
}

.internet-search-source-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.internet-search-repertoire__form,
.internet-search-repertoire__create {
  display: grid;
  gap: 10px;
}

.internet-search-repertoire__list {
  display: grid;
  min-width: 0;
  max-height: 290px;
  gap: 4px;
  margin: 0;
  overflow: auto;
  padding: 0;
  border: 0;
}

.internet-search-repertoire__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #eceeef;
  cursor: pointer;
}

.internet-search-repertoire__item:has(input:checked) {
  color: var(--brand-navy);
  background: var(--brand-soft);
  border-radius: 10px;
}

.internet-search-repertoire__item input {
  width: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--brand-blue-ink);
}

.internet-search-repertoire__item span {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internet-search-repertoire__item small {
  color: #74808c;
}

.internet-search .internet-search-repertoire__create .internet-search-field textarea {
  min-height: 88px;
  max-height: 140px;
  resize: vertical;
  font-family: inherit;
  white-space: normal;
}

.internet-search-toast {
  position: fixed;
  z-index: 65;
  right: 16px;
  bottom: calc(var(--bottom-nav-height) + 14px);
  left: 16px;
  display: flex;
  width: min(calc(100% - 32px), 460px);
  min-height: 48px;
  align-items: center;
  gap: 9px;
  margin: 0 auto;
  padding: 11px 14px;
  color: #effaf3;
  background: #234d37;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(13, 30, 20, 0.2);
  font-size: 0.84rem;
  font-weight: 680;
}

@media (min-width: 700px) {
  .internet-search-active .app-main {
    width: min(100%, 1180px);
  }

  .internet-search-modal-layer {
    align-items: center;
  }

  .internet-search-modal {
    border-radius: 20px;
    box-shadow: 0 22px 64px rgba(13, 19, 26, 0.24);
  }
}

@media (min-width: 620px) {
  .music-view.internet-search-demo {
    margin-right: -18px;
    margin-left: -18px;
  }
}

@media (min-width: 900px) {
  .internet-search-active .app-main {
    width: min(calc(100% - var(--sidebar-width)), 1180px);
  }
}

@media (max-width: 620px) {
  .internet-search-home {
    padding-top: clamp(54px, 12vh, 92px);
  }

  .internet-search-form--compact {
    top: 60px;
  }

  .internet-search-editor__grid {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .internet-search-field:first-child,
  .internet-search-field--content {
    grid-column: 1 / -1;
  }

  .internet-search-field textarea {
    min-height: 390px;
  }
}

@media (max-width: 390px) {
  .internet-search-results-view,
  .internet-search-preview,
  .internet-search-editor,
  .internet-search-source {
    padding-right: 13px;
    padding-left: 13px;
  }

  .internet-search-results-heading {
    align-items: center;
  }

  .internet-search-source__actions {
    display: grid;
  }

  .internet-search-modal {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .internet-search-skeleton span,
  .internet-search-result__spinner,
  .internet-search-form__spinner,
  .internet-search-home,
  .internet-search-results-view {
    animation: none;
  }
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 10px;
  padding: 10px 14px;
  color: var(--brand-navy);
  background: var(--focus);
  border-radius: var(--radius-small);
  font-weight: 760;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e5e7e8;
  box-shadow: 0 1px 10px rgba(27, 34, 40, 0.045);
  backdrop-filter: blur(16px);
}

.app-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: min(100%, 1120px);
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 14px;
}

.app-header__brand {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.app-header__logo {
  display: block;
  width: clamp(145px, 42vw, 175px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.beta-badge {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding: 3px 6px;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.app-header__area {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #65717f;
  font-size: 0.76rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  width: min(100%, 1120px);
  min-height: calc(100vh - 58px);
  min-height: calc(100dvh - 58px);
  margin: 0 auto;
  padding: 18px 12px calc(var(--bottom-nav-height) + 20px);
}

.view-heading {
  margin-bottom: 16px;
}

.music-view {
  padding: 10px;
  color: var(--ink);
  background: var(--surface-content);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(4, 9, 14, 0.2);
}

.music-view > .view-heading {
  padding: 11px 9px 4px;
  color: var(--ink);
  text-align: center;
}

.view-heading__eyebrow {
  margin: 0 0 5px;
  color: var(--brand-blue-ink);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.view-heading h1,
.view-heading p {
  margin: 0;
}

.view-heading h1:focus,
.placeholder-card h1:focus {
  outline: 0;
}

.view-heading h1 {
  font-size: clamp(1.7rem, 8vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.view-heading > p:last-child {
  margin-top: 7px;
  color: #3f4c5e;
  font-size: 0.91rem;
}

.music-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 13px;
  padding: 12px;
  color: var(--text);
  background: #111821;
  border: 1px solid #27313d;
  border-radius: 16px;
  box-shadow:
    0 8px 20px rgba(4, 9, 14, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.music-search,
.music-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.music-search label,
.music-filter label {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 730;
}

.music-search__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.music-search input,
.music-filter select {
  color-scheme: light;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebac7;
  border-radius: var(--radius-medium);
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.06);
}

.music-search input::placeholder {
  color: #657386;
  opacity: 1;
}

.music-search input:hover,
.music-filter select:hover {
  background: #f8fafc;
  border-color: #8796a7;
}

.music-search input:focus-visible,
.music-filter select:focus-visible {
  background: #fff;
  border-color: var(--brand-cyan);
  outline: 2px solid var(--brand-focus-ring);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px var(--brand-selection-bg);
}

.music-filter select option {
  color: var(--ink);
  background: var(--surface-card);
}

.music-filter select option:checked {
  color: var(--brand-navy);
  background: var(--brand-soft);
  font-weight: 700;
}

@supports (appearance: base-select) {
  .music-filter select,
  .music-filter select::picker(select) {
    appearance: base-select;
  }

  .music-filter select::picker(select) {
    margin-top: 6px;
    padding: 6px;
    color: var(--ink);
    background: var(--surface-card);
    border: 1px solid #c8d0d9;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(4, 9, 14, 0.24);
  }

  .music-filter select option {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 8px;
  }

  .music-filter select option:hover,
  .music-filter select option:focus-visible {
    color: var(--brand-navy);
    background: var(--brand-soft-hover);
  }

  .music-filter select option::checkmark {
    color: var(--brand-navy);
  }

  .music-filter select::picker-icon {
    color: #536070;
    transition: transform 150ms ease;
  }

  .music-filter select:open::picker-icon {
    transform: rotate(180deg);
  }
}

.music-search button,
.empty-state button {
  min-height: 46px;
  padding: 8px 13px;
  color: #fff;
  background: var(--brand-navy);
  border: 1px solid var(--brand-navy);
  border-radius: var(--radius-medium);
  font-weight: 750;
}

.music-search button:hover,
.empty-state button:hover {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
}

.music-search button:active,
.empty-state button:active {
  transform: translateY(1px);
}

.music-results {
  margin: 0;
  color: #c4ccd5;
  font-size: 0.76rem;
  font-weight: 680;
}

.music-grid {
  display: grid;
  gap: 10px;
}

.music-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 80px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface-card);
  border: 1px solid #d5dbe2;
  border-radius: 15px;
  box-shadow: var(--shadow-card);
}

.music-card:hover {
  background: #fff;
  border-color: #c3ccd6;
  box-shadow: 0 8px 20px rgba(13, 19, 26, 0.14);
  transform: translateY(-1px);
}

.music-card:active {
  transform: translateY(1px);
}

.music-card h2,
.music-card p {
  margin: 0;
}

.music-card h2 {
  font-size: 1.04rem;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.music-card p {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.music-card__source {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-card__meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.music-card__key {
  padding: 5px 8px;
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-strong);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 760;
}

.music-card__arrow {
  color: var(--accent);
  font-size: 1.1rem;
}

.empty-state {
  width: min(100%, 560px);
  margin: 28px auto;
  padding: 28px 20px;
  color: var(--ink);
  text-align: center;
  background: var(--surface-card);
  border: 1px solid #d5dbe2;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.empty-state svg,
.placeholder-card > svg {
  width: 44px;
  height: 44px;
  color: var(--accent-soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state h2 {
  margin-top: 10px;
  font-size: 1.25rem;
}

.empty-state p {
  margin-top: 7px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.empty-state button {
  margin-top: 16px;
}

.placeholder-view {
  display: grid;
  min-height: calc(100vh - var(--bottom-nav-height) - 96px);
  min-height: calc(100dvh - var(--bottom-nav-height) - 96px);
  place-items: center;
}

.placeholder-card {
  width: min(100%, 560px);
  padding: clamp(28px, 8vw, 48px) 22px;
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, var(--brand-selection-bg), transparent 16rem),
    var(--surface-card);
  border: 1px solid #d5dbe2;
  border-radius: 18px;
  box-shadow: var(--shadow-surface);
}

.placeholder-card__status {
  display: inline-block;
  margin: 16px 0 8px !important;
  padding: 5px 9px;
  color: var(--brand-navy) !important;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-strong);
  border-radius: 999px;
  font-size: 0.69rem !important;
  font-weight: 740;
}

.placeholder-card h1,
.placeholder-card p {
  margin: 0;
}

.placeholder-card h1 {
  font-size: clamp(1.8rem, 8vw, 2.55rem);
  letter-spacing: -0.035em;
}

.placeholder-card > p:last-child {
  max-width: 430px;
  margin: 10px auto 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.profile-view {
  display: grid;
  gap: 14px;
  padding: 14px;
  color: var(--ink);
  background: var(--surface-content);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(4, 9, 14, 0.2);
}

.profile-heading {
  margin: 0;
  padding: 10px 7px 5px;
  text-align: left;
}

.profile-heading h1:focus {
  outline: 0;
}

.profile-compact-summary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 12px;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.25;
}

.profile-compact-summary__divider {
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.profile-section {
  padding: 16px;
  background: var(--surface-card);
  border: 1px solid #d2d9e1;
  border-radius: 17px;
  box-shadow: var(--shadow-card);
}

.profile-section__heading {
  margin-bottom: 12px;
}

.profile-section__heading h2,
.profile-section__heading p,
.profile-account-note p {
  margin: 0;
}

.profile-section__heading h2 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.profile-section__heading p,
.profile-account-note p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-list-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid #cdd5de;
  border-radius: 14px;
  cursor: pointer;
}

.profile-list-item:hover {
  background: var(--brand-soft-2);
  border-color: var(--brand-border-strong);
}

.profile-list-item__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 820;
}

.profile-list-item__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-list-item__icon--brand {
  background: var(--brand-navy);
}

.profile-list-item__icon--blue {
  background: #2b5f88;
}

.profile-list-item__icon--brand-soft {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
}

.profile-list-item__icon--neutral {
  color: #31465a;
  background: #e9eef3;
}

.profile-list-item__icon--danger {
  color: #fff;
  background: #a72a14;
}

.profile-list-item__copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.profile-list-item__copy strong {
  font-size: 0.9rem;
}

.profile-list-item__copy small {
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.profile-list-item__arrow {
  color: var(--brand-blue-ink);
  font-size: 1.55rem;
  line-height: 1;
}

.profile-list-item--danger {
  color: #8f2f20;
  border-color: #e3b7ae;
}

.profile-account-note {
  display: flex;
  min-height: 82px;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  background: var(--brand-soft-2);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
}

.profile-account-note > div {
  min-width: 0;
}

.profile-account-note p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-coming-soon {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.profile-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.profile-dialog ul {
  margin: 9px 0 0;
  padding-left: 21px;
  color: #465466;
  line-height: 1.55;
}

.profile-next-features-list {
  margin-bottom: 12px !important;
}

.profile-backup-first {
  width: 100%;
  margin-top: 14px;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
}

.profile-remove-status {
  min-height: 1.25em;
  color: #35725f !important;
  font-size: 0.78rem;
  font-weight: 720;
}

.profile-explicit-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  padding: 11px;
  color: #4c2d27;
  background: #fff5f2;
  border: 1px solid #e3b7ae;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.42;
}

.profile-explicit-confirmation input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: #a72a14;
}

.profile-danger-button {
  color: #fff;
  background: #a72a14;
  border-color: #a72a14;
}

.profile-danger-button:hover:not(:disabled) {
  background: #bb321b;
  border-color: #bb321b;
}

.profile-danger-button:disabled {
  color: #d6dbe1;
  background: #65717e;
  border-color: #65717e;
  cursor: not-allowed;
}

.profile-about {
  text-align: center;
}

.profile-about .personal-dialog__actions {
  justify-content: center;
}

@media (min-width: 620px) {
  .profile-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-list-item--danger {
    grid-column: 1 / -1;
  }
}

.primary-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: var(--bottom-nav-height);
  padding: 5px 4px env(safe-area-inset-bottom, 0px);
  background: rgba(17, 24, 33, 0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.primary-nav a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 4px 2px;
  color: #aeb5bf;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.61rem;
  font-weight: 690;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}

.primary-nav a svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-nav a:hover {
  color: #d7dbe1;
  background: rgba(255, 255, 255, 0.035);
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: #f7f9fb;
  border-color: #fff;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px #d8e0e8;
}

.primary-nav a[aria-current="page"] svg {
  color: var(--brand-cyan);
}

.primary-nav a[aria-current="page"] span {
  color: var(--ink);
  font-weight: 800;
}

.primary-nav a[aria-current="page"]::after {
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  content: "";
}

.noscript-message {
  margin: 30px;
  color: var(--text);
  text-align: center;
}

@media (min-width: 620px) {
  .app-main {
    padding-inline: 18px;
  }

  .music-controls {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.85fr);
    align-items: end;
  }

  .music-results {
    grid-column: 1 / -1;
  }

  .music-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .music-card {
    min-height: 104px;
  }
}

@media (min-width: 900px) {
  :root {
    --sidebar-width: 220px;
  }

  .app-header,
  .app-main {
    margin-left: var(--sidebar-width);
  }

  .app-main {
    width: min(calc(100% - var(--sidebar-width)), 1120px);
  }

  .app-header__inner {
    width: min(100%, 1120px);
  }

  .app-main {
    min-height: calc(100vh - 58px);
    padding-bottom: 36px;
  }

  .primary-nav {
    top: 0;
    right: auto;
    grid-template-columns: 1fr;
    width: var(--sidebar-width);
    min-height: 100vh;
    min-height: 100dvh;
    align-content: start;
    gap: 6px;
    padding: calc(76px + env(safe-area-inset-top, 0px)) 12px 18px;
    border-top: 0;
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.16);
  }

  .primary-nav a {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 52px;
    align-content: center;
    align-items: center;
    justify-items: start;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: left;
  }

  .primary-nav a[aria-current="page"]::after {
    position: absolute;
    width: 3px;
    height: 24px;
    margin-left: -12px;
  }

  .placeholder-view {
    min-height: calc(100vh - 102px);
    min-height: calc(100dvh - 102px);
  }
}

@media (min-width: 1180px) {
  .music-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-height: 420px) {
  .app-header__inner {
    min-height: 50px;
    padding-block: 5px;
  }

  .app-main {
    padding-top: 10px;
  }

  .view-heading {
    margin-bottom: 10px;
  }

  .view-heading h1 {
    font-size: 1.6rem;
  }

  .placeholder-view {
    min-height: calc(100vh - var(--bottom-nav-height) - 70px);
    min-height: calc(100dvh - var(--bottom-nav-height) - 70px);
  }

  .placeholder-card {
    padding-block: 20px;
  }

  .placeholder-card > svg {
    width: 36px;
    height: 36px;
  }
}

.personal-view {
  padding: 14px;
  color: var(--ink);
  background: var(--surface-content);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(4, 9, 14, 0.2);
}

.personal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 16px;
}

.beta-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.beta-refresh-button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid var(--brand-border-strong);
  border-radius: 12px;
  box-shadow: 0 3px 10px var(--brand-shadow-subtle);
}

.beta-refresh-button:hover {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
}

.beta-refresh-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beta-refresh-button[data-refreshing="true"] svg {
  animation: beta-refresh-spin 320ms ease-out;
}

@keyframes beta-refresh-spin {
  to { transform: rotate(360deg); }
}

.personal-dialog__eyebrow {
  margin: 0 0 5px;
  color: var(--brand-blue-ink);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.personal-heading h1 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.personal-heading h1:focus {
  outline: 0;
}

.personal-heading .personal-button {
  flex: 0 0 auto;
}

.personal-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.personal-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.personal-search {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.personal-search__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.personal-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebac7;
  border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.06);
}

.personal-search input::placeholder {
  color: #657386;
  opacity: 1;
}

.personal-search input:hover {
  background: #f8fafc;
  border-color: #8796a7;
}

.personal-search input:focus-visible {
  background: #fff;
  border-color: var(--brand-cyan);
  outline: 2px solid var(--brand-focus-ring);
  outline-offset: 1px;
}

.personal-search input:disabled {
  color: #657386;
  background: #edf1f5;
  cursor: not-allowed;
}

.personal-search__field > button,
.personal-technical-tools button {
  min-height: 44px;
  padding: 7px 11px;
  color: var(--ink);
  background: #f7f6f2;
  border: 1px solid #aeb9c5;
  border-radius: 11px;
  font-weight: 700;
}

.personal-primary-actions,
.personal-empty__actions,
.personal-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.personal-primary-actions {
  justify-content: flex-start;
}

.personal-primary-actions .personal-button {
  min-width: 132px;
}

.personal-button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
}

.personal-button--primary {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.personal-button--primary:hover {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
}

.personal-button--primary:disabled {
  color: #d6dbe1;
  background: #65717e;
  border-color: #65717e;
  cursor: not-allowed;
}

.personal-button--secondary {
  color: var(--ink);
  background: #f7f6f2;
  border-color: #cdd5de;
}

.personal-button--secondary:hover {
  background: #fff;
  border-color: #aeb9c5;
}

.personal-results {
  margin: 0;
  color: #465466;
  font-size: 0.84rem;
  font-weight: 730;
}

.personal-order-hint {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 6px 7px 6px 10px;
  color: #465466;
  background: #edf1f5;
  border: 1px solid #d2d9e1;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.personal-order-hint button {
  display: grid;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  color: #536070;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
}

.personal-order-hint button:hover {
  color: var(--brand-navy);
  background: var(--brand-soft);
}

.personal-reorder-feedback {
  margin: 0;
  color: var(--brand-blue-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.personal-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.personal-storage-notice {
  margin: 0 0 13px;
  padding: 10px 12px;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-strong);
  border-radius: 12px;
  font-size: 0.82rem;
}

.personal-grid {
  display: grid;
  gap: 10px;
}

.personal-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  background: var(--surface-card);
  border: 1px solid #d5dbe2;
  border-radius: 15px;
  box-shadow: var(--shadow-card);
}

.personal-drag-handle {
  display: grid;
  width: 42px;
  min-width: 42px;
  min-height: 44px;
  place-items: center;
  align-self: stretch;
  padding: 0;
  color: #718096;
  background: transparent;
  border: 0;
  border-radius: 14px 0 0 14px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.personal-drag-handle span {
  display: block;
  letter-spacing: -3px;
  font-size: 1.12rem;
  line-height: 1;
}

.personal-drag-handle:hover,
.personal-drag-handle:focus-visible {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
}

.personal-drag-handle:focus-visible {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: -3px;
}

.personal-drag-handle[aria-disabled="true"] {
  color: #b5bdc7;
  cursor: not-allowed;
}

.personal-card[data-dragging="true"] {
  visibility: hidden;
}

.personal-card--drag-preview {
  position: fixed;
  z-index: 1000;
  margin: 0;
  pointer-events: none;
  opacity: 1;
  border-color: #cbd3dc;
  box-shadow: 0 14px 30px rgba(4, 9, 14, 0.2);
  transform: translate3d(0, 0, 0) scale(1.01);
  transform-origin: center;
  will-change: transform;
}

.personal-card--drag-preview .personal-drag-handle {
  cursor: grabbing;
}

.is-sorting-personal-songs,
.is-sorting-personal-songs * {
  cursor: grabbing !important;
  user-select: none !important;
}

.personal-card__open {
  display: grid;
  min-width: 0;
  min-height: 72px;
  align-content: center;
  padding: 10px 8px 10px 10px;
  color: var(--ink);
  text-decoration: none;
}

.personal-card__open:focus-visible {
  border-radius: 14px;
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: -3px;
}

.personal-card__open:hover h2 {
  color: var(--brand-blue-ink);
}

.personal-card h2,
.personal-card p {
  margin: 0;
}

.personal-card h2 {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.2;
}

.personal-card__artist {
  margin-top: 2px !important;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.personal-card__side {
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 0;
}

.personal-card__menu > summary {
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  color: #536070;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

.personal-card__menu {
  position: relative;
}

.personal-card__menu > summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.35rem;
  line-height: 1;
}

.personal-card__menu > summary::-webkit-details-marker {
  display: none;
}

.personal-card__menu[open] > summary,
.personal-card__menu > summary:hover {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
}

.personal-card__menu-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid #cdd5de;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(4, 9, 14, 0.22);
}

.personal-card__menu-panel button {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
}

.personal-card__menu-panel button:hover {
  background: #edf1f5;
}

.personal-card__menu-panel button[data-action="delete"] {
  color: #9d2711;
}

.personal-card__menu-panel button:disabled {
  color: #9ba5b0;
  cursor: not-allowed;
}

.personal-empty {
  display: grid;
  justify-items: center;
  padding: 28px 18px;
  color: var(--ink);
  background: var(--surface-card);
  border: 1px dashed #b8c2cd;
  border-radius: 16px;
  text-align: center;
}

.personal-empty > svg {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--brand-blue-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.personal-empty h2,
.personal-empty p {
  margin: 0;
}

.personal-empty h2 {
  font-size: 1.05rem;
}

.personal-empty p {
  max-width: 32rem;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.personal-empty__actions {
  justify-content: center;
  margin-top: 16px;
}

.personal-technical-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 4px 0;
  color: #536070;
  font-size: 0.7rem;
}

.personal-technical-tools button {
  min-height: 38px;
  color: #536070;
  background: transparent;
  border-color: #aeb9c5;
}

.personal-dialog {
  width: min(760px, calc(100% - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.personal-dialog::backdrop {
  background: rgba(5, 10, 16, 0.76);
  backdrop-filter: blur(3px);
}

html:has(.personal-dialog[open]),
body:has(.personal-dialog[open]) {
  overflow: hidden;
}

.personal-dialog__surface {
  max-height: calc(100dvh - 20px);
  padding: 18px;
  overflow: auto;
  color: var(--ink);
  background: #f7f6f2;
  border: 1px solid #d5dbe2;
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35);
}

.personal-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.personal-dialog__header h2,
.personal-dialog__header p,
.personal-confirm h2,
.personal-confirm p {
  margin: 0;
}

.personal-dialog__header h2,
.personal-confirm h2 {
  font-size: 1.3rem;
}

.personal-import__intro {
  max-width: 34rem;
  margin-top: 5px !important;
  color: #536070;
  font-size: 0.9rem;
  line-height: 1.45;
}

.personal-dialog__close {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: #536070;
  background: #fff;
  border: 1px solid #cdd5de;
  border-radius: 12px;
  font-size: 1.55rem;
  line-height: 1;
}

.personal-dialog__close:hover {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
}

.personal-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
  gap: 12px;
}

.personal-form-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: #283548;
  font-size: 0.76rem;
  font-weight: 730;
}

.personal-form-grid input,
.personal-form-grid select,
.personal-form-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebac7;
  border-radius: 11px;
}

.personal-form-grid textarea {
  min-height: min(46dvh, 430px);
  resize: vertical;
  white-space: pre;
  tab-size: 4;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.personal-form-content {
  grid-column: 1 / -1;
}

.personal-dialog__actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.personal-form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #8d2110;
  background: #fee9e4;
  border: 1px solid #eab1a5;
  border-radius: 10px;
  font-size: 0.82rem;
}

.personal-form-error:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.personal-import__guide {
  margin-bottom: 16px;
  padding: 13px 14px;
  color: #713405;
  background: #fff7e4;
  border: 1px solid #efc36d;
  border-radius: 12px;
}

.personal-import__guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.personal-import__guide-title h3 {
  margin: 0;
  font-size: 0.9rem;
}

.personal-import__guide-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #b44209;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 850;
}

.personal-import__guide ul {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
  padding-left: 30px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.personal-file-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 158px;
  padding: 22px 16px;
  text-align: center;
  color: #536070;
  background: #fff;
  border: 2px dashed #b9c6d8;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.personal-file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.personal-file-drop__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 9px;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border-radius: 14px;
}

.personal-file-drop__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.personal-file-drop strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.personal-file-drop > span:last-child {
  margin-top: 6px;
  color: #738094;
  font-size: 0.76rem;
}

.personal-file-drop:has(input:hover),
.personal-file-drop:has(input:focus-visible) {
  background: var(--brand-soft-2);
  border-color: var(--brand-blue-deep);
}

.personal-file-drop:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.personal-file-drop:has(input:disabled) {
  opacity: 0.68;
  cursor: wait;
}

.personal-file-drop input:disabled {
  cursor: wait;
}

.personal-import__detected,
.personal-import__progress,
.personal-import__metadata > p {
  color: #536070;
  font-size: 0.76rem;
}

.personal-import__detected {
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 740;
}

.personal-import__progress {
  min-height: 1.2em;
  margin: 5px 0 0;
}

.personal-import__preview {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #cdd5de;
}

.personal-import__metadata {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.personal-import__metadata h3,
.personal-import__metadata p {
  margin: 0;
}

.personal-import__metadata h3 {
  font-size: 1rem;
}

.personal-import__warnings {
  margin: 0 0 12px;
  padding: 10px 12px 10px 30px;
  color: #713405;
  background: #fff0e2;
  border: 1px solid #efbf95;
  border-radius: 10px;
  font-size: 0.78rem;
}

.personal-import > .personal-dialog__actions {
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #d9dee4;
}

.personal-import > .personal-dialog__actions .personal-button {
  min-width: 142px;
}

.personal-import > .personal-dialog__actions .personal-button--primary {
  min-width: 176px;
}

.personal-confirm {
  width: min(460px, calc(100% - 20px));
}

.personal-confirm p {
  margin-top: 10px;
  color: #536070;
  line-height: 1.5;
}

.personal-confirm [data-destructive="true"] {
  background: #a72a14;
  border-color: #a72a14;
}

@media (min-width: 620px) {
  .personal-controls {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: end;
  }

  .personal-results,
  .personal-order-hint,
  .personal-reorder-feedback {
    grid-column: 1 / -1;
  }

  .personal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1180px) {
  .personal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 619px) {
  .personal-primary-actions > .personal-button,
  .personal-empty__actions > .personal-button {
    flex: 1 1 140px;
  }

  .personal-form-grid {
    grid-template-columns: 1fr;
  }

  .personal-form-content {
    grid-column: auto;
  }

  .personal-dialog__surface {
    padding: 15px;
  }

  .personal-import__metadata {
    display: block;
  }

  .personal-import__metadata > p {
    margin-top: 5px;
  }

  .personal-import > .personal-dialog__actions .personal-button {
    flex: 1 1 130px;
  }
}

@media (max-height: 420px) {
  .personal-heading {
    padding-block: 5px 10px;
  }

  .personal-heading h1 {
    font-size: 1.6rem;
  }

  .personal-dialog {
    width: min(900px, calc(100% - 16px));
    max-height: calc(100dvh - 10px);
  }

  .personal-dialog__surface {
    max-height: calc(100dvh - 10px);
  }
}

.repertoire-view {
  padding: 14px;
  color: var(--ink);
  background: var(--surface-content);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(4, 9, 14, 0.2);
}

.repertoire-heading,
.repertoire-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 16px;
}

.repertoire-heading h1,
.repertoire-detail-heading h1,
.repertoire-detail-heading p {
  margin: 0;
}

.repertoire-heading h1,
.repertoire-detail-heading h1 {
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.repertoire-heading h1:focus,
.repertoire-detail-heading h1:focus {
  outline: 0;
}

.repertoire-detail-heading > div > p:first-child {
  margin-bottom: 4px;
  color: var(--brand-blue-ink);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#repertoireDetailDescription {
  max-width: 42rem;
  margin-top: 7px;
  color: #536070;
  font-size: 0.88rem;
}

.repertoire-button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
}

.repertoire-button--primary {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.repertoire-button--primary:hover {
  background: var(--brand-navy-hover);
}

.repertoire-button--secondary {
  color: var(--ink);
  background: #f7f6f2;
  border-color: #cdd5de;
}

.repertoire-button[aria-pressed="true"] {
  color: #fff;
  background: #172433;
  border-color: #172433;
}

.repertoire-search {
  margin-bottom: 10px;
}

.repertoire-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.repertoire-search input,
.repertoire-picker-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebac7;
  border-radius: 13px;
}

.repertoire-search button {
  min-height: 44px;
  padding-inline: 12px;
  color: var(--ink);
  background: #f7f6f2;
  border: 1px solid #aeb9c5;
  border-radius: 11px;
  font-weight: 700;
}

.repertoire-count {
  margin: 0 0 10px;
  color: #465466;
  font-size: 0.84rem;
  font-weight: 730;
}

.repertoire-reorder-feedback {
  margin: -2px 0 10px;
  color: var(--brand-blue-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.repertoire-grid,
.repertoire-items {
  display: grid;
  gap: 10px;
}

.repertoire-card,
.repertoire-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  background: var(--surface-card);
  border: 1px solid #d5dbe2;
  border-radius: 15px;
  box-shadow: var(--shadow-card);
}

.repertoire-card,
.repertoire-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.repertoire-card__drag-handle,
.repertoire-item__drag-handle {
  display: grid;
  width: 42px;
  min-width: 42px;
  min-height: 44px;
  place-items: center;
  align-self: stretch;
  padding: 0;
  color: #718096;
  background: transparent;
  border: 0;
  border-radius: 14px 0 0 14px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.repertoire-card__drag-handle span,
.repertoire-item__drag-handle span {
  display: block;
  letter-spacing: -3px;
  font-size: 1.12rem;
  line-height: 1;
}

.repertoire-card__drag-handle:hover,
.repertoire-card__drag-handle:focus-visible,
.repertoire-item__drag-handle:hover,
.repertoire-item__drag-handle:focus-visible {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
}

.repertoire-card__drag-handle:focus-visible,
.repertoire-item__drag-handle:focus-visible {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: -3px;
}

.repertoire-card__drag-handle[aria-disabled="true"],
.repertoire-item__drag-handle[aria-disabled="true"] {
  color: #b5bdc7;
  cursor: not-allowed;
}

.repertoire-card[data-list-dragging="true"],
.repertoire-item[data-item-dragging="true"] {
  visibility: hidden;
}

.repertoire-card--drag-preview,
.repertoire-item--drag-preview {
  position: fixed;
  z-index: 1000;
  margin: 0;
  pointer-events: none;
  opacity: 1;
  border-color: #cbd3dc;
  box-shadow: 0 14px 30px rgba(4, 9, 14, 0.2);
  transform: translate3d(0, 0, 0) scale(1.01);
  transform-origin: center;
  will-change: transform;
}

.repertoire-card--drag-preview .repertoire-card__drag-handle,
.repertoire-item--drag-preview .repertoire-item__drag-handle {
  cursor: grabbing;
}

.is-sorting-repertoires,
.is-sorting-repertoires *,
.is-sorting-repertoire-items,
.is-sorting-repertoire-items * {
  cursor: grabbing !important;
  user-select: none !important;
}

.repertoire-card__open,
.repertoire-item__open {
  display: grid;
  min-width: 0;
  min-height: 96px;
  align-content: center;
  padding: 14px 10px 14px 16px;
  color: var(--ink);
  text-decoration: none;
}

.repertoire-card__open:focus-visible,
.repertoire-item__open:focus-visible {
  border-radius: 14px;
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: -3px;
}

.repertoire-card h2,
.repertoire-card p,
.repertoire-item h2,
.repertoire-item p {
  margin: 0;
}

.repertoire-card h2,
.repertoire-item h2 {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.2;
}

.repertoire-card__description,
.repertoire-item__open > p {
  margin-top: 4px !important;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.repertoire-card__count {
  margin-top: 8px !important;
  color: var(--brand-blue-ink);
  font-size: 0.76rem;
  font-weight: 730;
}

.repertoire-menu {
  position: relative;
  align-self: start;
  margin: 10px 8px 0 0;
}

.repertoire-menu > summary {
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  color: #536070;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 1.35rem;
  line-height: 1;
}

.repertoire-menu > summary::-webkit-details-marker {
  display: none;
}

.repertoire-menu[open] > summary,
.repertoire-menu > summary:hover {
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
}

.repertoire-menu > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid #cdd5de;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(4, 9, 14, 0.22);
}

.repertoire-menu > div button {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
}

.repertoire-menu > div button:hover {
  background: #edf1f5;
}

.repertoire-menu > div button[data-repertoire-action="delete"],
.repertoire-menu > div button[data-repertoire-action="remove-item"] {
  color: #9d2711;
}

.repertoire-empty {
  display: grid;
  justify-items: center;
  padding: 30px 18px;
  color: var(--ink);
  background: var(--surface-card);
  border: 1px dashed #b8c2cd;
  border-radius: 16px;
  text-align: center;
}

.repertoire-empty h2,
.repertoire-empty p {
  margin: 0;
}

.repertoire-empty h2 {
  font-size: 1.08rem;
}

.repertoire-empty p {
  max-width: 32rem;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.repertoire-empty__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--brand-blue-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.repertoire-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  min-height: 40px;
  margin-bottom: 10px;
  padding: 0 14px 0 0;
  overflow: hidden;
  color: #172033;
  background: #f7f6f2;
  border: 1px solid #b8c2cd;
  border-radius: 12px;
  box-shadow: 0 3px 9px rgba(4, 9, 14, 0.18);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 820;
}

.repertoire-back:hover {
  color: var(--brand-navy);
  background: var(--brand-soft-2);
  border-color: var(--brand-border-strong);
}

.repertoire-back:hover .repertoire-back__icon {
  background: var(--brand-navy-hover);
}

.repertoire-back:active {
  transform: translateY(1px);
}

.repertoire-back__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: #fff;
  background: var(--brand-navy);
}

.repertoire-back__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.repertoire-detail-heading {
  align-items: flex-start;
  padding-top: 0;
}

.repertoire-detail-heading .repertoire-menu {
  flex: 0 0 auto;
  margin-top: 0;
}

.repertoire-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.repertoire-item__open {
  min-height: 72px;
  padding: 10px 6px 10px 12px;
}

.repertoire-item h2 {
  font-size: 0.98rem;
}

.repertoire-item__open > p {
  margin-top: 3px !important;
  font-size: 0.76rem;
}

.repertoire-item__remove {
  display: grid;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  align-self: center;
  margin-right: 8px;
  padding: 0;
  color: #8995a3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.repertoire-item__remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repertoire-item__remove:hover {
  color: #9d2711;
  background: #fff0ec;
  border-color: #edc3b9;
}

.repertoire-item__remove:focus-visible {
  color: #9d2711;
  outline: 3px solid rgba(201, 55, 27, 0.42);
  outline-offset: -3px;
}

.repertoire-item[data-available="false"] {
  background: #f1f2f3;
  border-style: dashed;
}

.repertoire-item[data-available="false"] .repertoire-item__open {
  color: #596574;
}

.repertoire-picker .personal-dialog__surface {
  width: min(820px, 100%);
}

.repertoire-picker-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: #edf1f5;
  border-radius: 12px;
}

.repertoire-picker-tabs button {
  min-height: 44px;
  color: #465466;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-weight: 740;
}

.repertoire-picker-tabs button[aria-selected="true"] {
  color: #fff;
  background: #172433;
}

.repertoire-picker-count {
  margin: 10px 0;
  color: #465466;
  font-size: 0.82rem;
  font-weight: 730;
}

.repertoire-picker-empty {
  margin: 14px 0;
  padding: 14px;
  color: #536070;
  background: #edf1f5;
  border-radius: 10px;
  text-align: center;
}

.repertoire-picker-list {
  display: grid;
  gap: 7px;
  max-height: min(46vh, 430px);
  margin-bottom: 14px;
  overflow: auto;
}

.repertoire-picker-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 9px 11px;
  background: #f8f8f6;
  border: 1px solid #d5dbe2;
  border-radius: 11px;
}

.repertoire-picker-item input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-navy);
}

.repertoire-picker-item > span {
  display: grid;
  gap: 2px;
}

.repertoire-picker-item strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.repertoire-picker-item span,
.repertoire-picker-item small {
  color: #536070;
  font-size: 0.76rem;
}

@media (min-width: 620px) {
  .repertoire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1180px) {
  .repertoire-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .repertoire-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .repertoire-view {
    padding: 12px;
  }

  .repertoire-heading .repertoire-button {
    padding-inline: 12px;
  }

  .repertoire-detail-actions .repertoire-button {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Área de Aulas beta */
.lessons-view {
  min-width: 0;
  padding: 18px;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0, #eef2f5 190px);
  border: 1px solid rgba(205, 213, 222, 0.78);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(5, 10, 16, 0.12);
}

.lessons-heading,
.lessons-subheading {
  margin-bottom: 16px;
}

.lessons-heading {
  margin-bottom: 15px;
}

.lessons-choices {
  display: grid;
  gap: 16px;
}

.lessons-repertoire-grid {
  display: grid;
  gap: 16px;
}

.lessons-choice-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 28px;
  width: 100%;
  min-width: 0;
  min-height: 138px;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  color: var(--ink);
  text-align: left;
  background: #fffdfa;
  border: 1px solid #e0e5ea;
  border-radius: 21px;
  box-shadow: 0 7px 20px rgba(13, 19, 26, 0.075);
  cursor: pointer;
}

.lessons-choice-card:hover {
  border-color: #cbd4dd;
  box-shadow: 0 12px 28px rgba(13, 19, 26, 0.12);
  transform: translateY(-2px);
}

.lessons-choice-card__icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 18px;
}

.lessons-choice-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.lessons-choice-card--music .lessons-choice-card__icon {
  color: var(--brand-blue-ink);
  background: linear-gradient(145deg, var(--brand-soft-2), var(--brand-soft));
  border: 1px solid var(--brand-border-strong);
}

.lessons-choice-card--app .lessons-choice-card__icon {
  color: var(--brand-blue-ink);
  background: linear-gradient(145deg, var(--brand-soft-2), var(--brand-soft));
  border: 1px solid var(--brand-border-strong);
}

.lessons-choice-card__copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.lessons-choice-card__copy strong {
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.lessons-choice-card__copy > span {
  max-width: 720px;
  color: #5f6d7e;
  font-size: 0.9rem;
  line-height: 1.45;
}

.lessons-choice-card__copy small {
  color: var(--brand-blue-ink);
  font-size: 0.78rem;
  font-weight: 790;
}

.lessons-choice-card__arrow {
  color: #8995a3;
  font-size: 1.75rem;
  font-weight: 760;
  line-height: 1;
  text-align: center;
}

.lessons-catalog-heading {
  margin-bottom: 16px;
}

.lessons-catalog-heading h1,
.lessons-catalog-heading p {
  margin: 0;
}

.lessons-heading h1:focus,
.lessons-catalog-heading h1:focus,
.lessons-subheading h1:focus {
  outline: none;
}

.lessons-catalog-heading h1 {
  color: var(--ink);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.lessons-catalog-heading p {
  max-width: 680px;
  margin-top: 5px;
  color: #617083;
  font-size: 0.9rem;
  line-height: 1.45;
}

.lessons-heading__eyebrow,
.lessons-subheading > p {
  margin: 0 0 4px;
  color: var(--brand-blue-ink);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lessons-heading h1,
.lessons-subheading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.lessons-heading__intro {
  max-width: 620px;
  margin: 6px 0 0;
  color: #657386;
  font-size: 0.9rem;
  line-height: 1.42;
}

.lessons-search {
  margin-bottom: 8px;
}

.lessons-search > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 760;
}

.lessons-search__field {
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-control);
  border: 1px solid #c5ced8;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(13, 19, 26, 0.035);
}

.lessons-search__field:focus-within {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px var(--brand-focus-ring);
}

.lessons-search input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.lessons-search button {
  min-width: 64px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--brand-blue-ink);
  background: transparent;
  border: 0;
  font-weight: 760;
  cursor: pointer;
}

.lessons-results {
  margin: 10px 2px 13px;
  color: #556478;
  font-size: 0.79rem;
  font-weight: 730;
}

.lessons-grid,
.lessons-list {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.lessons-card,
.lessons-lesson-card {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid #e0e6ec;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(13, 19, 26, 0.065);
  cursor: pointer;
}

.lessons-card {
  grid-template-columns: 48px minmax(0, 1fr) 24px;
}

.lessons-card:hover,
.lessons-lesson-card:hover {
  border-color: var(--brand-selection-border);
  box-shadow: 0 9px 22px rgba(13, 19, 26, 0.1);
  transform: translateY(-2px);
}

.lessons-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--brand-navy);
  background: linear-gradient(145deg, var(--brand-soft-2), var(--brand-soft));
  border: 1px solid var(--brand-border-strong);
  border-radius: 14px;
}

.lessons-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.lessons-card__icon path {
  fill: currentColor;
  stroke: none;
}

.lessons-card__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.lessons-card__title,
.lessons-lesson-card__title {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.25;
}

.lessons-card__description {
  color: #627084;
  font-size: 0.81rem;
  line-height: 1.35;
}

.lessons-card__count {
  color: var(--brand-blue-ink);
  font-size: 0.75rem;
  font-weight: 780;
}

.lessons-card__open {
  display: grid;
  min-width: 20px;
  min-height: 32px;
  place-items: center;
  color: #8793a1;
  font-size: 1.45rem;
  font-weight: 800;
  white-space: nowrap;
}

.lessons-empty {
  padding: 30px 18px;
  color: var(--ink-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed #bdc7d1;
  border-radius: 16px;
}

.lessons-empty h2,
.lessons-empty p {
  margin: 0;
}

.lessons-empty h2 {
  color: var(--ink);
  font-size: 1rem;
}

.lessons-empty p {
  margin-top: 5px;
  font-size: 0.84rem;
}

.lessons-back {
  display: inline-flex;
  height: 40px;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 14px 0 0;
  overflow: hidden;
  color: var(--ink);
  background: #f7f6f2;
  border: 1px solid #b8c2cd;
  border-radius: 12px;
  box-shadow: 0 3px 9px rgba(4, 9, 14, 0.18);
  cursor: pointer;
}

.lessons-back > strong {
  display: grid;
  height: 40px;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 820;
}

.lessons-back__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: #fff;
  background: #26394d;
}

.lessons-back__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.lessons-subheading > span {
  display: inline-block;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 720;
}

.lessons-lesson-card {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 66px;
}

.lessons-lesson-card__order {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 820;
}

.lessons-subheading--player {
  margin-bottom: 12px;
}

.lessons-player {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: #080b0f;
  border-radius: 13px;
  box-shadow: 0 9px 24px rgba(5, 10, 16, 0.26);
}

.lessons-player__iframe {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lessons-player__loading {
  margin: 0;
  color: #dce3ea;
  font-size: 0.85rem;
}

.lessons-player-fallback {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  color: #f7f9fb;
  background: #141b23;
  border: 1px solid #344150;
  border-radius: 12px;
}

.lessons-player-fallback[hidden] {
  display: none;
}

.lessons-player-fallback__transport {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 8px;
}

.lessons-player-fallback button {
  min-height: 44px;
  padding: 8px 10px;
  color: #fff;
  background: #263241;
  border: 1px solid #526174;
  border-radius: 9px;
  font-weight: 760;
  cursor: pointer;
  touch-action: manipulation;
}

.lessons-player-fallback button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.lessons-player-fallback .lessons-player-fallback__play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-navy);
  border-color: var(--brand-blue-deep);
}

.lessons-player-fallback__timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
}

.lessons-player-fallback__timeline label {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
}

.lessons-player-fallback__timeline input {
  width: 100%;
  min-width: 0;
  accent-color: var(--brand-cyan);
}

.lessons-player-fallback__timeline output {
  min-width: 82px;
  color: #dce3ea;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-align: right;
}

.lessons-player-fallback__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lessons-player-fallback__status {
  margin: 0;
  color: #dce3ea;
  font-size: 0.78rem;
  line-height: 1.35;
}

.lessons-player-fallback__status:empty {
  display: none;
}

/* Biblioteca unificada: composição leve sobre os componentes existentes. */
#repertoireListView {
  width: min(100%, 760px);
  margin-inline: auto;
}

#repertoireListView .repertoire-heading {
  margin-bottom: 18px;
}

#repertoireListView .repertoire-search {
  margin-bottom: 18px;
}

.library-personal-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 12px;
  min-height: 84px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  color: var(--ink);
  background: var(--brand-soft-2);
  border: 1px solid var(--brand-border-strong);
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.library-personal-card:hover {
  background: var(--brand-soft);
  border-color: var(--brand-blue-deep);
}

.library-personal-card:active,
.repertoire-card:active,
.library-song-result:active {
  transform: translateY(1px);
}

.library-personal-card:focus-visible,
.library-song-result:focus-visible {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: 2px;
}

.library-card-icon,
.repertoire-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border-radius: 13px;
}

.library-card-icon svg,
.repertoire-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-card-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.library-card-copy strong {
  font-size: 1rem;
  font-weight: 780;
}

.library-card-copy small,
.library-song-result small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-card-arrow {
  color: #7b8795;
  font-size: 1.55rem;
  line-height: 1;
  text-align: center;
}

.library-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
}

.library-section-heading h2,
.library-search-results h2 {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-section-heading .repertoire-count {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
}

.library-search-results {
  margin: 0 0 22px;
}

.library-search-results h2 {
  margin: 0 2px 9px;
}

.library-song-results {
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e4e9;
  border-radius: 14px;
}

.library-song-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
}

.library-song-result + .library-song-result {
  border-top: 1px solid #edf0f3;
}

.library-song-result > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.library-song-result strong {
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repertoire-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  overflow: visible;
  border-color: #e0e4e9;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 120ms ease;
}

.repertoire-card:hover {
  background: #fffdfb;
  border-color: #cfd6de;
}

.repertoire-card__icon {
  margin-left: 14px;
  color: var(--brand-navy);
  background: var(--brand-soft);
}

.repertoire-card__open {
  min-height: 80px;
  padding: 13px 10px 13px 18px;
}

.repertoire-card__count {
  margin-top: 5px !important;
  color: var(--ink-muted);
  font-weight: 650;
}

.personal-library-back {
  margin-bottom: 14px;
}

#repertoireListView #refreshRepertoiresButton,
#repertoireListView .repertoire-empty__icon {
  display: none;
}

#repertoireListView .repertoire-empty {
  min-height: 0;
  margin: 18px auto 0;
  padding-block: 28px;
}

#repertoireListView .repertoire-empty h2 {
  margin-top: 0;
}

.repertoire-detail-search {
  margin: 16px 0 12px;
}

.personal-library-count {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.personal-grid .personal-card,
.repertoire-items .repertoire-item {
  border-color: #e2e6ea;
  box-shadow: none;
}

@media (max-width: 359px) {
  #repertoireListView .repertoire-heading {
    align-items: flex-start;
  }

  #newRepertoireButton {
    padding-inline: 10px;
    font-size: 0.76rem;
  }

  .library-personal-card {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 13px;
  }

  .library-card-icon,
  .repertoire-card__icon {
    width: 40px;
    height: 40px;
  }
}

.lessons-player__error {
  z-index: 3;
  max-width: 500px;
  padding: 18px;
  text-align: center;
}

.lessons-player__error p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.lessons-player__error button,
.lessons-player-controls button {
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 760;
  cursor: pointer;
}

.lessons-player__error button {
  color: #fff;
  background: var(--brand-navy);
  border: 1px solid var(--brand-blue-deep);
}

.lessons-player-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.lessons-player-controls button {
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c5d2;
}

.lessons-player-controls button:last-child {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.lessons-player-controls button:disabled {
  color: #7d8997;
  background: #d2d8df;
  border-color: #c3cbd4;
  cursor: not-allowed;
  opacity: 0.76;
}

.lessons-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 620px) {
  .lessons-view {
    padding: 22px;
  }

  .lessons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .lessons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .lessons-view {
    padding: 13px;
  }

  .lessons-choice-card {
    grid-template-columns: 58px minmax(0, 1fr) 20px;
    min-height: 132px;
    gap: 13px;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .lessons-choice-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .lessons-choice-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .lessons-choice-card__copy > span {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .lessons-card {
    padding: 12px;
  }

  .lessons-lesson-card {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px;
  }

  .lessons-lesson-card .lessons-card__open {
    width: 16px;
    font-size: 0;
  }

  .lessons-lesson-card .lessons-card__open::after {
    content: "›";
    font-size: 1.25rem;
  }

  .lessons-player-controls {
    grid-template-columns: 1fr 1fr;
  }

  .lessons-player-controls button:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Repertórios oficiais: conteúdo pronto, separado da Biblioteca pessoal. */
.library-heading-copy > p,
.official-repertoires-heading p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.official-repertoires-list,
.official-repertoire-detail {
  width: min(100%, 900px);
  margin-inline: auto;
}

.official-repertoires-heading {
  margin-bottom: 22px;
}

.official-repertoire-grid {
  display: grid;
  gap: 16px;
}

.official-repertoire-card {
  position: relative;
  display: grid;
  min-height: 270px;
  overflow: hidden;
  padding: 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(8, 195, 245, 0.14), transparent 42%),
    linear-gradient(145deg, #fff 0%, #f5fbfe 100%);
  border: 1px solid var(--brand-border-strong);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 22, 62, 0.08);
}

.official-repertoire-card--coming-soon {
  background:
    radial-gradient(circle at 100% 0, rgba(71, 112, 145, 0.09), transparent 42%),
    linear-gradient(145deg, #fff 0%, #f7f9fb 100%);
  border-color: #dfe5ea;
  box-shadow: 0 7px 22px rgba(0, 22, 62, 0.055);
}

.official-repertoire-card__top,
.official-repertoire-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.official-repertoire-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--brand-navy);
  background: var(--brand-soft);
  border: 1px solid rgba(8, 195, 245, 0.2);
  border-radius: 15px;
}

.official-repertoire-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-repertoire-status {
  padding: 5px 9px;
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.official-repertoire-status--coming-soon {
  color: #667582;
  background: #edf1f4;
}

.official-repertoire-card__copy {
  align-self: center;
  margin-block: 18px;
}

.official-repertoire-card__category,
.official-repertoire-detail__eyebrow {
  margin: 0 0 5px;
  color: var(--brand-blue-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.official-repertoire-card h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  letter-spacing: -0.035em;
}

.official-repertoire-card__description {
  max-width: 38rem;
  margin: 10px 0 0;
  color: #536575;
  font-size: 0.9rem;
  line-height: 1.5;
}

.official-repertoire-card__count {
  margin: 10px 0 0;
  color: var(--brand-navy);
  font-size: 0.78rem;
  font-weight: 750;
}

.official-repertoire-card__action {
  min-height: 44px;
  padding: 0 15px;
  color: #fff;
  background: var(--brand-navy);
  border: 1px solid var(--brand-navy);
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 760;
}

.official-repertoire-card__action:hover {
  background: var(--brand-blue-deep);
}

.official-repertoire-card__action:focus-visible,
.official-repertoire-song:focus-visible {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: 3px;
}

.official-repertoire-card__unavailable {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #778590;
  font-size: 0.82rem;
  font-weight: 720;
}

.official-repertoire-detail__heading {
  margin: 18px 0 22px;
  padding: 22px;
  background: linear-gradient(145deg, #fff, #f2fbfe);
  border: 1px solid var(--brand-border-strong);
  border-radius: 18px;
}

.official-repertoire-detail__heading h1 {
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(1.55rem, 6vw, 2.25rem);
  letter-spacing: -0.04em;
}

.official-repertoire-detail__heading h1:focus {
  outline: none;
}

.official-repertoire-detail__heading > p:not(.official-repertoire-detail__eyebrow) {
  margin: 9px 0 0;
  color: #536575;
  line-height: 1.5;
}

.official-repertoire-detail__count {
  font-size: 0.82rem;
  font-weight: 760;
}

.official-repertoire-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 28px;
}

.official-repertoire-highlight {
  display: grid;
  min-height: 68px;
  align-content: center;
  gap: 3px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce7ec;
  border-radius: 13px;
}

.official-repertoire-highlight strong {
  color: var(--brand-navy);
  font-size: 0.92rem;
  line-height: 1.1;
}

.official-repertoire-highlight span {
  color: #71818d;
  font-size: 0.7rem;
  font-weight: 680;
  line-height: 1.2;
  text-transform: lowercase;
}

.official-repertoire-content {
  margin-bottom: 28px;
}

.official-repertoire-section-heading {
  margin: 0 2px 13px;
}

.official-repertoire-section-heading p,
.official-repertoire-unlock__eyebrow {
  margin: 0 0 4px;
  color: var(--brand-blue-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-repertoire-section-heading h2,
.official-repertoire-value h2,
.official-repertoire-unlock h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.official-repertoire-blocks {
  display: grid;
  gap: 10px;
}

.official-repertoire-block {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5ea;
  border-radius: 15px;
  box-shadow: 0 5px 16px rgba(0, 22, 62, 0.045);
}

.official-repertoire-block--preview {
  border-color: var(--brand-border-strong);
  box-shadow: 0 8px 22px rgba(8, 195, 245, 0.09);
}

.official-repertoire-block--locked {
  color: #60717e;
  background: rgba(247, 251, 253, 0.96);
  border-color: #e0e8ec;
  box-shadow: none;
}

.official-repertoire-block__heading {
  display: flex;
  min-height: 72px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
}

details.official-repertoire-block > summary {
  cursor: pointer;
}

details.official-repertoire-block > summary::-webkit-details-marker {
  display: none;
}

details.official-repertoire-block[open] > summary {
  border-bottom: 1px solid #e9eff2;
}

.official-repertoire-block__copy {
  min-width: 0;
}

.official-repertoire-block__copy h3,
.official-repertoire-block__copy p {
  margin: 0;
}

.official-repertoire-block__copy h3 {
  color: var(--brand-navy);
  font-size: 0.94rem;
  letter-spacing: -0.015em;
}

.official-repertoire-block__copy p {
  margin-top: 4px;
  color: #778691;
  font-size: 0.74rem;
  font-weight: 630;
}

.official-repertoire-block__state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #778691;
  font-size: 0.67rem;
  font-weight: 760;
}

.official-repertoire-block--preview .official-repertoire-block__state {
  padding: 5px 8px;
  color: var(--brand-blue-ink);
  background: var(--brand-soft);
  border-radius: 999px;
}

.official-repertoire-block__lock {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #84939e;
}

.official-repertoire-block__lock svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-repertoire-block .official-repertoire-song-list {
  border: 0;
  border-radius: 0;
}

.official-repertoire-song-list {
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe6eb;
  border-radius: 16px;
}

.official-repertoire-song {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
}

.official-repertoire-song + .official-repertoire-song {
  border-top: 1px solid #edf1f3;
}

.official-repertoire-song:hover {
  background: #f5fbfe;
}

.official-repertoire-song__number {
  color: #82919d;
  font-size: 0.72rem;
  font-weight: 720;
}

.official-repertoire-song__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.official-repertoire-song__copy strong,
.official-repertoire-song__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-repertoire-song__copy strong {
  font-size: 0.9rem;
}

.official-repertoire-song__copy small {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.official-repertoire-song__arrow {
  color: #7a8b98;
  font-size: 1.35rem;
}

.official-repertoire-value {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 17px;
  background: var(--brand-soft-2);
  border: 1px solid var(--brand-border-strong);
  border-radius: 16px;
}

.official-repertoire-value__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--brand-navy);
  background: #fff;
  border-radius: 13px;
  font-size: 1.25rem;
}

.official-repertoire-value p,
.official-repertoire-unlock > div > p:not(.official-repertoire-unlock__eyebrow) {
  margin: 6px 0 0;
  color: #5d6e7a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.official-repertoire-unlock {
  display: grid;
  gap: 15px;
  margin-bottom: 18px;
  padding: 20px;
  background: linear-gradient(145deg, #fff, #f3fbfe);
  border: 1px solid #cfe3eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 22, 62, 0.065);
}

.official-repertoire-unlock button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand-navy);
  border: 1px solid var(--brand-navy);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 780;
}

.official-repertoire-unlock button:hover {
  background: var(--brand-blue-deep);
}

.official-repertoire-unlock button:focus-visible,
.official-repertoire-block > summary:focus-visible {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: 2px;
}

.official-repertoire-unlock__status {
  margin: -3px 0 0;
  color: var(--brand-blue-ink);
  font-size: 0.8rem;
  font-weight: 730;
  text-align: center;
}

.official-repertoire-price-slot {
  font-weight: 760;
}

/* Repertórios oficiais: refinamento premium dentro do sistema visual da beta. */
body:has(#view-repertorios:not([hidden])) {
  color-scheme: light;
  background: #f8fafc;
}

body:has(#view-repertorios:not([hidden])) .app-main {
  background: #f8fafc;
}

.official-repertoires-list {
  padding-block: 24px 38px;
}

.official-repertoires-heading {
  margin-bottom: 56px;
  padding-inline: clamp(8px, 2.5vw, 16px);
  text-align: center;
}

.official-repertoires-heading h1 {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--brand-navy);
  font-size: clamp(1.72rem, 7vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.official-repertoires-heading p {
  max-width: 34rem;
  margin: 6px auto 0;
  color: #7790a8;
  font-size: clamp(0.94rem, 3.7vw, 1.08rem);
  line-height: 1.5;
}

.official-repertoire-grid {
  gap: 24px;
}

.official-repertoire-card::before,
.official-repertoire-card::after {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.official-repertoire-card::before {
  top: -90px;
  right: -70px;
  width: 210px;
  height: 210px;
  background: rgba(8, 195, 245, 0.13);
  filter: blur(2px);
}

.official-repertoire-card::after {
  right: 36px;
  bottom: -105px;
  width: 180px;
  height: 180px;
  border: 28px solid rgba(0, 49, 105, 0.035);
}

.official-repertoire-card > * {
  position: relative;
  z-index: 1;
}

.official-repertoire-card--hero {
  min-height: 410px;
  padding: clamp(23px, 6vw, 30px);
  background:
    linear-gradient(90deg, rgba(0, 14, 42, 0.98) 0%, rgba(0, 22, 57, 0.88) 43%, rgba(0, 22, 54, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 15, 38, 0.72), transparent 54%),
    url("./assets/repertoires/modao-card-bg.png") center right / cover no-repeat;
  border-color: rgba(82, 210, 250, 0.72);
  border-radius: 26px;
  box-shadow:
    0 24px 56px rgba(0, 24, 62, 0.21),
    0 2px 0 rgba(82, 210, 250, 0.18);
}

.official-repertoire-card--hero::before,
.official-repertoire-card--hero::after {
  display: none;
}

.official-repertoire-card--hero .official-repertoire-card__icon {
  display: none;
}

.official-repertoire-card--hero .official-repertoire-card__top {
  justify-content: flex-start;
}

.official-repertoire-card--hero .official-repertoire-status {
  padding: 6px 10px;
  color: #dff9ff;
  background: rgba(0, 28, 68, 0.58);
  border: 1px solid rgba(153, 235, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 7px 18px rgba(0, 12, 35, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.66rem;
  letter-spacing: 0.075em;
}

.official-repertoire-card--hero .official-repertoire-card__copy {
  width: min(100%, 35rem);
  margin-block: 18px 22px;
}

.official-repertoire-card--hero .official-repertoire-card__category {
  margin-bottom: 9px;
  color: #6ee4ff;
  letter-spacing: 0.11em;
}

.official-repertoire-card--hero h2 {
  max-width: 19rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 10vw, 3.45rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 18px rgba(0, 9, 30, 0.5);
}

.official-repertoire-card--hero .official-repertoire-card__description {
  max-width: 34rem;
  color: #3e566a;
  font-size: 0.96rem;
  line-height: 1.58;
}

.official-repertoire-card__values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 25px;
}

.official-repertoire-card__value {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 49, 105, 0.11);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.official-repertoire-card--hero .official-repertoire-card__value {
  grid-template-rows: 20px minmax(25px, auto);
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 66px;
  padding: 8px 5px;
  background: rgba(0, 25, 60, 0.62);
  border-color: rgba(72, 188, 242, 0.48);
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(0, 13, 35, 0.12);
  backdrop-filter: blur(10px);
}

.official-repertoire-card__value-icon {
  display: grid;
  place-items: center;
}

.official-repertoire-card--hero .official-repertoire-card__value-icon {
  width: 20px;
  height: 20px;
  color: #18cdf5;
}

.official-repertoire-card__value-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-repertoire-card--hero .official-repertoire-card__value strong {
  color: #fff;
  font-size: clamp(0.58rem, 2.8vw, 0.78rem);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

.official-repertoire-card__value strong {
  color: var(--brand-navy);
  font-size: 0.82rem;
  line-height: 1.15;
}

.official-repertoire-card__value small {
  color: #607487;
  font-size: 0.67rem;
  font-weight: 670;
  line-height: 1.25;
}

.official-repertoire-card--hero .official-repertoire-card__footer {
  margin-top: auto;
  padding-top: 2px;
}

.official-repertoire-card--hero .official-repertoire-card__action {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding-inline: 22px;
  color: #fff;
  background: linear-gradient(135deg, #20d8f5 0%, #08baf1 48%, #078eea 100%);
  border-color: #6ee4ff;
  border-radius: 16px;
  box-shadow:
    0 14px 30px rgba(0, 55, 105, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  font-size: 1rem;
}

.official-repertoire-card--hero .official-repertoire-card__action:hover {
  background: linear-gradient(135deg, #a0efff 0%, #38d3f6 52%, #20bbea 100%);
}

.official-repertoire-card__action-arrow {
  position: absolute;
  right: 22px;
  font-size: 1.15rem;
  transition: transform 150ms ease;
}

.official-repertoire-card__action:hover .official-repertoire-card__action-arrow {
  transform: translateX(3px);
}

.official-repertoire-card--coming-soon {
  min-height: 200px;
  align-self: stretch;
  padding: 24px;
  opacity: 1;
  background:
    radial-gradient(circle at 82% 72%, rgba(42, 151, 219, 0.11), transparent 27%),
    linear-gradient(145deg, #fff 0%, #f3f8fc 100%);
  border-color: #d2e0ea;
  border-radius: 24px;
  box-shadow:
    0 12px 30px rgba(0, 34, 75, 0.075),
    inset 0 1px 0 #fff;
}

.official-repertoire-card--coming-soon::before {
  top: auto;
  right: 8%;
  bottom: -32px;
  width: 130px;
  height: 170px;
  color: rgba(38, 120, 178, 0.09);
  background: none;
  content: "♪";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
  transform: rotate(8deg);
}

.official-repertoire-card--coming-soon .official-repertoire-card__icon {
  display: none;
}

.official-repertoire-card--coming-soon .official-repertoire-card__top {
  justify-content: flex-end;
}

.official-repertoire-card--coming-soon .official-repertoire-status {
  padding: 6px 10px;
  color: #0872bb;
  background: #dceffc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.official-repertoire-card--coming-soon .official-repertoire-card__copy {
  max-width: 74%;
  align-self: end;
  margin-block: 14px 4px;
}

.official-repertoire-card--coming-soon h2 {
  color: #385069;
  font-size: clamp(1.25rem, 4.7vw, 1.55rem);
}

.official-repertoire-card--coming-soon .official-repertoire-card__description {
  margin-top: 12px;
  color: #6e7d89;
  line-height: 1.55;
}

.official-repertoire-card--coming-soon .official-repertoire-card__unavailable {
  display: none;
}

.official-repertoire-detail__heading {
  display: none;
}

.official-repertoire-detail__heading::after {
  display: none;
}

.official-repertoire-detail__heading > * {
  position: relative;
  z-index: 1;
}

.official-repertoire-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.official-repertoire-detail__meta > span,
.official-repertoire-detail__eyebrow {
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.official-repertoire-detail__meta > span {
  display: none;
}

.official-repertoire-detail__eyebrow {
  color: var(--brand-blue-ink);
  background: #e2f7fd;
  border: 1px solid #bce9f5;
}

.official-repertoire-detail__heading h1 {
  max-width: 38rem;
  color: var(--brand-navy);
  font-size: clamp(1.55rem, 6vw, 2.15rem);
  line-height: 1.05;
}

#officialRepertoireDetailDescription {
  display: none;
}

.official-repertoire-detail__count {
  display: inline-flex;
  width: fit-content;
  margin-top: 11px !important;
  padding: 6px 9px;
  color: #244e70 !important;
  background: #edf7fb;
  border: 1px solid #d1e7ef;
  border-radius: 9px;
}

.official-repertoire-video {
  margin-bottom: 32px;
  padding: clamp(17px, 4.5vw, 24px);
  background: #fff;
  border: 1px solid #d8e5ec;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(0, 34, 75, 0.07);
}

.official-repertoire-video__heading {
  margin-bottom: 16px;
}

.official-repertoire-video__heading h2,
.official-repertoire-video__heading p {
  margin: 0;
}

.official-repertoire-video__heading h2 {
  color: var(--brand-navy);
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.official-repertoire-video__heading p {
  max-width: 38rem;
  margin-top: 7px;
  color: #65798b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.official-repertoire-video__stage {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 12px;
  place-items: center;
  color: #eaf9ff;
  background:
    radial-gradient(circle at 72% 18%, rgba(44, 200, 242, 0.22), transparent 35%),
    linear-gradient(145deg, #001d48, #064b72);
  border: 1px solid rgba(85, 211, 247, 0.42);
  border-radius: 18px;
  box-shadow:
    0 12px 28px rgba(0, 25, 60, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.official-repertoire-video__stage::after {
  position: absolute;
  right: -9%;
  bottom: -50%;
  width: 52%;
  aspect-ratio: 1;
  border: 30px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.official-repertoire-video__stage > div {
  display: grid;
  z-index: 1;
  gap: 3px;
  text-align: center;
}

.official-repertoire-video__stage strong {
  font-size: 0.82rem;
}

.official-repertoire-video__stage > div span {
  color: #a9ccdc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-repertoire-video__play {
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding-left: 3px;
  color: #003265;
  background: #8ce9ff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  box-shadow:
    0 12px 28px rgba(0, 12, 38, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
}

.official-repertoire-highlight {
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 92px;
  align-content: center;
  column-gap: 10px;
  padding: 12px;
  background: linear-gradient(145deg, #fff, #f4f9fc);
  border-color: rgba(8, 195, 245, 0.25);
  box-shadow: 0 8px 18px rgba(0, 18, 54, 0.07);
}

.official-repertoire-highlights {
  margin-bottom: 32px;
}

.official-repertoire-highlight__icon {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: center;
  color: var(--brand-navy) !important;
  background: var(--brand-soft);
  border-radius: 10px;
  font-size: 0.95rem !important;
}

.official-repertoire-highlight strong,
.official-repertoire-highlight > span:not(.official-repertoire-highlight__icon) {
  grid-column: 2;
}

.official-repertoire-highlight strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

.official-repertoire-highlight > span:not(.official-repertoire-highlight__icon) {
  color: #667b8b;
  line-height: 1.3;
  text-transform: none;
}

.official-repertoire-section-heading {
  margin-bottom: 18px;
}

.official-repertoire-section-heading h2 {
  color: var(--brand-navy);
  font-size: 1.2rem;
}

.official-repertoire-section-heading > span {
  display: block;
  max-width: 34rem;
  margin-top: 6px;
  color: #65798b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.official-repertoire-block-summary {
  margin-top: 12px;
  padding: 18px;
  text-align: center;
  background: linear-gradient(145deg, #eef8fc, #fff);
  border: 1px dashed #afd3e3;
  border-radius: 16px;
}

.official-repertoire-block-summary strong,
.official-repertoire-block-summary p {
  margin: 0;
}

.official-repertoire-block-summary strong {
  color: var(--brand-navy);
  font-size: 0.95rem;
}

.official-repertoire-block-summary p {
  max-width: 34rem;
  margin: 6px auto 0;
  color: #65798b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.official-repertoire-block--preview {
  background: linear-gradient(145deg, #fff, #f2fbfe);
  border-color: rgba(8, 195, 245, 0.68);
  box-shadow: 0 14px 30px rgba(0, 18, 54, 0.18);
}

.official-repertoire-block--preview > summary {
  background: rgba(8, 195, 245, 0.055);
}

.official-repertoire-block--preview .official-repertoire-block__state {
  color: #00436c;
  background: #d7f6ff;
  border: 1px solid rgba(8, 195, 245, 0.24);
}

.official-repertoire-block--locked {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 243, 248, 0.96));
  border-color: rgba(188, 209, 220, 0.72);
}

.official-repertoire-block--locked .official-repertoire-block__heading {
  min-height: 62px;
}

.official-repertoire-block--locked .official-repertoire-block__state {
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(174, 193, 204, 0.52);
  border-radius: 999px;
}

.official-repertoire-value {
  margin-bottom: 24px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(8, 195, 245, 0.25), transparent 44%),
    linear-gradient(135deg, #052d5e, #075071);
  border-color: rgba(8, 195, 245, 0.5);
  border-radius: 19px;
  box-shadow: 0 14px 30px rgba(0, 15, 45, 0.18);
}

.official-repertoire-value__icon {
  color: #003169;
  background: #a9edff;
  box-shadow: 0 7px 16px rgba(0, 18, 54, 0.2);
}

.official-repertoire-value h2 {
  color: #fff;
}

.official-repertoire-value p {
  color: #d5e7f4;
}

.official-repertoire-unlock {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 24px;
  background:
    linear-gradient(90deg, var(--brand-blue-ink) 0 4px, transparent 4px),
    linear-gradient(145deg, #fff, #edfaff);
  border-color: rgba(8, 195, 245, 0.55);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0, 18, 54, 0.12);
}

.official-repertoire-unlock h2 {
  font-size: 1.2rem;
}

.official-repertoire-unlock button {
  min-height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 30, 74, 0.2);
}

@media (min-width: 700px) {
  .official-repertoire-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .official-repertoire-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .official-repertoire-unlock {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .official-repertoire-unlock button {
    width: auto;
    min-width: 210px;
  }

  .official-repertoire-unlock__status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 379px) {
  .official-repertoire-card__values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 20px;
  }

  .official-repertoire-card--hero .official-repertoire-card__value {
    min-height: 55px;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-rows: 1fr;
    justify-items: start;
    gap: 6px;
    padding: 7px 8px;
  }

  .official-repertoire-card--hero .official-repertoire-card__value-icon {
    width: 18px;
    height: 18px;
  }

  .official-repertoire-card--hero .official-repertoire-card__value strong {
    align-self: center;
    font-size: 0.66rem;
    text-align: left;
  }

  .official-repertoire-card--hero {
    min-height: 440px;
  }
}

@media (max-width: 359px) {
  .primary-nav a {
    gap: 2px;
    padding-inline: 0;
    font-size: 0.56rem;
    letter-spacing: -0.015em;
  }

  .primary-nav a svg {
    width: 20px;
    height: 20px;
  }

  .official-repertoire-card {
    min-height: 250px;
    padding: 17px;
  }

  .official-repertoire-card--hero {
    min-height: 440px;
    padding: 19px;
  }

  .official-repertoire-card--coming-soon {
    min-height: 200px;
    padding: 20px;
  }

  .official-repertoire-card--coming-soon .official-repertoire-card__copy {
    max-width: 80%;
  }

  .official-repertoire-block__heading {
    gap: 8px;
    padding-inline: 12px;
  }

  .official-repertoire-block__state {
    max-width: 96px;
    text-align: right;
  }
}
