:root {
  --bg: #f4f5f7;
  --ink: #202731;
  --muted: #88909d;
  --line: #e6e8ed;
  --orange: #e99152;
  --dark: #141a21;
  --purple: #8582b8;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: #eceef3;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e9915299;
  outline-offset: 3px;
}
a {
  color: inherit;
}
.accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #221b15;
}
.accent:hover {
  background: #f0a872;
}
.small {
  font-size: 11px;
  padding: 9px 14px;
}
.topbar {
  height: 72px;
  background: var(--dark);
  color: #a1a8b3;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 55px;
  border-bottom: 1px solid #252c35;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f5f4f1;
  font-size: 24px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand svg {
  color: var(--orange);
}
.badge {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #3b424c;
  border-radius: 4px;
  color: #a7afba;
  padding: 4px 5px;
  margin-left: 7px;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  gap: 25px;
}
.nav {
  color: #8f97a3;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  font-weight: 400;
  font-size: 12px;
}
.nav.active {
  color: #fafafa;
  border-bottom: 2px solid var(--orange);
}
.nav:hover {
  background: transparent;
  color: white;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.plan-pill {
  font-size: 10px;
  color: #aaaeba;
}
.header-right .icon {
  color: #9aa2ad;
  background: transparent;
  border-color: #37414b;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 27px 18px 115px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #8e96a1;
}
.side-top .label {
  margin: 0 9px 15px;
}
.import-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-style: dashed;
  border-color: #ccd0d8;
  text-align: left;
  padding: 12px;
}
.import-button > span {
  font-size: 17px;
  color: #69717d;
}
kbd {
  font: 9px system-ui;
  color: #9097a1;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 4px;
  margin-left: auto;
}
.side-link {
  border: 0;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 6px;
  font-size: 10px;
  font-weight: 400;
  color: #7c8694;
}
.side-link > span:first-child {
  font-size: 15px;
}
.tiny-tag {
  margin-left: auto;
  font-size: 8px;
  background: #f1f3f6;
  border-radius: 4px;
  padding: 3px 5px;
}
.side-section {
  padding: 0 8px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.count {
  font-size: 9px;
  padding: 3px 6px;
  background: #f0f1f5;
  border-radius: 4px;
  color: #8d96a0;
}
.track-row {
  margin: 7px -8px;
  padding: 11px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  position: relative;
}
.track-row.current {
  background: #fdf3ec;
  border-color: #f1d6c2;
}
.track-select {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 550;
  font-size: 11px;
}
.track-select:hover {
  background: transparent;
}
.track-select .track-color {
  height: 28px;
  width: 3px;
  border-radius: 4px;
  flex-shrink: 0;
}
.track-select .track-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-select small {
  font-size: 8px;
  font-weight: 400;
  color: #9ca3ad;
}
.mixer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0 12px;
}
.mixer button {
  font-size: 8px;
  padding: 3px 6px;
  line-height: 1.3;
  border-radius: 3px;
  color: #89919c;
  background: transparent;
  border-color: #dfe1e7;
}
.mixer button.active {
  background: #e99152;
  color: #302015;
  border-color: #e99152;
}
.mixer input {
  width: 100%;
  min-width: 0;
  height: 2px;
  accent-color: #b0b7c0;
}
.side-hint {
  font-size: 9px;
  color: #a1a7af;
  line-height: 1.6;
}
.side-section > .label {
  margin-bottom: 17px;
}
label {
  display: block;
  font-size: 10px;
  color: #858d98;
  margin-top: 14px;
}
select,
input[type='number'] {
  display: block;
  width: 100%;
  border: 1px solid #e2e5eb;
  border-radius: 6px;
  padding: 9px 7px;
  background: #fff;
  color: #4d5765;
  margin-top: 7px;
  font-size: 10px;
  min-height: 35px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.green-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #74a793;
}
.slider-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.slider-label input {
  width: 100%;
  height: 3px;
  accent-color: #9da7af;
  margin: 3px 0 6px;
}
.sound-section small {
  font-size: 8px;
  color: #a0a8b1;
  line-height: 1.6;
}
.upgrade-card {
  margin-top: auto;
  background: #f3f2f8;
  border: 1px solid #e9e7f1;
  border-radius: 8px;
  padding: 17px 15px;
}
.star {
  font-size: 24px;
  color: #9380b4;
  display: block;
  margin-bottom: 9px;
}
.upgrade-card strong {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 550;
}
.upgrade-card p {
  font-size: 10px;
  color: #9690a3;
  line-height: 1.7;
}
.upgrade-card button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid #e3dfed;
  border-radius: 0;
  padding: 12px 0 0;
  color: #776793;
  font-size: 10px;
  margin-top: 15px;
}
.credits {
  border: 0;
  padding: 0;
  color: #9fa5af;
  font-size: 8px;
  font-weight: 400;
  background: transparent;
  text-align: center;
}
main {
  padding: 28px 38px 125px;
  min-width: 0;
  max-width: 1560px;
  width: 100%;
  margin: auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9da4ae;
  font-size: 10px;
}
.breadcrumb > span:nth-child(2) {
  color: #6a7482;
  max-width: 400px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.local-dot {
  margin-left: auto;
  font-size: 9px;
  color: #8a9b94;
}
.session-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 28px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  color: #a1a5ad;
  font-weight: 650;
}
h1 {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.3px;
  margin: 10px 0 12px;
  overflow-wrap: anywhere;
}
.song-details {
  font-size: 10px;
  display: flex;
  gap: 12px;
  color: #989faa;
}
.song-details span:first-child {
  color: #7b8491;
}
.session-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.session-actions button {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.pro-mini {
  font-size: 7px;
  letter-spacing: 0.6px;
  background: #f4e9dd;
  color: #a78261;
  padding: 3px 4px;
  border-radius: 3px;
}
.score-card {
  border: 1px solid #e1e5eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 20px #29334504;
}
.score-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.segmented {
  display: flex;
  background: #f4f5f7;
  padding: 3px;
  border-radius: 6px;
  gap: 3px;
}
.segmented button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 10px;
  color: #9a9faa;
}
.segmented .selected {
  background: #fff;
  box-shadow: 0 1px 4px #0000000a;
  color: #434d5b;
}
.score-options {
  display: flex;
  align-items: center;
  gap: 17px;
}
.text-control {
  border: 0;
  background: transparent;
  color: #989faa;
  font-size: 10px;
  padding: 4px;
}
.text-control.on {
  color: #647d70;
}
.zoom-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 9px;
}
.zoom-label select {
  width: 65px;
  margin: 0;
  padding: 6px;
  min-height: 28px;
  font-size: 9px;
}
.score-paper {
  padding: 29px 35px 18px;
  overflow: auto;
  min-height: 460px;
  max-height: 920px;
  scrollbar-width: thin;
}
.paper-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 16px;
}
.paper-title h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 7px;
  color: #53606d;
}
.paper-title p {
  font-size: 9px;
  margin: 0;
  color: #a1a6af;
}
.paper-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: #727c87;
}
.paper-meta span:last-child {
  font-size: 7px;
  letter-spacing: 1px;
  border: 1px solid #e9ecf0;
  border-radius: 4px;
  padding: 5px 7px;
  color: #9da5b0;
}
#notation {
  --zoom: 1;
}
.notation-row {
  position: relative;
  min-width: 650px;
  margin-bottom: 8px;
  width: calc(100% * var(--zoom));
}
.notation-row svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.measure-target {
  cursor: pointer;
  fill: transparent;
  stroke: none;
  outline: none;
}
.measure-target:hover,
.measure-target:focus-visible {
  fill: #e991520a;
  stroke: #e9915240;
}
.measure-target.looped {
  fill: #e991520d;
}
.measure-target.current-measure {
  fill: #e9915214;
}
.playhead {
  stroke: #e58f50;
  stroke-width: 1.4;
  pointer-events: none;
}
.paper-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0;
  color: #b3b9c2;
  font-size: 8px;
}
.paper-bottom > span:first-child {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.5px;
  color: #bfc5cd;
}
.score-bottom {
  border-top: 1px solid #edf0f3;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  color: #a2aab5;
  font-size: 9px;
}
.score-bottom > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon {
  padding: 5px 8px;
  background: transparent;
  border: 0;
  font-size: 14px;
  color: #8f98a5;
}
.practice-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 21px;
  background: #eeeff6;
  border: 1px solid #e4e5f0;
  border-radius: 8px;
  margin-top: 20px;
  gap: 14px;
}
.practice-strip > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.strip-icon {
  font-size: 23px;
  color: #9591ba;
}
.practice-strip strong {
  font-size: 11px;
  font-weight: 550;
  color: #696682;
}
.practice-strip p {
  font-size: 10px;
  color: #a1a0b5;
  margin: 6px 0 0;
}
.practice-strip button {
  background: transparent;
  border-color: #d9d9e7;
  color: #7d789d;
  font-size: 10px;
}
.practice-strip button span {
  margin-left: 15px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  color: #a6afb8;
  font-size: 8px;
  margin-top: 21px;
}
.workspace-footer i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #87a99d;
  border-radius: 50%;
  margin-right: 5px;
}
.transport {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border-top: 1px solid #dfe4ec;
  box-shadow: 0 -4px 20px #182b4306;
  min-height: 87px;
  padding: 16px 30px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.transport-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.play-button {
  border: 0;
  background: #1e2834;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 0;
  font-size: 15px;
}
.play-button:hover {
  background: #364456;
}
.clock {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  display: flex;
  gap: 6px;
  min-width: 89px;
}
.clock strong {
  font-weight: 550;
}
.clock span {
  color: #a6aeb9;
}
.seek-wrap {
  flex: 1;
  min-width: 90px;
}
.seek-wrap input {
  width: 100%;
  height: 3px;
  accent-color: #e39864;
  display: block;
  margin: 8px 0 12px;
}
.seek-wrap > div {
  display: flex;
  justify-content: space-between;
  color: #a3abb7;
  font-size: 7px;
  letter-spacing: 1px;
}
.transport-controls {
  display: flex;
  align-items: center;
  gap: 25px;
}
.tempo-control {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tempo-control > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #a6aeb9;
}
.tempo-control select {
  border: 0;
  font-size: 12px;
  padding: 0;
  margin: 0;
  min-height: 20px;
  color: #535f6d;
  width: 65px;
}
.transport-tool {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  border: 0;
  padding: 0;
  color: #8e98a6;
  font-size: 8px;
  background: transparent;
  min-width: 24px;
}
.transport-tool > span {
  font-size: 20px;
  line-height: 24px;
}
.transport-tool.on {
  color: #df8c4e;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.volume-control span {
  color: #8893a2;
}
.volume-control input {
  width: 65px;
  height: 3px;
  accent-color: #a9b2bf;
}
.notice {
  font-size: 11px;
  padding: 12px 15px;
  border: 1px solid #eed8bd;
  background: #fff7e9;
  color: #9c753b;
  border-radius: 7px;
  margin-bottom: 16px;
  line-height: 1.65;
}
.beta-banner {
  background: #eaf2ee;
  border: 1px solid #d4e4da;
  color: #688372;
  border-radius: 7px;
  padding: 9px 13px;
  margin-bottom: 16px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.beta-banner button {
  font-size: 9px;
  background: transparent;
  border: 0;
  padding: 5px;
  color: #658372;
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
dialog {
  border: 1px solid #e0e4eb;
  border-radius: 17px;
  padding: 38px;
  color: #293443;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 100px #0c142d40;
}
dialog::backdrop {
  background: #111c2a99;
  backdrop-filter: blur(5px);
}
.plans-dialog {
  width: min(950px, 94vw);
}
.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 24px;
  line-height: 20px;
  border: 0;
  color: #959daa;
  padding: 5px 8px;
  background: transparent;
}
.dialog-eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  color: #a49586;
  font-weight: 650;
}
dialog h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 15px 0 12px;
}
dialog h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #c18457;
}
.dialog-subtitle {
  color: #99a1ad;
  font-size: 12px;
  margin-bottom: 34px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.pricing-grid article {
  padding: 23px 18px;
  border: 1px solid #e2e5ec;
  border-radius: 9px;
  position: relative;
}
.pricing-grid h3 {
  font-size: 30px;
  letter-spacing: -1.3px;
  font-weight: 550;
  margin: 17px 0 13px;
}
.pricing-grid h3 span {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: #9a9fa9;
  margin-left: 7px;
}
.pricing-grid p {
  font-size: 10px;
  color: #8b94a1;
  min-height: 26px;
}
.pricing-grid ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 25px;
  font-size: 10px;
  color: #768190;
  line-height: 2.4;
}
.pricing-grid li:before {
  content: '✓';
  color: #89a291;
  margin-right: 8px;
}
.pricing-grid button {
  font-size: 10px;
  width: 100%;
  padding: 11px 5px;
}
.pricing-grid .featured {
  border: 1px solid #e7ba98;
  background: #fffaf5;
}
.recommended {
  position: absolute;
  top: -10px;
  background: #f0c5a4;
  border-radius: 4px;
  padding: 5px 8px;
  color: #976847;
  font-size: 7px;
  letter-spacing: 1px;
}
.beta-offer {
  margin-top: 22px;
  background: #f1f2f7;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.beta-offer strong {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}
.beta-offer span {
  font-size: 10px;
  color: #939aaa;
}
.beta-offer button {
  font-size: 10px;
  white-space: nowrap;
  border-color: #d9dce7;
  background: #fff;
}
.checkout-notice {
  font-size: 9px;
  line-height: 1.7;
  color: #a0a8b3;
  text-align: center;
  margin: 17px 0 0;
}
.small-dialog {
  width: min(540px, 94vw);
  padding: 35px;
}
.small-dialog h2 {
  font-size: 25px;
}
.small-dialog > p {
  font-size: 11px;
  line-height: 1.8;
  color: #8c96a5;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.dialog-actions button {
  font-size: 10px;
}
.export-option {
  display: block;
  text-align: left;
  width: 100%;
  margin: 15px 0;
  padding: 15px;
}
.export-option strong {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.export-option small {
  display: block;
  font-size: 10px;
  color: #939eac;
  font-weight: 400;
  margin-top: 8px;
}
.project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4e7ed;
  border-radius: 7px;
  padding: 12px;
  margin: 10px 0;
}
.project-item > button:first-child {
  flex: 1;
  text-align: left;
  border: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-item small {
  display: block;
  color: #9aa5b2;
  font-size: 9px;
  margin-top: 5px;
}
.project-item .delete-project {
  border: 0;
  color: #ad8890;
  font-size: 10px;
  padding: 5px;
}
.help-content {
  font-size: 11px;
  line-height: 1.9;
  color: #8b95a2;
}
.help-content b {
  color: #586573;
}
.help-content a {
  color: #b68562;
}
#toast {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 13px 20px;
  background: #253240;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px #0002;
  font-size: 12px;
  max-width: 85vw;
}
#dropOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #151e2ceb;
  border: 5px dashed #e99152;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-size: 35px;
  backdrop-filter: blur(6px);
}
#dropOverlay span {
  display: block;
  font-size: 14px;
  color: #aab4c2;
  margin-top: 17px;
}
@media (min-width: 1500px) {
  main {
    padding-left: 65px;
    padding-right: 65px;
  }
  .score-paper {
    padding: 35px 45px;
  }
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  .topbar {
    gap: 30px;
  }
  main {
    padding: 25px 23px 125px;
  }
  .app-shell {
    grid-template-columns: 225px minmax(0, 1fr);
  }
  .transport {
    gap: 20px;
    padding: 16px 20px;
  }
  .transport-controls {
    gap: 16px;
  }
  .volume-control {
    display: none;
  }
  .session-heading {
    align-items: flex-start;
  }
  .session-actions {
    flex-direction: column;
  }
  .score-paper {
    padding: 22px;
  }
  .score-options {
    gap: 6px;
  }
  .text-control {
    font-size: 9px;
  }
  .practice-strip p {
    max-width: 260px;
    line-height: 1.7;
  }
}
@media (max-width: 800px) {
  .topbar {
    padding: 0 18px;
    height: 64px;
    gap: 20px;
  }
  .topbar nav {
    gap: 15px;
  }
  .brand {
    font-size: 21px;
  }
  .brand .badge {
    display: none;
  }
  .header-right {
    gap: 8px;
  }
  .plan-pill {
    display: none;
  }
  .app-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 10px 125px;
  }
  .side-link .tiny-tag {
    display: none;
  }
  .side-section {
    padding: 0 5px;
  }
  main {
    padding: 20px 15px 135px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .local-dot {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  .session-heading {
    margin: 25px 0;
  }
  .eyebrow {
    font-size: 7px;
  }
  .session-actions button > span:not(.pro-mini) {
    display: none;
  }
  .session-actions .pro-mini {
    display: none;
  }
  .session-actions {
    flex-direction: row;
    gap: 5px;
  }
  .score-toolbar {
    padding: 10px;
    flex-wrap: wrap;
  }
  .score-paper {
    padding: 18px 12px;
  }
  .score-options {
    margin-left: auto;
  }
  .practice-strip {
    padding: 15px;
  }
  .practice-strip > div {
    gap: 10px;
  }
  .practice-strip p {
    font-size: 9px;
  }
  .practice-strip button {
    font-size: 0;
    padding: 10px;
  }
  .practice-strip button span {
    font-size: 15px;
    margin: 0;
  }
  .workspace-footer > span:last-child {
    display: none;
  }
  .transport {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 15px;
  }
  .transport-left {
    gap: 7px;
  }
  .clock {
    min-width: 72px;
    font-size: 10px;
  }
  .transport-controls {
    gap: 16px;
  }
  .seek-wrap {
    min-width: 70px;
  }
  .transport-tool {
    font-size: 7px;
  }
  .tempo-control select {
    width: 58px;
  }
  .paper-title {
    min-width: 480px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid article {
    padding: 18px;
  }
  .pricing-grid ul {
    margin: 12px 0;
  }
  .pricing-grid p {
    min-height: 0;
  }
  .beta-offer {
    flex-direction: column;
    align-items: flex-start;
  }
  .plans-dialog {
    padding: 30px 22px;
  }
  .score-bottom {
    padding: 8px 12px;
  }
  .score-bottom > span {
    max-width: 60%;
    line-height: 1.7;
  }
}
@media (max-width: 590px) {
  .topbar nav {
    display: none;
  }
  .app-shell {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .side-top {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .side-top .label {
    display: none;
  }
  .import-button {
    flex: 1;
    font-size: 11px;
  }
  .side-link {
    width: auto;
    margin: 0;
    font-size: 10px;
  }
  .side-section {
    padding: 0;
  }
  .side-section:nth-child(3) {
    grid-column: 2;
    grid-row: 2 / span 2;
  }
  .sound-section {
    grid-column: 1;
    grid-row: 3;
  }
  .upgrade-card,
  .credits {
    display: none;
  }
  .side-hint {
    display: none;
  }
  .side-section > .label {
    margin-bottom: 10px;
  }
  .section-top {
    margin-bottom: 9px;
  }
  .track-row {
    padding: 8px 6px;
    margin: 4px 0;
  }
  .track-select {
    font-size: 10px;
  }
  .track-select small {
    display: none;
  }
  .mixer {
    margin-left: 5px;
  }
  .sidebar label {
    margin-top: 9px;
  }
  .sidebar select {
    font-size: 9px;
    padding: 8px 4px;
  }
  .sidebar .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .slider-label {
    font-size: 9px;
  }
  .sound-section small {
    font-size: 7px;
  }
  main {
    padding-top: 22px;
  }
  .session-heading {
    margin: 23px 0;
  }
  .song-details {
    font-size: 9px;
    gap: 8px;
  }
  .paper-title {
    min-width: 420px;
  }
  .score-paper {
    max-height: 700px;
  }
  .transport {
    min-height: 116px;
    padding: 9px 14px;
  }
  .transport-left {
    order: 1;
    flex: 1;
  }
  .transport-controls {
    order: 2;
  }
  .seek-wrap {
    order: 3;
    flex-basis: 100%;
  }
  .seek-wrap input {
    margin: 1px 0 8px;
  }
  .play-button {
    width: 37px;
    height: 37px;
  }
  .transport-tool > span {
    font-size: 17px;
    line-height: 18px;
  }
  .transport-tool {
    gap: 2px;
  }
  .clock {
    font-size: 11px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .beta-banner {
    font-size: 9px;
    align-items: flex-start;
  }
  .paper-meta {
    gap: 9px;
  }
  #toast {
    bottom: 135px;
  }
  .session-actions button {
    font-size: 14px;
  }
  .workspace-footer {
    margin-bottom: 10px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  .topbar,
  .sidebar,
  .breadcrumb,
  .session-heading,
  .transport,
  .practice-strip,
  .workspace-footer,
  .score-toolbar,
  .score-bottom,
  .beta-banner,
  .notice,
  dialog,
  #toast {
    display: none !important;
  }
  .app-shell {
    display: block;
    min-height: 0;
  }
  body,
  main {
    background: white;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
  }
  .score-card {
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .score-paper {
    padding: 0;
    overflow: visible;
    max-height: none;
    min-height: 0;
  }
  #notation {
    --zoom: 1 !important;
  }
  .notation-row {
    min-width: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .paper-title {
    min-width: 0;
  }
  .paper-bottom {
    display: none;
  }
  .measure-target,
  .playhead {
    display: none;
  }
  svg {
    max-width: 100%;
  }
}
/* Continuous, full-width practice workspace */
.app-shell {
  display: block;
  min-height: 0;
}
main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 17px 28px 103px;
}
.breadcrumb,
.practice-strip,
.workspace-footer {
  display: none;
}
.session-heading {
  margin: 0 0 17px;
  align-items: center;
}
.session-heading h1 {
  font-size: 26px;
  margin: 5px 0 7px;
}
.session-heading .eyebrow {
  font-size: 7px;
}
.session-actions {
  flex-direction: row;
}
.score-card {
  border-radius: 7px;
}
.score-paper {
  position: relative;
  /* Fits between the score header and the fixed transport, so the page itself does not scroll
     and only the score does (was 100dvh - 300px, which made the page 68 px too tall). */
  height: calc(100dvh - 368px);
  min-height: 280px;
  max-height: none;
  padding: 22px 24px 16px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.paper-title {
  margin-bottom: 15px;
  min-width: 0;
}
.paper-bottom {
  display: none;
}
.notation-row {
  width: 100%;
  min-width: 650px;
  margin-bottom: 18px;
}
.score-bottom > div {
  display: none;
}
.score-bottom {
  padding: 10px 20px;
}
.sidebar {
  display: flex;
  position: fixed;
  z-index: 45;
  top: 72px;
  bottom: 87px;
  left: 0;
  width: 275px;
  padding: 20px 18px;
  overflow: auto;
  transform: translateX(-102%);
  transition: transform 0.18s;
  box-shadow: 8px 0 30px #0001;
  visibility: hidden;
}
.tools-open .sidebar {
  transform: none;
  visibility: visible;
}
.close-tools {
  display: block;
  background: transparent;
  border: 0;
  text-align: right;
  padding: 0;
  color: #8994a2;
  font-size: 10px;
}
.tools-backdrop {
  display: none;
  position: fixed;
  inset: 72px 0 87px;
  z-index: 40;
  background: #101b2940;
  backdrop-filter: blur(2px);
}
.tools-open .tools-backdrop {
  display: block;
}
.theme-button {
  background: #222c37;
  border: 1px solid #3a4554;
  color: #c8d0dc;
  font-size: 11px;
  padding: 8px 11px;
}
.theme-button:hover {
  background: #354254;
}
.brand {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.sidebar .side-top {
  display: block;
}
.sidebar .side-top .label {
  display: block;
}
.sidebar .side-link {
  width: 100%;
  margin-top: 9px;
}
.sidebar .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sidebar .side-section {
  display: block;
}
.sidebar .upgrade-card,
.sidebar .credits {
  display: block;
}
.sidebar .side-hint {
  display: block;
}
.session-actions #toolsBtn > span {
  display: inline;
}
.paper-title h2 {
  font-size: 13px;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #14191f;
  --ink: #dce3ec;
  --muted: #9da8b8;
  --line: #333d4b;
  --dark: #10151b;
  background: #14191f;
}
html[data-theme='dark'] body {
  background: var(--bg);
  color: var(--ink);
}
html[data-theme='dark'] button {
  background: #27313e;
  border-color: #414c5c;
  color: #d6deea;
}
html[data-theme='dark'] button:hover {
  background: #344154;
}
html[data-theme='dark'] .accent {
  background: #e99152;
  color: #211a15;
  border-color: #e99152;
}
html[data-theme='dark'] .topbar {
  background: #10151b;
  border-color: #303845;
}
html[data-theme='dark'] .nav {
  background: transparent;
  border-color: transparent;
  color: #a3aebe;
}
html[data-theme='dark'] .nav.active {
  border-bottom-color: #e99152;
  color: #f1f4f8;
}
html[data-theme='dark'] .brand {
  color: #edf1f8;
}
html[data-theme='dark'] .score-card,
html[data-theme='dark'] .score-paper,
html[data-theme='dark'] .sidebar,
html[data-theme='dark'] dialog {
  background: #1c242e;
  border-color: #354151;
  color: #dce3ec;
}
html[data-theme='dark'] .score-toolbar,
html[data-theme='dark'] .score-bottom {
  background: #202a36;
  border-color: #354151;
}
html[data-theme='dark'] .segmented {
  background: #121922;
}
html[data-theme='dark'] .segmented button {
  background: transparent;
  color: #98a5b7;
}
html[data-theme='dark'] .segmented .selected {
  background: #344254;
  color: #f1f5fa;
}
html[data-theme='dark'] select,
html[data-theme='dark'] input[type='number'] {
  background: #25313f;
  border-color: #455163;
  color: #d4deeb;
}
html[data-theme='dark'] .track-row.current {
  background: #473326;
  border-color: #765137;
}
html[data-theme='dark'] .track-select,
html[data-theme='dark'] .side-link,
html[data-theme='dark'] .text-control,
html[data-theme='dark'] .close-dialog,
html[data-theme='dark'] .close-tools,
html[data-theme='dark'] .credits {
  background: transparent;
}
html[data-theme='dark'] .mixer button.active {
  background: #d58d56;
  color: #171c23;
}
html[data-theme='dark'] .transport {
  background: #1a232e;
  border-color: #354151;
}
html[data-theme='dark'] .play-button {
  background: #e99152;
  color: #1a1b20;
}
html[data-theme='dark'] .transport-tool {
  background: transparent;
  color: #a3b0c2;
}
html[data-theme='dark'] .transport-tool.on {
  color: #efaa75;
}
html[data-theme='dark'] .paper-title h2 {
  color: #c6d2e2;
}
html[data-theme='dark'] .paper-meta,
html[data-theme='dark'] .song-details,
html[data-theme='dark'] label,
html[data-theme='dark'] .label,
html[data-theme='dark'] .score-bottom,
html[data-theme='dark'] .help-content {
  color: #a3afc0;
}
html[data-theme='dark'] .paper-meta span:last-child {
  border-color: #455263;
  color: #aeb9c9;
}
html[data-theme='dark'] .upgrade-card,
html[data-theme='dark'] .beta-offer {
  background: #303043;
  border-color: #464159;
}
html[data-theme='dark'] .upgrade-card button {
  color: #c5b7e1;
}
html[data-theme='dark'] .count,
html[data-theme='dark'] .tiny-tag {
  background: #344254;
  color: #b6c4d7;
}
html[data-theme='dark'] .pricing-grid article {
  border-color: #465164;
}
html[data-theme='dark'] .pricing-grid .featured {
  background: #3b302a;
  border-color: #987051;
}
html[data-theme='dark'] .pricing-grid p,
html[data-theme='dark'] .pricing-grid ul {
  color: #b1bac9;
}
html[data-theme='dark'] .beta-banner {
  background: #22392f;
  color: #aec9b9;
  border-color: #3b614e;
}
html[data-theme='dark'] .notice {
  background: #403322;
  color: #e4c598;
  border-color: #725b3c;
}
html[data-theme='dark'] .help-content b {
  color: #d7e2ef;
}
html[data-theme='dark'] .project-item,
html[data-theme='dark'] .export-option {
  border-color: #465367;
}
html[data-theme='dark'] .measure-target.current-measure {
  fill: #efaa751a;
}
html[data-theme='dark'] .measure-target.looped {
  fill: #efaa7510;
}
html[data-theme='dark'] .measure-target:hover {
  fill: #efaa750c;
}
html[data-theme='dark'] .playhead {
  stroke: #ffc28c;
}
html[data-theme='dark'] .text-control.on {
  color: #9ec4ac;
}
@media (max-width: 800px) {
  main {
    padding: 16px 16px 110px;
  }
  .score-paper {
    height: calc(100dvh - 431px); /* ends above the fixed transport bar */
    padding: 18px 12px;
  }
  .sidebar {
    top: 64px;
    width: 265px;
  }
  .tools-backdrop {
    top: 64px;
  }
  .session-actions {
    flex-direction: row;
  }
  .session-actions #toolsBtn {
    font-size: 10px;
  }
  .theme-button {
    font-size: 10px;
    padding: 7px;
  }
  .brand {
    font-size: 16px;
  }
  .topbar {
    gap: 20px;
  }
  .session-heading .eyebrow {
    display: none;
  }
}
@media (max-width: 590px) {
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .brand {
    font-size: 14px;
    gap: 5px;
  }
  .brand svg {
    width: 21px;
  }
  .header-right {
    gap: 5px;
  }
  .header-right .accent {
    font-size: 9px;
    padding: 8px;
  }
  .header-right #helpBtn {
    display: none;
  }
  .theme-button {
    font-size: 9px;
    padding: 7px;
  }
  .session-heading {
    gap: 8px;
    margin: 0 0 12px;
  }
  .session-heading h1 {
    font-size: 23px;
  }
  .session-actions #toolsBtn > span {
    display: none;
  }
  .session-actions #toolsBtn {
    font-size: 17px;
  }
  .session-actions button {
    padding: 7px 9px;
  }
  .song-details {
    font-size: 8px;
    gap: 6px;
  }
  .score-paper {
    /* Ends above the fixed transport bar on phones, so the page itself does not scroll. */
    height: calc(100dvh - 433px);
    min-height: 230px;
  }
  .sidebar {
    bottom: 116px;
  }
  .tools-backdrop {
    bottom: 116px;
  }
  .sidebar .side-section {
    padding: 0 8px;
  }
  .sidebar .side-link .tiny-tag {
    display: inline;
  }
  .sidebar .track-select small {
    display: inline;
  }
  .sidebar .side-top .label {
    margin-left: 8px;
  }
  .score-toolbar {
    gap: 6px;
  }
  .score-options {
    gap: 6px;
  }
  .notation-row {
    min-width: 650px;
  }
}
@media print {
  html[data-theme='dark'],
  html[data-theme='dark'] body,
  html[data-theme='dark'] .score-card,
  html[data-theme='dark'] .score-paper {
    background: white !important;
    color: #202731 !important;
  }
  .theme-button,
  .tools-backdrop,
  .close-tools {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .score-paper {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    min-height: 0;
  }
  .notation-row {
    min-width: 0 !important;
    width: 100%;
    margin-bottom: 12px;
  }
  .paper-title h2,
  .paper-meta,
  .paper-title p {
    color: #333 !important;
  }
  .paper-title {
    margin-bottom: 12px;
  }
}


/* ---------------------------------------------------------------- v0.4 additions */
/* The renderer now lays out rows for the real width (1 measure per row on phones). */
.notation-row {
  min-width: 0;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.track-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.track-chips::-webkit-scrollbar {
  display: none;
}
.track-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 550;
  border-radius: 999px;
  color: #6e7886;
  background: transparent;
}
.track-chip .track-color {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.track-chip.selected {
  color: var(--ink);
  border-color: #e7b48d;
  background: #fff6ef;
}
.tempo-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tempo-stepper button {
  border: 0;
  background: transparent;
  padding: 0 6px;
  min-height: 22px;
  font-size: 15px;
  line-height: 1;
  color: #8e98a6;
}
.tempo-stepper button:hover {
  background: #eceef3;
}
.tempo-stepper .speed-value {
  font-size: 12px;
  font-weight: 600;
  color: #535f6d;
  min-width: 46px;
  padding: 0 2px;
  font-variant-numeric: tabular-nums;
}
.tempo-stepper .speed-value.changed {
  color: #df8c4e;
}
.tempo-control small {
  font-size: 8px;
  color: #a6aeb9;
  font-variant-numeric: tabular-nums;
}
.transport-tool > span {
  white-space: nowrap;
}
#countBtn > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.trainer {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}
.trainer .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  color: #6e7886;
  line-height: 1.5;
}
.trainer .check b {
  display: block;
  color: var(--ink);
  font-size: 12px;
}
.trainer .check input {
  margin-top: 3px;
  accent-color: var(--orange);
}
.trainer .two {
  margin-top: 12px;
}
html[data-theme='dark'] .track-chip {
  color: #a3aebe;
  border-color: #414c5c;
}
html[data-theme='dark'] .track-chip.selected {
  background: #473326;
  border-color: #765137;
  color: #f1f4f8;
}
html[data-theme='dark'] .tempo-stepper button {
  background: transparent;
  color: #a3aebe;
}
html[data-theme='dark'] .tempo-stepper button:hover {
  background: #344154;
}
html[data-theme='dark'] .tempo-stepper .speed-value {
  color: #e3e8ef;
}
html[data-theme='dark'] .tempo-stepper .speed-value.changed {
  color: #e99152;
}
html[data-theme='dark'] .trainer {
  background: #202a36;
  border-color: #354151;
}
html[data-theme='dark'] .trainer .check {
  color: #a3aebe;
}
@media (max-width: 800px) {
  .score-toolbar {
    flex-wrap: wrap;
  }
  .toolbar-left {
    width: 100%;
    flex-wrap: wrap;
  }
  .track-chips {
    width: 100%;
  }
}
@media (max-width: 590px) {
  .tempo-control small,
  #countBtn {
    display: none;
  }
}
@media print {
  .track-chips {
    display: none !important;
  }
}

/* NoteFret by Achordila: header mark and name (0.5.0).
   The top bar is dark in both themes, so the fork uses the bar's light text colour via currentColor. */
.brand .ach-app {
  gap: 9px;
}
.brand .ach-mark {
  color: inherit;
  height: 30px;
}
.brand .ach-app-text {
  gap: 3px;
}
.brand .ach-app-name {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand .ach-app-by {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #a7afba;
  opacity: 1;
}
#audioStatus .ach-loader {
  gap: 6px;
}
#audioStatus .ach-loader-label {
  font-size: 1em;
  opacity: 1;
}
@media (max-width: 590px) {
  .brand .ach-app-by {
    display: none;
  }
  .brand .ach-mark {
    height: 26px;
  }
}


/* ---------------------------------------------------------------- 0.7: fingering, custom tuning */
.fret-target {
  cursor: pointer;
  fill: transparent;
  stroke: none; /* the VexFlow <svg> sets a stroke colour that would otherwise be inherited */
  outline: none;
}
.fret-target:hover,
.fret-target:focus-visible {
  fill: #e9915233;
  stroke: #e99152;
  stroke-width: 1;
}
.fret-menu {
  position: fixed;
  z-index: 60;
  min-width: 200px;
  padding: 6px;
  border: 1px solid #e0e4eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px #0c142d33;
}
.fret-menu-title {
  padding: 6px 10px 8px;
  font-size: 11px;
  color: var(--muted);
}
.fret-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.fret-menu button small {
  margin-left: 4px;
  color: var(--muted);
}
.fret-menu button b {
  min-width: 22px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fret-menu button:hover,
.fret-menu button:focus-visible {
  background: #f4f5f7;
  outline: none;
}
.fret-menu button[aria-checked='true'] {
  background: #fdf3ec;
  color: #b8632a;
}
.fret-menu .fret-auto {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--muted);
}
.fret-menu p {
  margin: 4px 10px 8px;
  font-size: 11px;
  color: var(--muted);
}
.custom-tuning {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 6px;
  margin: -4px 0 12px;
}
.custom-tuning label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
.custom-tuning select {
  padding-left: 8px;
  padding-right: 4px;
}
.text-link {
  display: block;
  margin: 2px 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #c66f31;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme='dark'] .fret-menu {
  background: #1c242e;
  border-color: #354151;
}
html[data-theme='dark'] .fret-menu button {
  color: #dce3ec;
  background: transparent;
  border-color: transparent;
}
html[data-theme='dark'] .fret-menu button:hover,
html[data-theme='dark'] .fret-menu button:focus-visible {
  background: #25313f;
}
html[data-theme='dark'] .fret-menu button[aria-checked='true'] {
  background: #473326;
  color: #f0b07d;
}
html[data-theme='dark'] .text-link {
  color: #f0a872;
}
@media print {
  .fret-target,
  .fret-menu {
    display: none !important;
  }
}

/* 0.8 – Audio to tab (beta) */
.audio-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border: 1px dashed #d8dce3;
  border-radius: 8px;
  background: #fafbfc;
}
.audio-file button {
  flex: none;
  font-size: 10px;
}
.audio-file span {
  font-size: 10px;
  color: #858d98;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-dialog audio {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 12px;
}
.audio-dialog audio[hidden] {
  display: none;
}
.audio-dialog label[hidden] {
  display: none;
}
.audio-progress {
  margin-top: 18px;
}
.audio-progress[hidden],
.audio-result[hidden] {
  display: none;
}
.audio-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.audio-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.2s;
}
.audio-progress small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: #858d98;
}
.bpm-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.bpm-row input {
  flex: 1;
}
.bpm-row button {
  margin-top: 7px;
  min-width: 42px;
  font-size: 10px;
}
.audio-result p {
  font-size: 10px;
  line-height: 1.7;
  color: #6e7886;
  margin: 10px 0 0;
}
.audio-note {
  margin-top: 18px;
  font-size: 10px !important;
}
html[data-theme='dark'] .audio-file {
  background: #202a36;
  border-color: #3a4657;
}
html[data-theme='dark'] .audio-file span,
html[data-theme='dark'] .audio-result p {
  color: #a3aebe;
}
html[data-theme='dark'] .audio-bar {
  background: #354151;
}

/* 0.9.1 – medium screens: the score header wraps a little taller here. */
@media (min-width: 801px) and (max-width: 1100px) {
  .score-paper {
    height: calc(100dvh - 380px);
  }
}

/* 0.9.2 – workspace actions: Import MIDI and Audio to tab are both imports and share one style;
   every icon sits in a column of the same width, so all labels start on one line. */
.import-button > span:first-child,
.side-link > span:first-child {
  flex: none;
  width: 18px;
  text-align: center;
}
.audio-import {
  margin-top: 8px;
  min-height: 51px; /* same height as Import MIDI */
}
.audio-import > span:first-child {
  font-size: 15px;
}
.import-button > .tiny-tag {
  margin-left: auto;
  font-size: 9px;
  color: #9097a1;
  padding: 3px 5px;
}
.side-top .side-link {
  gap: 10px;
  padding: 9px 13px;
  margin-top: 6px;
}
