: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: 100svh;
  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);
}

.app-startup { display: none; }
body.is-preparing { background: var(--beta-page-bg, #f3f8fa); }
body.is-preparing .app-main { display: none; }
body.is-preparing .app-startup {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  min-height: 55svh;
  padding: 32px;
  color: var(--beta-text, var(--ink));
  text-align: center;
}
.app-startup p { margin: 0; font-size: 15px; }
.app-startup__indicator {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-cyan, #00badd);
}
body.is-preparing .primary-nav { pointer-events: none; background: var(--beta-surface, #fff); }
body.is-preparing .primary-nav a { color: var(--beta-text-muted, #526b79); }
body.is-preparing .app-header__area { display: none; }

.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;
}


/* Teasers compactos: produtos futuros, sem interacao ou estado de acesso. */
.future-repertoires {
  margin-top: 28px;
}

.future-repertoires__heading {
  margin-bottom: 14px;
  text-align: left;
}

.future-repertoires__heading h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.future-repertoires__heading p {
  margin: 4px 0 0;
  color: #75889a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.future-repertoires__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.future-repertoire-card {
  position: relative;
  min-width: 0;
  height: 118px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 13px;
  color: #fff;
  background-color: #172435;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow:
    0 8px 18px rgba(17, 31, 45, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.future-repertoire-card::before,
.future-repertoire-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.future-repertoire-card::before {
  background: linear-gradient(90deg, rgba(7, 12, 19, 0.82), rgba(7, 12, 19, 0.18) 78%);
}

.future-repertoire-card::after {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, transparent 48%, rgba(255, 255, 255, 0.05));
}

.future-repertoire-card h3 {
  position: relative;
  z-index: 2;
  max-width: 70%;
  margin: 0;
  font-size: 1.06rem;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.48);
}

.future-repertoire-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(8, 15, 23, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(5px);
  font-size: 0.54rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.1em;
}

.future-repertoire-card__art {
  position: absolute;
  right: 4px;
  bottom: 2px;
  z-index: 1;
  width: 72px;
  height: 72px;
  color: rgba(255, 255, 255, 0.58);
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.28));
}

.future-repertoire-card__art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.future-repertoire-card--pop-rock {
  background:
    radial-gradient(circle at 18% 20%, rgba(23, 109, 182, 0.74), transparent 43%),
    radial-gradient(circle at 92% 72%, rgba(176, 39, 48, 0.75), transparent 48%),
    linear-gradient(135deg, #07111e, #24111b);
}

.future-repertoire-card--pagode {
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 187, 89, 0.56), transparent 40%),
    linear-gradient(135deg, #5c2415, #a34d21 58%, #6b2a18);
}

.future-repertoire-card--gauchesca {
  background:
    radial-gradient(circle at 86% 22%, rgba(226, 177, 94, 0.5), transparent 37%),
    linear-gradient(145deg, #33432f, #745139 60%, #3c3024);
}

.future-repertoire-card--forro {
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 208, 83, 0.72), transparent 38%),
    linear-gradient(135deg, #8c2d22, #c45b27 57%, #7b261c);
}

.future-repertoire-card--reggae {
  background:
    radial-gradient(circle at 84% 20%, rgba(230, 190, 57, 0.57), transparent 36%),
    linear-gradient(140deg, #153f2e, #54752e 60%, #263f20);
}

.future-repertoire-card--retro {
  background:
    radial-gradient(circle at 84% 20%, rgba(87, 161, 166, 0.46), transparent 38%),
    linear-gradient(140deg, #25243e, #66405c 58%, #27394c);
}

@media (max-width: 699px),
  (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  #officialRepertoiresListView:not([hidden]) .future-repertoires {
    margin-top: 24px;
    padding-bottom: 4px;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__heading {
    margin-bottom: 11px;
    padding-inline: 2px;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__heading h2 {
    font-size: 1.08rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__heading p {
    font-size: 0.76rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card {
    height: 96px;
    padding: 11px;
    border-radius: 13px;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card h3 {
    font-size: 0.98rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card__badge {
    top: 8px;
    left: 8px;
    min-height: 18px;
    padding: 3px 6px;
    font-size: 0.49rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card__art {
    right: 1px;
    bottom: 0;
    width: 65px;
    height: 65px;
  }
}

.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-smart-suggestion {
  margin: 10px 0 14px;
}

.internet-search-smart-suggestion__action {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--brand-blue-ink);
  background: var(--brand-soft-2);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.internet-search-smart-suggestion__action:hover {
  background: var(--brand-soft-hover);
  border-color: var(--brand-border-strong);
}

.internet-search-smart-suggestion__action:focus-visible {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: 1px;
}

.internet-search-smart-suggestion__action > .internet-search-icon {
  width: 20px;
  height: 20px;
  justify-self: center;
  color: var(--brand-cyan);
}

.internet-search-smart-suggestion__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.internet-search-smart-suggestion__eyebrow {
  color: #6d7883;
  font-size: 0.69rem;
  font-weight: 600;
}

.internet-search-smart-suggestion__label {
  overflow: hidden;
  color: var(--brand-blue-ink);
  font-size: 0.88rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internet-search-smart-suggestion__link {
  color: var(--brand-blue-ink);
  font-size: 0.72rem;
  font-weight: 760;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .internet-search-smart-suggestion__action {
    transition: none;
  }
}

.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: 100svh;
}

.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(100svh - 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: center;
  gap: 12px;
  padding: 13px;
  background: var(--brand-soft-2);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
}

.profile-account-note__copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
}

.profile-account-note p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-account-button {
  flex: 0 0 auto;
  min-width: 88px;
}

.profile-auth-dialog .personal-dialog__surface {
  width: min(440px, calc(100vw - 28px));
}

.profile-auth-dialog form {
  display: grid;
  gap: 14px;
}

.profile-auth-dialog form > p,
.profile-auth-message {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.profile-auth-dialog .personal-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.profile-auth-dialog .personal-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
}

.profile-auth-dialog .personal-field input:focus {
  border-color: var(--brand-blue-ink);
  outline: 3px solid color-mix(in srgb, var(--brand-blue-ink) 18%, transparent);
}

#profileAuthCode {
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}

.profile-auth-submit {
  width: 100%;
}

.profile-auth-resend,
.profile-auth-change-email {
  min-height: 44px;
  padding: 7px 10px;
  color: var(--brand-blue-ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.profile-auth-resend:disabled {
  color: var(--ink-muted);
  cursor: default;
}

.profile-auth-message {
  min-height: 24px;
  margin-top: 12px;
  font-size: 0.82rem;
}

.profile-auth-message[data-state="error"] {
  color: #8f2f20;
}

.profile-auth-message[data-state="success"] {
  color: #25623e;
}

.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;
}

body.internet-search-active #profileAboutDialog {
  inset: 0;
  margin: auto;
}

.profile-about .personal-dialog__actions {
  justify-content: center;
}

.profile-about .profile-update-version {
  font-size: .8rem;
  color: #62758a;
}

.profile-update-status {
  margin: 20px 0 8px;
  padding: 18px 16px;
  border: 1px solid #d9edf2;
  border-radius: 16px;
  background: #f3fbfd;
}

.profile-update-status strong { color: #092345; }
.profile-update-status p { margin: 8px 0 0; line-height: 1.55; }
.profile-about .profile-update-actions { flex-direction: column; gap: 10px; }
.profile-update-actions .personal-button { width: 100%; white-space: normal; }
.profile-update-actions [hidden] { display: none; }
html[data-app-appearance="dark"] .profile-update-status {
  background: var(--beta-surface-muted);
  border-color: var(--beta-border);
}
html[data-app-appearance="dark"] .profile-update-status strong { color: var(--beta-text); }
html[data-app-appearance="dark"] .profile-about .profile-update-version { color: var(--beta-text-muted); }

@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: 23px 12px 25px;
  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: 7px;
  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;
  line-height: 1.2;
}

.personal-empty p {
  max-width: 32rem;
  margin-top: 4px;
  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;
  white-space: pre-line;
}

.personal-import__batch-details {
  margin-top: 8px;
}

.personal-import__completion {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 230px;
  padding: 34px 18px 22px;
  text-align: center;
}

.personal-import__completion[hidden] {
  display: none;
}

.personal-import__completion-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #147a45;
  background: #e8f7ee;
  border: 1px solid #a9ddbd;
  border-radius: 50%;
}

.personal-import__completion-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.personal-import__completion > p {
  margin: 0;
  color: #283548;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.45;
}

.personal-import__completion .personal-import__batch-details {
  width: min(100%, 520px);
  margin: 2px 0 0;
  text-align: left;
}

.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) {
  #personalEmptyState {
    padding-inline: 8px;
  }

  #personalEmptyState h2 {
    white-space: nowrap;
    font-size: clamp(0.96rem, 4vw, 1.05rem);
    letter-spacing: -0.025em;
  }

  .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 Recursos beta (rota interna "aulas" preservada) */
.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;
  text-decoration: none;
  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--tuner .lessons-choice-card__icon {
  color: var(--brand-navy);
  background: linear-gradient(145deg, #c9f5ff, var(--brand-soft));
  border: 1px solid var(--brand-border-strong);
}

.lessons-choice-card--tuner [data-tool-icon="tuner-meter"] svg {
  width: 38px;
  height: 38px;
}

.lessons-choice-card--metronome .lessons-choice-card__icon {
  color: #6d3ca2;
  background: linear-gradient(145deg, #f2eaff, #e7dcfb);
  border: 1px solid #d9c5f2;
}

.lessons-choice-card--chords .lessons-choice-card__icon {
  color: #176b4c;
  background: linear-gradient(145deg, #e9f8f1, #dff2e9);
  border: 1px solid #c4e4d4;
}

.lessons-choice-card--fretboard .lessons-choice-card__icon {
  color: #9a4f18;
  background: linear-gradient(145deg, #fff4e8, #fbe6d1);
  border: 1px solid #efd1b2;
}

.lessons-choice-card--courses .lessons-choice-card__icon {
  color: #315d49;
  background: linear-gradient(145deg, #edf8f2, #e4f2ea);
  border: 1px solid #cfe7d9;
}

.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;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lesson-video-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

#lessonVideoFrame:fullscreen,
#lessonVideoFrame:-webkit-full-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  background: #000;
  border-radius: 0;
  box-shadow: none;
}

#lessonVideoFrame:fullscreen .lessons-player__iframe,
#lessonVideoFrame:-webkit-full-screen .lessons-player__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  background: #000;
  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;
}

.lessons-repertoire-card--locked {
  border-color: #d7dde4;
}

.lessons-choice-card__copy > .lessons-repertoire-card__access {
  color: #5e6875;
  font-size: 0.78rem;
  font-weight: 720;
}

/* 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;
}

.chord-dictionary-screen {
  min-width: 0;
}

.chord-dictionary-screen .lessons-back {
  margin-bottom: 18px;
}

.chord-dictionary-heading {
  margin-bottom: 18px;
}

.chord-dictionary-heading p,
.chord-dictionary-heading h1 {
  margin: 0;
}

.chord-dictionary-heading p {
  color: var(--brand-blue-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chord-dictionary-heading h1 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.chord-dictionary-heading h1:focus {
  outline: none;
}

.chord-dictionary-layout {
  display: grid;
  gap: 16px;
}

.chord-dictionary-controls,
.chord-dictionary-result {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce3e9;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13, 25, 38, 0.07);
}

.chord-dictionary-search {
  display: grid;
  gap: 7px;
  color: #2d3948;
  font-size: 0.82rem;
  font-weight: 760;
}

.chord-dictionary-search input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebac7;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 650;
}

.chord-dictionary-search input:focus {
  border-color: var(--brand-blue-deep);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.chord-dictionary-search input[aria-invalid="true"] {
  border-color: #bd4b37;
}

.chord-dictionary-search-status {
  min-height: 1.2em;
  margin: 5px 0 12px;
  color: #a13220;
  font-size: 0.78rem;
}

.chord-dictionary-selector {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chord-dictionary-selector + .chord-dictionary-selector {
  margin-top: 18px;
}

.chord-dictionary-selector legend {
  margin-bottom: 9px;
  color: #2d3948;
  font-size: 0.82rem;
  font-weight: 780;
}

.chord-dictionary-note-options,
.chord-dictionary-type-options {
  display: grid;
  gap: 7px;
}

.chord-dictionary-note-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chord-dictionary-type-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chord-dictionary-selector button {
  min-width: 0;
  min-height: 42px;
  padding: 7px 5px;
  color: #314053;
  background: #f7f9fb;
  border: 1px solid #d4dce4;
  border-radius: 10px;
  font-size: 0.77rem;
  font-weight: 730;
  cursor: pointer;
}

.chord-dictionary-selector button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: 0 4px 12px rgba(0, 22, 62, 0.2);
}

.chord-dictionary-selector button:focus-visible,
.chord-dictionary-alternative:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.chord-dictionary-result {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 22px 14px;
  text-align: center;
}

.chord-dictionary-result h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.chord-dictionary-result > p {
  margin: 7px 0 2px;
  color: #6a7788;
  font-size: 0.78rem;
  font-weight: 680;
}

.chord-dictionary-diagram {
  width: min(100%, 310px);
  margin: 0 auto;
}

.chord-diagram {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chord-diagram__string,
.chord-diagram__fret {
  stroke: #25364b;
  stroke-width: 1.7;
}

.chord-diagram__nut {
  stroke: #0e1c30;
  stroke-width: 6;
}

.chord-diagram__string-state,
.chord-diagram__base {
  fill: #3e4d60;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-anchor: middle;
}

.chord-diagram__base {
  font-size: 13px;
  text-anchor: end;
}

.chord-diagram__finger,
.chord-diagram__barre {
  fill: var(--brand-navy);
  stroke: #07162c;
  stroke-width: 1;
}

.chord-diagram__finger-number,
.chord-diagram__barre-finger {
  fill: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  text-anchor: middle;
}

.chord-dictionary-alternative {
  min-height: 46px;
  margin-top: 2px;
  padding: 10px 20px;
  color: #fff;
  background: var(--brand-navy);
  border: 1px solid var(--brand-navy);
  border-radius: 12px;
  font-weight: 780;
  cursor: pointer;
}

.chord-dictionary-alternative:hover {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
}

@media (max-width: 619px) {
  .chord-dictionary-screen .lessons-back {
    margin-bottom: 12px;
  }

  .chord-dictionary-heading {
    margin-bottom: 12px;
  }

  .chord-dictionary-layout {
    gap: 10px;
  }

  .chord-dictionary-controls {
    padding: 14px;
  }

  .chord-dictionary-search {
    gap: 5px;
  }

  .chord-dictionary-search input {
    min-height: 44px;
    padding: 9px 11px;
  }

  .chord-dictionary-search-status {
    margin: 3px 0 9px;
  }

  .chord-dictionary-search-status:empty {
    min-height: 0;
  }

  .chord-dictionary-selector + .chord-dictionary-selector {
    margin-top: 12px;
  }

  .chord-dictionary-selector legend {
    margin-bottom: 6px;
  }

  .chord-dictionary-note-options,
  .chord-dictionary-type-options {
    gap: 5px;
  }

  .chord-dictionary-selector button {
    min-height: 40px;
    padding: 5px 4px;
  }

  .chord-dictionary-result {
    padding: 18px 12px;
  }
}

@media (min-width: 820px) {
  .chord-dictionary-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    align-items: start;
  }

  .chord-dictionary-result {
    position: sticky;
    top: 18px;
  }
}

.fretboard-screen {
  min-width: 0;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.fretboard-screen .lessons-back {
  margin-bottom: 12px;
}

.fretboard-heading {
  margin-bottom: 14px;
}

.fretboard-heading p,
.fretboard-heading h1 {
  margin: 0;
}

.fretboard-heading p {
  color: var(--brand-blue-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fretboard-heading h1 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.fretboard-heading h1:focus {
  outline: none;
}

.fretboard-mode,
.fretboard-view-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  background: #e9eef3;
  border: 1px solid #d5dde5;
  border-radius: 14px;
}

.fretboard-mode {
  margin-bottom: 12px;
}

.fretboard-mode button,
.fretboard-view-options button {
  min-height: 42px;
  padding: 8px 12px;
  color: #536173;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 780;
  cursor: pointer;
}

.fretboard-mode button[aria-pressed="true"],
.fretboard-view-options button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-navy);
  box-shadow: 0 3px 10px rgba(0, 22, 62, 0.2);
}

.fretboard-controls,
.fretboard-result {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #dce3e9;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13, 25, 38, 0.07);
}

.fretboard-controls {
  margin-bottom: 12px;
}

.fretboard-controls--notes h2,
.fretboard-selector legend {
  margin: 0 0 7px;
  color: #2d3948;
  font-size: 0.82rem;
  font-weight: 780;
}

.fretboard-selector {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fretboard-selector + .fretboard-selector {
  margin-top: 12px;
}

.fretboard-note-options,
.fretboard-tone-options,
.fretboard-scale-options {
  display: grid;
  gap: 6px;
}

.fretboard-note-options,
.fretboard-tone-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fretboard-scale-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fretboard-note-options button,
.fretboard-tone-options button,
.fretboard-scale-options button {
  min-width: 0;
  min-height: 40px;
  padding: 5px 3px;
  color: #314053;
  background: #f7f9fb;
  border: 1px solid #d4dce4;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 740;
  cursor: pointer;
}

.fretboard-note-options button[aria-pressed="true"],
.fretboard-tone-options button[aria-pressed="true"],
.fretboard-scale-options button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: 0 4px 12px rgba(0, 22, 62, 0.18);
}

.fretboard-view-options {
  margin-top: 12px;
}

.fretboard-mode button:focus-visible,
.fretboard-view-options button:focus-visible,
.fretboard-note-options button:focus-visible,
.fretboard-tone-options button:focus-visible,
.fretboard-scale-options button:focus-visible,
.fretboard-shape-navigation button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.fretboard-result {
  padding: 16px 12px 14px;
}

.fretboard-result > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 2px;
}

.fretboard-result > header p,
.fretboard-result > header h2 {
  margin: 0;
}

.fretboard-result > header p {
  color: #6a7788;
  font-size: 0.72rem;
  font-weight: 760;
}

.fretboard-result > header h2 {
  margin-top: 3px;
  color: var(--brand-navy);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.fretboard-legend {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #526174;
  font-size: 0.68rem;
  font-weight: 720;
}

.fretboard-legend i {
  width: 11px;
  height: 11px;
  background: var(--brand-blue-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(31, 104, 174, 0.16);
}

.fretboard-screen.is-scale-mode .fretboard-legend i {
  background: #e67b2d;
  box-shadow: 0 0 0 2px rgba(230, 123, 45, 0.2);
}

.fretboard-scroll-hint {
  margin: 10px 2px 5px;
  color: #718094;
  font-size: 0.7rem;
  font-weight: 650;
}

.fretboard-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #f7f2e9;
  border: 1px solid #e3d7c8;
  border-radius: 13px;
  scrollbar-color: #9faabd transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.fretboard-viewport.is-shape {
  display: grid;
  overflow: hidden;
  place-items: center;
}

.fretboard-svg {
  display: block;
  height: auto;
  font-family: inherit;
}

.fretboard-svg--full {
  width: 870px;
  min-width: 870px;
}

.fretboard-svg--shape {
  width: min(100%, 470px);
  min-width: 0;
}

.fretboard-svg--vertical {
  width: 100%;
  min-width: 0;
}

.fretboard-svg__wood {
  fill: #f3dfc6;
  stroke: #d4b995;
  stroke-width: 1;
}

.fretboard-svg__string {
  stroke: #647181;
  stroke-width: 1.15;
}

.fretboard-svg__string--1 {
  stroke-width: 2.8;
}

.fretboard-svg__string--2 {
  stroke-width: 2.35;
}

.fretboard-svg__string--3 {
  stroke-width: 1.95;
}

.fretboard-svg__string--4 {
  stroke-width: 1.55;
}

.fretboard-svg__fret {
  stroke: #9c8a77;
  stroke-width: 2;
}

.fretboard-svg__nut {
  stroke: #27364a;
  stroke-width: 6;
}

.fretboard-svg__tuning,
.fretboard-svg__fret-number {
  fill: #4b596b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 820;
  text-anchor: middle;
}

.fretboard-svg__fret-number {
  font-size: 11px;
}

.fretboard-svg__inlay {
  fill: #b49c80;
}

.fretboard-note-marker__circle {
  fill: rgba(255, 255, 255, 0.9);
  stroke: #8793a2;
  stroke-width: 1.25;
}

.fretboard-note-marker__label {
  fill: #445164;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 820;
  text-anchor: middle;
}

.fretboard-note-marker.is-selected .fretboard-note-marker__circle,
.fretboard-note-marker.is-scale-note .fretboard-note-marker__circle {
  fill: var(--brand-blue-deep);
  stroke: #07254c;
  stroke-width: 1.8;
}

.fretboard-note-marker.is-selected .fretboard-note-marker__label,
.fretboard-note-marker.is-scale-note .fretboard-note-marker__label {
  fill: #fff;
}

.fretboard-note-marker.is-tonic .fretboard-note-marker__circle {
  fill: #e67b2d;
  stroke: #71330c;
  stroke-width: 2.4;
}

.fretboard-note-marker.is-tonic .fretboard-note-marker__label {
  fill: #fff;
  font-size: 10px;
  font-weight: 900;
}

.fretboard-scale-notes {
  margin: 12px 2px 0;
  color: #2e3e51;
  font-size: 0.8rem;
  font-weight: 730;
  line-height: 1.45;
}

.fretboard-shape-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.fretboard-shape-navigation button {
  min-width: 0;
  min-height: 44px;
  padding: 7px 6px;
  color: var(--brand-navy);
  background: #f5f8fb;
  border: 1px solid #cbd6e0;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 780;
  cursor: pointer;
}

.fretboard-shape-navigation strong {
  color: #354458;
  font-size: 0.72rem;
  white-space: nowrap;
}

@media (max-width: 719px) {
  .fretboard-screen .lessons-back {
    margin-bottom: 8px;
  }

  .fretboard-heading {
    margin-bottom: 10px;
  }

  .fretboard-mode {
    margin-bottom: 9px;
  }

  .fretboard-mode button,
  .fretboard-view-options button {
    min-height: 40px;
    padding-block: 6px;
  }

  .fretboard-controls {
    margin-bottom: 8px;
    padding: 11px;
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(13, 25, 38, 0.055);
  }

  .fretboard-controls--notes h2,
  .fretboard-selector legend {
    margin-bottom: 5px;
  }

  .fretboard-selector + .fretboard-selector {
    margin-top: 9px;
  }

  .fretboard-note-options,
  .fretboard-tone-options,
  .fretboard-scale-options {
    gap: 5px;
  }

  .fretboard-note-options button,
  .fretboard-tone-options button,
  .fretboard-scale-options button {
    min-height: 39px;
    padding-block: 4px;
  }

  .fretboard-view-options {
    margin-top: 9px;
  }

  .fretboard-result {
    padding: 10px 0 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .fretboard-result > header {
    align-items: center;
    padding-inline: 3px;
  }

  .fretboard-result > header h2 {
    font-size: clamp(1.35rem, 6vw, 1.72rem);
  }

  .fretboard-legend {
    font-size: 0.7rem;
  }

  .fretboard-viewport.is-vertical {
    margin-top: 7px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  .fretboard-viewport.is-vertical::-webkit-scrollbar {
    display: none;
  }

  .fretboard-svg--vertical .fretboard-svg__wood {
    fill: #f3dfc6;
    stroke: #cfb18b;
    stroke-width: 1.3;
  }

  .fretboard-svg--vertical .fretboard-svg__string {
    stroke: #526274;
  }

  .fretboard-svg--vertical .fretboard-svg__fret {
    stroke: #96816a;
    stroke-width: 2.2;
  }

  .fretboard-svg--vertical .fretboard-svg__nut {
    stroke: #172b45;
    stroke-width: 7;
  }

  .fretboard-svg--vertical .fretboard-svg__tuning,
  .fretboard-svg--vertical .fretboard-svg__fret-number {
    fill: #33455a;
    font-size: 13px;
    font-weight: 880;
  }

  .fretboard-svg--vertical .fretboard-svg__inlay {
    fill: rgba(139, 108, 73, 0.36);
  }

  .fretboard-svg--vertical .fretboard-note-marker__circle {
    fill: #fffdfa;
    stroke: #7a8999;
    stroke-width: 1.6;
  }

  .fretboard-svg--vertical .fretboard-note-marker__label {
    fill: #334154;
    font-size: 12px;
    font-weight: 880;
  }

  .fretboard-svg--vertical .fretboard-note-marker.is-selected .fretboard-note-marker__circle,
  .fretboard-svg--vertical .fretboard-note-marker.is-scale-note .fretboard-note-marker__circle {
    fill: #079ac3;
    stroke: #005478;
    stroke-width: 2;
  }

  .fretboard-svg--vertical .fretboard-note-marker.is-selected .fretboard-note-marker__label,
  .fretboard-svg--vertical .fretboard-note-marker.is-scale-note .fretboard-note-marker__label {
    fill: #fff;
  }

  .fretboard-svg--vertical .fretboard-note-marker.is-tonic .fretboard-note-marker__circle {
    fill: #ed7d27;
    stroke: #793309;
    stroke-width: 2.8;
  }

  .fretboard-svg--vertical .fretboard-note-marker.is-tonic .fretboard-note-marker__label {
    fill: #fff;
    font-size: 12.5px;
  }

  .fretboard-scale-notes {
    margin: 8px 3px 0;
    font-size: 0.82rem;
  }

  .fretboard-shape-navigation {
    margin-top: 9px;
  }
}

@media (min-width: 720px) {
  .fretboard-screen {
    width: min(100%, 980px);
    margin-inline: auto;
  }

  .fretboard-controls--scales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .fretboard-controls--scales .fretboard-view-options {
    grid-column: 1 / -1;
  }

  .fretboard-selector + .fretboard-selector {
    margin-top: 0;
  }

  .fretboard-note-options,
  .fretboard-tone-options {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.tuner-screen {
  width: min(100%, 780px);
  margin-inline: auto;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

/* Toques rápidos não ampliam o afinador; rolagem e pinça continuam disponíveis. */
.tuner-screen,
.tuner-screen .tuner-surface,
.tuner-screen button,
#openTunerButton {
  touch-action: manipulation;
}

.tuner-screen .lessons-back {
  min-height: 44px;
}

.tuner-heading,
:where(#metronomeScreen) .metronome-heading {
  text-align: center;
}

.tuner-heading {
  margin: 18px 0 16px;
}

.tuner-heading p,
.tuner-heading h1,
.tuner-intro h2,
.tuner-intro p,
.tuner-status,
.tuner-note strong,
.tuner-note span {
  margin: 0;
}

.tuner-heading p {
  color: var(--brand-blue-ink);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tuner-heading h1 {
  margin-top: 3px;
  color: var(--brand-navy);
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.tuner-heading h1:focus {
  outline: none;
}

.tuner-surface {
  min-width: 0;
  overflow: hidden;
  color: #f5fbff;
  background:
    radial-gradient(circle at 50% 5%, rgba(8, 195, 245, 0.2), transparent 42%),
    linear-gradient(155deg, var(--brand-navy-hover), var(--brand-navy) 66%);
  border: 1px solid rgba(8, 195, 245, 0.28);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(0, 22, 62, 0.24);
}

.tuner-intro,
.tuner-live {
  display: grid;
  min-height: min(520px, calc(100dvh - 220px));
  align-content: center;
  justify-items: center;
  padding: clamp(24px, 7vw, 52px);
  text-align: center;
}

.tuner-intro[hidden],
.tuner-live[hidden] {
  display: none;
}

.tuner-intro__icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--brand-cyan);
  background: rgba(234, 249, 254, 0.08);
  border: 1px solid rgba(158, 223, 236, 0.38);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 13, 38, 0.22);
}

.tuner-intro__icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tuner-intro h2 {
  color: #fff;
  font-size: clamp(1.45rem, 5.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.tuner-intro > p:not(.tuner-privacy) {
  max-width: 460px;
  margin-top: 10px;
  color: #cbd8e6;
  font-size: 0.96rem;
  line-height: 1.5;
}

.tuner-privacy {
  max-width: 500px;
  margin-top: 24px !important;
  padding: 12px 14px;
  color: #c8dae8;
  background: rgba(234, 249, 254, 0.065);
  border: 1px solid rgba(158, 223, 236, 0.18);
  border-radius: 13px;
  font-size: 0.78rem;
  line-height: 1.48;
}

.tuner-primary-button,
.tuner-stop-button {
  min-height: 50px;
  border-radius: 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 820;
  cursor: pointer;
}

.tuner-primary-button {
  width: min(100%, 300px);
  margin-top: 24px;
  padding: 12px 22px;
  color: var(--brand-navy);
  background: var(--brand-cyan);
  border: 1px solid var(--brand-cyan);
  box-shadow: 0 10px 24px rgba(8, 195, 245, 0.22);
}

.tuner-primary-button:hover:not(:disabled) {
  background: #42d2f7;
}

.tuner-primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.tuner-primary-button:focus-visible,
.tuner-stop-button:focus-visible {
  outline: 3px solid rgba(8, 195, 245, 0.42);
  outline-offset: 3px;
}

.tuner-live {
  position: relative;
  min-height: min(570px, calc(100dvh - 205px));
  align-content: start;
  gap: 0;
  padding: clamp(18px, 4vw, 34px) clamp(16px, 5vw, 42px) 22px;
}

.tuner-note {
  display: grid;
  justify-items: center;
  margin-top: clamp(-5px, -0.7vw, 0px);
}

.tuner-note strong {
  min-height: 1.05em;
  color: #fff;
  font-size: clamp(6.3rem, 28vw, 10rem);
  font-weight: 780;
  line-height: 0.82;
  letter-spacing: -0.085em;
  text-shadow: 0 12px 34px rgba(0, 13, 38, 0.34);
}

.tuner-note strong sub {
  position: relative;
  bottom: -0.04em;
  margin-left: 0.08em;
  color: #bcd4e2;
  font-size: 0.27em;
  font-weight: 760;
  letter-spacing: 0;
  vertical-align: baseline;
}

.tuner-note > span {
  margin-top: 17px;
  color: #d7e5ef;
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  font-weight: 720;
}

.tuner-live[data-tuning-state="no-signal"] .tuner-note strong {
  color: #aec5d4;
  font-size: clamp(3.4rem, 16vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.tuner-meter {
  width: min(100%, 610px);
  margin-inline: auto;
}

.tuner-arc {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tuner-arc__segment {
  opacity: 0.72;
  stroke: rgba(183, 207, 219, 0.34);
  stroke-linecap: round;
  stroke-width: 6;
  transition: stroke 150ms ease, opacity 150ms ease, filter 150ms ease;
}

.tuner-arc__segment--center {
  stroke-width: 7;
}

.tuner-arc__segment.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 4px currentColor);
}

.tuner-arc__segment[data-zone="red"].is-active {
  color: #ff5c65;
  stroke: #ff5c65;
}

.tuner-arc__segment[data-zone="orange"].is-active {
  color: #ff9f43;
  stroke: #ff9f43;
}

.tuner-arc__segment[data-zone="yellow"].is-active {
  color: #ffd166;
  stroke: #ffd166;
}

.tuner-arc__segment[data-zone="green"].is-active {
  color: #35e592;
  stroke: #35e592;
}

.tuner-arc__center-marker {
  fill: rgba(207, 226, 235, 0.48);
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 150ms ease, filter 150ms ease, transform 150ms ease;
}

.tuner-live[data-tuning-state="tuned"] .tuner-arc__center-marker {
  fill: #35e592;
  filter: drop-shadow(0 0 5px rgba(53, 229, 146, 0.72));
  animation: tuner-center-lock 260ms ease-out;
}

.tuner-listening-indicator {
  opacity: 0;
  color: var(--brand-cyan);
  transition: opacity 180ms ease;
}

.tuner-listening-indicator circle {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
}

.tuner-screen[data-state="no-signal"] .tuner-listening-indicator {
  opacity: 1;
}

.tuner-screen[data-state="no-signal"] .tuner-listening-indicator circle {
  animation: tuner-listening-dot 1.05s ease-in-out infinite;
}

.tuner-screen[data-state="no-signal"] .tuner-listening-indicator circle:nth-child(2) {
  animation-delay: 120ms;
}

.tuner-screen[data-state="no-signal"] .tuner-listening-indicator circle:nth-child(3) {
  animation-delay: 240ms;
}

.tuner-meter__needle {
  color: #fff;
  filter: drop-shadow(0 5px 6px rgba(0, 13, 38, 0.5));
  transform: rotate(0deg);
  transform-box: view-box;
  transform-origin: 160px 165px;
  transition: transform 140ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 140ms ease;
}

.tuner-meter__needle-shadow {
  stroke: rgba(0, 22, 62, 0.82);
  stroke-linecap: round;
  stroke-width: 7;
}

.tuner-meter__needle-line {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.tuner-meter__needle-tip,
.tuner-meter__needle-pivot {
  fill: currentColor;
}

.tuner-live[data-tuning-state="no-signal"] .tuner-meter__needle {
  opacity: 0.36;
}

.tuner-live[data-tuning-state="tuned"] .tuner-meter__needle {
  color: #35e592;
  filter: drop-shadow(0 0 6px rgba(53, 229, 146, 0.58));
}

.tuner-meter__labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: -5px 8% 0;
  color: #9fb2c4;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tuner-meter__labels :nth-child(2) {
  color: #fff;
  font-size: 0.76rem;
  text-align: center;
}

.tuner-meter__labels :last-child {
  text-align: right;
}

.tuner-status {
  display: flex;
  min-height: 2.1em;
  align-items: center;
  justify-content: center;
  margin-top: clamp(26px, 6vw, 42px);
  color: #fff;
  font-size: clamp(1.18rem, 4.5vw, 1.5rem);
  font-weight: 850;
  line-height: 1.35;
}

@keyframes tuner-center-lock {
  0% { transform: scale(0.86); }
  65% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes tuner-listening-dot {
  0%, 100% { opacity: 0.26; transform: scale(0.78); }
  48% { opacity: 1; transform: scale(1.12); }
}

.tuner-live[data-tuning-state="tuned"] .tuner-status::before {
  content: "✓";
  display: inline-grid;
  width: 1.45em;
  height: 1.45em;
  place-items: center;
  margin-right: 0.42em;
  color: var(--brand-navy);
  background: #35e592;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 0.64em;
  vertical-align: 0.14em;
}

.tuner-live[data-tuning-state="tuned"] .tuner-status {
  color: #35e592;
}

.tuner-secondary-data {
  min-height: 1.4em;
  margin: 7px 0 0;
  color: #b8c9d8;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.tuner-debug,
:where(#metronomeScreen) .metronome-debug {
  width: min(100%, 420px);
  margin-top: 10px;
  padding: 10px 12px;
  color: #d8e7ef;
  background: rgba(5, 17, 28, 0.76);
  border: 1px solid rgba(158, 223, 236, 0.28);
  border-radius: 10px;
  font: 0.72rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: left;
}

.tuner-debug[hidden],
:where(#metronomeScreen) .metronome-debug[hidden] {
  display: none;
}

.tuner-debug > strong,
:where(#metronomeScreen) .metronome-debug > strong {
  display: block;
  margin-bottom: 6px;
  color: #9edfec;
}

.tuner-debug__capture-score {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 7px;
  padding: 6px 8px;
  color: #d8e7ef;
  background: rgba(158, 223, 236, 0.08);
  border-radius: 7px;
}

.tuner-debug__capture-score b[data-score="bom"] {
  color: #35e592;
}

.tuner-debug__capture-score b[data-score="fraco"] {
  color: #ffd166;
}

.tuner-debug__capture-score b[data-score="ruído"] {
  color: #ff8d8d;
}

.tuner-debug dl,
.tuner-debug dd,
:where(#metronomeScreen) .metronome-debug dl,
:where(#metronomeScreen) .metronome-debug dd {
  margin: 0;
}

.tuner-debug dl > div,
:where(#metronomeScreen) .metronome-debug dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tuner-debug dl > .tuner-debug__wide {
  display: grid;
  gap: 2px;
  margin: 5px 0;
}

.tuner-debug__wide dd {
  overflow-wrap: anywhere;
  text-align: left;
}

.tuner-debug dd,
:where(#metronomeScreen) .metronome-debug dd {
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tuner-debug__record {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 12px;
  color: #00163e;
  background: #9edfec;
  border: 1px solid #fff;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.tuner-debug__distance {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: #d8e7ef;
}

.tuner-debug__distance select {
  min-height: 40px;
  padding: 6px 8px;
  color: #00163e;
  background: #fff;
  border: 1px solid #9edfec;
  border-radius: 8px;
  font: inherit;
}

.tuner-debug__record:disabled {
  cursor: default;
  opacity: 0.55;
}

.tuner-debug__record-status {
  min-height: 1.35em;
  margin: 7px 0 0;
  color: #d8e7ef;
  font-size: 0.68rem;
}

.tuner-debug__downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.tuner-debug__downloads[hidden] {
  display: none;
}

.tuner-debug__downloads a {
  min-height: 40px;
  padding: 10px 8px;
  color: #fff;
  border: 1px solid rgba(158, 223, 236, 0.55);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.tuner-stop-button {
  min-width: 148px;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 18px;
  color: #c9dce8;
  background: transparent;
  border: 1px solid rgba(158, 223, 236, 0.31);
  font-size: 0.78rem;
}

.tuner-stop-button:hover {
  background: rgba(234, 249, 254, 0.08);
}

:where(#metronomeScreen).metronome-screen {
  width: min(100%, 780px);
  margin-inline: auto;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

:where(#metronomeScreen).metronome-screen .lessons-back {
  min-height: 44px;
}

:where(#metronomeScreen) .metronome-heading {
  margin: 18px 0 16px;
}

:where(#metronomeScreen) .metronome-heading p,
:where(#metronomeScreen) .metronome-heading h1,
:where(#metronomeScreen) .metronome-status {
  margin: 0;
}

:where(#metronomeScreen) .metronome-heading p {
  color: var(--brand-blue-ink);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(#metronomeScreen) .metronome-heading h1 {
  margin-top: 3px;
  color: var(--brand-navy);
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

:where(#metronomeScreen) .metronome-heading h1:focus {
  outline: none;
}

:where(#metronomeScreen) .metronome-surface {
  display: grid;
  min-height: min(620px, calc(100dvh - 205px));
  align-content: center;
  justify-items: center;
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
  color: #f5fbff;
  background:
    radial-gradient(circle at 50% 15%, rgba(8, 195, 245, 0.22), transparent 34%),
    linear-gradient(155deg, var(--brand-navy-hover), var(--brand-navy) 66%);
  border: 1px solid rgba(8, 195, 245, 0.28);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(0, 22, 62, 0.24);
  text-align: center;
}

:where(#metronomeScreen) .metronome-pulse {
  position: relative;
  display: grid;
  width: clamp(142px, 32vw, 182px);
  place-items: center;
}

:where(#metronomeScreen) .metronome-pulse__halo {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  background: rgba(8, 195, 245, 0.12);
  border: 1px solid rgba(158, 223, 236, 0.2);
  border-radius: 50%;
  transition: opacity 90ms ease, transform 90ms ease;
}

:where(#metronomeScreen) .metronome-pulse svg {
  position: relative;
  width: 100%;
  height: auto;
  fill: none;
  stroke: #c8dae8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transform: none;
}

:where(#metronomeScreen) .metronome-pulse__body,
:where(#metronomeScreen) .metronome-pulse__rail,
:where(#metronomeScreen) .metronome-pulse__pivot {
  transform: none;
}

:where(#metronomeScreen) .metronome-pulse__body {
  fill: rgba(234, 249, 254, 0.045);
  stroke: rgba(200, 218, 232, 0.55);
}

:where(#metronomeScreen) .metronome-pulse__pendulum {
  transform: rotate(0deg);
  transform-box: view-box;
  transform-origin: 90px 117px;
  will-change: transform;
}

:where(#metronomeScreen) .metronome-pulse__arm {
  stroke: var(--brand-cyan);
  stroke-width: 5;
}

:where(#metronomeScreen) .metronome-pulse__weight {
  fill: #dff8ff;
  stroke: var(--brand-cyan);
  stroke-width: 2;
}

:where(#metronomeScreen) .metronome-pulse__pivot {
  fill: var(--brand-cyan);
  stroke: #fff;
}

:where(#metronomeScreen) .metronome-surface[data-state="playing"] .metronome-pulse__halo {
  opacity: 1;
  transform: scale(1.08);
}

:where(#metronomeScreen) .metronome-surface[data-accent="true"] .metronome-pulse__halo {
  background: rgba(53, 229, 146, 0.2);
  border-color: rgba(53, 229, 146, 0.56);
  box-shadow: 0 0 34px rgba(53, 229, 146, 0.2);
  transform: scale(1.2);
}

:where(#metronomeScreen) .metronome-tempo {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: -5px;
  font-variant-numeric: tabular-nums;
}

:where(#metronomeScreen) .metronome-tempo strong {
  color: #fff;
  font-size: clamp(4.5rem, 19vw, 7.2rem);
  font-weight: 790;
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-shadow: 0 12px 34px rgba(0, 13, 38, 0.34);
}

:where(#metronomeScreen) .metronome-tempo span {
  color: #b8c9d8;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
}

:where(#metronomeScreen) .metronome-status {
  min-height: 1.5em;
  margin-top: 10px;
  color: #d7e5ef;
  font-size: 0.9rem;
  font-weight: 720;
}

:where(#metronomeScreen) .metronome-beats {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 16px;
}

:where(#metronomeScreen) .metronome-beats span {
  width: 10px;
  height: 10px;
  background: rgba(200, 218, 232, 0.3);
  border: 1px solid rgba(200, 218, 232, 0.46);
  border-radius: 50%;
  transition: background 80ms ease, box-shadow 80ms ease, transform 80ms ease;
}

:where(#metronomeScreen) .metronome-beats span.is-accent {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

:where(#metronomeScreen) .metronome-beats span.is-current {
  background: var(--brand-cyan);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(8, 195, 245, 0.18);
  transform: scale(1.18);
}

:where(#metronomeScreen) .metronome-beats span.is-accent.is-current {
  background: #35e592;
  box-shadow: 0 0 0 5px rgba(53, 229, 146, 0.18);
}

:where(#metronomeScreen) .metronome-bpm-control {
  display: grid;
  grid-template-columns: 46px minmax(130px, 1fr) 46px;
  width: min(100%, 520px);
  align-items: center;
  gap: 12px;
  margin-top: 23px;
}

:where(#metronomeScreen) .metronome-bpm-control label {
  grid-column: 1 / -1;
  color: #e4f3fa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

:where(#metronomeScreen) .metronome-bpm-control label span {
  color: #b8c9d8;
}

:where(#metronomeScreen) .metronome-bpm-control button,
:where(#metronomeScreen) .metronome-signatures button,
:where(#metronomeScreen) .metronome-actions button {
  min-height: 44px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

:where(#metronomeScreen) .metronome-bpm-control button {
  color: #e4f3fa;
  background: rgba(234, 249, 254, 0.07);
  border: 1px solid rgba(158, 223, 236, 0.3);
  font-size: 1.35rem;
}

:where(#metronomeScreen) .metronome-bpm-control button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

:where(#metronomeScreen) .metronome-bpm-control input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--brand-cyan);
  touch-action: manipulation;
}

:where(#metronomeScreen) .metronome-volume-control {
  display: grid;
  width: min(100%, 520px);
  gap: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(158, 223, 236, 0.18);
}

:where(#metronomeScreen) .metronome-volume-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e4f3fa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(#metronomeScreen) .metronome-volume-control output {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

:where(#metronomeScreen) .metronome-volume-slider {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
}

:where(#metronomeScreen) .metronome-volume-slider svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #c9dce8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(#metronomeScreen) .metronome-bpm-control input,
:where(#metronomeScreen) .metronome-volume-control input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

:where(#metronomeScreen) .metronome-bpm-control input::-webkit-slider-runnable-track,
:where(#metronomeScreen) .metronome-volume-control input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: #426181;
}

:where(#metronomeScreen) .metronome-bpm-control input::-moz-range-track,
:where(#metronomeScreen) .metronome-volume-control input::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: #426181;
}

:where(#metronomeScreen) .metronome-bpm-control input::-webkit-slider-thumb,
:where(#metronomeScreen) .metronome-volume-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 2px solid #00163e;
  border-radius: 50%;
  background: #08c3f5;
}

:where(#metronomeScreen) .metronome-bpm-control input::-moz-range-thumb,
:where(#metronomeScreen) .metronome-volume-control input::-moz-range-thumb {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 2px solid #00163e;
  border-radius: 50%;
  background: #08c3f5;
}

:where(#metronomeScreen) .metronome-volume-control input::-webkit-slider-thumb {
  background: #e4f3fa;
}

:where(#metronomeScreen) .metronome-volume-control input::-moz-range-thumb {
  background: #e4f3fa;
}

:where(#metronomeScreen) .metronome-volume-control input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--brand-cyan);
  touch-action: manipulation;
}

:where(#metronomeScreen) .metronome-signatures {
  width: min(100%, 520px);
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

:where(#metronomeScreen) .metronome-signatures legend {
  width: 100%;
  margin-bottom: 9px;
  color: #9fb2c4;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

:where(#metronomeScreen) .metronome-signatures > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

:where(#metronomeScreen) .metronome-signatures button {
  color: #c9dce8;
  background: rgba(234, 249, 254, 0.05);
  border: 1px solid rgba(158, 223, 236, 0.22);
}

:where(#metronomeScreen) .metronome-signatures button.is-selected {
  color: var(--brand-navy);
  background: var(--brand-cyan);
  border-color: #fff;
  box-shadow: 0 6px 16px rgba(8, 195, 245, 0.18);
}

:where(#metronomeScreen) .metronome-actions {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(160px, 1.28fr);
  width: min(100%, 520px);
  gap: 9px;
  margin-top: 22px;
}

:where(#metronomeScreen) .metronome-actions button {
  padding: 10px 14px;
}

:where(#metronomeScreen) .metronome-tap-button {
  color: #d7e5ef;
  background: transparent;
  border: 1px solid rgba(158, 223, 236, 0.34);
}

:where(#metronomeScreen) .metronome-toggle-button {
  color: var(--brand-navy);
  background: var(--brand-cyan);
  border: 1px solid var(--brand-cyan);
  box-shadow: 0 10px 24px rgba(8, 195, 245, 0.2);
}

:where(#metronomeScreen) .metronome-toggle-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

:where(#metronomeScreen) .metronome-bpm-control button:hover:not(:disabled),
:where(#metronomeScreen) .metronome-signatures button:hover,
:where(#metronomeScreen) .metronome-tap-button:hover {
  background-color: rgba(234, 249, 254, 0.12);
}

:where(#metronomeScreen) .metronome-toggle-button:hover:not(:disabled) {
  background: #42d2f7;
}

:where(#metronomeScreen) .metronome-bpm-control button:focus-visible,
:where(#metronomeScreen) .metronome-bpm-control input:focus-visible,
:where(#metronomeScreen) .metronome-volume-control input:focus-visible,
:where(#metronomeScreen) .metronome-signatures button:focus-visible,
:where(#metronomeScreen) .metronome-actions button:focus-visible {
  outline: 3px solid #08c3f5;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tuner-arc__segment,
  .tuner-arc__center-marker,
  .tuner-listening-indicator,
  .tuner-meter__needle {
    transition: none;
  }

  .tuner-live[data-tuning-state="tuned"] .tuner-arc__center-marker,
  .tuner-screen[data-state="no-signal"] .tuner-listening-indicator circle {
    animation: none;
  }

  .tuner-screen[data-state="no-signal"] .tuner-listening-indicator circle {
    opacity: 0.72;
    transform: none;
  }

  :where(#metronomeScreen) .metronome-pulse__halo,
  :where(#metronomeScreen) .metronome-beats span {
    transition: none;
  }
}

.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: 136px;
    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;
  }

  .tuner-heading {
    margin-top: 14px;
  }

  :where(#metronomeScreen) .metronome-heading {
    margin-top: 14px;
  }

  .tuner-surface {
    border-radius: 20px;
  }

  .tuner-screen[data-state="starting"] .tuner-surface,
  .tuner-screen[data-state="paused"] .tuner-surface,
  .tuner-screen[data-state="no-signal"] .tuner-surface,
  .tuner-screen[data-state="low"] .tuner-surface,
  .tuner-screen[data-state="tuned"] .tuner-surface,
  .tuner-screen[data-state="high"] .tuner-surface {
    margin-inline: -13px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  :where(#metronomeScreen) .metronome-surface {
    min-height: max(570px, calc(100dvh - 175px));
    align-content: start;
    margin-inline: -13px;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  :where(#metronomeScreen) .metronome-pulse {
    width: 126px;
  }

  :where(#metronomeScreen) .metronome-status {
    margin-top: 4px;
  }

  :where(#metronomeScreen) .metronome-beats {
    margin-top: 4px;
  }

  :where(#metronomeScreen) .metronome-bpm-control {
    grid-template-columns: 44px minmax(112px, 1fr) 44px;
    gap: 9px;
    margin-top: 10px;
  }

  :where(#metronomeScreen) .metronome-volume-control {
    margin-top: 10px;
    padding-top: 10px;
  }

  :where(#metronomeScreen) .metronome-signatures {
    margin-top: 12px;
  }

  :where(#metronomeScreen) .metronome-actions {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  :where(#metronomeScreen) .metronome-toggle-button {
    grid-row: 1;
  }

  .tuner-intro,
  .tuner-live {
    min-height: min(480px, calc(100dvh - 190px));
    padding: 24px 16px;
  }

  .tuner-live {
    min-height: max(510px, calc(100dvh - 175px));
    padding: 18px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .tuner-note strong {
    font-size: clamp(6.1rem, 30vw, 7.8rem);
  }

  .tuner-live[data-tuning-state="no-signal"] .tuner-note strong {
    font-size: 3.8rem;
  }

  .tuner-status {
    margin-top: 30px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .tuner-intro,
  .tuner-live {
    min-height: 0;
    padding-block: 22px;
  }

  .tuner-note strong {
    font-size: 4.5rem;
  }

  .tuner-meter {
    width: min(100%, 420px);
  }

  .tuner-status {
    margin-top: 12px;
  }
}

/* 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: 8px;
  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: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-v2.png") right center / 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.official-repertoire-card--owned {
  min-height: 340px;
}

.official-repertoire-card--owned .official-repertoire-card__count {
  margin-top: 16px;
  color: #dff9ff;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.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--owned .official-repertoire-detail__heading {
  display: block;
}

.official-repertoire-detail--owned .official-repertoire-detail__meta > span {
  display: inline-flex;
  color: var(--brand-blue-ink);
  background: #e2f7fd;
  border: 1px solid #bce9f5;
}

.official-repertoire-detail--owned .official-repertoire-content {
  margin-top: 24px;
}

.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;
}

/* Experiência rústica-premium restrita aos repertórios oficiais já adquiridos. */
.official-repertoire-card--hero.official-repertoire-card--owned {
  min-height: 380px;
  padding: clamp(24px, 6vw, 32px);
  background:
    linear-gradient(96deg, rgba(5, 13, 24, 0.99) 0%, rgba(7, 24, 39, 0.96) 52%, rgba(10, 23, 32, 0.62) 100%),
    url("./assets/repertoires/modao-card-bg-v2.png") right center / cover no-repeat;
  border: 1px solid rgba(48, 137, 172, 0.66);
  border-radius: 16px;
  box-shadow:
    0 18px 38px rgba(1, 12, 24, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.official-repertoire-card--owned .official-repertoire-card__top {
  align-items: flex-start;
}

.official-repertoire-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.official-repertoire-card--owned .official-repertoire-status--owned {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-left: 3px solid #13a8d4;
  border-radius: 4px;
  color: #f1f7f8;
  background: rgba(9, 25, 39, 0.82);
  border-top-color: rgba(134, 178, 194, 0.3);
  border-right-color: rgba(134, 178, 194, 0.3);
  border-bottom-color: rgba(134, 178, 194, 0.3);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.official-repertoire-card__access-badge {
  display: inline-flex;
  align-items: center;
  color: #d2e3e8;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.official-repertoire-card__access-badge::before {
  margin-right: 6px;
  color: #33b5d6;
  content: "✓";
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

.official-repertoire-card--owned .official-repertoire-card__copy {
  margin-block: 24px 26px;
}

.official-repertoire-card--owned .official-repertoire-card__category {
  display: none;
}

.official-repertoire-card--owned h2 {
  max-width: 24rem;
  font-family: inherit;
  font-size: clamp(2rem, 9vw, 3.15rem);
  font-weight: 880;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.official-repertoire-card--owned .official-repertoire-card__count {
  margin-top: 18px;
  color: #f0f3f1;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.official-repertoire-card__owned-message {
  max-width: 28rem;
  margin: 10px 0 0;
  color: #bac8cc;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
}

.official-repertoire-card--owned .official-repertoire-card__action {
  width: min(100%, 300px);
  min-height: 50px;
  color: #fff;
  background: #087bac;
  border-color: #1593bd;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 8, 18, 0.28);
}

.official-repertoire-card--owned .official-repertoire-card__action:hover {
  color: #fff;
  background: #0690c5;
  border-color: #26a9cf;
}

.official-repertoire-detail--owned .official-repertoire-detail__heading {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  margin-bottom: 28px;
  padding: clamp(24px, 6vw, 34px);
  color: #f6f7f4;
  background: linear-gradient(112deg, #111a23 0%, #0a2638 100%);
  border-color: #264759;
  border-radius: 12px;
  box-shadow:
    0 14px 30px rgba(0, 18, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.official-repertoire-detail--owned .official-repertoire-detail__heading::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: #13a8d4;
  content: "";
}

.official-repertoire-detail--owned .official-repertoire-detail__meta {
  margin-bottom: 14px;
}

.official-repertoire-detail--owned .official-repertoire-detail__meta > span {
  min-height: 25px;
  align-items: center;
  padding: 5px 8px;
  color: #dff7fb;
  background: rgba(0, 0, 0, 0.14);
  border-color: rgba(86, 181, 207, 0.46);
  border-radius: 4px;
  box-shadow: none;
}

.official-repertoire-detail--owned .official-repertoire-detail__eyebrow {
  display: none;
}

.official-repertoire-detail--owned .official-repertoire-detail__heading h1 {
  max-width: 42rem;
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  font-weight: 880;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.official-repertoire-detail--owned #officialRepertoireDetailDescription {
  display: block;
  max-width: 34rem;
  margin-top: 13px;
  color: #bccbd0;
  font-size: 0.92rem;
  font-weight: 650;
}

.official-repertoire-detail--owned .official-repertoire-detail__count {
  margin-top: 16px !important;
  padding: 0;
  color: #eff4f3 !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.official-repertoire-detail--owned .official-repertoire-content {
  margin-top: 0;
}

.official-repertoire-detail--owned .official-repertoire-section-heading {
  display: none;
}

.official-repertoire-detail--owned .official-repertoire-blocks {
  gap: 11px;
}

.official-repertoire-detail--owned .official-repertoire-block--available {
  background: #fff;
  border-color: #d6dfe2;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(4, 28, 43, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.official-repertoire-detail--owned .official-repertoire-block--available:hover {
  border-color: #adc0c8;
  box-shadow: 0 4px 10px rgba(4, 28, 43, 0.065);
}

.official-repertoire-detail--owned .official-repertoire-block--available > summary {
  min-height: 72px;
  padding: 14px 16px;
  background: #f5f7f7;
}

.official-repertoire-detail--owned details.official-repertoire-block--available:not([open]) > summary {
  min-height: 58px;
  padding-block: 9px;
}

.official-repertoire-detail--owned details.official-repertoire-block--available:not([open]) .official-repertoire-block__copy p {
  margin-top: 3px;
}

.official-repertoire-detail--owned .official-repertoire-block__copy h3 {
  color: #183443;
  font-size: 0.98rem;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.official-repertoire-detail--owned .official-repertoire-block__copy p {
  margin-top: 5px;
  color: #667b85;
  font-weight: 680;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] {
  border-color: #2698ba;
  box-shadow:
    0 9px 22px rgba(3, 31, 48, 0.12),
    inset 4px 0 0 #18a9d1;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] > summary {
  padding-left: 19px;
  background: linear-gradient(105deg, #142934 0%, #17394a 100%);
  border-bottom-color: #31596a;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] .official-repertoire-block__copy h3 {
  color: #fff;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] .official-repertoire-block__copy p {
  color: #b9cbd2;
}

.official-repertoire-detail--owned .official-repertoire-song {
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  min-height: 70px;
  padding: 11px 16px;
}

.official-repertoire-detail--owned .official-repertoire-song + .official-repertoire-song {
  border-top-color: #e3e9eb;
}

.official-repertoire-detail--owned .official-repertoire-song:hover {
  background: #f1f7f8;
}

.official-repertoire-detail--owned .official-repertoire-song__number {
  color: #607b88;
  font-size: 0.73rem;
  font-weight: 800;
}

.official-repertoire-detail--owned .official-repertoire-song__copy {
  gap: 4px;
}

.internet-search-related-actions {
  margin-top: 20px;
}

.internet-search-related-heading {
  display: grid;
  align-items: start;
  gap: 4px;
  margin-bottom: 14px;
}

.internet-search-related-heading p {
  white-space: normal;
  line-height: 1.4;
}

.official-repertoire-detail--owned .official-repertoire-song__copy strong {
  color: #182f3a;
  font-size: 0.92rem;
  font-weight: 760;
}

.official-repertoire-detail--owned .official-repertoire-song__copy small {
  color: #637984;
  font-size: 0.74rem;
  font-weight: 600;
}

.official-repertoire-detail--owned .official-repertoire-song__arrow {
  color: #4d7180;
}

.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;
  }
}

/* Repertórios oficiais: movimento e acabamento premium, sem alterar estrutura. */
@keyframes official-repertoire-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes official-repertoire-shimmer {
  from {
    transform: translateX(-170%) skewX(-18deg);
  }

  to {
    transform: translateX(420%) skewX(-18deg);
  }
}

@keyframes official-repertoire-check-in {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  70% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes official-repertoire-item-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes official-repertoire-list-reveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.official-repertoire-card {
  animation: official-repertoire-enter 280ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.official-repertoire-card--hero {
  box-shadow:
    0 28px 64px rgba(0, 24, 62, 0.25),
    0 3px 0 rgba(82, 210, 250, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.official-repertoire-card--hero .official-repertoire-card__value {
  border-color: rgba(110, 228, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 9px 22px rgba(0, 13, 35, 0.18);
}

.official-repertoire-card--hero .official-repertoire-card__value strong {
  font-weight: 790;
  letter-spacing: -0.01em;
}

.official-repertoire-card__action,
.official-repertoire-unlock button,
.official-repertoire-song {
  -webkit-tap-highlight-color: transparent;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 150ms ease;
}

.official-repertoire-card--hero .official-repertoire-card__action {
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 16px 34px rgba(0, 55, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.official-repertoire-card--hero .official-repertoire-card__action > span {
  position: relative;
  z-index: 1;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned):not(.official-repertoire-card--loading)
  .official-repertoire-card__action::before {
  position: absolute;
  z-index: 0;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  pointer-events: none;
  animation: official-repertoire-shimmer 820ms 300ms ease-out both;
}

.official-repertoire-card__action:active,
.official-repertoire-unlock button:active,
.official-repertoire-song:active {
  transform: translateY(1px) scale(0.99);
}

.official-repertoire-highlight {
  animation: official-repertoire-item-in 240ms ease-out both;
}

.official-repertoire-highlight:nth-child(2) {
  animation-delay: 45ms;
}

.official-repertoire-highlight:nth-child(3) {
  animation-delay: 90ms;
}

.official-repertoire-highlight:nth-child(4) {
  animation-delay: 135ms;
}

.official-repertoire-highlight strong {
  color: #082f58;
  font-size: 0.88rem;
  font-weight: 830;
}

.official-repertoire-block--locked {
  position: relative;
  color: #435f70;
  background:
    linear-gradient(90deg, rgba(8, 195, 245, 0.08), transparent 34%),
    linear-gradient(145deg, #fff, #edf4f7);
  border-color: rgba(150, 186, 202, 0.72);
  box-shadow:
    0 8px 18px rgba(3, 31, 48, 0.07),
    inset 0 1px 0 #fff;
}

.official-repertoire-block--locked .official-repertoire-block__copy h3 {
  color: #294b5d;
}

.official-repertoire-block--locked .official-repertoire-block__lock {
  color: #237b9c;
  background: rgba(221, 246, 252, 0.82);
  border: 1px solid rgba(35, 123, 156, 0.16);
  border-radius: 6px;
}

.official-repertoire-unlock {
  animation: official-repertoire-item-in 260ms 100ms ease-out both;
  box-shadow:
    0 17px 38px rgba(0, 18, 54, 0.15),
    inset 0 1px 0 #fff;
}

.official-repertoire-unlock button {
  border-color: #07578d;
  box-shadow:
    0 13px 27px rgba(0, 30, 74, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.official-repertoire-card__access-badge::before {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  background: rgba(51, 181, 214, 0.14);
  border-radius: 50%;
  animation: official-repertoire-check-in 260ms 130ms ease-out both;
}

.official-repertoire-card--owned .official-repertoire-status--owned {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 7px 16px rgba(0, 8, 18, 0.2);
}

.official-repertoire-card--owned .official-repertoire-card__action {
  min-height: 54px;
  background: linear-gradient(135deg, #0b8dbd, #0875a5);
  box-shadow:
    0 13px 28px rgba(0, 8, 18, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.official-repertoire-detail--owned .official-repertoire-block--available {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.official-repertoire-detail--owned .official-repertoire-block--available > summary {
  position: relative;
  padding-right: 46px;
  transition: background 180ms ease, padding 180ms ease;
}

.official-repertoire-detail--owned .official-repertoire-block--available > summary::after {
  position: absolute;
  right: 17px;
  color: #4d7180;
  content: "›";
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(0deg);
  transition: color 180ms ease, transform 200ms ease;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] > summary::after {
  color: #8de7fa;
  transform: rotate(90deg);
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open]
  > .official-repertoire-song-list {
  transform-origin: top;
  animation: official-repertoire-list-reveal 220ms ease-out both;
}

.official-repertoire-detail--owned .official-repertoire-song__number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #315c6f;
  background: #edf6f8;
  border: 1px solid #d8e8ec;
  border-radius: 9px;
}

.official-repertoire-detail--owned .official-repertoire-song:hover {
  box-shadow: inset 3px 0 0 rgba(24, 169, 209, 0.52);
}

@media (hover: hover) and (pointer: fine) {
  .official-repertoire-card--hero:hover {
    border-color: rgba(110, 228, 255, 0.9);
    box-shadow:
      0 31px 70px rgba(0, 24, 62, 0.28),
      0 3px 0 rgba(82, 210, 250, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .official-repertoire-card--owned .official-repertoire-card__action:hover {
    box-shadow:
      0 16px 31px rgba(0, 30, 74, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
  }
}

@media (max-width: 430px) {
  .official-repertoire-card--hero .official-repertoire-card__action,
  .official-repertoire-card--owned .official-repertoire-card__action,
  .official-repertoire-unlock button {
    width: 100%;
    max-width: 100%;
  }

  .official-repertoire-block--locked .official-repertoire-block__state {
    flex-shrink: 0;
  }

  .official-repertoire-detail--owned .official-repertoire-song {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    padding-inline: 12px;
  }

  .official-repertoire-detail--owned .official-repertoire-song__number {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .official-repertoire-card,
  .official-repertoire-card--hero:not(.official-repertoire-card--owned):not(.official-repertoire-card--loading)
    .official-repertoire-card__action::before,
  .official-repertoire-card__access-badge::before,
  .official-repertoire-highlight,
  .official-repertoire-unlock,
  .official-repertoire-detail--owned details.official-repertoire-block--available[open]
    > .official-repertoire-song-list {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .official-repertoire-card,
  .official-repertoire-card__action,
  .official-repertoire-card__action-arrow,
  .official-repertoire-unlock button,
  .official-repertoire-block--available,
  .official-repertoire-block--available > summary,
  .official-repertoire-block--available > summary::after,
  .official-repertoire-song {
    transition: none;
  }
}

/* Direção visual 2026 dos Repertórios Oficiais, baseada nos mockups aprovados. */
#view-repertorios {
  --modao-display-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.official-repertoires-list {
  width: min(100%, 940px);
  padding-top: 34px;
}

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

.official-repertoires-heading h1 {
  font-size: clamp(1.8rem, 7vw, 2.75rem);
  line-height: 1.08;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) {
  min-height: 490px;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 6vw, 34px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(3, 13, 28, 0.38) 0%, rgba(2, 15, 32, 0.58) 42%, rgba(2, 14, 31, 0.92) 100%),
    radial-gradient(circle at 50% 20%, transparent 0 24%, rgba(0, 11, 27, 0.35) 72%),
    url("./assets/repertoires/modao-card-bg-v2.png") center / cover no-repeat;
  border-color: rgba(191, 133, 66, 0.72);
  box-shadow:
    0 24px 55px rgba(0, 24, 62, 0.24),
    inset 0 1px 0 rgba(255, 219, 166, 0.2);
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__top {
  min-height: 0;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-status {
  display: none;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__copy {
  width: 100%;
  align-self: end;
  margin: 0 0 24px;
  text-align: center;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__category {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 7px 18px;
  color: #ffe1af;
  background: rgba(79, 44, 19, 0.68);
  border: 1px solid rgba(230, 169, 91, 0.48);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  letter-spacing: 0.12em;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) h2 {
  max-width: 11.5ch;
  margin-inline: auto;
  color: #fff0d2;
  font-family: var(--modao-display-font);
  font-size: clamp(2.35rem, 11vw, 4.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(70, 36, 13, 0.48),
    0 8px 28px rgba(0, 0, 0, 0.58);
  text-transform: uppercase;
  text-wrap: balance;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__values {
  width: 100%;
  margin-top: 30px;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__value {
  min-height: 86px;
  padding: 10px 7px;
  background: rgba(47, 25, 12, 0.68);
  border-color: rgba(218, 154, 77, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 190, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__value-icon {
  color: #f4ad52;
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__value strong {
  color: #fff8eb;
  font-size: clamp(0.63rem, 2.7vw, 0.82rem);
}

.official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__action {
  width: min(100%, 660px);
  margin-inline: auto;
  background: linear-gradient(135deg, #10cee9 0%, #078bea 100%);
  border-color: rgba(150, 237, 255, 0.82);
}

.official-repertoire-card--coming-soon {
  min-height: 250px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0 40%, rgba(255, 255, 255, 0.82) 62%, rgba(244, 249, 247, 0.38) 100%),
    url("./assets/repertoires/modao-card-bg-v2.png") 72% 48% / cover no-repeat;
  border-color: rgba(188, 166, 129, 0.44);
}

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

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

.official-repertoire-card--coming-soon h2 {
  color: #194e47;
  font-family: var(--modao-display-font);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.02;
}

.official-repertoire-card--coming-soon .official-repertoire-status {
  color: #27695e;
  background: rgba(218, 239, 231, 0.9);
}

.official-repertoire-detail {
  width: min(100%, 940px);
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading {
  display: block;
  margin: 18px 0 22px;
  padding: 2px 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__meta > span:first-child {
  display: inline-flex;
  padding: 0;
  color: #078ec5;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__eyebrow {
  display: none;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading h1 {
  max-width: none;
  margin-top: 13px;
  font-family: var(--modao-display-font);
  font-size: clamp(2rem, 8vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) #officialRepertoireDetailDescription {
  display: block;
  max-width: 40rem;
  margin-top: 14px;
  color: #536878;
  font-size: 0.94rem;
}

.official-repertoire-detail__count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__count {
  margin-top: 16px !important;
  padding: 0;
  background: transparent;
  border: 0;
}

.official-repertoire-detail__metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.official-repertoire-detail__metric-icon {
  width: 19px;
  height: 19px;
  color: #08a8d3;
}

.official-repertoire-detail__metric-separator {
  color: #8294a1;
}

.official-repertoire-video {
  padding: 0;
  overflow: hidden;
  border-color: #c8dce7;
  box-shadow: 0 16px 36px rgba(0, 34, 75, 0.12);
}

.official-repertoire-video__heading {
  padding: 20px 20px 0;
}

.official-repertoire-video__stage {
  background:
    linear-gradient(90deg, rgba(0, 20, 46, 0.52), rgba(0, 15, 36, 0.08) 58%, rgba(0, 10, 27, 0.28)),
    url("./assets/repertoires/modao-card-bg-v2.png") center / cover no-repeat;
  border: 0;
  border-radius: 18px 18px 0 0;
}

.official-repertoire-video__play {
  width: 64px;
  height: 64px;
  color: #fff;
  background: rgba(0, 40, 91, 0.82);
  border-color: rgba(70, 205, 244, 0.84);
}

.official-repertoire-video__stage > div {
  padding: 6px 12px;
  background: rgba(0, 24, 55, 0.62);
  border: 1px solid rgba(83, 211, 248, 0.42);
  border-radius: 10px;
  backdrop-filter: blur(7px);
}

.official-repertoire-highlights {
  gap: 10px;
}

.official-repertoire-highlight {
  min-height: 104px;
  justify-items: center;
  padding: 14px 9px;
  text-align: center;
  background: #fff;
  border-color: #d8e4e9;
}

.official-repertoire-highlight__icon {
  grid-row: auto;
  width: 38px;
  height: 38px;
  color: #069ccc !important;
  background: #eaf9fd;
}

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

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

.official-repertoire-section-heading h2 {
  max-width: 36rem;
  font-size: clamp(1.15rem, 4.8vw, 1.45rem);
}

.official-repertoire-block__heading {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  min-height: 76px;
  justify-content: normal;
  padding: 12px 15px;
}

.official-repertoire-block__number {
  color: #3c566d;
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.official-repertoire-block--preview .official-repertoire-block__number,
.official-repertoire-detail--owned details[open] .official-repertoire-block__number {
  color: #08acd3;
}

.official-repertoire-block--locked {
  animation: official-repertoire-item-in 240ms ease-out both;
}

.official-repertoire-block--locked:nth-child(3) {
  animation-delay: 45ms;
}

.official-repertoire-block--locked:nth-child(4) {
  animation-delay: 90ms;
}

.official-repertoire-block-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  text-align: left;
  border-style: dashed;
}

.official-repertoire-block-summary::before {
  grid-row: 1 / 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: center;
  color: #688091;
  background: #e6eef2;
  border-radius: 12px;
  content: "🔒";
  font-size: 1rem;
}

.official-repertoire-block-summary p {
  margin: 4px 0 0;
}

.official-repertoire-unlock {
  background: linear-gradient(135deg, #edfbff, #fff);
}

.official-repertoire-unlock button {
  background: linear-gradient(135deg, #08cce8, #087ee1);
  border-color: #4bcfec;
}

.official-repertoire-detail--owned .official-repertoire-detail__heading {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 42px);
  background:
    linear-gradient(90deg, rgba(0, 20, 50, 0.98) 0%, rgba(0, 30, 67, 0.9) 52%, rgba(0, 20, 48, 0.34) 100%),
    url("./assets/repertoires/modao-card-bg-v2.png") right center / cover no-repeat;
  border-color: rgba(50, 196, 232, 0.58);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(0, 25, 60, 0.22);
}

.official-repertoire-detail--owned .official-repertoire-detail__heading::before {
  width: 3px;
  background: #0cc7e8;
}

.official-repertoire-detail--owned .official-repertoire-detail__meta {
  gap: 10px;
  margin-bottom: 22px;
}

.official-repertoire-detail--owned .official-repertoire-detail__meta > span:first-child {
  padding: 8px 16px;
  color: #5fe5ff;
  border-color: rgba(41, 211, 244, 0.66);
  border-radius: 999px;
}

.official-repertoire-detail__access {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #55ddf7 !important;
  background: transparent !important;
  border: 0 !important;
}

.official-repertoire-detail__access[hidden],
.official-repertoire-detail__start[hidden] {
  display: none !important;
}

.official-repertoire-detail__access::before {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "✓";
  animation: official-repertoire-check-in 260ms 130ms ease-out both;
}

.official-repertoire-detail--owned .official-repertoire-detail__heading h1 {
  max-width: 39rem;
  font-family: var(--modao-display-font);
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 0.98;
}

.official-repertoire-detail--owned .official-repertoire-detail__count {
  gap: 9px;
  color: #eefaff !important;
}

.official-repertoire-detail--owned .official-repertoire-detail__metric-icon {
  color: #4de0f8;
}

.official-repertoire-detail__start {
  display: inline-flex;
  width: min(100%, 390px);
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 26px;
  color: #fff;
  background: linear-gradient(135deg, #12d2e9, #08a7e6);
  border: 1px solid #63e7f8;
  border-radius: 15px;
  box-shadow: 0 14px 30px rgba(0, 10, 35, 0.28);
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 150ms ease;
}

.official-repertoire-detail__start:active {
  transform: translateY(1px) scale(0.99);
}

.official-repertoire-detail--owned .official-repertoire-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 2px 16px;
}

.official-repertoire-detail--owned .official-repertoire-section-heading p {
  display: none;
}

.official-repertoire-detail--owned .official-repertoire-section-heading h2 {
  font-size: 1.35rem;
}

.official-repertoire-detail--owned .official-repertoire-section-heading > span {
  margin: 0;
  color: #728494;
  font-size: 0.82rem;
  font-weight: 700;
}

.official-repertoire-detail--owned .official-repertoire-block--available {
  border-color: #d8e3e8;
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(3, 31, 48, 0.07);
}

.official-repertoire-detail--owned .official-repertoire-block--available > summary,
.official-repertoire-detail--owned details.official-repertoire-block--available:not([open]) > summary {
  min-height: 78px;
  padding: 13px 50px 13px 16px;
  background: linear-gradient(145deg, #fff, #f8fafb);
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] {
  border-color: #20b6d9;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(3, 65, 91, 0.12);
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] > summary {
  padding-left: 16px;
  background: linear-gradient(105deg, #f3fdff, #fff);
  border-bottom-color: #bdeaf3;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] .official-repertoire-block__copy h3,
.official-repertoire-detail--owned details.official-repertoire-block--available[open] .official-repertoire-block__copy p {
  color: #14384a;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] .official-repertoire-block__copy p {
  color: #6a808d;
}

.official-repertoire-detail--owned .official-repertoire-block--available > summary::after {
  color: #3a5367;
}

.official-repertoire-detail--owned details.official-repertoire-block--available[open] > summary::after {
  color: #04a9ce;
}

.official-repertoire-detail--owned .official-repertoire-song__number {
  color: #08a6cd;
  background: transparent;
  border: 0;
}

@media (min-width: 700px) {
  .official-repertoire-card--hero:not(.official-repertoire-card--owned) {
    min-height: 620px;
    padding-inline: 52px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__copy {
    margin-bottom: 34px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__values {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .official-repertoire-video__stage {
    min-height: 390px;
  }
}

@media (max-width: 699px) {
  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading {
    margin-top: 12px;
  }

  .official-repertoire-video__heading {
    padding: 17px 17px 0;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__heading {
    min-height: 390px;
  }
}

@media (max-width: 379px) {
  .official-repertoire-card--hero:not(.official-repertoire-card--owned) {
    min-height: 535px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__value {
    min-height: 64px;
  }

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

  .official-repertoire-detail__count {
    column-gap: 6px;
    font-size: 0.75rem;
  }

  .official-repertoire-detail__metric-separator {
    display: none;
  }

  .official-repertoire-block__heading {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .official-repertoire-block__number {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .official-repertoire-block--locked,
  .official-repertoire-detail__access::before {
    animation: none;
  }

  .official-repertoire-detail__start {
    transition: none;
  }
}

/* Segunda passada visual dos Repertórios Oficiais: composição fiel aos mockups. */
#view-repertorios {
  --modao-display-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 699px) {
  body:has(#view-repertorios:not([hidden])) .app-main {
    padding-inline: 23px;
  }

  .official-repertoires-list {
    padding-top: 30px;
  }

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

  .official-repertoires-heading h1 {
    max-width: 330px;
    font-size: clamp(1.58rem, 7vw, 1.75rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .official-repertoires-heading p {
    margin-top: 7px;
    font-size: 0.96rem;
    line-height: 1.35;
  }

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

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) {
    min-height: 455px;
    padding: 22px 16px 18px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(3, 12, 26, 0.34) 0%, rgba(2, 13, 29, 0.3) 38%, rgba(2, 12, 27, 0.84) 100%),
      linear-gradient(90deg, rgba(4, 12, 24, 0.18), transparent 62%),
      url("./assets/repertoires/modao-card-bg-v2.png") center / cover no-repeat;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__copy {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-self: stretch;
    justify-content: space-between;
    margin: 0 0 13px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__category {
    align-self: center;
    margin-bottom: 14px;
    padding: 7px 18px;
    font-size: 0.68rem;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) h2 {
    max-width: 10.5ch;
    font-size: clamp(2.62rem, 11.8vw, 3rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__values {
    gap: 5px;
    margin-top: auto;
    padding-top: 16px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__value {
    min-height: 76px;
    padding: 8px 4px;
    border-radius: 13px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__value-icon {
    width: 22px;
    height: 22px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__value strong {
    font-size: clamp(0.56rem, 2.35vw, 0.65rem);
    line-height: 1.15;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__action {
    min-height: 56px;
    border-radius: 14px;
    font-size: 1.04rem;
  }

  .official-repertoire-card--coming-soon {
    min-height: 196px;
    padding: 20px;
    border-radius: 23px;
  }

  .official-repertoire-card--coming-soon .official-repertoire-card__copy {
    max-width: 64%;
    margin-block: 8px 0;
  }

  .official-repertoire-card--coming-soon h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    line-height: 1.02;
  }

  .official-repertoire-card--coming-soon .official-repertoire-card__description {
    margin-top: 10px;
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .official-repertoire-detail {
    padding-top: 4px;
  }

  .official-repertoire-detail > .repertoire-back {
    margin-left: -6px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading {
    margin: 8px 0 19px;
    padding: 0;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__meta > span:first-child {
    font-size: 0.7rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading h1 {
    margin-top: 10px;
    font-size: clamp(2.05rem, 9.5vw, 2.45rem);
    line-height: 0.96;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) #officialRepertoireDetailDescription {
    margin-top: 12px;
    font-size: 0.94rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__count {
    gap: 5px;
    margin-top: 13px !important;
    font-size: 0.72rem;
  }

  .official-repertoire-detail__metric {
    gap: 4px;
  }

  .official-repertoire-detail__metric-icon {
    width: 16px;
    height: 16px;
  }

  .official-repertoire-video {
    margin-bottom: 18px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .official-repertoire-video__stage {
    min-height: auto;
    border: 1px solid rgba(71, 183, 220, 0.45);
    border-radius: 19px;
    box-shadow: 0 13px 28px rgba(0, 28, 60, 0.17);
  }

  .official-repertoire-video__play {
    width: 58px;
    height: 58px;
  }

  .official-repertoire-highlights {
    gap: 8px;
    margin-bottom: 28px;
  }

  .official-repertoire-highlight {
    min-height: 92px;
    padding: 11px 7px;
    border-radius: 15px;
  }

  .official-repertoire-highlight__icon {
    width: 32px;
    height: 32px;
  }

  .official-repertoire-highlight strong {
    font-size: 0.74rem;
    line-height: 1.18;
  }

  .official-repertoire-highlight > span:not(.official-repertoire-highlight__icon) {
    display: none;
  }

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

  .official-repertoire-section-heading p {
    display: none;
  }

  .official-repertoire-section-heading h2 {
    font-size: 1.2rem;
    line-height: 1.14;
  }

  .official-repertoire-block__heading {
    min-height: 65px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .official-repertoire-block__number {
    font-size: 1.45rem;
  }

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

  .official-repertoire-block--locked .official-repertoire-block__state {
    width: 30px;
    height: 30px;
    overflow: hidden;
    justify-content: center;
    padding: 0;
    color: transparent;
    border-radius: 9px;
  }

  .official-repertoire-block--locked .official-repertoire-block__lock {
    flex: 0 0 auto;
    color: #237b9c;
  }

  .official-repertoire-block-summary {
    margin-top: 10px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .official-repertoire-block-summary p {
    font-size: 0.7rem;
  }

  .official-repertoire-value {
    display: block;
    margin: 3px 2px 11px;
    padding: 0;
    color: var(--brand-navy);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .official-repertoire-value h2 {
    color: var(--brand-navy);
    font-size: 1rem;
    line-height: 1.35;
  }

  .official-repertoire-value p {
    margin-top: 8px;
    color: #667b8b;
    font-size: 0.78rem;
  }

  .official-repertoire-unlock {
    display: block;
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .official-repertoire-unlock > div {
    display: none;
  }

  .official-repertoire-unlock button {
    min-height: 56px;
    font-size: 0.96rem;
    border-radius: 15px;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__heading {
    min-height: 350px;
    margin: 12px 0 24px;
    padding: 28px 24px;
    justify-content: flex-end;
    border-radius: 23px;
    background:
      linear-gradient(90deg, rgba(0, 20, 50, 0.96) 0%, rgba(0, 28, 62, 0.82) 58%, rgba(0, 18, 44, 0.3) 100%),
      linear-gradient(0deg, rgba(0, 19, 46, 0.72), transparent 62%),
      url("./assets/repertoires/modao-card-bg-v2.png") 64% center / cover no-repeat;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__meta {
    margin-bottom: 15px;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__meta > span:first-child {
    padding: 7px 14px;
    font-size: 0.66rem;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__access {
    width: fit-content;
    margin-top: 15px;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__heading h1 {
    font-family: inherit;
    font-size: clamp(2.1rem, 9.4vw, 2.65rem);
  }

  .official-repertoire-detail--owned #officialRepertoireDetailDescription {
    font-size: 0.92rem;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__count {
    font-size: 0.7rem;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__start {
    width: 100%;
    margin-top: 20px;
  }

  .official-repertoire-detail--owned .official-repertoire-section-heading {
    align-items: center;
    margin-bottom: 13px;
  }

  .official-repertoire-detail--owned .official-repertoire-section-heading h2 {
    font-size: 1.18rem;
  }

  .official-repertoire-detail--owned .official-repertoire-section-heading > span {
    font-size: 0.72rem;
  }

  .official-repertoire-detail--owned .official-repertoire-block--available > summary,
  .official-repertoire-detail--owned details.official-repertoire-block--available:not([open]) > summary {
    min-height: 68px;
    padding-block: 11px;
  }
}

@media (max-width: 339px) {
  body:has(#view-repertorios:not([hidden])) .app-main {
    padding-inline: 16px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) {
    min-height: 500px;
  }

  .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .official-repertoire-card,
  .official-repertoire-highlight,
  .official-repertoire-unlock,
  .official-repertoire-detail--owned .official-repertoire-song-list {
    animation: none;
  }
}

/* Vitrine estrita: proporções do mockup em 390 × 844, sem alcançar o detalhe. */
@media (max-width: 699px) {
  body:has(#officialRepertoiresListView:not([hidden])) .app-header__inner {
    min-height: 61px;
    padding-block: 9px;
  }

  body:has(#officialRepertoiresListView:not([hidden])) .app-header__logo {
    width: 112px;
  }

  body:has(#officialRepertoiresListView:not([hidden])) .app-main {
    padding-top: 8px;
    padding-inline: 20px;
  }

  #officialRepertoiresListView:not([hidden]) {
    padding-top: 0;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading {
    margin-bottom: 18px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading > div {
    width: 100%;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading h1 {
    max-width: none;
    font-size: 1.36rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading p {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.3;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-grid {
    gap: 13px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned) {
    min-height: 0;
    height: 322px;
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px;
    border-color: rgba(225, 157, 78, 0.82);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(18, 9, 3, 0.2) 0%, rgba(18, 8, 2, 0.1) 40%, rgba(13, 6, 2, 0.76) 100%),
      radial-gradient(circle at 50% 32%, rgba(104, 53, 20, 0.04), rgba(13, 6, 2, 0.2) 76%),
      url("./assets/repertoires/modao-card-bg-v4.png") center / cover no-repeat;
    box-shadow:
      0 15px 30px rgba(42, 22, 6, 0.2),
      inset 0 1px 0 rgba(255, 228, 181, 0.28);
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__top {
    display: none;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__copy {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    align-self: stretch;
    margin: 0;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__category {
    min-height: 23px;
    align-self: center;
    margin: 0 auto 11px;
    padding: 5px 14px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    h2 {
    max-width: 10.2ch;
    margin-inline: auto;
    font-family: var(--modao-display-font);
    color: #f6e4bd;
    font-size: 2.68rem;
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.018em;
    -webkit-text-stroke: 0.3px rgba(92, 48, 18, 0.7);
    text-shadow:
      0 1px 0 rgba(255, 247, 221, 0.34),
      0 2px 0 rgba(66, 31, 10, 0.72),
      0 7px 18px rgba(0, 0, 0, 0.62);
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line {
    display: block;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line--intro {
    font-size: 0.7em;
    line-height: 1.04;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line--main {
    font-size: 1.1em;
    line-height: 0.88;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    h2::after {
    display: block;
    width: 204px;
    height: 30px;
    margin: 3px auto 0;
    background: url("./assets/repertoires/modao-title-flourish.svg") center / contain no-repeat;
    content: "";
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__values {
    width: 100%;
    height: 76px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
    padding-top: 0;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__value {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 28px minmax(25px, auto);
    justify-items: center;
    gap: 4px;
    padding: 8px 3px 7px;
    background:
      linear-gradient(180deg, rgba(63, 34, 16, 0.86), rgba(39, 20, 10, 0.9)),
      radial-gradient(circle at 50% 0, rgba(238, 165, 75, 0.16), transparent 55%);
    border-color: rgba(230, 159, 76, 0.9);
    border-radius: 16px;
    box-shadow:
      inset 0 1px 0 rgba(255, 225, 179, 0.18),
      0 5px 12px rgba(0, 0, 0, 0.28);
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__value-icon {
    width: 27px;
    height: 27px;
    color: #f2aa4e;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.42));
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__value strong {
    align-self: start;
    color: #fff9ec;
    font-size: 0.6rem;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__footer {
    width: 100%;
    margin-top: 12px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__action {
    min-height: 43px;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--coming-soon {
    min-height: 136px;
    height: 136px;
    padding: 16px 18px;
    border-radius: 16px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0 42%, rgba(255, 255, 255, 0.82) 64%, rgba(244, 249, 247, 0.28) 100%),
      url("./assets/repertoires/modao-card-bg-v2.png") 76% 64% / cover no-repeat;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--coming-soon .official-repertoire-card__top {
    position: absolute;
    top: 13px;
    right: 13px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--coming-soon .official-repertoire-status {
    padding: 5px 9px;
    font-size: 0.58rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--coming-soon .official-repertoire-card__copy {
    max-width: 61%;
    align-self: center;
    margin: 0;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--coming-soon .official-repertoire-card__category {
    margin-bottom: 5px;
    font-size: 0.63rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--coming-soon h2 {
    font-size: 1.35rem;
    line-height: 1;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--coming-soon .official-repertoire-card__description {
    margin-top: 7px;
    font-size: 0.62rem;
    line-height: 1.25;
  }
}

@media (min-width: 700px) {
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero.official-repertoire-card--owned {
    min-height: 430px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 28px 30px 30px;
    background:
      linear-gradient(90deg, rgba(1, 20, 40, 0.99) 0%, rgba(2, 27, 50, 0.95) 45%, rgba(3, 24, 43, 0.48) 70%, rgba(2, 15, 28, 0.08) 100%),
      linear-gradient(180deg, rgba(1, 16, 34, 0.02), rgba(1, 13, 27, 0.62)),
      url("./assets/repertoires/modao-card-bg-v2.png") right center / cover no-repeat;
    border-color: #13c8f5;
    border-radius: 22px;
    box-shadow:
      0 24px 48px rgba(0, 31, 62, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.82),
      0 0 0 2px rgba(12, 190, 239, 0.9),
      0 0 28px rgba(8, 174, 225, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 0 42px rgba(0, 9, 25, 0.2);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero.official-repertoire-card--owned::before {
    inset: 0;
    width: auto;
    height: auto;
    display: block;
    background:
      radial-gradient(circle at 84% 17%, rgba(255, 184, 74, 0.11), transparent 25%),
      radial-gradient(circle at 18% 84%, rgba(0, 126, 191, 0.11), transparent 34%);
    border: 1px solid rgba(191, 239, 255, 0.22);
    border-radius: inherit;
    filter: none;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__top {
    align-items: center;
    justify-content: flex-start;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__badges {
    flex-wrap: nowrap;
    gap: 20px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-status--owned {
    min-height: 34px;
    gap: 8px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(135deg, #10bde7, #087fc4);
    border: 1px solid #48d7fa;
    border-radius: 999px;
    box-shadow:
      0 10px 22px rgba(0, 77, 132, 0.34),
      0 0 18px rgba(11, 194, 239, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-badge-icon {
    width: 18px;
    height: 18px;
    color: #fff;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__access-badge {
    color: #edf8fc;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__access-badge::before {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    margin-right: 9px;
    color: #14d1f7;
    background: rgba(2, 27, 51, 0.86);
    border: 1px solid #58dcfa;
    box-shadow:
      0 0 0 3px rgba(9, 196, 239, 0.08),
      0 0 15px rgba(9, 196, 239, 0.2);
    font-size: 1rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__copy {
    width: min(100%, 560px);
    align-self: center;
    margin: 20px 0 18px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-ornament {
    width: 280px;
    height: 36px;
    filter:
      drop-shadow(0 0 4px rgba(255, 224, 133, 0.62))
      drop-shadow(0 0 10px rgba(244, 174, 53, 0.18));
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned h2 {
    max-width: 9.2ch;
    margin-top: 5px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5.4vw, 3.45rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.045em;
    -webkit-text-stroke: 0.25px rgba(255, 255, 255, 0.3);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12),
      0 6px 24px rgba(0, 0, 0, 0.56);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__product-line {
    display: block;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-achievement {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    margin-top: 14px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-achievement-icon {
    width: 42px;
    height: 42px;
    padding: 9px;
    box-shadow:
      0 0 0 4px rgba(8, 198, 243, 0.12),
      0 0 22px rgba(8, 198, 243, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-achievement-copy > strong {
    font-size: 0.88rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-message {
    margin-top: 2px;
    font-size: 0.92rem;
    line-height: 1.25;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metrics {
    width: min(100%, 500px);
    margin-top: 16px;
    padding-top: 14px;
    border-top-color: rgba(241, 189, 75, 0.64);
    box-shadow: 0 -6px 14px -11px rgba(255, 215, 114, 0.9);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 14px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric:first-child {
    padding-left: 0;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric-icon {
    width: 28px;
    height: 28px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric-copy strong {
    font-size: 1.55rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric-copy small {
    margin-top: 3px;
    font-size: 0.78rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__footer {
    width: min(100%, 560px);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__action {
    position: relative;
    width: min(100%, 500px);
    max-width: none;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: linear-gradient(135deg, #11c8eb, #078fd7);
    border-color: #38d8f7;
    border-radius: 12px;
    box-shadow:
      0 15px 30px rgba(0, 58, 104, 0.36),
      0 0 20px rgba(7, 188, 232, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      inset 0 -1px 0 rgba(0, 67, 119, 0.18);
    font-size: 1.05rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__action-play {
    position: static !important;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
  }

}

@media (min-width: 1100px) {
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero.official-repertoire-card--owned {
    min-height: 450px;
    padding: 32px 36px 34px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__copy {
    width: min(58%, 590px);
    margin-block: 22px 20px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__footer {
    width: min(58%, 590px);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__action {
    width: min(100%, 520px);
  }
}

@media (max-width: 350px) {
  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading h1 {
    font-size: 1.2rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__value strong {
    font-size: 0.54rem;
  }
}

/* Vitrine do repertório adquirido: celebra a conquista sem alcançar o detalhe interno. */
.official-repertoire-card--owned .official-repertoire-card__owned-badge-icon,
.official-repertoire-card--owned .official-repertoire-card__owned-achievement-icon,
.official-repertoire-card--owned .official-repertoire-card__owned-metric-icon,
.official-repertoire-card--owned .official-repertoire-card__action-play {
  display: grid;
  place-items: center;
}

.official-repertoire-card--owned .official-repertoire-card__owned-badge-icon svg,
.official-repertoire-card--owned .official-repertoire-card__owned-achievement-icon svg,
.official-repertoire-card--owned .official-repertoire-card__owned-metric-icon svg,
.official-repertoire-card--owned .official-repertoire-card__action-play svg {
  width: 100%;
  height: 100%;
}

.official-repertoire-card--owned .official-repertoire-card__owned-ornament {
  display: block;
  width: min(100%, 280px);
  height: 36px;
  background: url("./assets/repertoires/modao-owned-title-ornament.svg") left center / contain no-repeat;
  filter: drop-shadow(0 0 7px rgba(247, 196, 82, 0.28));
}

.official-repertoire-card--owned .official-repertoire-card__count {
  display: none;
}

.official-repertoire-card--owned .official-repertoire-card__owned-achievement {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.official-repertoire-card--owned .official-repertoire-card__owned-achievement-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #fff;
  background: rgba(2, 25, 48, 0.9);
  border: 1px solid #08c6f3;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(8, 198, 243, 0.12),
    0 0 16px rgba(8, 198, 243, 0.38);
}

.official-repertoire-card--owned .official-repertoire-card__owned-achievement-copy > strong {
  color: #f6c45d;
  font-size: 0.9rem;
  line-height: 1.2;
}

.official-repertoire-card--owned .official-repertoire-card__owned-message {
  margin: 2px 0 0;
  color: #edf6fb;
  font-weight: 520;
}

.official-repertoire-card--owned .official-repertoire-card__owned-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(241, 189, 75, 0.48);
}

.official-repertoire-card--owned .official-repertoire-card__owned-metric {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.official-repertoire-card--owned .official-repertoire-card__owned-metric:not(:last-child)::after {
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: rgba(172, 210, 228, 0.32);
  content: "";
}

.official-repertoire-card--owned .official-repertoire-card__owned-metric-icon {
  width: 26px;
  height: 26px;
  color: #09c7f5;
}

.official-repertoire-card--owned .official-repertoire-card__owned-metric-copy {
  display: grid;
  min-width: 0;
}

.official-repertoire-card--owned .official-repertoire-card__owned-metric-copy strong {
  color: #fff;
  font-size: 1.42rem;
  line-height: 1;
}

.official-repertoire-card--owned .official-repertoire-card__owned-metric-copy small {
  margin-top: 3px;
  color: #e7f1f7;
  font-size: 0.75rem;
  line-height: 1;
}

.official-repertoire-card--owned .official-repertoire-card__action-play {
  position: absolute !important;
  left: 18px;
  width: 24px;
  height: 24px;
  color: #fff;
}

@media (max-width: 699px),
  (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero.official-repertoire-card--owned {
    min-height: 0;
    height: 350px;
    display: flex;
    flex-direction: column;
    padding: 18px 16px 38px;
    background:
      linear-gradient(90deg, rgba(1, 20, 40, 0.99) 0%, rgba(2, 27, 50, 0.94) 43%, rgba(3, 24, 43, 0.42) 68%, rgba(2, 15, 28, 0.08) 100%),
      linear-gradient(180deg, rgba(1, 16, 34, 0.03), rgba(1, 16, 34, 0.3) 70%, rgba(1, 13, 27, 0.66)),
      url("./assets/repertoires/modao-card-bg-v2.png") right center / cover no-repeat;
    border-color: #13c8f5;
    border-radius: 16px;
    box-shadow:
      0 18px 34px rgba(0, 31, 62, 0.25),
      0 0 0 1px rgba(255, 255, 255, 0.82),
      0 0 0 2px rgba(12, 190, 239, 0.92),
      0 0 22px rgba(8, 174, 225, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 0 34px rgba(0, 9, 25, 0.2);
    text-align: left;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero.official-repertoire-card--owned::before {
    inset: 0;
    width: auto;
    height: auto;
    display: block;
    background:
      radial-gradient(circle at 83% 15%, rgba(255, 184, 74, 0.1), transparent 25%),
      radial-gradient(circle at 18% 82%, rgba(0, 126, 191, 0.1), transparent 34%);
    border: 1px solid rgba(191, 239, 255, 0.22);
    border-radius: inherit;
    filter: none;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__top {
    min-height: 25px;
    align-items: center;
    justify-content: flex-start;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__badges {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 12px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-status--owned {
    min-height: 25px;
    gap: 5px;
    padding: 5px 9px;
    color: #fff;
    background: linear-gradient(135deg, #10bde7, #087fc4);
    border: 1px solid #48d7fa;
    border-radius: 999px;
    box-shadow:
      0 8px 18px rgba(0, 77, 132, 0.34),
      0 0 14px rgba(11, 194, 239, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
    font-size: 0.55rem;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-badge-icon {
    width: 14px;
    height: 14px;
    color: #fff;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__access-badge {
    min-width: 0;
    color: #edf8fc;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__access-badge::before {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    margin-right: 7px;
    color: #14d1f7;
    background: rgba(2, 27, 51, 0.86);
    border: 1px solid #58dcfa;
    box-shadow:
      0 0 0 2px rgba(9, 196, 239, 0.08),
      0 0 12px rgba(9, 196, 239, 0.2);
    font-size: 0.84rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__copy {
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-self: stretch;
    margin: 13px 0 0;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-ornament {
    width: 190px;
    height: 25px;
    filter:
      drop-shadow(0 0 3px rgba(255, 224, 133, 0.62))
      drop-shadow(0 0 8px rgba(244, 174, 53, 0.18));
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned h2 {
    max-width: 9.2ch;
    margin-top: 4px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.34rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.045em;
    -webkit-text-stroke: 0.2px rgba(255, 255, 255, 0.3);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12),
      0 4px 18px rgba(0, 0, 0, 0.56);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__product-line {
    display: block;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-achievement {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    margin-top: 5px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-achievement-icon {
    width: 30px;
    height: 30px;
    padding: 6px;
    box-shadow:
      0 0 0 3px rgba(8, 198, 243, 0.12),
      0 0 18px rgba(8, 198, 243, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-achievement-copy > strong {
    font-size: 0.68rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-message {
    margin-top: 1px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metrics {
    width: min(100%, 225px);
    margin-top: 12px;
    padding-top: 11px;
    border-top-color: rgba(241, 189, 75, 0.64);
    box-shadow: 0 -5px 12px -10px rgba(255, 215, 114, 0.9);
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 6px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric:first-child {
    padding-left: 0;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric-icon {
    width: 20px;
    height: 20px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric-copy strong {
    font-size: 1.18rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__owned-metric-copy small {
    margin-top: 2px;
    font-size: 0.64rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__footer {
    width: 100%;
    margin-top: auto;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__action {
    position: relative;
    width: calc(100% - 10px);
    max-width: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-inline: auto;
    color: #fff;
    background: linear-gradient(135deg, #11c8eb, #078fd7);
    border-color: #38d8f7;
    border-radius: 9px;
    box-shadow:
      0 12px 24px rgba(0, 58, 104, 0.36),
      0 0 16px rgba(7, 188, 232, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      inset 0 -1px 0 rgba(0, 67, 119, 0.18);
    font-size: 0.93rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__action-play {
    position: static !important;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
  }

}

@media (max-width: 350px) {
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero.official-repertoire-card--owned {
    height: 354px;
    padding-inline: 13px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned h2 {
    font-size: 2.12rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-status--owned {
    padding-inline: 9px;
    font-size: 0.56rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__badges {
    gap: 8px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--owned .official-repertoire-card__access-badge {
    font-size: 0.66rem;
  }
}

/* Detalhe bloqueado fiel ao mockup, isolado do repertório já comprado. */
@media (max-width: 699px) {
  body:has(.official-repertoire-detail:not(.official-repertoire-detail--owned):not([hidden])) .app-header__inner {
    min-height: 61px;
    padding-block: 9px;
  }

  body:has(.official-repertoire-detail:not(.official-repertoire-detail--owned):not([hidden])) .app-header__logo {
    width: 112px;
  }

  body:has(.official-repertoire-detail:not(.official-repertoire-detail--owned):not([hidden])) .app-main {
    padding: 12px 20px calc(var(--bottom-nav-height) + 18px);
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) {
    position: relative;
    padding-top: 0;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) > .repertoire-back {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 42px;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: var(--brand-navy);
    background: #fff;
    border: 1px solid #d7e2e9;
    border-radius: 11px;
    box-shadow: 0 4px 10px rgba(0, 31, 72, 0.1);
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) > .repertoire-back > span:last-child {
    display: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .repertoire-back__icon {
    width: 20px;
    height: 20px;
    color: var(--brand-navy);
    background: transparent;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading {
    display: flex;
    margin: 0 0 12px;
    padding: 4px 0 0;
    flex-direction: column;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__meta {
    min-height: 38px;
    margin: 0 0 4px 54px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__meta > span:first-child {
    align-self: center;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading h1 {
    order: 2;
    margin-top: 0;
    font-family: inherit;
    font-size: clamp(2rem, 9.2vw, 2.45rem);
    font-weight: 880;
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__count {
    order: 3;
    gap: 8px;
    margin-top: 10px !important;
    font-size: 0.79rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) #officialRepertoireDetailDescription {
    order: 4;
    margin-top: 11px;
    font-size: 0.9rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__metric {
    gap: 5px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__metric-icon {
    width: 18px;
    height: 18px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video {
    margin-bottom: 12px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video__stage {
    aspect-ratio: 2.3 / 1;
    background:
      linear-gradient(90deg, rgba(0, 13, 31, 0.24), rgba(0, 9, 22, 0.02) 58%, rgba(0, 8, 21, 0.16)),
      url("./assets/repertoires/modao-video-poster-v2.png") center / cover no-repeat;
    border-radius: 15px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video__stage > div {
    display: contents;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video__stage strong,
  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video__stage > div span {
    position: absolute;
    z-index: 2;
    bottom: 9px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: rgba(0, 29, 65, 0.76);
    border: 1px solid rgba(29, 195, 239, 0.68);
    border-radius: 9px;
    backdrop-filter: blur(6px);
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video__stage strong {
    left: 9px;
    padding: 5px 10px;
    font-size: 0.66rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video__stage > div span {
    right: 9px;
    padding: 5px 8px;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight {
    min-height: 54px;
    align-content: center;
    gap: 3px;
    padding: 6px 3px;
    border-radius: 13px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight__icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem !important;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight strong {
    font-size: 0.56rem;
    line-height: 1.12;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-content {
    margin-bottom: 10px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-section-heading {
    display: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-blocks {
    gap: 0;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview {
    border-radius: 14px;
    box-shadow: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview > summary {
    min-height: 42px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 36px 6px 12px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview .official-repertoire-block__number,
  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview .official-repertoire-block__state {
    display: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview .official-repertoire-block__copy {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview .official-repertoire-block__copy h3 {
    font-size: 0.94rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview .official-repertoire-block__copy p {
    margin: 0;
    padding: 4px 8px;
    background: #e8f3f8;
    border-radius: 999px;
    font-size: 0.66rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song {
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    min-height: 32px;
    padding: 3px 10px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song__number {
    font-size: 0.67rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song__copy {
    gap: 1px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song__copy strong {
    font-size: 0.68rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song__copy small {
    font-size: 0.57rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song__arrow {
    display: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song__arrow::after {
    content: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block-summary {
    min-height: 46px;
    margin-top: 9px;
    padding: 7px 11px;
    grid-template-columns: 30px minmax(0, 1fr);
    border-radius: 13px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block-summary::before {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block-summary strong {
    font-size: 0.82rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block-summary p {
    margin-top: 2px;
    font-size: 0.65rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value {
    display: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock {
    margin-bottom: 10px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button {
    min-height: 50px;
    display: grid;
    place-content: center;
    gap: 2px;
    border-radius: 13px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button strong {
    font-size: 0.94rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button span {
    font-size: 0.68rem;
    font-weight: 600;
  }
}

/* Detalhe comprado fiel ao mockup, sem alcançar a experiência bloqueada. */
@media (max-width: 699px) {
  body:has(.official-repertoire-detail--owned:not([hidden])) .app-header__inner {
    min-height: 61px;
    padding-block: 9px;
  }

  body:has(.official-repertoire-detail--owned:not([hidden])) .app-header__logo {
    width: 112px;
  }

  body:has(.official-repertoire-detail--owned:not([hidden])) .app-main {
    padding: 12px 20px calc(var(--bottom-nav-height) + 18px);
  }

  .official-repertoire-detail--owned {
    padding-top: 0;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__heading {
    min-height: 260px;
    margin: 0 0 15px;
    padding: 19px 18px;
    justify-content: center;
    border-radius: 16px;
    background:
      linear-gradient(90deg, rgba(0, 20, 50, 0.97) 0%, rgba(0, 29, 65, 0.88) 55%, rgba(0, 18, 44, 0.28) 100%),
      url("./assets/repertoires/modao-card-bg-v2.png") 67% center / cover no-repeat;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__meta {
    margin-bottom: 11px;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__meta > span:first-child {
    padding: 6px 13px;
    font-size: 0.61rem;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__heading h1 {
    max-width: none;
    font-size: 1.82rem;
    line-height: 1;
    letter-spacing: -0.055em;
    white-space: nowrap;
    color: #fff;
    text-shadow: none;
    -webkit-text-stroke: 0;
  }

  .official-repertoire-detail--owned #officialRepertoireDetailDescription {
    margin-top: 10px;
    font-size: 0.8rem;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__count {
    gap: 6px;
    margin-top: 12px !important;
    font-size: 0.64rem;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__metric {
    gap: 4px;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__metric-icon {
    width: 15px;
    height: 15px;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__access {
    margin-top: 11px;
    font-size: 0.76rem;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__access::before {
    width: 18px;
    height: 18px;
  }

  .official-repertoire-detail__actions {
    display: contents;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__actions {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__start,
  .official-repertoire-detail--owned .official-repertoire-detail__lessons {
    width: 100%;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    border-radius: 11px;
    font-size: 0.72rem;
    text-decoration: none;
  }

  .official-repertoire-detail--owned .official-repertoire-detail__lessons {
    color: #fff;
    background: rgba(3, 18, 43, 0.52);
    border: 1px solid rgba(197, 221, 238, 0.5);
  }

  .official-repertoire-detail--owned .official-repertoire-detail__lessons span {
    color: #42d8f3;
    font-size: 1rem;
  }

  .official-repertoire-detail__lessons[hidden] {
    display: none !important;
  }

  .official-repertoire-detail--owned .official-repertoire-content {
    margin-bottom: 10px;
  }

  .official-repertoire-detail--owned .official-repertoire-section-heading {
    margin: 0 2px 9px;
  }

  .official-repertoire-detail--owned .official-repertoire-section-heading h2 {
    font-size: 1rem;
  }

  .official-repertoire-detail--owned .official-repertoire-section-heading > span {
    font-size: 0.66rem;
  }

  .official-repertoire-detail--owned .official-repertoire-blocks {
    gap: 8px;
  }

  .official-repertoire-detail--owned .official-repertoire-block--available {
    border-radius: 13px;
  }

  .official-repertoire-detail--owned .official-repertoire-block--available > summary,
  .official-repertoire-detail--owned details.official-repertoire-block--available:not([open]) > summary {
    min-height: 50px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 7px 36px 7px 11px;
  }

  .official-repertoire-detail--owned .official-repertoire-block__number {
    font-size: 1.55rem;
  }

  .official-repertoire-detail--owned .official-repertoire-block__copy h3 {
    font-size: 0.82rem;
  }

  .official-repertoire-detail--owned .official-repertoire-block__copy p {
    margin-top: 2px;
    font-size: 0.64rem;
  }

  .official-repertoire-detail--owned .official-repertoire-song {
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    min-height: 32px;
    padding: 3px 10px;
  }

  .official-repertoire-detail--owned .official-repertoire-song__number {
    width: auto;
    height: auto;
    color: #08a6cd;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.62rem;
  }

  .official-repertoire-detail--owned .official-repertoire-song__copy {
    gap: 0;
  }

  .official-repertoire-detail--owned .official-repertoire-song__copy strong {
    font-size: 0.68rem;
  }

  .official-repertoire-detail--owned .official-repertoire-song__copy small {
    font-size: 0.57rem;
  }

  .official-repertoire-detail--owned .official-repertoire-song__arrow {
    font-size: 0;
  }

  .official-repertoire-detail--owned .official-repertoire-song__arrow::after {
    content: "⋮";
    font-size: 1rem;
  }

  .official-repertoire-detail--owned .official-repertoire-block--available > summary::after {
    content: "⌄";
    transform: none;
  }

  .official-repertoire-detail--owned details.official-repertoire-block--available[open] > summary::after {
    content: "⌃";
    transform: none;
  }
}

/* Refinamento cirúrgico do detalhe não comprado. */
.official-repertoire-detail:not(.official-repertoire-detail--owned) > .repertoire-back {
  min-height: 40px;
  gap: 8px;
  padding: 0 13px;
  overflow: visible;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid #d3dfe6;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 31, 72, 0.08);
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .repertoire-back__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--brand-navy);
  background: transparent;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .repertoire-back__icon svg {
  width: 18px;
  height: 18px;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 112px;
  padding: 15px 10px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  background: #fff;
  border: 1px solid #dce7ec;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 30, 67, 0.055);
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight__icon {
  grid-column: 1 / -1;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #08acd3 !important;
  background: transparent;
  border-radius: 0;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight strong {
  grid-column: 1 / -1;
  width: 100%;
  font-size: 0.84rem;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value {
  display: none;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-content {
  margin-bottom: 0;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value > div {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value p {
  margin-top: 7px;
  color: #c7dcec;
  font-size: 0.88rem;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock {
  display: block;
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock > div {
  display: none;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock h2 {
  max-width: 720px;
  font-size: clamp(0.94rem, 1.35vw, 1rem);
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button {
  position: relative;
  width: 100%;
  min-height: 60px;
  overflow: hidden;
  padding: 10px 18px;
  gap: 5px;
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(0, 88, 174, 0.2);
  isolation: isolate;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button::before {
  position: absolute;
  z-index: 0;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  pointer-events: none;
  animation: official-repertoire-shimmer 820ms 300ms ease-out both;
}

.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button strong,
.official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button span {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1.25;
}

@media (max-width: 699px) {
  .official-repertoire-detail:not(.official-repertoire-detail--owned) > .repertoire-back {
    position: relative;
    inset: auto;
    width: max-content;
    min-width: 0;
    height: 40px;
    margin: 0 0 16px;
    gap: 8px;
    padding: 0 13px;
    color: #172033;
    background: #fff;
    border: 1px solid #d3dfe6;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 31, 72, 0.08);
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) > .repertoire-back > span:last-child {
    display: inline;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .repertoire-back__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--brand-navy);
    background: transparent;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading {
    width: 100%;
    margin-bottom: 18px;
    padding: 0;
    align-items: flex-start;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__meta {
    min-height: 0;
    margin: 0 0 10px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__meta > span:first-child {
    align-self: auto;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__heading h1 {
    max-width: 100%;
    font-size: clamp(1.88rem, 8.4vw, 2.3rem);
    line-height: 1.04;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__count {
    max-width: 100%;
    gap: 6px;
    margin-top: 13px !important;
    font-size: 0.7rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__metric {
    gap: 4px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-detail__metric-icon {
    width: 16px;
    height: 16px;
    margin-top: 0;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) #officialRepertoireDetailDescription {
    max-width: 100%;
    margin-top: 13px;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-video {
    margin: 0 0 18px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight {
    min-width: 0;
    min-height: 84px;
    padding: 8px 3px;
    place-content: center;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight__icon {
    width: 25px;
    height: 25px;
    margin: 0 auto;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight__icon svg {
    width: 22px;
    height: 22px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-highlight strong {
    width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(0.52rem, 2.2vw, 0.61rem);
    line-height: 1.16;
    text-align: center;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview > summary {
    min-height: 50px;
    padding: 8px 38px 8px 13px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block--preview .official-repertoire-block__copy {
    min-width: 0;
    gap: 10px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song-list {
    padding-block: 3px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-song {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 38px;
    padding: 5px 12px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-block-summary {
    margin-top: 12px;
    padding: 9px 12px;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value {
    display: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value h2 {
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-value p {
    margin-top: 6px;
    font-size: 0.75rem;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock {
    display: block;
    margin-top: 16px;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock > div {
    display: none;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock > div > p:not(.official-repertoire-price-slot) {
    margin-top: 5px;
    font-size: 0.72rem;
    line-height: 1.4;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock {
    display: block;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .official-repertoire-detail:not(.official-repertoire-detail--owned) .official-repertoire-unlock button::before {
    animation: none;
  }
}

/* Compra do Modão: bottom-sheet comercial isolado do checkout e da autenticação. */
.modao-purchase-dialog {
  width: min(500px, calc(100% - 24px));
}

.modao-purchase-dialog::backdrop {
  background: rgba(0, 17, 42, 0.72);
  backdrop-filter: blur(5px);
}

.modao-purchase-sheet {
  padding: 0;
  overflow: hidden auto;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid rgba(13, 185, 234, 0.42);
  border-radius: 24px;
  box-shadow:
    0 26px 70px rgba(0, 26, 64, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.modao-purchase-sheet__hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 138px;
  gap: 8px;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(0, 19, 49, 0.98) 0%, rgba(0, 25, 59, 0.82) 54%, rgba(0, 22, 49, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 12, 35, 0.78), transparent 70%),
    url("./assets/repertoires/modao-card-bg-v2.png") 72% 52% / cover no-repeat;
}

.modao-purchase-sheet__hero::after {
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -45px;
  width: 180px;
  height: 110px;
  background: rgba(18, 205, 247, 0.14);
  border-radius: 50%;
  filter: blur(38px);
  content: "";
}

.modao-purchase-sheet__badge {
  position: relative;
  align-self: start;
  justify-self: start;
  padding: 6px 10px;
  color: #c7f7ff;
  background: rgba(0, 44, 82, 0.68);
  border: 1px solid rgba(87, 225, 255, 0.48);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.modao-purchase-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  color: #fff;
  background: rgba(0, 19, 45, 0.58);
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.modao-purchase-sheet__close:hover {
  color: #fff;
  background: rgba(0, 44, 82, 0.86);
  border-color: #51dfff;
}

.modao-purchase-sheet__hero-copy {
  display: grid;
  grid-row: 3;
  align-self: end;
  gap: 4px;
}

.modao-purchase-sheet__hero-copy p,
.modao-purchase-sheet__hero-copy span {
  margin: 0;
}

.modao-purchase-sheet__hero-copy p {
  max-width: 16rem;
  color: #fff;
  font-family: Rockwell, "Roboto Slab", Clarendon, Georgia, serif;
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 20px rgba(0, 8, 28, 0.7);
}

.modao-purchase-sheet__hero-copy span {
  color: #d8f8ff;
  font-size: 0.76rem;
  font-weight: 680;
}

.modao-purchase-sheet__body {
  display: grid;
  gap: 15px;
  padding: 20px 22px 19px;
}

.modao-purchase-sheet__price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6eef3;
}

.modao-purchase-sheet__price strong {
  color: var(--brand-navy);
  font-size: clamp(2rem, 9vw, 2.65rem);
  font-weight: 880;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.modao-purchase-sheet__price strong small {
  font-size: 0.47em;
  letter-spacing: -0.02em;
}

.modao-purchase-sheet__price > span {
  color: #60778b;
  font-size: 0.76rem;
  font-weight: 730;
  white-space: nowrap;
}

.modao-purchase-sheet__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modao-purchase-sheet__benefits li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #263f57;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.modao-purchase-sheet__benefits li > span {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #007fae;
  background: #ddf8ff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.modao-purchase-sheet__exclusive {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  color: #123a58;
  background: linear-gradient(135deg, #eefaff, #f7fcff);
  border: 1px solid #9bdff1;
  border-radius: 14px;
}

.modao-purchase-sheet__exclusive > span {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0bc4ed, #0878ba);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(0, 135, 185, 0.23);
}

.modao-purchase-sheet__exclusive strong {
  display: block;
  font-size: 0.84rem;
}

#personalEmptyState:not([hidden]) {
  margin-top: -6px;
}

.modao-purchase-sheet__exclusive p {
  margin: 3px 0 0;
  color: #587085;
  font-size: 0.77rem;
  line-height: 1.4;
}

.modao-purchase-sheet__status,
.modao-purchase-sheet__secure {
  margin: 0;
  text-align: center;
}

.modao-purchase-sheet__action {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #0ccbed 0%, #0798d4 55%, #0871b8 100%);
  border: 1px solid #43ddf7;
  border-radius: 14px;
  box-shadow:
    0 12px 24px rgba(0, 115, 170, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 820;
}

.modao-purchase-sheet__action:hover:not(:disabled) {
  background: linear-gradient(135deg, #35dcf5 0%, #0babdf 55%, #087cc5 100%);
  transform: translateY(-1px);
}

.modao-purchase-sheet__action:focus-visible,
.modao-purchase-sheet__close:focus-visible {
  outline: 2px solid rgba(8, 194, 238, 0.42);
  outline-offset: 2px;
}

.modao-purchase-sheet__action:disabled {
  cursor: wait;
  opacity: 0.76;
}

.modao-purchase-sheet__status {
  color: #9b2f3b;
  font-size: 0.77rem;
  font-weight: 700;
}

.modao-purchase-sheet__secure {
  color: #7a8b99;
  font-size: 0.7rem;
}

.modao-purchase-sheet__secure span {
  color: #0b9dca;
  font-weight: 900;
}

@media (max-width: 640px) {
  .modao-purchase-dialog {
    inset: auto 0 0;
    width: calc(100% - 16px);
    max-height: calc(100dvh - 12px);
    margin: 0 auto 8px;
  }

  .modao-purchase-sheet {
    max-height: calc(100dvh - 12px);
    border-radius: 24px 24px 18px 18px;
    animation: modao-purchase-sheet-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .modao-purchase-sheet__hero {
    min-height: 126px;
    padding: 20px;
  }

  .modao-purchase-sheet__body {
    gap: 13px;
    padding: 18px 18px 16px;
  }
}

@media (max-width: 350px), (max-height: 650px) {
  .modao-purchase-sheet__hero {
    min-height: 106px;
  }

  .modao-purchase-sheet__body {
    gap: 10px;
    padding-block: 14px;
  }

  .modao-purchase-sheet__benefits {
    gap-block: 7px;
  }
}

@keyframes modao-purchase-sheet-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modao-purchase-sheet {
    animation: none;
  }

  .modao-purchase-sheet__action {
    transition: none;
  }
}

/* Tema MPB: o layout permanece integralmente compartilhado com o Modão. */
#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) {
  color: #263716;
  background: #f8f0dc url("./assets/references/mpb-card-clean-bg.png") 70% top / auto 102% no-repeat;
  border-color: #78814f;
  box-shadow:
    0 13px 28px rgba(54, 63, 29, 0.17),
    0 2px 5px rgba(54, 63, 29, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) .official-repertoire-card__category {
  color: #f5e5a8;
  background: linear-gradient(135deg, #77833d, #5f6d2f);
  border-color: rgba(111, 124, 55, 0.9);
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) .official-repertoire-card__value {
  background: rgba(255, 252, 241, 0.96);
  border-color: rgba(146, 145, 101, 0.66);
  box-shadow:
    0 4px 10px rgba(66, 74, 35, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) .official-repertoire-card__value-icon {
  color: #efc959;
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) h2,
#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) .official-repertoire-card__value strong {
  color: #293a19;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb .official-repertoire-card__action {
  background: linear-gradient(135deg, #879c38, #587422);
  border-color: rgba(211, 201, 104, 0.9);
  box-shadow:
    0 13px 28px rgba(20, 31, 9, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb .official-repertoire-card__action:hover {
  background: linear-gradient(135deg, #98ae43, #688429);
  border-color: #d9ce70;
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb.official-repertoire-card--owned {
  background:
    linear-gradient(90deg, rgba(14, 27, 9, 0.97) 0%, rgba(31, 47, 15, 0.88) 48%, rgba(20, 31, 10, 0.32) 76%, rgba(13, 23, 8, 0.08) 100%),
    linear-gradient(180deg, rgba(20, 31, 10, 0.03), rgba(13, 23, 8, 0.58)),
    url("./assets/repertoires/mpb-card-bg.png") center / cover no-repeat;
  border-color: #a9b94b;
  box-shadow:
    0 24px 48px rgba(34, 44, 13, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 0 2px rgba(151, 173, 62, 0.84),
    0 0 28px rgba(126, 151, 45, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.official-repertoire-card__owned-metrics[data-metric-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb .official-repertoire-status--owned {
  background: linear-gradient(135deg, #8da43a, #5b7623);
  border-color: #c8d765;
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb .official-repertoire-card__access-badge::before,
#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb .official-repertoire-card__owned-achievement-copy > strong,
#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb .official-repertoire-card__owned-metric-icon {
  color: #e7ce64;
}

#officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb .official-repertoire-card__owned-metrics {
  border-top-color: rgba(217, 197, 96, 0.62);
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"] .official-repertoire-video__stage {
  background:
    linear-gradient(90deg, rgba(17, 27, 10, 0.24), rgba(17, 27, 10, 0.02) 58%, rgba(11, 20, 8, 0.16)),
    url("./assets/repertoires/mpb-card-bg.png") center / cover no-repeat;
}

.official-repertoire-video[data-presentation-type="static"] .official-repertoire-video__play {
  display: none !important;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned .official-repertoire-detail__heading {
  background:
    linear-gradient(90deg, rgba(14, 27, 9, 0.96) 0%, rgba(31, 47, 15, 0.84) 58%, rgba(20, 31, 10, 0.28) 100%),
    linear-gradient(0deg, rgba(13, 23, 8, 0.64), transparent 62%),
    url("./assets/repertoires/mpb-card-bg.png") center / cover no-repeat;
  border-color: #99a947;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned .official-repertoire-detail__heading::before {
  background: #9caf43;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"] .official-repertoire-detail__metric-icon,
.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"] .official-repertoire-highlight__icon {
  color: #71842d !important;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"] .official-repertoire-block--preview,
.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned details.official-repertoire-block--available[open] {
  border-color: #82963a;
  box-shadow:
    0 9px 22px rgba(37, 51, 14, 0.13),
    inset 4px 0 0 #82963a;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"] .official-repertoire-unlock button {
  background: linear-gradient(135deg, #879c38, #587422);
  border-color: #afbd56;
  box-shadow: 0 7px 16px rgba(54, 72, 20, 0.25);
}

@media (max-width: 699px),
  (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) {
    min-height: 0;
    height: auto;
    aspect-ratio: 800 / 590;
    padding: 12px;
    border-width: 1px;
    border-radius: 16px;
    text-align: left;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__copy {
    margin: 0;
    text-align: left;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__category {
    min-width: 61px;
    min-height: 23px;
    align-self: flex-start;
    margin: 0 0 7px 2px;
    padding: 4px 14px;
    color: #fffdf2;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    h2 {
    max-width: 73%;
    margin: 0;
    color: #263716;
    font-family: Rockwell, "Roboto Slab", Clarendon, Georgia, "Times New Roman", serif;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-align: left;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line--intro {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.8em;
    line-height: 0.96;
    letter-spacing: 0.035em;
    transform: scaleX(0.83);
    transform-origin: left center;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line--main {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 1.05em;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: 0.015em;
    transform: scaleX(0.9);
    transform-origin: left center;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    h2::after {
    display: flex;
    width: 205px;
    height: 16px;
    align-items: center;
    justify-content: center;
    margin: 5px 0 0;
    color: #6e7a43;
    background:
      linear-gradient(#78844e, #78844e) left center / calc(50% - 15px) 1px no-repeat,
      linear-gradient(#78844e, #78844e) right center / calc(50% - 15px) 1px no-repeat;
    content: "★";
    filter: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__values {
    height: 55px;
    gap: 5px;
    margin-top: auto;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__value {
    min-height: 55px;
    grid-template-rows: 23px minmax(23px, auto);
    gap: 2px;
    padding: 4px 3px 3px;
    border-radius: 8px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__value-icon {
    width: 23px;
    height: 23px;
    color: #667532;
    filter: none;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__value strong {
    color: #2d3b1d;
    font-size: 0.68rem;
    line-height: 1.08;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__footer {
    margin-top: 5px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__action {
    min-height: 41px;
    color: #fff;
    border-radius: 7px;
    font-size: 1rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__action-arrow {
    display: none;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__category {
    min-height: 25px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 900;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned) {
    min-height: 0;
    height: auto;
    aspect-ratio: 348 / 267;
    padding: 12px;
    border-width: 1px;
    border-color: #c9822b;
    border-radius: 14px;
    background:
      linear-gradient(90deg, rgba(5, 3, 2, 0.28) 0%, rgba(5, 3, 2, 0.08) 60%, rgba(5, 3, 2, 0.04) 100%),
      url("./assets/references/modao-card-clean-bg.png") right center / cover no-repeat;
    box-shadow:
      0 13px 28px rgba(45, 24, 7, 0.17),
      0 2px 5px rgba(45, 24, 7, 0.09),
      inset 0 1px 0 rgba(255, 214, 143, 0.28);
    text-align: left;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__copy {
    margin: 0;
    text-align: left;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__category {
    width: 96px;
    min-width: 96px;
    min-height: 24px;
    align-self: flex-start;
    margin: 0 0 7px 2px;
    padding: 4px 10px;
    color: #ffd171;
    background: linear-gradient(180deg, rgba(67, 40, 17, 0.98), rgba(31, 18, 9, 0.98));
    border-color: #dc942e;
    box-shadow:
      0 3px 9px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 211, 119, 0.22);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 5px rgba(244, 163, 49, 0.34);
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    h2 {
    max-width: 73%;
    margin: 0 0 0 2px;
    color: #f5eddd;
    font-family: Rockwell, "Roboto Slab", Clarendon, Georgia, "Times New Roman", serif;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-align: left;
    -webkit-text-stroke: 0;
    text-shadow: none;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line--intro {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.8em;
    line-height: 0.96;
    letter-spacing: 0.035em;
    transform: scaleX(0.83);
    transform-origin: left center;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line--main {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 1.05em;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: 0.015em;
    transform: scaleX(0.9);
    transform-origin: left center;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    h2::after {
    display: flex;
    width: 205px;
    height: 16px;
    align-items: center;
    justify-content: center;
    margin: 5px 0 0;
    color: #f0ad39;
    background:
      linear-gradient(#d48a28, #d48a28) left center / calc(50% - 15px) 1px no-repeat,
      linear-gradient(#d48a28, #d48a28) right center / calc(50% - 15px) 1px no-repeat;
    content: "★";
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__values {
    height: 65px;
    gap: 5px;
    margin-top: auto;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__value {
    min-height: 65px;
    grid-template-rows: 23px minmax(23px, auto);
    gap: 2px;
    padding: 4px 3px 3px;
    background: rgba(43, 24, 12, 0.91);
    border-color: rgba(205, 126, 32, 0.9);
    border-radius: 8px;
    box-shadow:
      inset 0 1px 0 rgba(255, 225, 179, 0.14),
      0 4px 10px rgba(0, 0, 0, 0.27);
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__value-icon {
    width: 23px;
    height: 23px;
    color: #f2a83f;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__value strong {
    color: #fff8eb;
    font-size: 0.68rem;
    line-height: 1.08;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__footer {
    margin-top: 5px;
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__action {
    min-height: 41px;
    color: #2b1908;
    background: linear-gradient(135deg, #efb54a 0%, #d89631 52%, #bd741d 100%);
    border-color: #f4c96f;
    border-radius: 7px;
    box-shadow:
      0 7px 16px rgba(80, 43, 8, 0.34),
      inset 0 1px 0 rgba(255, 239, 177, 0.5);
    font-size: 1rem;
    text-shadow: 0 1px 0 rgba(255, 231, 157, 0.38);
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__action:hover {
    color: #241306;
    background: linear-gradient(135deg, #f4c15e 0%, #dea03d 52%, #c68126 100%);
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__action-arrow {
    display: none;
  }
}

/* Identidade quente exclusiva do Modao adquirido na vitrine. */
#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned {
  background:
    linear-gradient(90deg, rgba(35, 17, 5, 0.99) 0%, rgba(49, 24, 7, 0.94) 45%, rgba(43, 21, 6, 0.46) 70%, rgba(31, 14, 4, 0.08) 100%),
    linear-gradient(180deg, rgba(37, 17, 4, 0.02), rgba(31, 14, 4, 0.62)),
    url("./assets/repertoires/modao-card-bg-v2.png") right center / cover no-repeat;
  border-color: #c9822b;
  box-shadow:
    0 24px 48px rgba(62, 31, 7, 0.26),
    0 0 0 1px rgba(255, 244, 218, 0.72),
    0 0 0 2px rgba(216, 145, 45, 0.88),
    0 0 28px rgba(196, 118, 26, 0.18),
    inset 0 1px 0 rgba(255, 225, 165, 0.2),
    inset 0 0 42px rgba(29, 12, 2, 0.2);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned::before {
  background:
    radial-gradient(circle at 84% 17%, rgba(255, 190, 79, 0.16), transparent 25%),
    radial-gradient(circle at 18% 84%, rgba(194, 111, 24, 0.14), transparent 34%);
  border-color: rgba(244, 201, 111, 0.3);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-status--owned {
  color: #fff8e9;
  background: linear-gradient(135deg, #e3a23a, #ad6518);
  border-color: #f4c96f;
  box-shadow:
    0 10px 22px rgba(91, 46, 7, 0.36),
    0 0 18px rgba(224, 151, 47, 0.18),
    inset 0 1px 0 rgba(255, 243, 207, 0.38);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-badge-icon {
  color: #fff4d2;
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__access-badge {
  color: #f7e8c7;
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__access-badge::before {
  color: #f2b64c;
  background: rgba(48, 24, 7, 0.9);
  border-color: #efb54a;
  box-shadow:
    0 0 0 3px rgba(239, 181, 74, 0.1),
    0 0 15px rgba(224, 151, 47, 0.24);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-achievement-icon {
  color: #ffd77e;
  background: rgba(48, 24, 7, 0.9);
  border-color: #efb54a;
  box-shadow:
    0 0 0 4px rgba(239, 181, 74, 0.12),
    0 0 22px rgba(224, 151, 47, 0.42),
    inset 0 1px 0 rgba(255, 244, 210, 0.22);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-achievement-copy > strong {
  color: #f6c45d;
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-message {
  color: #f5ead5;
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-metrics {
  border-top-color: rgba(241, 189, 75, 0.68);
  box-shadow: 0 -6px 14px -11px rgba(255, 199, 79, 0.92);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-metric:not(:last-child)::after {
  background: rgba(231, 174, 77, 0.4);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-metric-icon,
#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-metric-copy strong {
  color: #f4bd57;
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__owned-metric-copy small {
  color: #f2e4c9;
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__action {
  color: #2b1908;
  background: linear-gradient(135deg, #efb54a 0%, #d89631 52%, #bd741d 100%);
  border-color: #f4c96f;
  box-shadow:
    0 13px 28px rgba(80, 43, 8, 0.38),
    0 0 18px rgba(224, 151, 47, 0.14),
    inset 0 1px 0 rgba(255, 239, 177, 0.5),
    inset 0 -1px 0 rgba(111, 57, 8, 0.18);
  text-shadow: 0 1px 0 rgba(255, 231, 157, 0.38);
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__action-play {
  color: #2b1908;
}

#officialRepertoiresListView:not([hidden])
  [data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-card--owned
  .official-repertoire-card__action:hover {
  color: #241306;
  background: linear-gradient(135deg, #f4c15e 0%, #dea03d 52%, #c68126 100%);
  border-color: #ffd987;
  box-shadow:
    0 16px 31px rgba(80, 43, 8, 0.4),
    0 0 20px rgba(224, 151, 47, 0.18),
    inset 0 1px 0 rgba(255, 244, 210, 0.54);
}

/* Identidade quente exclusiva do card interno do Modao adquirido. */
.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__heading {
  background:
    linear-gradient(90deg, rgba(35, 17, 5, 0.98) 0%, rgba(49, 24, 7, 0.9) 52%, rgba(43, 21, 6, 0.34) 100%),
    url("./assets/repertoires/modao-card-bg-v2.png") right center / cover no-repeat;
  border-color: rgba(221, 151, 51, 0.72);
  box-shadow:
    0 22px 48px rgba(62, 31, 7, 0.26),
    0 0 0 1px rgba(255, 244, 218, 0.54),
    0 0 22px rgba(196, 118, 26, 0.16),
    inset 0 1px 0 rgba(255, 225, 165, 0.16);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__heading::before {
  background: #d8912d;
  box-shadow: 0 0 14px rgba(224, 151, 47, 0.42);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__meta > span:first-child {
  color: #ffe0a0;
  background: rgba(67, 34, 10, 0.74);
  border-color: rgba(244, 201, 111, 0.82);
  box-shadow:
    0 7px 16px rgba(69, 34, 6, 0.24),
    inset 0 1px 0 rgba(255, 236, 187, 0.16);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__metric-icon {
  color: #f4bd57;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__access {
  color: #f2b64c !important;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__start {
  color: #2b1908;
  background: linear-gradient(135deg, #efb54a 0%, #d89631 52%, #bd741d 100%);
  border-color: #f4c96f;
  box-shadow:
    0 14px 30px rgba(80, 43, 8, 0.38),
    0 0 18px rgba(224, 151, 47, 0.14),
    inset 0 1px 0 rgba(255, 239, 177, 0.5);
  text-shadow: 0 1px 0 rgba(255, 231, 157, 0.38);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__start:hover {
  color: #241306;
  background: linear-gradient(135deg, #f4c15e 0%, #dea03d 52%, #c68126 100%);
  border-color: #ffd987;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__lessons {
  color: #fff1cf;
  background: rgba(55, 27, 7, 0.68);
  border-color: rgba(239, 181, 74, 0.72);
  box-shadow:
    0 10px 22px rgba(49, 23, 4, 0.24),
    inset 0 1px 0 rgba(255, 233, 180, 0.12);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__lessons span {
  color: #f2b64c;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__lessons:hover {
  color: #fff7e3;
  background: rgba(78, 39, 10, 0.8);
  border-color: #f4c96f;
}

@media (max-width: 699px) {
  .official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"].official-repertoire-detail--owned
    .official-repertoire-detail__heading {
    background:
      linear-gradient(90deg, rgba(35, 17, 5, 0.97) 0%, rgba(49, 24, 7, 0.88) 55%, rgba(43, 21, 6, 0.28) 100%),
      url("./assets/repertoires/modao-card-bg-v2.png") 67% center / cover no-repeat;
  }
}

/* Identidade verde/oliva exclusiva do card interno do MPB adquirido. */
.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__heading {
  border-color: #99a947;
  box-shadow:
    0 22px 48px rgba(37, 51, 14, 0.24),
    0 0 0 1px rgba(242, 246, 211, 0.5),
    0 0 22px rgba(126, 151, 45, 0.18),
    inset 0 1px 0 rgba(226, 235, 159, 0.16);
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__heading::before {
  background: #9caf43;
  box-shadow: 0 0 14px rgba(142, 166, 58, 0.44);
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__meta > span:first-child {
  color: #f8fbe2;
  background: linear-gradient(135deg, #8da43a, #5b7623);
  border-color: #c8d765;
  box-shadow:
    0 7px 16px rgba(37, 51, 14, 0.28),
    inset 0 1px 0 rgba(245, 249, 218, 0.2);
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__access {
  color: #d7df73 !important;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__access::before {
  box-shadow: 0 0 12px rgba(160, 181, 68, 0.24);
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__metric-icon,
.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__metric > span:last-child {
  color: #d7df73 !important;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__metric-separator {
  color: #9eae4d;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__start {
  color: #f8fbe7;
  background: linear-gradient(135deg, #91a83e 0%, #738c2e 52%, #587422 100%);
  border-color: #c8d765;
  box-shadow:
    0 14px 30px rgba(37, 51, 14, 0.34),
    0 0 18px rgba(126, 151, 45, 0.14),
    inset 0 1px 0 rgba(245, 249, 218, 0.24);
  text-shadow: 0 1px 0 rgba(39, 55, 15, 0.42);
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__start:hover {
  color: #fff;
  background: linear-gradient(135deg, #a2b94c 0%, #819b39 52%, #688429 100%);
  border-color: #d9e47c;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__lessons {
  color: #f3f7dc;
  background: rgba(28, 44, 14, 0.68);
  border-color: rgba(200, 215, 101, 0.78);
  box-shadow:
    0 10px 22px rgba(26, 38, 12, 0.24),
    inset 0 1px 0 rgba(235, 241, 188, 0.12);
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__lessons span {
  color: #d7df73;
}

.official-repertoire-detail[data-official-repertoire-id="mpb-pra-churrasco"].official-repertoire-detail--owned
  .official-repertoire-detail__lessons:hover {
  color: #fbfde9;
  background: rgba(45, 64, 20, 0.82);
  border-color: #d9e47c;
}

/* Tema verde/oliva exclusivo do modal de compra do MPB. */
.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"]::backdrop {
  background: rgba(16, 27, 8, 0.76);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet {
  color: #293a19;
  background: #fffdf4;
  border-color: rgba(153, 169, 71, 0.72);
  box-shadow:
    0 26px 70px rgba(28, 40, 12, 0.36),
    0 0 0 1px rgba(250, 252, 226, 0.64) inset;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__hero {
  background:
    linear-gradient(90deg, rgba(14, 27, 9, 0.97) 0%, rgba(31, 47, 15, 0.86) 54%, rgba(20, 31, 10, 0.22) 100%),
    linear-gradient(0deg, rgba(13, 23, 8, 0.72), transparent 70%),
    url("./assets/repertoires/mpb-card-bg.png") 72% 52% / cover no-repeat;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__hero::after {
  background: rgba(151, 173, 62, 0.18);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__badge {
  color: #f8f5d8;
  background: rgba(76, 94, 31, 0.78);
  border-color: rgba(211, 221, 119, 0.7);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__close {
  color: #fbfde9;
  background: rgba(32, 49, 15, 0.66);
  border-color: rgba(235, 240, 185, 0.42);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__close:hover {
  color: #fff;
  background: rgba(72, 91, 28, 0.88);
  border-color: #d9e47c;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__hero-copy p {
  color: #fffdf0;
  text-shadow: 0 3px 20px rgba(17, 28, 8, 0.72);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__hero-copy span {
  color: #e9edbd;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__price {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: baseline;
  justify-content: center;
  gap: clamp(4px, 2vw, 12px);
  border-bottom-color: #dfe5bd;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__previous-price {
  color: #7b8554;
  font-size: 0.66rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: line-through;
  text-decoration-color: rgba(89, 101, 53, 0.72);
  white-space: nowrap;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__price strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  color: #4f681f;
  font-size: clamp(1.75rem, 8.8vw, 2.75rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__price strong small {
  color: #71842d;
  font-size: 0.34em;
  letter-spacing: -0.015em;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__price > .modao-purchase-sheet__payment-label {
  justify-self: start;
  color: #687548;
  font-size: 0.6rem;
  font-weight: 760;
  white-space: nowrap;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__benefits li {
  color: #344521;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__benefits li > span {
  color: #f9fbe7;
  background: #7d9433;
  box-shadow: inset 0 1px 0 rgba(245, 249, 218, 0.24);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__exclusive {
  color: #34491d;
  background: linear-gradient(135deg, #f4f7dd, #fffdf4);
  border-color: #bac866;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__exclusive > span {
  color: #fbfde9;
  background: linear-gradient(145deg, #91a83e, #587422);
  box-shadow: 0 5px 14px rgba(87, 111, 32, 0.25);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__exclusive p {
  color: #68764c;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__action {
  color: #fbfde9;
  background: linear-gradient(135deg, #91a83e 0%, #738c2e 55%, #587422 100%);
  border-color: #c8d765;
  box-shadow:
    0 12px 24px rgba(72, 94, 26, 0.28),
    inset 0 1px 0 rgba(245, 249, 218, 0.3);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__action:hover:not(:disabled) {
  background: linear-gradient(135deg, #a5ba4d 0%, #829b38 55%, #688429 100%);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__action:focus-visible,
.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__close:focus-visible {
  outline-color: rgba(143, 166, 58, 0.5);
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__secure {
  color: #77815b;
}

.modao-purchase-dialog[data-repertoire-id="mpb-pra-churrasco"] .modao-purchase-sheet__secure span {
  color: #71842d;
}

/* Tema dourado/ambar exclusivo do modal de compra do Modao. */
.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"]::backdrop {
  background: rgba(31, 17, 6, 0.78);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet {
  color: #3f2914;
  background: #fffaf0;
  border-color: rgba(211, 151, 59, 0.78);
  box-shadow:
    0 26px 70px rgba(61, 31, 6, 0.38),
    0 0 0 1px rgba(255, 244, 218, 0.7) inset;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__hero {
  background:
    linear-gradient(90deg, rgba(38, 18, 5, 0.98) 0%, rgba(66, 33, 8, 0.88) 54%, rgba(45, 20, 5, 0.2) 100%),
    linear-gradient(0deg, rgba(33, 14, 3, 0.76), transparent 70%),
    url("./assets/repertoires/modao-card-bg-v2.png") 72% 52% / cover no-repeat;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__hero::after {
  background: rgba(226, 151, 44, 0.2);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__badge {
  color: #fff4d6;
  background: rgba(116, 65, 16, 0.78);
  border-color: rgba(244, 201, 111, 0.78);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__close {
  color: #fff9e9;
  background: rgba(52, 27, 8, 0.7);
  border-color: rgba(255, 228, 168, 0.5);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__close:hover {
  color: #fff;
  background: rgba(112, 61, 15, 0.9);
  border-color: #f4c96f;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__hero-copy p {
  color: #fffaf0;
  text-shadow: 0 3px 20px rgba(35, 15, 3, 0.78);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__hero-copy span {
  color: #ffe3a7;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__price {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: baseline;
  justify-content: center;
  gap: clamp(4px, 2vw, 12px);
  border-bottom-color: #ead7b6;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"]
  .modao-purchase-sheet__price:has(.modao-purchase-sheet__previous-price[hidden]) {
  grid-template-columns: max-content max-content;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__previous-price {
  color: #8b755b;
  font-size: 0.66rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: line-through;
  text-decoration-color: rgba(112, 78, 42, 0.7);
  white-space: nowrap;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__price strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  color: #9b5c13;
  font-size: clamp(1.75rem, 8.8vw, 2.75rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__price strong small {
  color: #b27622;
  font-size: 0.42em;
  letter-spacing: -0.015em;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__price > .modao-purchase-sheet__payment-label {
  justify-self: start;
  color: #796447;
  font-size: 0.6rem;
  font-weight: 760;
  white-space: nowrap;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__benefits li {
  color: #4a321b;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__benefits li > span {
  color: #fff9e9;
  background: #c58629;
  box-shadow: inset 0 1px 0 rgba(255, 240, 199, 0.32);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__exclusive {
  color: #513214;
  background: linear-gradient(135deg, #fff1cf, #fffaf0);
  border-color: #dfb35e;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__exclusive > span {
  color: #fff9e9;
  background: linear-gradient(145deg, #dc9d37, #a85e17);
  box-shadow: 0 5px 14px rgba(111, 59, 12, 0.26);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__exclusive p {
  color: #7b654a;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__action {
  color: #2f1b08;
  background: linear-gradient(135deg, #efb54a 0%, #d89631 55%, #bd741d 100%);
  border-color: #f4c96f;
  box-shadow:
    0 12px 24px rgba(100, 52, 9, 0.3),
    inset 0 1px 0 rgba(255, 239, 190, 0.48);
  text-shadow: 0 1px 0 rgba(255, 229, 157, 0.44);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__action:hover:not(:disabled) {
  color: #281605;
  background: linear-gradient(135deg, #f4c15e 0%, #dea03d 55%, #c68126 100%);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__action:focus-visible,
.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__close:focus-visible {
  outline-color: rgba(218, 149, 49, 0.52);
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__secure {
  color: #88745b;
}

.modao-purchase-dialog[data-repertoire-id="modao-pra-churrasco"] .modao-purchase-sheet__secure span {
  color: #b97820;
}

/* Identidade dourada/ambar exclusiva do detalhe comercial do Modao. */
.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned) {
  --brand-navy: #5c3510;
  --brand-blue-ink: #a36319;
  --brand-soft: #fff1d2;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  > .repertoire-back {
  color: #633a12;
  border-color: #ddc69a;
  box-shadow: 0 3px 10px rgba(91, 49, 9, 0.11);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .repertoire-back__icon {
  color: #633a12;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-detail__meta
  > span:first-child {
  color: #ad6819;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-detail__heading
  h1 {
  color: #58320e;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-detail__count {
  color: #704516 !important;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-detail__metric-icon {
  color: #bd761d;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-detail__metric-separator {
  color: #b19368;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-video {
  border-color: #d9ba7d;
  box-shadow: 0 16px 36px rgba(85, 45, 7, 0.13);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-video__stage {
  color: #fff7e4;
  background:
    linear-gradient(90deg, rgba(47, 23, 4, 0.52), rgba(42, 20, 3, 0.08) 58%, rgba(35, 16, 2, 0.3)),
    url("./assets/repertoires/modao-video-poster-v2.png") center / cover no-repeat;
  border-color: rgba(224, 163, 66, 0.5);
  box-shadow:
    0 12px 28px rgba(73, 36, 5, 0.15),
    inset 0 1px 0 rgba(255, 243, 210, 0.11);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-video__play {
  color: #3d2108;
  background: #edb64f;
  border-color: rgba(255, 231, 172, 0.9);
  box-shadow:
    0 12px 28px rgba(61, 30, 4, 0.3),
    inset 0 1px 0 rgba(255, 246, 219, 0.62);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-video__stage
  > div {
  background: rgba(61, 31, 7, 0.7);
  border-color: rgba(239, 181, 74, 0.58);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-video__stage
  > div
  span {
  color: #f7dfae;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-highlight {
  background: linear-gradient(145deg, #fff, #fff9ec);
  border-color: #e1c993;
  box-shadow: 0 6px 18px rgba(83, 44, 7, 0.065);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-highlight__icon {
  color: #b96f19 !important;
  background: #fff2d4;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-section-heading
  h2,
.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block-summary
  strong {
  color: #5c3510;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block--preview {
  background: linear-gradient(145deg, #fff, #fff8e9);
  border-color: rgba(206, 137, 40, 0.72);
  box-shadow: 0 14px 30px rgba(81, 42, 6, 0.16);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block--preview
  > summary {
  background: rgba(222, 155, 55, 0.08);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block--preview
  .official-repertoire-block__number {
  color: #b96f19;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block--preview
  .official-repertoire-block__copy
  p,
.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block--preview
  .official-repertoire-block__state {
  color: #714414;
  background: #ffedc7;
  border-color: rgba(203, 130, 31, 0.3);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-song__number,
.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-song__arrow {
  color: #a6651c;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block-summary {
  background: linear-gradient(145deg, #fff5df, #fffdf8);
  border-color: #d9ad62;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-block-summary::before {
  color: #885216;
  background: #f5ddb0;
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-unlock
  button {
  color: #2d1907;
  background: linear-gradient(135deg, #efb54a 0%, #d89631 52%, #bd741d 100%);
  border-color: #f4c96f;
  box-shadow:
    0 10px 22px rgba(80, 43, 8, 0.3),
    inset 0 1px 0 rgba(255, 239, 177, 0.5);
  text-shadow: 0 1px 0 rgba(255, 231, 157, 0.38);
}

.official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
  .official-repertoire-unlock
  button:hover {
  color: #241306;
  background: linear-gradient(135deg, #f4c15e 0%, #dea03d 52%, #c68126 100%);
  border-color: #ffd987;
}

@media (max-width: 699px) {
  .official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
    .official-repertoire-video__stage
    strong,
  .official-repertoire-detail[data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-detail--owned)
    .official-repertoire-video__stage
    > div
    span {
    color: #fff8e8;
    background: rgba(61, 31, 7, 0.78);
    border-color: rgba(239, 181, 74, 0.7);
  }
}

/* Leitura e area de toque refinadas somente para a barra inferior mobile. */
@media (max-width: 899px) {
  :root {
    --bottom-nav-height: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .primary-nav {
    padding: 6px 4px env(safe-area-inset-bottom, 0px);
  }

  .primary-nav a {
    min-height: 62px;
    gap: 4px;
    padding: 5px 2px;
    font-size: 0.66rem;
    font-weight: 730;
    line-height: 1.08;
  }

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

  .primary-nav a[aria-current="page"] span {
    font-weight: 820;
  }
}

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

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

/* Vitrine em tablet portrait: continuidade direta das proporcoes mobile. */
@media (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  #officialRepertoiresListView:not([hidden]) {
    width: min(100%, 520px);
    padding-block: 22px 38px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading {
    margin-bottom: 22px;
    padding-inline: 0;
    text-align: center;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading > div {
    width: 100%;
    text-align: center;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading h1 {
    max-width: none;
    font-size: 1.65rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoires-heading p {
    margin-top: 5px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__copy,
  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__values,
  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__footer {
    width: 100%;
    min-width: 0;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__product-line {
    display: block;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero:not(.official-repertoire-card--owned)
    .official-repertoire-card__value {
    min-width: 0;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned),
  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned) {
    aspect-ratio: 1.52 / 1;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    h2,
  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    h2 {
    font-size: 3.42rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__category,
  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__category {
    min-height: 26px;
    padding-inline: 11px;
    font-size: 0.76rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    h2::after,
  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    h2::after {
    width: 232px;
    margin-top: 4px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__values {
    height: 64px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__value {
    min-height: 64px;
    grid-template-rows: 26px minmax(25px, auto);
  }

  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__values,
  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__value {
    min-height: 70px;
    height: 70px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__value strong,
  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__value strong {
    font-size: 0.74rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--mpb:not(.official-repertoire-card--owned)
    .official-repertoire-card__action,
  #officialRepertoiresListView:not([hidden])
    [data-official-repertoire-id="modao-pra-churrasco"]:not(.official-repertoire-card--owned)
    .official-repertoire-card__action {
    min-height: 46px;
    font-size: 1rem;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--hero.official-repertoire-card--owned {
    height: 405px;
    padding: 20px 18px 32px;
  }

  #officialRepertoiresListView:not([hidden])
    .official-repertoire-card--owned
    h2 {
    font-size: 2.6rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires {
    margin-top: 28px;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__heading {
    margin-bottom: 12px;
    padding-inline: 2px;
    text-align: center;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__heading h2 {
    font-size: 1.14rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__heading p {
    font-size: 0.8rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoires__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card {
    height: 116px;
    padding: 12px;
    border-radius: 14px;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card h3 {
    font-size: 1.04rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card__badge {
    top: 9px;
    left: 9px;
    font-size: 0.51rem;
  }

  #officialRepertoiresListView:not([hidden]) .future-repertoire-card__art {
    right: 2px;
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 760px) {
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px;
  }
}

/* Studio instrument: the dial and controls share one quiet, dark surface. */
:where(#metronomeScreen) .metronome-surface {
  min-height: 0;
  align-content: start;
  padding: 16px 12px 14px;
  background:
    radial-gradient(ellipse at 35% 0%, rgba(132, 179, 193, 0.19), transparent 49%),
    linear-gradient(160deg, #10232e, #03131e 76%);
  border-color: rgba(115, 163, 183, 0.15);
  box-shadow: 0 16px 28px rgba(0, 22, 62, 0.16);
}

:where(#metronomeScreen) .metronome-pulse {
  width: 228px;
  isolation: isolate;
}

:where(#metronomeScreen) .metronome-pulse svg {
  filter: drop-shadow(0 5px 6px rgba(0, 6, 13, 0.55));
}

:where(#metronomeScreen) .metronome-pulse__halo {
  width: 86%;
  background: rgba(8, 195, 245, 0.025);
  border-color: transparent;
}

:where(#metronomeScreen) .metronome-pulse__body {
  fill: url(#metronomeDialFill);
  stroke: rgba(106, 154, 177, 0.13);
  stroke-width: 0.75;
}

:where(#metronomeScreen) .metronome-pulse__rail {
  stroke: #7294a7;
  stroke-width: 0.7;
}

:where(#metronomeScreen) .metronome-pulse__pendulum {
  transform-origin: 90px 88px;
}

:where(#metronomeScreen) .metronome-pulse__arm {
  stroke: #18d6ff;
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(8, 195, 245, 0.8));
}

:where(#metronomeScreen) .metronome-pulse__pivot {
  fill: #29ddff;
  stroke: #08c3f5;
  stroke-width: 1;
  filter: drop-shadow(0 0 4px rgba(8, 195, 245, 0.6));
}

:where(#metronomeScreen) .metronome-tempo {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  margin-top: -80px;
  gap: 2px;
}

:where(#metronomeScreen) .metronome-tempo strong {
  font-size: 3.8rem;
  letter-spacing: -0.06em;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

:where(#metronomeScreen) .metronome-tempo span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #c6d8e2;
}

:where(#metronomeScreen) .metronome-status {
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #e0eaf0;
}

:where(#metronomeScreen) .metronome-beats {
  margin-top: 4px;
  gap: 9px;
}

:where(#metronomeScreen) .metronome-beats span,
:where(#metronomeScreen) .metronome-beats span.is-accent {
  width: 8px;
  height: 8px;
  border-width: 1px;
}

:where(#metronomeScreen) .metronome-control-module {
  box-sizing: border-box;
  width: min(100%, 400px);
  margin-top: 6px;
  padding: 10px;
  border: 1px solid rgba(143, 183, 200, 0.2);
  border-radius: 17px;
  background: linear-gradient(145deg, #20323e, #0a202d 68%);
  box-shadow: inset 0 1px 0 rgba(213, 238, 248, 0.025);
  text-align: left;
}

:where(#metronomeScreen) .metronome-control-module .metronome-bpm-control {
  width: 100%;
  margin: 0;
  grid-template-columns: 44px minmax(100px, 1fr) 44px;
  gap: 2px 10px;
  padding-left: 28px;
  box-sizing: border-box;
}

:where(#metronomeScreen) .metronome-control-module label,
:where(#metronomeScreen) .metronome-control-module legend {
  color: #e1ebf1;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.075em;
}

:where(#metronomeScreen) .metronome-control-module label {
  display: flex;
  align-items: center;
  gap: 10px;
}

:where(#metronomeScreen) .metronome-bpm-control label {
  margin-left: -28px;
}

:where(#metronomeScreen) .metronome-control-module label svg,
:where(#metronomeScreen) .metronome-control-module legend svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: #e1ebf1;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(#metronomeScreen) .metronome-control-module legend svg {
  margin-right: 10px;
}

:where(#metronomeScreen) .metronome-bpm-control button {
  border: 1px solid rgba(154, 192, 208, 0.26);
  background: linear-gradient(140deg, rgba(217, 240, 249, 0.08), rgba(7, 27, 41, 0.16));
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
}

:where(#metronomeScreen) .metronome-control-module .metronome-volume-control {
  width: 100%;
  margin-top: 4px;
  padding-top: 0;
  border: 0;
}

:where(#metronomeScreen) .metronome-volume-control output {
  font-size: 0.8rem;
  color: #e1ebf1;
}

:where(#metronomeScreen) .metronome-volume-slider {
  grid-template-columns: minmax(0, 1fr) 20px;
  padding-left: 28px;
  gap: 10px;
}

:where(#metronomeScreen) .metronome-volume-slider > svg:first-child {
  display: none;
}

:where(#metronomeScreen) .metronome-control-module .metronome-signatures {
  width: 100%;
  margin-top: 4px;
}

:where(#metronomeScreen) .metronome-signatures legend {
  margin-bottom: 4px;
}

:where(#metronomeScreen) .metronome-signatures > div {
  gap: 6px;
  padding-left: 28px;
  background: transparent;
}

:where(#metronomeScreen) .metronome-signatures button {
  min-width: 0;
  border: 1px solid rgba(154, 192, 208, 0.21);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(208, 235, 247, 0.065), rgba(7, 27, 41, 0.15));
  font-size: 0.8rem;
  font-weight: 650;
}

:where(#metronomeScreen) .metronome-signatures button.is-selected {
  box-shadow: none;
  background: #08c3f5;
  border-color: #08c3f5;
}

:where(#metronomeScreen) .metronome-actions {
  width: 100%;
  margin-top: 8px;
  grid-template-columns: 1fr;
  gap: 6px;
}

:where(#metronomeScreen) .metronome-actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  border-radius: 15px;
}

:where(#metronomeScreen) .metronome-toggle-button {
  grid-row: 1;
  box-shadow: 0 3px 10px rgba(8, 195, 245, 0.09);
  min-height: 46px;
  background: #08c3f5;
}

:where(#metronomeScreen) .metronome-actions .metronome-tap-button {
  color: #e1ebf1;
  background: rgba(1, 19, 31, 0.3);
  border-color: rgba(144, 186, 205, 0.32);
  font-weight: 500;
}

:where(#metronomeScreen) .metronome-actions button::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media (max-width: 620px) {
  :where(#metronomeScreen) .metronome-surface {
    padding: 8px 6px 10px;
  }

  :where(#metronomeScreen) .metronome-heading {
    margin-block: -4px 8px;
  }

  :where(#metronomeScreen) .metronome-heading p {
    font-size: 0.65rem;
  }

  :where(#metronomeScreen) .metronome-heading h1 {
    font-size: 1.5rem;
  }

  :where(#metronomeScreen).metronome-screen .lessons-back {
    margin-bottom: 0;
  }
}

@media (max-width: 359px) {
  :where(#metronomeScreen) .metronome-control-module .metronome-bpm-control {
    padding-left: 0;
  }

  :where(#metronomeScreen) .metronome-bpm-control label {
    margin-left: 0;
  }

  :where(#metronomeScreen) .metronome-volume-slider,
  :where(#metronomeScreen) .metronome-signatures > div {
    padding-left: 0;
  }
}

@media (min-width: 621px) {
  :where(#metronomeScreen).metronome-screen {
    max-width: 500px;
  }
}

:where(#metronomeScreen) .metronome-toggle-button::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0ibTcgNCAxMyA4TDcgMjB6IiBmaWxsPSIjZWNmYmZmIiBzdHJva2U9IiMwMDE2M2UiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==");
}

:where(#metronomeScreen) .metronome-surface[data-state="playing"] .metronome-toggle-button::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcgNXYxNE0xNyA1djE0IiBzdHJva2U9IiMwMDE2M2UiIHN0cm9rZS13aWR0aD0iNCIvPjwvc3ZnPg==");
}

:where(#metronomeScreen) .metronome-tap-button::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTkgMTJWNGEyIDIgMCAwIDEgNCAwdjgtM2EyIDIgMCAwIDEgNCAwdjMtMWEyIDIgMCAwIDEgNCAwdjVjMCA0LTMgNi02IDYtMiAwLTQtMS01LTNsLTUtNmEyIDIgMCAwIDEgMy0ybDMgM000IDNsMiAyTTE3IDJsLTIgMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTFlYmYxIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+");
}

/* Native range value drives the fill, with no JavaScript or audio changes. */
:where(#metronomeScreen) .metronome-bpm-control input {
  overflow: hidden;
}

:where(#metronomeScreen) .metronome-bpm-control input::-webkit-slider-thumb {
  box-shadow: -100vmax 0 0 100vmax #04a3d1;
  clip-path: polygon(-100vmax 8px, 0 8px, 2px 4px, 6px 1px, 11px 0, 16px 1px, 20px 4px, 22px 8px, 22px 14px, 20px 18px, 16px 21px, 11px 22px, 6px 21px, 2px 18px, 0 14px, -100vmax 14px);
}

:where(#metronomeScreen) .metronome-bpm-control input::-moz-range-progress {
  height: 6px;
  border-radius: 6px;
  background: #04a3d1;
}

:where(#metronomeScreen) .metronome-actions .metronome-toggle-button {
  font-weight: 700;
}

/* Desktop catalogue: one shared card scale for owned and available repertoires. */
@media (min-width: 1025px) {
  #officialRepertoiresListView:not([hidden]) {
    width: min(100%, 640px);
    margin-inline: auto;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-grid {
    gap: 24px;
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero,
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero.official-repertoire-card--owned {
    min-width: 0;
    min-height: 400px;
    height: 100%;
    aspect-ratio: auto;
    padding: 24px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__copy,
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__values,
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__footer {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero h2 {
    font-size: 2.15rem;
    line-height: 1.05;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__footer {
    margin-top: auto;
    padding-top: 18px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__action {
    width: 100%;
    min-height: 48px;
    font-size: 0.88rem;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__value {
    min-width: 0;
    padding-inline: 5px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero .official-repertoire-card__value strong {
    font-size: 0.72rem;
  }
}

@media (min-width: 1200px) {
  #officialRepertoiresListView:not([hidden]) { width: min(100%, 1120px); }
  #officialRepertoiresListView:not([hidden]) .official-repertoire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile offers: content determines height so benefits never sit under the CTA. */
@media (max-width: 699px),
  (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero:not(.official-repertoire-card--owned) {
    aspect-ratio: auto;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__copy {
    flex: 0 0 auto;
    min-height: auto;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__values {
    height: auto;
    margin-top: 10px;
  }

  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--hero:not(.official-repertoire-card--owned) .official-repertoire-card__footer {
    flex-shrink: 0;
    margin-top: 12px;
  }
}

@media (max-width: 699px) {
  #officialRepertoiresListView:not([hidden]) .official-repertoire-card--mpb:not(.official-repertoire-card--owned) h2 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8.4vw, 2.75rem);
  }
}

/* Títulos oficiais seguem a tipografia do app em qualquer computador. */
#view-repertorios .official-repertoire-detail .official-repertoire-detail__heading h1 {
  font-family: var(--modao-display-font);
  font-weight: 800;
  line-height: 1.12;
}
