@layer legacy {
.clef-repeat-chart { margin: 2rem 0; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line, var(--line)); border-top: 4px solid var(--teal, var(--teal)); background: var(--teal-pale); color: var(--ink, var(--teal)); font-family: var(--sans, sans-serif); }
.clef-repeat-chart figcaption { margin-bottom: 1.4rem; }
.clef-repeat-kicker { display: block; margin-bottom: .55rem; color: var(--teal, var(--teal)); font: 600 13px/1.5 var(--mono, monospace); letter-spacing: 0; text-transform: none; }
.clef-repeat-chart h3 { margin: 0 0 .45rem; font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.12 var(--display, sans-serif); letter-spacing: -.035em; }
.clef-repeat-chart figcaption p { max-width: 68ch; margin: 0; color: var(--muted, var(--teal)); font-size: 15px; }
.clef-repeat-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line, var(--line)); background: var(--surface); }
.clef-repeat-scroll:focus-visible { outline: 3px solid var(--teal, var(--teal)); outline-offset: 3px; }
.clef-repeat-chart table { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; }
.clef-repeat-chart th, .clef-repeat-chart td { padding: .95rem .85rem; border-right: 1px solid var(--line, var(--line)); border-bottom: 1px solid var(--line, var(--line)); vertical-align: top; text-align: left; }
.clef-repeat-chart tr > :last-child { border-right: 0; }
.clef-repeat-chart tbody tr:last-child > * { border-bottom: 0; }
.clef-repeat-chart thead th { background: var(--teal-pale); color: var(--muted, var(--teal)); font: 600 13px/1.4 var(--mono, monospace); text-transform: none; letter-spacing: 0; }
.clef-repeat-chart thead th:first-child { width: 24%; }
.clef-repeat-chart tbody th { background: var(--surface); font-size: 13px; line-height: 1.4; }
.clef-repeat-prompt { display: block; margin-bottom: .3rem; color: var(--teal, var(--teal)); font: 700 20px/1 var(--display, sans-serif); }
.clef-repeat-score { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem; flex-wrap: wrap; white-space: nowrap; }
.clef-repeat-score strong { font: 700 20px/1.1 var(--display, sans-serif); font-variant-numeric: tabular-nums; }
.clef-repeat-score strong span { color: var(--muted, var(--teal)); font-size: 13px; }
.clef-repeat-valid { color: var(--muted, var(--teal)); font-size: 13px; }
.clef-repeat-track { display: block; height: .42rem; margin-top: .65rem; background: var(--teal-pale); }
.clef-repeat-track > span { display: block; height: 100%; background: var(--teal, var(--teal)); }
.clef-repeat-interrupted { display: grid; gap: .16rem; padding-left: .62rem; border-left: 3px solid var(--coral, var(--coral)); color: var(--muted, var(--teal)); font-size: 13px; line-height: 1.4; }
.clef-repeat-interrupted strong { color: var(--ink, var(--teal)); font-size: 13px; }
.clef-repeat-interrupted small { font-size: 13px; }
.clef-repeat-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.clef-repeat-notes p { margin: 0; padding-top: .7rem; border-top: 1px solid var(--line, var(--line)); color: var(--muted, var(--teal)); font-size: 13px; line-height: 1.5; }
.clef-repeat-notes strong { display: block; color: var(--ink, var(--teal)); font-size: 13px; }
.clef-repeat-source { margin: 1.2rem 0 0; font-size: 13px; font-weight: 700; }
.clef-repeat-source a { color: var(--teal, var(--teal)); text-underline-offset: .2em; }
.clef-repeat-source a:focus-visible { outline: 3px solid var(--teal, var(--teal)); outline-offset: 3px; }
.clef-repeat-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 700px) { .clef-repeat-chart { padding: 1rem; } .clef-repeat-notes { grid-template-columns: 1fr; gap: .7rem; } .clef-repeat-notes p { padding-top: .6rem; } }
@media (prefers-reduced-motion: reduce) { .clef-repeat-chart *, .clef-repeat-chart *::before, .clef-repeat-chart *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
}
