.tool {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 26px;
}
.tool form {
  display: grid;
  gap: 18px;
}
.drop {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 10px clamp(14px, 2vw, 24px) 26px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background-color: var(--paper);
  background-image: var(--grain);
  cursor: pointer;
  transition:
    border-color .25s var(--ease),
    background-color .25s var(--ease),
    box-shadow .25s var(--ease);
}
.drop:hover,
.drop.over {
  border-color: var(--brass);
  background-color: var(--card);
  box-shadow: 0 0 0 4px var(--brass-soft);
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.drop-staff {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-top: 6px;
  color: var(--ink);
  overflow: visible;
}
.ds-lines {
  opacity: .28;
}
.ds-clef {
  opacity: .85;
}
.ds-bar {
  opacity: .5;
}
.ds-note {
  opacity: .12;
  transform: translateY(-7px);
  transition: opacity .4s var(--ease), transform .55s var(--ease);
}
.ds-note.n2 {
  transition-delay: 40ms;
}
.ds-note.n3 {
  transition-delay: 80ms;
}
.ds-note.n4 {
  transition-delay: 120ms;
}
.ds-note.n5 {
  transition-delay: 160ms;
}
.ds-note.n6 {
  transition-delay: 200ms;
}
.ds-note.n7 {
  transition-delay: 240ms;
}
.ds-note.n8 {
  transition-delay: 280ms;
}
.ds-note.n9 {
  transition-delay: 320ms;
}
.ds-play {
  opacity: 0;
  transition: opacity .3s;
}
.drop:hover .ds-note,
.drop.over .ds-note,
.drop:focus-within .ds-note {
  opacity: .92;
  transform: none;
}
.drop:hover .ds-play,
.drop.over .ds-play {
  opacity: 1;
  animation: ds-sweep 2.8s linear infinite;
}
@keyframes ds-sweep {
  from {
    transform: translateX(92px);
  }
  to {
    transform: translateX(470px);
  }
}
.tool:has(#work:not([hidden])) .ds-note {
  opacity: .92;
  transform: none;
}
.tool:has(#work:not([hidden])) .ds-play {
  opacity: 1;
  animation: ds-sweep 2.8s linear infinite;
}
.drop-title {
  margin-top: 6px;
  font: 400 clamp(1.75rem, 1.4rem + .9vw, 2.15rem)/1.05 var(--serif);
  letter-spacing: -.012em;
  color: var(--ink);
}
.drop-sub {
  max-width: 29em;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.drop-cta {
  margin-top: 12px;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  font-weight: 560;
  font-size: .92rem;
  transition: background-color .2s, color .2s;
}
.drop:hover .drop-cta,
.drop.over .drop-cta {
  background: var(--ebony);
  color: var(--ivory);
}
.files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.files:empty {
  display: none;
}
.files li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
}
.files li.is-ready {
  border-color: var(--brass);
  background: var(--brass-soft);
}
.files li.failed {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.files .row-name {
  font-weight: 600;
  font-size: .95rem;
  overflow-wrap: anywhere;
}
.files progress {
  grid-column: 1 / -1;
  width: 100%;
}
.files .row-status {
  grid-column: 1;
  font-size: .84rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.files .row-remove {
  grid-column: 2;
  grid-row: 1;
  min-height: 32px;
  padding: 4px 12px;
  font-size: .84rem;
}
progress {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  height: 7px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background-color: var(--paper-3);
  color: var(--brass);
}
progress::-webkit-progress-bar {
  background: transparent;
}
progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      var(--brass),
      var(--brass-2));
  border-radius: 99px;
  transition: width .5s var(--ease);
}
progress::-moz-progress-bar {
  background:
    linear-gradient(
      90deg,
      var(--brass),
      var(--brass-2));
  border-radius: 99px;
}
progress:indeterminate {
  background-image:
    linear-gradient(
      90deg,
      transparent 0 30%,
      var(--brass-2) 50%,
      transparent 70% 100%);
  background-size: 220% 100%;
  animation: indet 1.3s linear infinite;
}
@keyframes indet {
  from {
    background-position: 110% 0;
  }
  to {
    background-position: -110% 0;
  }
}
#work {
  width: 100%;
  height: 8px;
}
.ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ask legend {
  width: 100%;
  margin-bottom: 9px;
  padding: 0;
  font-weight: 620;
  font-size: .92rem;
}
.ask label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .9rem;
  line-height: 1.25;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color .18s,
    border-color .18s,
    color .18s;
}
.ask label:hover {
  border-color: var(--ink-3);
  background: rgba(255, 255, 255, .7);
}
.ask input {
  margin: 0;
  accent-color: var(--ebony);
}
@supports selector(:has(*)) {
  .ask input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
  }
  .ask label {
    position: relative;
  }
  .ask label:has(input:checked) {
    background: var(--ebony);
    border-color: var(--ebony);
    color: var(--ivory);
  }
  .ask label:has(input:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
}
.ask legend .opt,
.opt {
  font-weight: 400;
  color: var(--ink-3);
  font-size: .92em;
}
.field {
  display: grid;
  gap: 7px;
  font-size: .92rem;
}
.field > span {
  font-weight: 620;
}
.field input {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder {
  color: #7d7463;
}
.field input:hover {
  border-color: var(--ink-3);
}
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--brass-soft);
}
.field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--ebony);
}
.tool .warn {
  margin: 0;
  font-size: .92rem;
}
.tool .status {
  margin: 0;
  min-height: 0;
}
.tool .status:empty {
  margin-block: -9px;
}
.tool .error {
  margin: 0;
}
.notes {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 2px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.notes li {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 12px;
}
.notes b {
  font: 500 .68rem/1.9 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.result {
  display: grid;
  gap: 30px;
  padding-block: 8px clamp(48px, 6vw, 88px);
  scroll-margin-top: 88px;
}
.result:focus {
  outline: none;
}
.result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: end;
}
.result-head h2 {
  grid-column: 1;
  font-size: clamp(2.7rem, 1.6rem + 3.6vw, 4.6rem);
}
.result-head .score-info {
  grid-column: 1;
  margin: 0;
}
.result-head #head-unlock {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}
.result-head .demo-note {
  grid-column: 1 / -1;
}
.demo-note {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--brass-soft);
  border: 1px solid var(--brass-line);
  color: var(--ink-2);
  font-size: .94rem;
}
.demo-note a {
  color: var(--ink);
}
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.rail {
  display: grid;
  gap: 16px;
  align-content: start;
}
.rail .card {
  padding: 22px 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1040px) {
  .result-grid {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
  }
  .rail {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    margin: -6px -10px;
    padding: 6px 10px 22px;
  }
}
.sheet {
  padding: clamp(12px, 1.6vw, 20px);
  box-shadow: var(--shadow);
}
.window-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 2px 2px 14px;
}
.win-nav,
.win-play {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.win-label {
  padding: 0 6px;
  font: 500 .85rem/1.2 var(--mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.seek {
  display: block;
  margin: 0 2px 14px;
  font-size: .88rem;
  color: var(--ink-3);
}
.seek b {
  font: 500 .88rem var(--mono);
  color: var(--ink);
}
.seek input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 6px 0 0;
  background: transparent;
  cursor: pointer;
}
.seek input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: var(--paper-3);
}
.seek input[type=range]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: var(--paper-3);
}
.seek input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--ebony);
  border: 4px solid var(--card);
  box-shadow: 0 0 0 1px var(--ebony), 0 4px 10px -2px rgba(60, 40, 10, .45);
  transition: transform .15s var(--ease);
}
.seek input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ebony);
  border: 4px solid var(--card);
  box-shadow: 0 0 0 1px var(--ebony);
}
.seek input[type=range]:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
.sheet-view {
  min-height: 220px;
  overflow-x: auto;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .06);
}
.sheet-view:empty {
  background-image:
    linear-gradient(
      to bottom,
      var(--line) 0 1px,
      transparent 1px),
    linear-gradient(
      to bottom,
      var(--line) 0 1px,
      transparent 1px),
    linear-gradient(
      to bottom,
      var(--line) 0 1px,
      transparent 1px),
    linear-gradient(
      to bottom,
      var(--line) 0 1px,
      transparent 1px),
    linear-gradient(
      to bottom,
      var(--line) 0 1px,
      transparent 1px);
  background-size: 100% 110px;
  background-repeat: repeat-y;
  background-position:
    0 30px,
    0 44px,
    0 58px,
    0 72px,
    0 86px;
}
.sheet-view[aria-busy=true] {
  position: relative;
  opacity: .6;
}
.sheet-view[aria-busy=true]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(185, 130, 42, .16) 50%,
      transparent 75%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
.sheet-img {
  display: block;
  width: 100%;
  height: auto;
}
.sheet > .fine {
  margin: 12px 4px 2px;
}
.unlock {
  background: var(--ebony);
  border-color: var(--ebony);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.unlock::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(
      closest-side,
      rgba(216, 168, 80, .26),
      transparent);
}
.unlock h3 {
  font: 400 clamp(1.9rem, 1.5rem + 1vw, 2.35rem)/1.02 var(--serif);
  letter-spacing: -.016em;
  color: var(--ivory);
  margin-bottom: 16px;
}
.unlock .ticks li::before,
.unlock .ticks li::after {
  background: var(--brass-2);
}
.unlock .fine,
.unlock .status {
  color: var(--ivory-2);
}
.unlock .primary {
  background: var(--brass-2);
  border-color: var(--brass-2);
  color: var(--ebony);
  box-shadow: 0 14px 28px -16px rgba(216, 168, 80, .75);
}
.unlock .primary:hover {
  background: #e7bd6c;
  border-color: #e7bd6c;
  color: var(--ebony);
}
.unlock .primary:disabled,
.unlock .primary:disabled:hover {
  background: var(--ebony-3);
  border-color: var(--ebony-3);
  color: var(--ivory-2);
  box-shadow: none;
}
.unlock .secondary {
  color: var(--ivory);
  border-color: var(--ebony-line);
}
.unlock .secondary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--ivory-2);
}
.unlock .error {
  background: rgba(255, 126, 104, .14);
  color: #ffb9ad;
}
#paypal-buttons {
  max-width: 420px;
  margin-top: 14px;
  padding: 14px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(216, 168, 80, .35);
}
.downloads h3 {
  font: 400 clamp(1.9rem, 1.5rem + 1vw, 2.35rem)/1 var(--serif);
  letter-spacing: -.016em;
  margin-bottom: 14px;
}
.downloads .dl-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.downloads .dl-row .primary,
.downloads .dl-row a:last-child {
  grid-column: 1 / -1;
}
.downloads .dl-row .primary {
  min-height: 52px;
}
.downloads .fine {
  margin: 0;
}
.fixbar {
  padding: 0;
  overflow: hidden;
}
.rail .fixbar {
  padding: 0;
}
.fixbar > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
}
.fixbar > summary::-webkit-details-marker {
  display: none;
}
.fixbar > summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform .3s var(--ease);
  background: var(--paper-2) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%2317130e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.fixbar[open] > summary::after {
  transform: rotate(45deg);
}
.fixbar > :not(summary) {
  margin-inline: 22px;
}
.fix-intro {
  margin-bottom: 14px;
  color: var(--ink-2);
  font-size: .92rem;
}
.fix-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  justify-items: start;
}
.fix-row label {
  display: grid;
  gap: 6px;
  width: 100%;
  font-weight: 620;
  font-size: .86rem;
}
.fix-row select,
.fix-row input {
  font: inherit;
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
}
.fix-row input {
  width: 100%;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.seg::before {
  content: attr(aria-label);
  flex: 0 0 100%;
  font-weight: 620;
  font-size: .86rem;
  line-height: 1.3;
}
.seg button {
  flex: 1 1 0;
  min-width: 6.6em;
}
.fixbar > .status {
  margin-top: 0;
  margin-bottom: 18px;
}
.fixbar:not([open]) > .status {
  display: none;
}
.feedback {
  padding: 16px 22px;
  background: transparent;
  box-shadow: none;
  border-style: dashed;
  border-color: var(--line-2);
}
.rail .feedback {
  box-shadow: none;
}
.feedback > p:first-child {
  margin: 0 0 10px;
  font-weight: 620;
  font-size: .92rem;
}
.fb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.feedback .fine {
  margin: 10px 0 0;
}
.again {
  margin: 0;
}
.again a {
  font-weight: 560;
}
@media (max-width: 600px) {
  .window-bar {
    justify-content: flex-start;
  }
  .win-nav {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }
  .win-label {
    grid-column: 2;
    text-align: center;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
  }
  .win-play {
    width: 100%;
  }
  .win-play button {
    flex: 1 1 0;
  }
  .result-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .result-head #head-unlock {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 8px;
  }
  .notes li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .tool {
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ds-play,
  .sheet-view[aria-busy=true]::after {
    animation: none !important;
  }
  progress:indeterminate {
    animation: none;
  }
}
