.held-large-text {
  font-size: 200%;
}

.held-main {
  padding-block: clamp(2rem, 4vw, 4rem) 4rem;
}

.held-page [hidden] {
  display: none !important;
}

.held-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.held-heading h1 {
  max-width: 20ch;
  font-size: clamp(2.05rem, 1.55rem + 2.35vw, 3.6rem);
  text-wrap: balance;
}

.held-heading p:not(.eyebrow) {
  max-width: 44rem;
  margin: .75rem 0 0;
  color: var(--muted);
}

.held-workbench {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(16rem, 1fr);
  gap: 1rem;
  align-items: start;
}

.held-panel {
  min-width: 0;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
}

.held-sidebar {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.held-sidebar h2 {
  margin-bottom: .65rem;
  font-size: 1.34rem;
}

.held-result {
  padding: 0;
}

.held-result-intro {
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: .8rem .8rem 0 0;
  background: #edf2ea;
}

.held-result-intro[data-status="NO"] {
  background: #f8ebdd;
}

.held-status {
  margin: 0 0 .45rem;
  color: var(--forest);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

[data-status="NO"] .held-status {
  color: #804324;
}

#result-title {
  font-size: clamp(1.55rem, 1.35rem + .75vw, 2.12rem);
  scroll-margin-top: 1rem;
}

#result-copy {
  max-width: 65ch;
  margin: .5rem 0 .9rem;
}

.held-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.held-page .action {
  max-width: 100%;
  min-height: 2.75rem;
  border-radius: .32rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.held-page .action:disabled {
  cursor: default;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.held-transport {
  padding: .7rem clamp(.8rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--border);
}

.held-transport p, .held-score-heading p, .held-variants p, .held-caption {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}

.held-transport small {
  margin-inline-start: .12rem;
  color: var(--muted);
  font-weight: 450;
  font-size: .83em;
}

.held-page .held-play {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-left: .52rem;
}

.held-play.is-playing {
  color: var(--surface);
  background: var(--forest);
}

.held-play.is-playing small {
  color: var(--surface);
}

.held-letter {
  display: inline-grid;
  min-width: 1.45rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: #e5ede4;
  font-size: .78rem;
  font-weight: 750;
}

#play-b .held-letter {
  color: #783d28;
  background: #f2e6dd;
}

.held-score {
  padding: .9rem clamp(.8rem, 3vw, 1.6rem);
}

.held-score-heading h3, .held-variants h3 {
  font-size: 1.2rem;
}

.held-scroll-hint {
  margin: .55rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}

.held-score-scroll {
  margin-top: .55rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: .45rem;
  scrollbar-color: var(--forest) var(--paper);
}

.held-timeline {
  min-width: 37rem;
  margin: 0;
  padding: .45rem .45rem .1rem;
  background: #fbfaf5;
}

.held-timeline-short {
  min-width: 32rem;
}

.held-timeline + .held-timeline {
  border-top: 1px solid var(--line);
}

.held-timeline figcaption {
  margin: 0 .5rem;
  font-size: .83rem;
  font-weight: 750;
  color: var(--forest);
}

.held-timeline[data-track="B"] figcaption {
  color: var(--accent-text);
}

.held-timeline svg {
  display: block;
  width: 100%;
}

.held-timeline text {
  fill: var(--ink);
  font: 600 13.5px var(--sans);
}

.held-timeline .held-chord, .held-timeline .held-note {
  text-anchor: middle;
}

.held-timeline .held-chord {
  font-weight: 750;
}

.held-grid-line, .held-lane-line {
  fill: none;
  stroke: #dcded2;
  stroke-width: 1;
}

.held-link, .held-tick {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

.held-link.is-move {
  stroke-width: 1.4;
  stroke-dasharray: 2.5 5;
}

.held-link.is-hold {
  stroke-width: 2.4;
}

.held-link.is-protected {
  stroke-width: 4;
}

.held-tick {
  stroke-width: 2;
}

.held-attack {
  fill: currentColor;
}

.held-target-note {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.5;
}

.held-lane-1 {
  color: #355a46;
}

.held-lane-2 {
  color: #32577a;
}

.held-lane-3 {
  color: #8f452e;
}

.held-beat {
  fill: transparent;
}

.is-playing .held-beat {
  fill: #ebe9d4;
}

.held-variants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .9rem clamp(.8rem, 3vw, 1.6rem);
  border-top: 1px solid var(--border);
}

.held-variant-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  max-width: 100%;
}

.held-page select {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  max-width: 100%;
  padding: .37rem .4rem;
  border: 1px solid var(--line);
  border-radius: .32rem;
  color: var(--ink);
  background: var(--surface);
  font-size: .9rem;
}

.held-page .held-variant-controls select {
  width: auto;
  min-width: 0;
}

.held-settings label {
  display: block;
  margin: .7rem 0 .12rem;
  font-size: .85rem;
  font-weight: 750;
}

.held-context {
  margin: .85rem 0 .25rem;
  font-size: .875rem;
  font-weight: 650;
}

.held-count {
  margin: .6rem 0;
  font-size: .875rem;
  font-weight: 750;
}

.held-hold-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.held-hold-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .28rem .5rem;
  padding-block: .35rem;
  border-top: 1px solid var(--border);
  font-size: .81rem;
}

.held-hold-list li span {
  display: block;
  color: var(--muted);
}

.held-hold-list li .is-required, .held-hold-list li .is-held {
  color: var(--forest);
  font-weight: 750;
}

.held-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--forest);
}

.held-details p {
  margin-block: .6rem;
}

.held-text-view {
  margin-top: .65rem;
}

.held-text-view h4 {
  margin: .7rem 0 .15rem;
}

.held-voice-list, .held-repairs, .held-links {
  margin: .5rem 0;
  padding-inline-start: 1.25rem;
}

.held-voice-list > li, .held-repairs > li, .held-links > li {
  margin-block: .25rem;
}

.held-voice-list ul {
  padding-inline-start: 1.15rem;
}

.held-digest, .held-repairs, .held-links {
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.held-failure, #session-status.is-error {
  color: #804324;
}

#session-status:empty {
  display: none;
}

.held-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 57em) {
  .held-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .held-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 37em) {
  .held-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

.held-large-text .held-workbench, .held-large-text .held-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.held-large-text .held-timeline {
  min-width: 37rem;
}
