.flow-touch { width: 100%; font-family: var(--fg-sans); color: #262523; }
.flow-touch header, .flow-touch .toolbar, .flow-touch .edit { display: flex; align-items: center; gap: 12px; }
.flow-touch header { padding-bottom: 20px; border-bottom: 1px solid #d7d3cb; }
.flow-touch header img { border: 1px solid #beb9ae; }
.flow-touch h1, .flow-touch h2 { margin: 0; font-size: 19px; font-weight: 550; letter-spacing: -.025em; }
.flow-touch h2 { font-size: 17px; font-variant-numeric: tabular-nums; }
.flow-touch header button, .flow-touch .toolbar button { margin-inline-start: auto; }
.flow-touch button {
  min-height: 44px;
  font: inherit;
  font-size: 13px;
  color: inherit;
  border: 1px solid #d7d3cb;
  background: transparent;
  border-radius: 3px;
  padding: 0 10px;
  cursor: pointer;
}
.flow-touch button[aria-pressed="true"] { background: #e9e5dc; border-color: #b7b0a3; font-weight: 600; }
.flow-touch button:focus-visible, .flow-touch input:focus-visible, .flow-touch a:focus-visible { outline: 2px solid #48443a; outline-offset: 3px; }
.flow-touch #ft-chords { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 19px 0; }
.flow-touch #ft-chords button { padding: 0 3px; }
.flow-touch #ft-play { min-width: 82px; color: #fff; background: #282725; border-color: #282725; }
.flow-touch #ft-play:disabled { opacity: .6; }
.flow-touch p { line-height: 1.5; font-size: 13px; margin: 7px 0 11px; }
.flow-touch #ft-hint { color: #57534d; }
.flow-touch #ft-graph {
  width: 100%;
  display: block;
  background: #fdfcf9;
  border: 1px solid #d7d3cb;
  touch-action: none;
  cursor: ns-resize;
}
.flow-touch .grid, .flow-touch .voice, .flow-touch .cursor { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.flow-touch .grid { stroke: #e5e0d8; }
.flow-touch .voice { stroke: #918a80; stroke-linecap: round; stroke-linejoin: round; }
.flow-touch .voice.selected { stroke: #282725; stroke-width: 2.3; }
.flow-touch .cursor { stroke: #38362f; stroke-opacity: .55; }
.flow-touch #ft-handle { fill: #282725; stroke: #fdfcf9; stroke-width: 1.5; }
.flow-touch .edit { min-height: 64px; font-size: 13px; }
.flow-touch .edit input { min-width: 62px; flex: 1; accent-color: #282725; min-height: 44px; }
.flow-touch .edit output { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.flow-touch footer { border-top: 1px solid #d7d3cb; padding-top: 16px; }
.flow-touch a { color: inherit; font-size: 13px; text-underline-offset: 3px; }

html[data-design] body .flow-touch #ft-play {
  color: #fff !important;
  background-color: #282725 !important;
}
html[data-design] body > .fg-small .flow-touch p {
  font: 13px/1.5 var(--fg-sans);
  margin: 7px 0 11px;
}
.flow-touch .ft-example { margin-bottom: 14px; }
.flow-touch .ft-example summary { min-height: 44px; display: list-item; padding-block: 10px; font-size: 13px; cursor: pointer; }
.flow-touch .ft-example audio { display: block; width: 100%; }
@media (max-width: 899px) {
  html[data-design] body:has(.flow-touch-host) { background: #f8f7f4 !important; }
  .fg-small.flow-touch-host { box-sizing: border-box; width: 100%; max-width: 520px; padding: 20px 16px; }
}
