.aag-tour {
  position: fixed;
  inset: 0;
  z-index: 1600;
  pointer-events: none;
}
.aag-tour[hidden] { display: none; }
.aag-tour-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.aag-tour-edit-demo { position: fixed; pointer-events: none; }
.aag-tour-edit-demo[hidden] { display: none; }
.aag-tour-edit-demo > span { position: absolute; top: -20px; left: 2px; padding: 2px 6px; border-radius: 4px; background: #24292f; color: #f4ee36; font: 700 10px Arial, Helvetica, sans-serif; white-space: nowrap; }
.aag-tour-edit-demo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.aag-tour-demo-surface { fill: #0b1015; stroke: #657044; }
.aag-tour-demo-original { fill: none; stroke: #c3c9ce; stroke-width: 1.1; opacity: .25; }
.aag-tour-demo-clip { fill: #586267; stroke: #c5d94d; }
.aag-tour-demo-wave { fill: none; stroke: #dce4e7; stroke-width: 1.25; }
.aag-tour-demo-trim { stroke: #ece36a; stroke-width: 3; }
.aag-tour-demo-fade { fill: #ece36a; stroke: #27301a; stroke-width: 1; }
.aag-tour-edit-demo .is-active { filter: drop-shadow(0 0 3px #f4ee36); }
.aag-tour-demo-grab { fill: #f4ee3622; stroke: #f4ee36; stroke-width: 1.5; }
.aag-tour-demo-pointer { fill: #fff; stroke: #151a1f; stroke-width: 1.2; stroke-linejoin: round; }
.aag-tour-randomise-demo { position: fixed; pointer-events: none; }
.aag-tour-randomise-demo[hidden] { display: none; }
.aag-tour-randomise-demo > span { position: absolute; top: -22px; left: 2px; padding: 2px 6px; border-radius: 4px; background: #24292f; color: #f4ee36; font: 700 10px Arial, Helvetica, sans-serif; white-space: nowrap; }
.aag-tour-randomise-visual { width: 100%; height: 100%; }
.aag-tour-randomise-visual .randomise-toggle-button { width: 100%; min-width: 0; height: 100%; padding: 0; }
.aag-tour-randomise-pointer { position: absolute; width: 24px; height: 30px; overflow: visible; }
.aag-tour-randomise-pointer circle { fill: #f4ee3622; stroke: #f4ee36; stroke-width: 1.5; }
.aag-tour-randomise-pointer path { fill: white; stroke: #151a1f; stroke-width: 1.2; stroke-linejoin: round; }
.aag-tour-card {
  position: fixed;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 370px;
  padding: 21px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #657044;
  border-radius: 18px;
  background: #24292f;
  color: #f3f4f6;
  box-shadow: 0 14px 50px #0009;
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: auto;
}
.aag-tour-card > * { flex-shrink: 0; }
.aag-tour-card > [aria-live] { flex-shrink: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.aag-tour-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aag-tour-brand { display: flex; align-items: center; gap: 12px; }
.aag-tour-logo { display: block; width: 96px; height: auto; }
#aagTourCount { color: #d6dcae; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.aag-tour-card button { min-height: 42px; border: 1px solid #626a76; border-radius: 9px; padding: 8px 16px; font: 600 14px Arial, Helvetica, sans-serif; color: #edf0f5; background: #30363e; cursor: pointer; }
.aag-tour-card #aagTourCancel { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; min-height: 32px; padding: 7px; border: 0; border-radius: 4px; background: transparent; color: #c5ccd6; }
.aag-tour-card button:focus-visible, .key-guide-tour-button:focus-visible { outline: 2px solid #f4ee36; outline-offset: 4px; }
.aag-tour-card button:hover { filter: brightness(1.14); }
.aag-tour-card button:disabled { opacity: .38; cursor: default; }
.aag-tour-card .aag-tour-example { width: 100%; margin-top: 15px; color: #f4ee36; border-color: #929544; }
.aag-tour-card .aag-tour-example[hidden] { display: none; }
.aag-tour-card h2 { margin: 17px 0 10px; font-size: 23px; line-height: 1.15; font-weight: 700; color: #f4ee36; letter-spacing: -.02em; }
.aag-tour-card h2:focus { outline: none; }
#aagTourDescription { width: 100%; margin: 0; font-size: 15px; line-height: 1.5; color: #f0f1f3; text-wrap: pretty; }
.aag-tour-hint { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: #b7c3d1; }
.aag-tour-card h2, .aag-tour-hint { text-wrap: balance; }
.aag-tour-progress { display: flex; gap: 5px; margin-top: 10px; }
.aag-tour-progress span { flex: 1; height: 3px; border-radius: 2px; background: #4a5059; }
.aag-tour-progress .is-current { background: #e7ee38; }
.aag-tour-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-bottom: 10px; }
.aag-tour-card #aagTourNext { border-color: #edf340; background: #edf340; color: #20240f; min-width: 100px; }
.aag-tour-shortcut { display: flex; align-items: center; margin: 13px 0 0; color: #a9b2bc; font-size: 11px; line-height: 1.4; }
.aag-tour-shortcut kbd { padding: 1px 4px; border: 1px solid #626a76; border-radius: 3px; color: #e4e7eb; background: #30363e; font: 10px monospace; }
.aag-tour-reopen, .aag-tour-escape { padding-left: 10px; }
.aag-tour-separator { margin-left: 10px; }
.key-guide-tour-button { display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 6px 0; background: transparent; color: #f4ee36; font: inherit; cursor: pointer; }
@media (max-width: 759px), (max-height: 600px) {
  .aag-tour-card { padding: 15px 17px; border-radius: 14px; }
  .aag-tour-card h2 { margin-top: 12px; font-size: 21px; }
  #aagTourDescription { font-size: 14px; line-height: 1.4; }
  .aag-tour-hint { margin-top: 9px; font-size: 12px; }
  .aag-tour-actions { margin-top: 13px; }
  .aag-tour-shortcut { margin-top: 10px; }
}
/* Reserve an adjacent column when a landscape phone cannot fit a card above or below the pad. */
@media (min-width: 700px) and (max-width: 1100px) and (max-height: 600px) {
  body.aag-tour-open { --aag-tour-side-width: min(340px, 40vw); }
  .aag-tour-open .workbench-shell { width: calc(100% - var(--aag-tour-side-width) - 49px); margin-left: 12px; margin-right: 0; }
  .aag-tour-open .hero-block { grid-template-columns: minmax(0, 1fr); }
  .aag-tour-open .hero-block h1 { white-space: normal; }
  .aag-tour-open .slider-grid, .aag-tour-open .knob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .aag-tour-open .sampler-layout, .aag-tour-open .sampler-panel .sampler-workflow-row { grid-template-columns: minmax(0, 1fr); }
  .aag-tour-open .sampler-panel { padding: 20px 18px; }
  .aag-tour-open .mobile-transport-bar { right: calc(var(--aag-tour-side-width) + 37px); grid-template-columns: minmax(0, 1fr) auto; }
  .aag-tour-open .mobile-transport-buttons { grid-column: 2; grid-row: 1 / 3; gap: 7px; }
  .aag-tour-open .mobile-transport-buttons .recorder-button { width: 46px; }
  .aag-tour-open #mobileTransportTime { grid-row: 2; grid-column: 1; text-align: left; }
}
@media print { .aag-tour { display: none !important; } }
@media (min-width: 700px) and (max-width: 1100px) and (max-height: 420px) {
  .aag-tour-card { padding: 12px 17px; }
  .aag-tour-logo { width: 78px; }
  .aag-tour-card h2 { margin: 10px 0 8px; font-size: 20px; }
  #aagTourDescription { font-size: 13px; }
  .aag-tour-hint { margin-top: 8px; font-size: 11.5px; line-height: 1.4; }
  .aag-tour-card .aag-tour-example { margin-top: 10px; }
  .aag-tour-actions { margin-top: 10px; }
  .aag-tour-shortcut { margin-top: 6px; }
}
