

    body[data-page="catalog"] .layout-shell {
      max-width: 1280px;
      margin-top: 12px;
    }

    body[data-page="catalog"] .main-content {
      flex: 1 1 auto;
      min-width: 0;
      padding-top: 16px;
      padding-bottom: 16px;
    }

    body[data-page="catalog"] .page-affiliate-note {
      display: none;
    }

    .home-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .home-description {
      margin: 0 0 16px;
      color: var(--text-muted);
      font-size: 0.98rem;
      line-height: 1.7;
      text-align: center;
    }

    .home-card {
      display: grid;
      gap: 8px;
      padding: 18px 16px;
      border: 2px solid var(--brand-light);
      border-radius: 18px;
      background: linear-gradient(180deg, #f3fffd 0%, #fff 100%);
      text-decoration: none;
      color: inherit;
      box-shadow: 0 6px 16px rgba(20, 184, 166, 0.08);
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .home-card:hover,
    .home-card:focus-visible {
      border-color: var(--brand);
      transform: translateY(-2px);
      box-shadow: 0 10px 22px rgba(20, 184, 166, 0.14);
      outline: none;
    }

    .home-card-title {
      margin: 0;
      color: var(--accent);
      font-size: 1.18rem;
      line-height: 1.25;
    }

    .home-card-text {
      margin: 0;
      color: var(--text-main);
      font-size: 0.94rem;
      line-height: 1.45;
    }

    @media (max-width: 850px) {
      body[data-page="catalog"] .page-affiliate-note {
        display: block;
      }
    }

    @media (max-width: 520px) {
      body[data-page="catalog"] .main-content {
        padding: 6px 8px 8px;
      }

      .home-card {
        padding: 14px 12px;
      }

      .home-card-title {
        font-size: 1.08rem;
      }
    }


    body[data-page="catalog"] .layout-shell {
      max-width: 1280px;
      margin-top: 0;
    }

    body[data-page="catalog"] .main-content {
      flex: 1 1 auto;
      min-width: 0;
      padding-top: 2px;
      padding-bottom: 28px;
    }

    body[data-page="catalog"] .page-affiliate-note {
      display: none;
    }

    .notes-hero {
      position: relative;
      margin-top: 0;
      margin-bottom: 8px;
      padding-top: 0;
    }

    .notes-hero-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 6px;
      margin-bottom: 8px;
    }

    .notes-hero-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .notes-hero .subpage-back-link {
      margin: 0;
      flex: 0 0 auto;
    }

    .notes-hero .page-updated-at {
      position: static;
      margin: 0;
      flex: 0 0 auto;
      text-align: right;
    }

    .notes-hero .subpage-title {
      font-size: 1.35rem;
      line-height: 1.2;
      margin: 0 0 4px;
      color: var(--accent);
    }

    .notes-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .notes-filter-group + .notes-filter-group {
      margin-top: 8px;
    }

    .notes-filter-group[data-filter-panel="difficulty"] {
      display: none;
    }

    .notes-filter-label {
      margin: 0 0 6px;
      font-size: 0.84rem;
      font-weight: 700;
      color: var(--text-muted);
    }

    .notes-filter-toggle {
      display: none;
    }

    .notes-filter-body {
      display: block;
    }

    .notes-tab {
      appearance: none;
      border: 2px solid var(--brand-light);
      background: #fff;
      color: var(--accent);
      border-radius: 999px;
      padding: 10px 16px;
      font: inherit;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
      box-shadow: 2px 2px 0 rgba(244, 114, 182, 0.14);
      box-sizing: border-box;
    }

    .notes-tab[data-attribute-style="all-filter"] {
      background: #fff;
      border-color: var(--brand-light);
      color: var(--accent);
    }

    .notes-tab[data-attribute-style="all-attribute"] {
      background: #fff;
      border-color: var(--brand-light);
      color: var(--accent);
    }

    .notes-tab[data-attribute-style="brilliant"] {
      background: #dfeeff;
      border-color: #79b0f2;
      color: #2f69bf;
    }

    .notes-tab[data-attribute-style="flash"] {
      background: #fff2bf;
      border-color: #efc248;
      color: #b88400;
    }

    .notes-tab[data-attribute-style="glitter"] {
      background: #dff1e3;
      border-color: #7fc18b;
      color: #31824f;
    }

    .notes-tab[data-attribute-style="sparkle"] {
      background: #ffd8df;
      border-color: #f58a9b;
      color: #bd4057;
    }

    .notes-tab:hover,
    .notes-tab:focus-visible {
      border-color: var(--brand);
      transform: translateY(-1px);
      box-shadow: 4px 4px 0 rgba(244, 114, 182, 0.18);
    }

    .notes-tab.is-active {
      background: linear-gradient(135deg, #fff0f7 0%, #ffe6f2 100%);
      border-color: var(--brand);
    }

    .notes-tab.is-active[data-attribute-style="all-filter"] {
      background: #fff;
      border-width: 3px;
      border-color: var(--brand);
      box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.08) inset;
    }

    .notes-tab.is-active[data-attribute-style="all-attribute"] {
      background: #fff;
      border-width: 3px;
      border-color: var(--brand);
      box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.08) inset;
    }

    .notes-tab.is-active[data-attribute-style="brilliant"] {
      background: #dfeeff;
      border-width: 3px;
      border-color: #2f69bf;
      color: #2f69bf;
      box-shadow: none;
    }

    .notes-tab.is-active[data-attribute-style="flash"] {
      background: #fff2bf;
      border-width: 3px;
      border-color: #c79515;
      color: #b88400;
      box-shadow: none;
    }

    .notes-tab.is-active[data-attribute-style="glitter"] {
      background: #dff1e3;
      border-width: 3px;
      border-color: #31824f;
      color: #31824f;
      box-shadow: none;
    }

    .notes-tab.is-active[data-attribute-style="sparkle"] {
      background: #ffc8d2;
      border-width: 3px;
      border-color: #bd4057;
      color: #bd4057;
      box-shadow: none;
    }

    #notes-unit-tabs .notes-tab.is-active {
      border-width: 3px;
    }

    .notes-filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .notes-search-box {
      display: grid;
      gap: 0;
      width: 100%;
    }

    .notes-search-tabs {
      position: relative;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
      width: 100%;
      margin-bottom: 0;
      z-index: 1;
    }

    .notes-search-tab {
      display: flex;
      align-items: center;
      justify-content: center;
      appearance: none;
      border: 2px solid var(--brand-light);
      background: #fff;
      color: var(--accent);
      border-bottom: 2px solid var(--brand-light);
      border-radius: 12px 12px 0 0;
      min-height: 44px;
      padding: 7px 6px 6px;
      font: inherit;
      font-weight: 700;
      line-height: 1.2;
      text-align: center;
      cursor: pointer;
      box-sizing: border-box;
    }

    .notes-search-tab-label {
      display: inline-block;
      max-width: 100%;
    }

    .notes-search-tab-label--stack {
      display: inline-block;
      white-space: nowrap;
    }

    .notes-search-tab-label--stack span {
      display: inline;
    }

    .notes-search-tab.is-active {
      background: linear-gradient(135deg, #fff0f7 0%, #ffe6f2 100%);
      border-color: var(--brand);
      position: relative;
      z-index: 2;
    }

    .notes-search-tab + .notes-search-tab {
      margin-left: -2px;
    }

    .notes-search {
      flex: 1 1 320px;
      width: 100%;
      min-width: 0;
      padding: 8px 12px;
      border: 2px solid var(--brand-light);
      border-radius: 0 0 12px 12px;
      font: inherit;
      background: #fff;
      color: var(--text-main);
      margin-top: -2px;
    }

    .notes-search:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.12);
    }

    .notes-meta-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 10px 16px;
      align-items: center;
      margin-bottom: 12px;
    }

    .notes-mobile-difficulty-tabs {
      display: none;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      margin-top: 8px;
    }

    .notes-mobile-difficulty-tab {
      appearance: none;
      border: 2px solid var(--brand-light);
      background: #fff;
      color: var(--accent);
      border-radius: 999px;
      padding: 8px 12px;
      font: inherit;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      box-sizing: border-box;
    }

    .notes-mobile-difficulty-tab.is-active {
      background: linear-gradient(135deg, #fff0f7 0%, #ffe6f2 100%);
      border-color: var(--brand);
    }

    .notes-mobile-list-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 0 2px 2px;
    }

    .notes-mobile-list-head-side {
      display: grid;
      grid-template-columns: 110px;
      gap: 6px;
      align-items: center;
      justify-content: end;
    }

    .notes-mobile-sort-button {
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      font: inherit;
      font-size: 0.84rem;
      font-weight: 700;
      color: var(--text-muted);
      text-align: left;
      cursor: pointer;
    }

    .notes-mobile-sort-button.is-active {
      color: var(--accent);
    }

    .notes-mobile-sort-button--side {
      width: 100%;
      text-align: center;
    }

    .notes-table-wrap {
      overflow-x: auto;
      border: 2px solid #f8d4e6;
      border-radius: 18px;
      background: #fffdfd;
    }

    .notes-table {
      width: 100%;
      min-width: 0;
      border-collapse: collapse;
      table-layout: fixed;
    }

    .notes-table th:nth-child(1),
    .notes-table td:nth-child(1) {
      width: 30%;
    }

    .notes-table th:nth-child(2),
    .notes-table td:nth-child(2) {
      width: 28%;
    }

    .notes-table th:nth-child(n + 3),
    .notes-table td:nth-child(n + 3) {
      width: 10.5%;
    }

    .notes-table thead th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #fff6fb;
      border-bottom: 2px solid #f5cade;
      padding: 0;
      text-align: left;
      white-space: nowrap;
    }

    .notes-table tbody td {
      padding: 13px 12px;
      border-bottom: 1px solid #f8dfea;
      vertical-align: middle;
      font-size: 0.96rem;
    }

    .notes-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .notes-table tbody tr:nth-child(even) {
      background: rgba(252, 242, 248, 0.55);
    }

    .notes-sort-button {
      width: 100%;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      justify-content: flex-start;
      appearance: none;
      background: transparent;
      border: 0;
      padding: 13px 12px;
      font: inherit;
      font-weight: 800;
      color: var(--accent);
      cursor: pointer;
    }

    .notes-sort-button:hover,
    .notes-sort-button:focus-visible {
      background: rgba(244, 114, 182, 0.08);
      outline: none;
    }

    .notes-sort-icon {
      display: inline-block;
      min-width: 1.2em;
      color: #d16a99;
      font-size: 0.92rem;
    }

    .notes-title-cell {
      color: var(--text-main);
    }

    .notes-title-main {
      display: block;
      font-weight: 700;
    }

    .notes-title-button {
      width: 100%;
      display: inline-flex;
      align-items: flex-start;
      gap: 7px;
      justify-content: flex-start;
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      font: inherit;
      color: inherit;
      text-align: left;
      cursor: pointer;
    }

    .notes-title-button:hover .notes-title-button-text,
    .notes-title-button:focus-visible .notes-title-button-text {
      color: var(--accent);
    }

    .notes-title-button:focus-visible {
      outline: none;
    }

    .notes-title-button-text {
      display: block;
      min-width: 0;
      font-weight: 700;
      word-break: break-word;
    }

    .notes-title-button-icon {
      flex: 0 0 auto;
      margin-top: 0.16em;
      font-size: 0.7rem;
      line-height: 1;
      color: #d16a99;
    }

    .notes-title-sub {
      display: block;
      margin-top: 4px;
      font-size: 0.84rem;
      color: var(--text-muted);
    }

    .notes-title-note-variation {
      display: inline-block;
      margin-top: 6px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--accent);
    }

    .notes-attribute-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 80px;
      padding: 6px 8px;
      border-radius: 999px;
      background: #fff0f7;
      color: var(--accent);
      font-size: 0.86rem;
      font-weight: 700;
    }

    .notes-attribute-pill[data-attribute-style="all-attribute"] {
      background: #fff;
      color: var(--accent);
      border: 1px solid rgba(244, 114, 182, 0.18);
    }

    .notes-attribute-pill[data-attribute-style="brilliant"] {
      background: #e8f2ff;
      color: #2f69bf;
    }

    .notes-attribute-pill[data-attribute-style="flash"] {
      background: #fff3c9;
      color: #b88400;
    }

    .notes-attribute-pill[data-attribute-style="glitter"] {
      background: #e5f5e8;
      color: #31824f;
    }

    .notes-attribute-pill[data-attribute-style="sparkle"] {
      background: #ffd8df;
      color: #bd4057;
    }

    .notes-value-cell {
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .notes-detail-button {
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      font: inherit;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--accent);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 0.14em;
    }

    .notes-table tbody td.notes-variable-cell {
      padding: 12px;
      background: #fffafc;
    }

    .notes-record-detail {
      display: grid;
      gap: 10px;
    }

    .notes-card .notes-record-detail {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #f6ddea;
    }

    .notes-credit-detail,
    .notes-variable-detail {
      border: 1px solid #f4d9e7;
      border-radius: 12px;
      background: #fff;
      padding: 10px 12px 12px;
    }

    .notes-credit-list {
      margin: 0;
      display: grid;
      gap: 8px;
    }

    .notes-credit-item {
      margin: 0;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
    }

    .notes-credit-label {
      margin: 0;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text-muted);
    }

    .notes-credit-value {
      margin: 0;
      font-size: 0.9rem;
      line-height: 1.45;
      color: var(--text-main);
      word-break: break-word;
    }

    .notes-variable-detail {
      padding: 10px 12px 12px;
    }

    .notes-variable-head,
    .notes-variable-row {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
      gap: 8px;
      align-items: center;
    }

    .notes-variable-head {
      padding-bottom: 6px;
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--text-muted);
    }

    .notes-variable-row {
      padding: 6px 0;
      border-top: 1px solid #f6ddea;
      font-size: 0.88rem;
      color: var(--text-main);
    }

    .notes-variable-row:first-of-type {
      border-top: 0;
    }

    .notes-variable-unit {
      font-weight: 700;
    }

    .notes-empty {
      margin: 0;
      padding: 28px 18px;
      text-align: center;
      color: var(--text-muted);
    }

    .notes-cards {
      display: grid;
      gap: 8px;
      padding: 8px;
    }

    .notes-card {
      border: 2px solid #f8d4e6;
      border-radius: 14px;
      background: #fff;
      padding: 10px 12px;
    }

    .notes-card-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
    }

    .notes-card-main {
      min-width: 0;
    }

    .notes-card-title {
      margin: 0;
      font-size: 0.98rem;
      line-height: 1.3;
      color: var(--text-main);
      word-break: break-word;
    }

    .notes-card-singer {
      margin: 2px 0 0;
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.25;
      word-break: break-word;
    }

    .notes-card-note-variation {
      margin: 4px 0 0;
      font-size: 0.7rem;
      font-weight: 700;
      line-height: 1.2;
      color: var(--accent);
    }

    .notes-card-side {
      display: grid;
      grid-template-columns: 84px 64px;
      align-items: center;
      justify-content: end;
      gap: 6px;
    }

    .notes-card-value {
      padding: 8px 8px;
      border-radius: 12px;
      background: #fff6fb;
      text-align: center;
      font-size: 1.16rem;
      font-weight: 800;
      color: var(--accent);
      font-variant-numeric: tabular-nums;
      line-height: 1;
    }

    .notes-card-value-button {
      appearance: none;
      border: 0;
      cursor: pointer;
    }

    .notes-card-side .notes-attribute-pill {
      width: 100%;
      min-width: 0;
    }

    @media (max-width: 850px) {
      body[data-page="catalog"] .page-affiliate-note {
        display: block;
      }

      body[data-page="catalog"] .main-content {
        padding: 6px 8px 8px;
      }

      .panel {
        padding: 8px 6px;
        margin-bottom: 4px;
      }

      .notes-filter-row {
        align-items: stretch;
      }

      .notes-search {
        flex-basis: 100%;
      }

      .notes-tabs,
      .notes-mobile-difficulty-tabs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
        gap: 6px;
      }

      #notes-attribute-tabs.notes-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      #notes-attribute-tabs.notes-tabs .notes-tab:nth-child(1),
      #notes-attribute-tabs.notes-tabs .notes-tab:nth-child(2) {
        grid-column: span 2;
      }

      .notes-filter-group[data-filter-panel="difficulty"] {
        display: block;
      }

      .notes-filter-label {
        display: none;
      }

      .notes-filter-toggle {
        width: 100%;
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) 14px;
        align-items: center;
        column-gap: 10px;
        padding: 8px 12px;
        border: 2px solid var(--brand-light);
        border-radius: 12px;
        background: #fff;
        color: var(--text-main);
        font: inherit;
        cursor: pointer;
      }

      .notes-filter-toggle-label {
        font-size: 0.84rem;
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
      }

      .notes-filter-toggle-value {
        min-width: 0;
        font-size: 0.84rem;
        font-weight: 700;
        color: var(--accent);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: center;
        padding: 4px 12px;
        border-radius: 999px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .notes-filter-group[data-filter-panel="attribute"] .notes-filter-toggle-value {
        border: 1px solid transparent;
      }

      .notes-filter-group[data-filter-panel="attribute"] .notes-filter-toggle[data-attribute-style="brilliant"] .notes-filter-toggle-value {
        background: #dfeeff;
        border-color: #79b0f2;
        color: #2f69bf;
      }

      .notes-filter-group[data-filter-panel="attribute"] .notes-filter-toggle[data-attribute-style="flash"] .notes-filter-toggle-value {
        background: #fff2bf;
        border-color: #efc248;
        color: #b88400;
      }

      .notes-filter-group[data-filter-panel="attribute"] .notes-filter-toggle[data-attribute-style="glitter"] .notes-filter-toggle-value {
        background: #dff1e3;
        border-color: #7fc18b;
        color: #31824f;
      }

      .notes-filter-group[data-filter-panel="attribute"] .notes-filter-toggle[data-attribute-style="sparkle"] .notes-filter-toggle-value {
        background: #ffc8d2;
        border-color: #e26a7f;
        color: #bd4057;
      }

      .notes-filter-toggle-icon {
        font-size: 0.8rem;
        color: var(--text-muted);
        justify-self: end;
      }

      .notes-filter-body {
        display: none;
        padding-top: 6px;
      }

      .notes-filter-group.is-open .notes-filter-body {
        display: block;
      }

      .notes-filter-group.is-open .notes-filter-toggle {
        border-color: var(--brand);
        box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.08) inset;
      }

      .notes-filter-group.is-open .notes-filter-toggle-icon {
        color: var(--accent);
      }

      .notes-tab,
      .notes-mobile-difficulty-tab {
        width: 100%;
        min-width: 0;
        padding: 7px 0;
        font-size: 0.82rem;
        line-height: 1;
      }

      .notes-search-tab {
        min-height: 48px;
        padding: 7px 4px 6px;
        font-size: 0.78rem;
        line-height: 1.2;
      }

      .notes-search-tab-label--stack {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        white-space: normal;
      }

      .notes-search-tab-label--stack span {
        display: block;
      }

      .notes-tab {
        box-shadow: none;
      }

      .notes-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
      }

      .notes-meta-row {
        margin-bottom: 4px;
      }
    }

    @media (max-width: 520px) {
      .panel {
        padding: 8px 6px;
      }

      .notes-panel-search {
        padding-bottom: 4px;
        margin-bottom: 2px;
      }

      .notes-panel-filters {
        padding-top: 4px;
        padding-bottom: 4px;
        margin-bottom: 0;
      }

      .notes-credit-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
      }

      .notes-panel-list {
        padding-top: 2px;
        padding-bottom: 0;
        margin-bottom: 0;
      }

      .notes-filter-row {
        gap: 8px;
      }

      .notes-search {
        padding: 7px 10px;
      }

      .notes-card {
        padding: 6px 10px;
      }

      .notes-attribute-pill {
        min-width: 0;
        padding: 4px 9px;
        font-size: 0.78rem;
      }

      .notes-card-title {
        font-size: 0.94rem;
        line-height: 1.2;
      }

      .notes-card-singer {
        margin-top: 1px;
        font-size: 0.74rem;
        line-height: 1.15;
      }

      .notes-card-row {
        gap: 4px;
      }

      .notes-card-side {
        grid-template-columns: 78px 56px;
        gap: 5px;
      }

      .notes-card-value {
        padding: 6px 8px;
        font-size: 1.02rem;
      }

      .notes-variable-detail {
        margin-top: 8px;
        padding: 8px 10px 10px;
        border-top: 1px solid #f6ddea;
      }

      .notes-variable-head,
      .notes-variable-row {
        grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
        gap: 6px;
      }

      .notes-variable-head {
        font-size: 0.68rem;
      }

      .notes-variable-row {
        font-size: 0.74rem;
      }

      .notes-detail-button {
        font-size: 0.82rem;
      }

      .notes-mobile-list-head {
        gap: 5px;
      }

      .notes-mobile-list-head-side {
        grid-template-columns: 78px 56px;
        gap: 5px;
      }

      .notes-mobile-sort-button {
        font-size: 0.78rem;
      }

      .notes-hero {
        margin-top: -4px;
        margin-bottom: 6px;
        padding: 0 4px;
      }

      .notes-hero-top {
        margin-bottom: 6px;
      }

      .notes-hero-links {
        gap: 6px;
      }

      .notes-filter-label {
        margin-bottom: 4px;
      }

      .notes-filter-group + .notes-filter-group {
        margin-top: 4px;
      }

      .notes-mobile-list-head {
        padding-top: 0;
      }

      .notes-cards {
        padding-top: 4px;
        padding-bottom: 0;
      }
    }


    body[data-page="catalog"] .layout-shell {
      max-width: 1280px;
      margin-top: 0;
    }

    body[data-page="catalog"] .main-content {
      flex: 1 1 auto;
      min-width: 0;
      padding-top: 2px;
      padding-bottom: 28px;
    }

    body[data-page="catalog"] .page-affiliate-note {
      display: none;
    }

    .creators-hero {
      position: relative;
      margin-top: 0;
      margin-bottom: 8px;
      padding-top: 0;
    }

    .creators-hero-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 6px;
      margin-bottom: 8px;
    }

    .creators-hero-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .creators-hero .subpage-back-link {
      margin: 0;
      flex: 0 0 auto;
    }

    .creators-hero .page-updated-at {
      position: static;
      margin: 0;
      flex: 0 0 auto;
      text-align: right;
    }

    .creators-hero .subpage-title {
      font-size: 1.35rem;
      line-height: 1.2;
      margin: 0 0 4px;
      color: var(--accent);
    }

    .creators-filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .creators-search-box {
      display: grid;
      gap: 0;
      width: 100%;
    }

    .creators-search-tabs {
      position: relative;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
      width: 100%;
      margin-bottom: 0;
      z-index: 1;
    }

    .creators-search-tab {
      display: flex;
      align-items: center;
      justify-content: center;
      appearance: none;
      border: 2px solid var(--brand-light);
      background: #fff;
      color: var(--accent);
      border-bottom: 2px solid var(--brand-light);
      border-radius: 12px 12px 0 0;
      min-height: 44px;
      padding: 7px 6px 6px;
      font: inherit;
      font-weight: 700;
      line-height: 1.2;
      text-align: center;
      cursor: pointer;
      box-sizing: border-box;
    }

    .creators-search-tab.is-active {
      background: linear-gradient(135deg, #fff0f7 0%, #ffe6f2 100%);
      border-color: var(--brand);
      position: relative;
      z-index: 2;
    }

    .creators-search-tab + .creators-search-tab {
      margin-left: -2px;
    }

    .creators-search {
      width: 100%;
      min-width: 0;
      padding: 8px 12px;
      border: 2px solid var(--brand-light);
      border-radius: 0 0 12px 12px;
      font: inherit;
      background: #fff;
      color: var(--text-main);
      margin-top: -2px;
    }

    .creators-search:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.12);
    }

    .creators-filter-label {
      margin: 0 0 6px;
      font-size: 0.84rem;
      font-weight: 700;
      color: var(--text-muted);
    }

    .creators-role-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .creators-role-tab {
      appearance: none;
      border: 2px solid var(--brand-light);
      background: #fff;
      color: var(--accent);
      border-radius: 999px;
      padding: 10px 16px;
      font: inherit;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
      box-shadow: 2px 2px 0 rgba(244, 114, 182, 0.14);
      box-sizing: border-box;
    }

    .creators-role-tab:hover,
    .creators-role-tab:focus-visible {
      border-color: var(--brand);
      transform: translateY(-1px);
      box-shadow: 4px 4px 0 rgba(244, 114, 182, 0.18);
    }

    .creators-role-tab.is-active {
      background: linear-gradient(135deg, #fff0f7 0%, #ffe6f2 100%);
      border-width: 3px;
      border-color: var(--brand);
      box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.08) inset;
    }

    .creators-table-wrap {
      overflow-x: auto;
      border: 2px solid #f8d4e6;
      border-radius: 18px;
      background: #fffdfd;
    }

    .creators-table {
      width: 100%;
      min-width: 0;
      border-collapse: collapse;
      table-layout: fixed;
    }

    .creators-table th:nth-child(1),
    .creators-table td:nth-child(1) {
      width: 82%;
    }

    .creators-table th:nth-child(2),
    .creators-table td:nth-child(2) {
      width: 18%;
    }

    .creators-table thead th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #fff6fb;
      border-bottom: 2px solid #f5cade;
      padding: 0;
      text-align: left;
      white-space: nowrap;
    }

    .creators-table tbody td {
      padding: 13px 12px;
      border-bottom: 1px solid #f8dfea;
      vertical-align: middle;
      font-size: 0.96rem;
    }

    .creators-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .creators-table tbody tr:nth-child(even) {
      background: rgba(252, 242, 248, 0.55);
    }

    .creators-sort-button {
      width: 100%;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      justify-content: flex-start;
      appearance: none;
      background: transparent;
      border: 0;
      padding: 13px 12px;
      font: inherit;
      font-weight: 800;
      color: var(--accent);
      cursor: pointer;
    }

    .creators-sort-button:hover,
    .creators-sort-button:focus-visible {
      background: rgba(244, 114, 182, 0.08);
      outline: none;
    }

    .creators-sort-icon {
      display: inline-block;
      min-width: 1.2em;
      color: #d16a99;
      font-size: 0.92rem;
    }

    .creators-title-button {
      width: 100%;
      display: inline-flex;
      align-items: flex-start;
      gap: 7px;
      justify-content: flex-start;
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      font: inherit;
      color: inherit;
      text-align: left;
      cursor: pointer;
    }

    .creators-title-button:hover .creators-title-button-text,
    .creators-title-button:focus-visible .creators-title-button-text {
      color: var(--accent);
    }

    .creators-title-button:focus-visible {
      outline: none;
    }

    .creators-title-button-text {
      display: block;
      min-width: 0;
      font-weight: 700;
      word-break: break-word;
    }

    .creators-title-button-icon {
      flex: 0 0 auto;
      margin-top: 0.16em;
      font-size: 0.7rem;
      line-height: 1;
      color: #d16a99;
    }

    .creators-roles-cell {
      color: var(--text-main);
    }

    .creators-role-pill,
    .creators-song-role-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 999px;
      background: #fff0f7;
      color: var(--accent);
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1;
      white-space: nowrap;
    }

    .creators-role-pill-count {
      font-variant-numeric: tabular-nums;
    }

    .creators-role-pill[data-role-key="lyricist"],
    .creators-song-role-pill[data-role-key="lyricist"] {
      background: #ffe8c9;
      color: #b56c00;
    }

    .creators-role-pill[data-role-key="composer"],
    .creators-song-role-pill[data-role-key="composer"] {
      background: #e7efff;
      color: #2f69bf;
    }

    .creators-role-pill[data-role-key="arranger"],
    .creators-song-role-pill[data-role-key="arranger"] {
      background: #e5f5e8;
      color: #31824f;
    }

    .creators-roles-cell,
    .creators-card-roles,
    .creators-song-side {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }

    .creators-song-side {
      justify-content: flex-end;
      padding-top: 1px;
    }

    .creators-count-cell {
      font-variant-numeric: tabular-nums;
      font-weight: 800;
      color: var(--accent);
      white-space: nowrap;
    }

    .creators-detail-cell {
      padding: 12px;
      background: #fffafc;
    }

    .creators-detail {
      display: grid;
      gap: 8px;
      border: 1px solid #f4d9e7;
      border-radius: 12px;
      background: #fff;
      padding: 10px 12px 12px;
    }

    .creators-song-item {
      display: grid;
      gap: 4px;
      padding-top: 8px;
      border-top: 1px solid #f6ddea;
    }

    .creators-song-item:first-child {
      padding-top: 0;
      border-top: 0;
    }

    .creators-song-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: start;
      min-width: 0;
    }

    .creators-song-title {
      margin: 0;
      font-weight: 700;
      color: var(--text-main);
      word-break: break-word;
    }

    .creators-song-singer {
      margin: 0;
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.35;
      word-break: break-word;
    }

    .creators-empty {
      margin: 0;
      padding: 28px 18px;
      text-align: center;
      color: var(--text-muted);
    }

    .creators-cards {
      display: grid;
      gap: 8px;
      padding: 8px;
    }

    .creators-mobile-list-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 80px;
      gap: 10px;
      align-items: center;
      padding: 0 2px 2px;
    }

    .creators-mobile-sort-button {
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      font: inherit;
      font-size: 0.84rem;
      font-weight: 700;
      color: var(--text-muted);
      text-align: left;
      cursor: pointer;
    }

    .creators-mobile-sort-button.is-active {
      color: var(--accent);
    }

    .creators-mobile-sort-button--count {
      text-align: right;
    }

    .creators-card {
      border: 2px solid #f8d4e6;
      border-radius: 14px;
      background: #fff;
      padding: 10px 12px;
    }

    .creators-card-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
    }

    .creators-card-main {
      min-width: 0;
      display: grid;
      gap: 6px;
    }

    .creators-card-title {
      margin: 0;
      font-size: 1rem;
      line-height: 1.3;
      color: var(--text-main);
      word-break: break-word;
    }

    .creators-card-count {
      min-width: 64px;
      padding: 8px 10px;
      border-radius: 12px;
      background: #fff6fb;
      text-align: center;
      font-size: 1.12rem;
      font-weight: 800;
      color: var(--accent);
      font-variant-numeric: tabular-nums;
      line-height: 1;
    }

    .creators-card .creators-detail {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #f6ddea;
    }

    @media (max-width: 850px) {
      body[data-page="catalog"] .page-affiliate-note {
        display: block;
      }

      body[data-page="catalog"] .main-content {
        padding: 6px 8px 8px;
      }

      .panel {
        padding: 8px 6px;
        margin-bottom: 4px;
      }

      .creators-role-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
      }

      .creators-role-tab {
        width: 100%;
        min-width: 0;
        padding: 7px 0;
        font-size: 0.82rem;
        line-height: 1;
        box-shadow: none;
      }

      .creators-search-tab {
        min-height: 48px;
        padding: 7px 4px 6px;
        font-size: 0.82rem;
        line-height: 1.2;
      }

      .creators-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
      }
    }

    @media (max-width: 520px) {
      .panel {
        padding: 8px 6px;
      }

      .creators-hero {
        margin-top: -4px;
        margin-bottom: 6px;
        padding: 0 4px;
      }

      .creators-hero-top {
        margin-bottom: 6px;
      }

      .creators-hero-links {
        gap: 6px;
      }

      .creators-filter-label {
        margin-bottom: 4px;
      }

      .creators-role-pill,
      .creators-song-role-pill {
        gap: 5px;
        padding: 5px 8px;
        font-size: 0.74rem;
      }

      .creators-mobile-list-head {
        gap: 6px;
      }

      .creators-mobile-sort-button {
        font-size: 0.78rem;
      }

      .creators-card-count {
        min-width: 58px;
        font-size: 1.04rem;
      }
    }

.catalog-mobile-view{display:none}.catalog-section{margin-top:18px;scroll-margin-top:16px}.catalog-section-intro{display:grid;gap:8px}
.catalog-status,.catalog-filter-summary{margin:0;color:var(--text-muted);font-size:.9rem}.catalog-status{font-weight:700;color:var(--accent)}
.catalog-section-return{display:inline-flex;align-items:center;min-height:44px;width:fit-content;color:var(--accent);font-weight:700}
.catalog-directory{scroll-margin-top:16px}.catalog-directory>.home-card-title{margin-bottom:12px}.catalog-directory .home-card{min-height:92px;align-content:center}
.catalog-section .panel{margin-bottom:8px}.catalog-section .panel:last-child{margin-bottom:0}
.catalog-section[data-catalog-type=unlocks] .notes-table th:nth-child(1),.catalog-section[data-catalog-type=unlocks] .notes-table td:nth-child(1){width:38%}
.catalog-section[data-catalog-type=unlocks] .notes-table th:nth-child(2),.catalog-section[data-catalog-type=unlocks] .notes-table td:nth-child(2){width:22%}
.catalog-section[data-catalog-type=unlocks] .notes-table th:nth-child(3),.catalog-section[data-catalog-type=unlocks] .notes-table td:nth-child(3){width:40%}
.catalog-section[data-catalog-type=constants] .notes-table th:nth-child(1),.catalog-section[data-catalog-type=constants] .notes-table td:nth-child(1){width:34%}
.catalog-section[data-catalog-type=constants] .notes-table th:nth-child(2),.catalog-section[data-catalog-type=constants] .notes-table td:nth-child(2){width:23%}
.catalog-section[data-catalog-type=constants] .notes-table th:nth-child(3),.catalog-section[data-catalog-type=constants] .notes-table td:nth-child(3){width:16%}
.catalog-section[data-catalog-type=constants] .notes-table th:nth-child(4),.catalog-section[data-catalog-type=constants] .notes-table td:nth-child(4){width:13%}
.catalog-section[data-catalog-type=constants] .notes-table th:nth-child(5),.catalog-section[data-catalog-type=constants] .notes-table td:nth-child(5){width:14%}
.catalog-section[data-catalog-type=unlocks] .notes-table td,.catalog-section[data-catalog-type=constants] .notes-table td{overflow-wrap:anywhere}
.home-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:850px){.catalog-desktop-view{display:none}.catalog-mobile-view{display:block}body[data-page=catalog] .page-affiliate-note{display:block}}
@media(min-width:851px){.catalog-desktop-view{display:block}body[data-page=catalog] .page-affiliate-note{display:none}}
@media(prefers-reduced-motion:reduce){.home-card{transition:none}.home-card:hover,.home-card:focus-visible{transform:none}}
/* Keep long column labels within their existing columns. */
.catalog-section .notes-sort-button{padding-inline:6px;line-height:1.4;font-size:.84rem}
.catalog-section .notes-sort-button>[data-sort-icon]{flex-shrink:0}
.catalog-section[data-catalog-type=songs] .notes-table{min-width:800px}
.catalog-section .notes-sort-button>span:first-child{min-width:0;white-space:normal;overflow-wrap:normal}
.catalog-section[data-catalog-type=songs] .notes-table th:nth-child(1),.catalog-section[data-catalog-type=songs] .notes-table td:nth-child(1){width:28%}
.catalog-section[data-catalog-type=songs] .notes-table th:nth-child(n+3),.catalog-section[data-catalog-type=songs] .notes-table td:nth-child(n+3){width:10%}
.catalog-section[data-catalog-type=songs] .notes-table th:nth-child(5),.catalog-section[data-catalog-type=songs] .notes-table td:nth-child(5){width:11%}
.catalog-section[data-catalog-type=songs] .notes-table th:nth-child(6),.catalog-section[data-catalog-type=songs] .notes-table td:nth-child(6){width:13%}
/* Keep the existing catalogue controls easy to tap and visibly focused on the keyboard path. */
@media(max-width:850px){.catalog-mobile-view .notes-title-button,.catalog-mobile-view .creators-title-button,.catalog-mobile-view .notes-mobile-sort-button,.catalog-mobile-view .creators-mobile-sort-button{min-height:24px}}
.catalog-section .notes-title-button:focus-visible,.catalog-section .creators-title-button:focus-visible,.catalog-section .notes-sort-button:focus-visible,.catalog-section .creators-sort-button:focus-visible,.catalog-section .notes-mobile-sort-button:focus-visible,.catalog-section .creators-mobile-sort-button:focus-visible,.catalog-section .notes-search-tab:focus-visible,.catalog-section .creators-search-tab:focus-visible,.catalog-section .notes-mobile-difficulty-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
    .catalog-section[data-filter-field] .notes-mobile-difficulty-tabs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
