:root {
  color-scheme:light;
  --paper:#f5f1e8;
  --panel:#fffcf5;
  --ink:#252c2a;
  --muted:#606760;
  --line:#d8d5c9;
  --accent:#b64422;
  --accent-soft:#f3dfce;
  --green:#345a4c;
  --radius:18px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}
button,select,input[type=range],summary {
  cursor:pointer;
}
button {
  touch-action:manipulation;
}
a {
  color:inherit;
  text-underline-offset:4px;
}
button {
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--ink);
  min-height:44px;
  padding:10px 15px;
  font-weight:650;
}
button:hover {
  border-color:var(--ink);
}
button:disabled {
  cursor:default;
  opacity:.48;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--green);
  outline-offset:4px;
}
input,select {
  min-height:46px;
  width:100%;
  min-width:0;
  padding:10px 12px;
  border:1px solid #b9beb1;
  border-radius:8px;
  background:var(--panel);
  color:var(--ink);
}
select {
  -webkit-appearance:none;
  appearance:none;
  padding-right:30px;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 16px) 50%,calc(100% - 12px) 50%;
  background-size:4px 4px;
  background-repeat:no-repeat;
}
input[type=range] {
  -webkit-appearance:none;
  appearance:none;
  padding:0;
  border:0;
  accent-color:var(--green);
  background:transparent;
}
input[type=number] {
  font-variant-numeric:tabular-nums;
}
.wrap {
  max-width:1248px;
  padding-inline:40px;
  margin-inline:auto;
}
.site-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-block:28px;
  border-bottom:1px solid var(--line);
}
.wordmark {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:25px;
  letter-spacing:-1px;
  font-weight:750;
  text-decoration:none;
}
.wordmark span {
  font-weight:450;
  color:var(--muted);
  margin-left:-10px;
}
.help-link {
  font-size:14px;
  text-decoration:none;
  display:flex;
  gap:12px;
  align-items:center;
  min-height:44px;
}
.intro {
  padding-block:43px 34px;
  max-width:770px;
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--accent);
  font-size:11px;
  font-weight:750;
  margin:0 0 13px;
}
h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(42px,5vw,67px);
  font-weight:400;
  line-height:1.08;
  letter-spacing:-2.5px;
  margin:0 0 15px;
}
.intro>p:last-child {
  font-size:17px;
  line-height:1.6;
  color:var(--muted);
  margin:0;
  max-width:600px;
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.3fr);
  gap:22px;
  align-items:start;
  scroll-margin-top:20px;
}
.panel {
  min-width:0;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.builder,.chord-view {
  padding:25px 27px;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:24px;
}
.section-heading h2 {
  font-size:16px;
  line-height:1.4;
  letter-spacing:-.2px;
  margin:0;
  font-weight:700;
}
.section-number {
  font-size:10px;
  letter-spacing:.1em;
  color:var(--accent);
  font-weight:750;
  margin-right:10px;
}
.tag {
  display:inline-block;
  background:#eeeadd;
  border-radius:20px;
  padding:5px 9px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.035em;
  color:#4d574d;
}
.builder-fields {
  display:grid;
  grid-template-columns:minmax(0,.65fr) minmax(0,1fr);
  gap:12px;
}
.voicing-fields {
  grid-template-columns:minmax(0,1fr) minmax(0,.65fr);
}
.field label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  margin-bottom:8px;
}
.quick-shapes {
  display:flex;
  gap:8px;
  margin:12px 0 23px;
}
.quick-shapes button {
  flex:1;
  font-size:12px;
  min-width:0;
  padding-inline:8px;
}
.quick-shapes button[aria-pressed=true] {
  color:var(--accent);
  border-color:#d68e6d;
  background:var(--accent-soft);
}
.notes-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:24px;
}
.notes-heading h3,.shortcuts h3 {
  font-size:13px;
  margin:0;
}
.text-button {
  font-size:12px;
  min-height:44px;
  padding-inline:0;
  border:0;
  background:transparent;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:4px;
}
.field-hint {
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  margin:0 0 14px;
}
.note-palette {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
}
.note-button {
  position:relative;
  height:62px;
  padding:7px 3px;
  font-size:16px;
  font-weight:600;
  box-shadow:0 2px 0 #e5e1d8;
}
.note-button.accidental {
  background:#eaece6;
}
.note-button[aria-pressed=true] {
  background:var(--green);
  border-color:var(--green);
  color:white;
  box-shadow:0 2px 0 #213e33;
}
.note-button .key-hint {
  display:block;
  font-size:9px;
  letter-spacing:.06em;
  opacity:.76;
  margin-top:6px;
  font-weight:450;
}
.notation-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:23px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.notation-row label {
  margin:0;
}
.notation-row select {
  max-width:145px;
  min-height:44px;
  font-size:12px;
}
.small-label {
  font-size:11px;
  color:var(--muted);
}
.chord-identity {
  display:flex;
  align-items:center;
  gap:23px;
  min-height:93px;
}
.chord-symbol {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(40px,5vw,65px);
  line-height:1.05;
  letter-spacing:-2px;
  margin:0;
  color:var(--accent);
  overflow-wrap:anywhere;
  flex-shrink:1;
  max-width:55%;
}
.chord-name {
  font-weight:700;
  font-size:17px;
  margin:0 0 7px;
}
.muted {
  font-size:13px;
  line-height:1.55;
  color:var(--muted);
  margin:0;
}
.formula {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:17px 0 9px;
}
.formula span {
  font-variant-numeric:tabular-nums;
  font-size:12px;
  font-weight:650;
  min-width:35px;
  text-align:center;
  padding:6px 9px;
  background:var(--accent-soft);
  border-radius:6px;
  color:#79351e;
}
.staff {
  margin:0 -4px;
}
.staff svg {
  display:block;
  width:100%;
  max-height:220px;
}
.staff-line,.ledger {
  stroke:#9fa497;
  stroke-width:1;
}
.staff-note {
  fill:var(--ink);
}
.staff-accidental {
  font-family:Georgia,serif;
  font-size:19px;
  fill:var(--ink);
}
.staff-clef {
  font-size:55px;
  font-family:Georgia,serif;
  fill:var(--ink);
}
.tone-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  font-variant-numeric:tabular-nums;
}
.tone-table th {
  font-size:10px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:600;
  text-align:left;
  padding:9px 8px;
  border-bottom:1px solid var(--line);
}
.tone-table td {
  padding:10px 8px;
  border-bottom:1px solid #e8e6dc;
}
.tone-table td:first-child {
  font-weight:650;
}
.tone-table .numeric {
  text-align:right;
}
.tone-table td span {
  color:var(--muted);
  font-size:11px;
  margin-left:2px;
}
.match-note {
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
  padding:10px 0 0;
  margin-bottom:0;
}
.tuning {
  font-size:10px;
  letter-spacing:.045em;
  color:var(--muted);
  margin:14px 8px 0;
}
.playback {
  margin-top:22px;
  padding:23px 27px;
}
.playback .section-heading {
  margin-bottom:20px;
}
.playback-controls {
  display:grid;
  grid-template-columns:minmax(80px,.65fr) minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.7fr) minmax(0,1.1fr);
  gap:18px;
}
.unit {
  font-size:9px;
  color:var(--muted);
  font-weight:500;
}
.volume-field output {
  font-size:11px;
  color:var(--muted);
  font-weight:450;
  font-variant-numeric:tabular-nums;
}
.transport {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  position:fixed;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  width:min(1168px,calc(100% - 48px));
  z-index:5;
  margin:0;
  padding:15px 20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  box-shadow:0 6px 24px #252c2a15;
}
.transport-buttons {
  display:flex;
  gap:9px;
  flex-shrink:0;
}
.transport-buttons button {
  min-height:49px;
  font-size:13px;
}
.transport-buttons button span {
  margin-right:8px;
  font-size:12px;
}
.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:white;
  padding-inline:24px;
}
.primary:hover {
  background:#953619;
  border-color:#953619;
}
.secondary[aria-pressed=true] {
  background:var(--green);
  border-color:var(--green);
  color:white;
}
.stop-button {
  color:var(--muted);
}
.audio-status {
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
  margin:0;
  text-align:right;
}
.play-indicator {
  width:9px;
  height:9px;
  border-radius:100%;
  background:var(--line);
}
.play-indicator.active {
  background:var(--green);
  box-shadow:0 0 0 4px #dbe6d9;
}
.below-workspace {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:start;
  gap:22px;
  margin-top:22px;
}
.below-workspace .panel {
  padding:20px 25px;
}
summary {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  font-size:13px;
  font-weight:650;
  min-height:44px;
  list-style:none;
}
summary::-webkit-details-marker {
  display:none;
}
summary::before {
  content:'↗';
  color:var(--accent);
  margin-right:2px;
}
details[open] summary::before {
  content:'↓';
}
summary .tag,summary>span {
  margin-left:auto;
}
details[open] summary {
  margin-bottom:18px;
}
.recent ol {
  list-style:none;
  padding:0;
  margin:0;
}
.recent li {
  border-top:1px solid var(--line);
  padding-block:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:12px;
}
.recent li>div {
  min-width:0;
}
.history-notes {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  overflow-wrap:anywhere;
}
.recent li button {
  font-size:11px;
  padding:7px 9px;
  flex-shrink:0;
}
.recent .empty-history {
  color:var(--muted);
}
.guide p {
  font-size:13px;
  line-height:1.7;
  margin:0 0 14px;
}
.guide p:last-child {
  margin-bottom:0;
}
.shortcuts {
  border-top:1px solid var(--line);
  padding-top:17px;
}
.shortcuts h3 {
  margin-bottom:12px;
}
kbd {
  font-family:inherit;
  font-size:11px;
  background:#eeeadd;
  border:1px solid var(--line);
  border-bottom-width:2px;
  padding:2px 5px;
  border-radius:4px;
  white-space:nowrap;
}
footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding-block:27px 150px;
  font-size:11px;
  color:var(--muted);
}
footer p {
  margin:0;
  line-height:1.5;
}
footer span {
  margin-inline:8px;
  color:#acae9f;
}
.notice {
  padding:14px;
  border-radius:8px;
  color:#7c351e;
  background:var(--accent-soft);
  font-size:13px;
  line-height:1.6;
}
.notice[hidden],[hidden] {
  display:none!important;
}
.skip-link {
  position:absolute;
  top:8px;
  left:8px;
  z-index:20;
  transform:translateY(-150%);
  background:var(--panel);
  padding:12px;
}
.skip-link:focus {
  transform:translateY(0);
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

input[type=range]::-webkit-slider-runnable-track {
  height:5px;
  border-radius:4px;
  background:var(--line);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance:none;
  width:17px;
  height:17px;
  border-radius:50%;
  background:var(--green);
  margin-top:-6px;
}
input[type=range]::-moz-range-track {
  height:5px;
  border-radius:4px;
  background:var(--line);
}
input[type=range]::-moz-range-thumb {
  width:17px;
  height:17px;
  border:0;
  border-radius:50%;
  background:var(--green);
}
.transport-state {
  min-width:0;
  margin-left:auto;
  max-width:400px;
}
.transport-state .notice {
  margin:8px 0 0;
  padding:8px 12px;
}

@media(max-width:960px) {
  .wrap {
    padding-inline:25px;
  }
  .builder,.chord-view {
    padding:22px;
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
    gap:16px;
  }
  .note-palette {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .chord-identity {
    display:block;
  }
  .chord-symbol {
    max-width:100%;
    margin-bottom:15px;
  }
  .playback-controls {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .volume-field {
    grid-column:span 2;
  }
  .transport {
    gap:12px;
  }
  .transport-buttons button {
    padding-inline:15px;
  }
  .audio-status {
    max-width:210px;
  }
  .below-workspace {
    gap:16px;
  }
}
@media(max-width:680px) {
  .wrap {
    padding-inline:16px;
  }
  .site-header {
    padding-block:15px;
  }
  .wordmark {
    font-size:23px;
  }
  .help-link {
    font-size:12px;
  }
  .intro {
    padding-block:30px 25px;
  }
  h1 {
    font-size:45px;
    letter-spacing:-1.8px;
  }
  .intro>p:last-child {
    font-size:15px;
  }
  .workspace {
    grid-template-columns:minmax(0,1fr);
    gap:16px;
  }
  .builder,.chord-view {
    padding:21px;
  }
  .chord-identity {
    display:flex;
  }
  .chord-symbol {
    font-size:54px;
    margin-bottom:0;
    max-width:55%;
  }
  .chord-name {
    font-size:16px;
  }
  .note-palette {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .note-button {
    height:58px;
  }
  .section-heading {
    margin-bottom:19px;
  }
  .playback {
    margin-top:16px;
    padding:21px;
  }
  .playback-controls {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
  }
  .volume-field {
    grid-column:span 2;
  }
  .transport {
    display:block;
    position:fixed;
    bottom:12px;
    left:16px;
    right:16px;
    width:auto;
    transform:none;
    z-index:5;
    margin:0;
    padding:12px;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:0 6px 24px #252c2a15;
  }
  .transport-buttons {
    gap:7px;
  }
  .transport-buttons button {
    flex:1;
    padding-inline:8px;
    font-size:12px;
    white-space:nowrap;
  }
  .transport-buttons button span {
    margin-right:5px;
  }
  .transport-state {
    max-width:none;
    margin-left:0;
  }
  .audio-status {
    max-width:none;
    text-align:left;
    margin-top:10px;
    font-size:11px;
  }
  .below-workspace {
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    margin-top:16px;
  }
  .below-workspace .panel {
    padding:20px 21px;
  }
  .staff svg {
    max-height:195px;
  }
  footer {
    display:block;
    padding-block:25px 155px;
  }
  footer p+p {
    margin-top:6px;
  }
  .chord-symbol {
    overflow-wrap:anywhere;
  }
  .muted {
    font-size:12px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  button {
    transition:background-color .12s,border-color .12s,box-shadow .12s;
  }
}
