@font-face {
  font-family: "Noto Music";
  src: url("https://linoguerreiro.com/wp-content/uploads/2025/10/NotoMusic-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

#mod-app {
  --panel: #fff;
  --panel-soft: #f3f5f8;
  --line: #cbd5e1;
  --line-soft: #e5eaf0;
  --text: #17191c;
  --muted: #697281;
  --accent: #2f9e44;
  --accent-soft: #e8f7ec;
  --teal: #12b3b6;
  --teal-soft: #e9fbfb;
  --danger: #d83a52;
  --danger-soft: #fff0f3;
  --major: #d3a900;
  --major-soft: #fff7d8;
  --minor: #2e8fca;
  --minor-soft: #edf7ff;
  --dominant: #d86f25;
  --dominant-soft: #fff1e6;
  --diminished: #8054b5;
  --diminished-soft: #f4effd;
  --aug: #2f9e5a;
  --aug-soft: #edf9f1;
  --radius: 18px;
  --radius-control: 14px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 18px;
  isolation: isolate;
  line-height: 1.4;
  position: relative;
  width: 100%;
  z-index: 0;
}

#mod-app,
#mod-app * {
  box-sizing: border-box;
}

#mod-app button,
#mod-app input {
  font: inherit;
}

#mod-app .sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

#mod-app .app-shell {
  background:
    radial-gradient(circle at 3% 0%, rgba(18, 179, 182, 0.07), transparent 20rem),
    #fff;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 14px auto;
  max-width: 1180px;
  overflow: visible;
  position: relative;
}

#mod-app .command-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 24px 24px 0 0;
  display: grid;
  gap: 15px 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 18px;
  position: relative;
  z-index: 50;
}

#mod-app .transport-cluster,
#mod-app .command-actions {
  align-items: center;
  display: flex;
  gap: 9px;
}

#mod-app .transport-cluster {
  grid-column: 1;
  grid-row: 1;
}

#mod-app .command-actions {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
}

#mod-app .single-action {
  display: contents;
}

#mod-app .tempo-control {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 22px 66px;
}

#mod-app .control-icon {
  display: block;
  height: 22px;
  width: 22px;
}

#mod-app .meter-buttons {
  align-items: center;
  display: flex;
  gap: 5px;
}

#mod-app .meter-btn {
  --btn-size: 39px;
  --icon-size: 24px;
}

#mod-app .meter-btn.is-active {
  border-color: #111;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft);
}

#mod-app .tempo-control span,
#mod-app .control-label,
#mod-app .step-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#mod-app input[type="number"] {
  appearance: textfield;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 700;
  height: 31px;
  padding: 2px 7px;
  text-align: center;
  width: 66px;
}

#mod-app input[type="number"]::-webkit-inner-spin-button,
#mod-app input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
}

#mod-app .duration-control {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: auto 1fr;
  max-width: 430px;
}

#mod-app .duration-buttons {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
}

#mod-app .duration-btn {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  min-width: 0;
  padding: 0 5px;
  position: relative;
}

#mod-app .duration-btn > span {
  font-family: "Noto Music", serif;
  font-size: 22px;
  line-height: 1;
}

#mod-app .duration-btn small {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 850;
  height: 15px;
  justify-content: center;
  position: absolute;
  right: 3px;
  top: 3px;
  width: 15px;
}

#mod-app .duration-btn.is-active {
  border-color: #111;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft);
}

#mod-app .duration-btn.is-active small {
  background: var(--accent);
  color: #fff;
}

#mod-app .sliders-cluster {
  display: grid;
  gap: 18px;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: 1fr 1fr;
  min-width: min(430px, 44vw);
}

#mod-app .icon-slider-control {
  align-items: end;
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(80px, 1fr);
  min-width: 0;
}

#mod-app .slider-icon-btn {
  --btn-size: 40px;
  --icon-size: 22px;
}

#mod-app .slider-control {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#mod-app .slider-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#mod-app .slider-meta strong {
  font-size: 12px;
}

#mod-app .slider-meta output {
  color: var(--muted);
  font-family: var(--font-editorial);
  font-size: 12px;
}

#mod-app input[type="range"] {
  accent-color: var(--teal);
  cursor: pointer;
  margin: 0;
  width: 100%;
}

#mod-app .app-workspace {
  display: grid;
  gap: 10px;
  padding: 10px;
}

#mod-app .app-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

#mod-app h2 {
  font-size: 21px;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

#mod-app .composer-card {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 170px minmax(260px, 430px) minmax(220px, 1fr);
  padding: 10px 12px;
  position: relative;
  z-index: 12;
}

#mod-app .composer-copy {
  display: grid;
  gap: 2px;
}

#mod-app .chord-combobox {
  min-width: 0;
  position: relative;
}

#mod-app #chordInput {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--text);
  font-family: var(--font-editorial);
  font-size: 18px;
  height: 48px;
  padding: 0 15px;
  width: 100%;
}

#mod-app #chordInput::placeholder {
  color: #8a93a0;
}

#mod-app #chordInput[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

#mod-app .suggestions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 3px;
  left: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 30;
}

#mod-app .suggestions[hidden] {
  display: none;
}

#mod-app .suggestion-btn {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  font-family: var(--font-editorial);
  font-size: 16px;
  justify-content: space-between;
  min-height: 35px;
  padding: 6px 9px;
  text-align: left;
}

#mod-app .suggestion-btn:hover,
#mod-app .suggestion-btn.is-active {
  background: var(--teal-soft);
}

#mod-app .suggestion-btn small {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#mod-app .selection-readout {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: text;
  font-family: var(--font-editorial);
  font-size: 14px;
  line-height: 1.3;
  min-width: 0;
  padding: 0;
  text-align: left;
  width: fit-content;
}

#mod-app .selection-readout:hover,
#mod-app .selection-readout:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#mod-app .selection-readout.is-editing {
  color: var(--text);
  font-weight: 750;
}

#mod-app .composer-feedback {
  display: grid;
  gap: 5px;
  min-width: 0;
}

#mod-app .progression-card {
  padding: 12px;
  position: sticky;
  top: 8px;
  z-index: 6;
}

#mod-app .section-heading {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0 1px 8px;
}

#mod-app .progression-meta {
  align-items: flex-end;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-family: var(--font-editorial);
  font-size: 12px;
  gap: 1px;
}

#mod-app #durCapsule {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
}

#mod-app .bars {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#mod-app .bar {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  gap: 6px;
  grid-template-rows: auto 1fr auto;
  min-height: 132px;
  padding: 7px;
}

#mod-app .bar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#mod-app .bar-number {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-family: var(--font-editorial);
  font-size: 11px;
  height: 19px;
  justify-content: center;
  width: 19px;
}

#mod-app .bar-meter {
  color: #9aa3af;
  font-family: var(--font-editorial);
  font-size: 11px;
}

#mod-app .bar-events {
  align-content: start;
  display: grid;
  gap: 4px;
}

#mod-app .bar-empty {
  align-items: center;
  color: #9aa3af;
  display: flex;
  font-family: var(--font-editorial);
  font-size: 14px;
  min-height: 34px;
}

#mod-app .bar-event {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 31px;
  padding: 3px 4px 3px 7px;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

#mod-app .bar-event:hover,
#mod-app .bar-event:focus-visible {
  box-shadow: 0 0 0 2px rgba(18, 179, 182, 0.42);
  outline: 0;
  transform: translateY(-1px);
}

#mod-app .bar-event.is-selected {
  box-shadow: 0 0 0 2px #111, 0 0 0 5px rgba(18, 179, 182, 0.26);
  position: relative;
  transform: translateY(-1px);
  z-index: 4;
}

#mod-app .bar-event.t-major { border-left-color: var(--major); background: var(--major-soft); }
#mod-app .bar-event.t-minor { border-left-color: var(--minor); background: var(--minor-soft); }
#mod-app .bar-event.t-dominant { border-left-color: var(--dominant); background: var(--dominant-soft); }
#mod-app .bar-event.t-diminished,
#mod-app .bar-event.t-halfdim { border-left-color: var(--diminished); background: var(--diminished-soft); }
#mod-app .bar-event.t-aug { border-left-color: var(--aug); background: var(--aug-soft); }

#mod-app .bar-event.is-playing {
  box-shadow: 0 0 0 2px #111, 0 0 0 5px rgba(18, 179, 182, 0.24);
  transform: translateY(-1px);
  z-index: 3;
}

#mod-app .bar-event-label {
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

#mod-app .bar-event-meta {
  color: var(--muted);
  font-family: var(--font-editorial);
  font-size: 11px;
  white-space: nowrap;
}

#mod-app .chord-remove {
  --btn-size: 27px;
  --icon-size: 14px;
  --icon-inset: 24%;
  flex: 0 0 auto;
}

#mod-app .bar-time-track {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 32px;
  position: relative;
}

#mod-app .bar-time-track:empty {
  display: none;
}

#mod-app .insert-slot {
  appearance: none;
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 7px;
  color: transparent;
  cursor: crosshair;
  font-family: var(--font-editorial);
  font-size: 11px;
  grid-row: 1;
  min-height: 32px;
  padding: 0;
  position: relative;
  z-index: 1;
}

#mod-app .insert-slot:disabled {
  cursor: default;
  pointer-events: none;
}

#mod-app .bar:hover .insert-slot:not(:disabled),
#mod-app .insert-slot:focus-visible {
  border-color: rgba(18, 179, 182, 0.44);
  color: var(--muted);
}

#mod-app .insert-slot:hover,
#mod-app .insert-slot:focus-visible {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: #164f51;
  outline: 0;
}

#mod-app .insert-slot.is-target {
  background: var(--teal-soft);
  border-color: #111;
  box-shadow: 0 0 0 2px var(--teal), 0 0 0 5px rgba(18, 179, 182, 0.16);
  color: #164f51;
  font-weight: 800;
  z-index: 2;
}

@media (hover: none) {
  #mod-app .insert-slot:not(:disabled) {
    color: var(--muted);
  }
}

#mod-app .time-block {
  align-items: center;
  align-self: stretch;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 7px;
  display: flex;
  font-family: var(--font-editorial);
  font-size: 11px;
  font-weight: 800;
  grid-row: 1;
  justify-content: center;
  min-height: 32px;
  min-width: 0;
  pointer-events: none;
  position: relative;
  z-index: 3;
}

#mod-app .time-block.t-major { background: var(--major-soft); border-color: var(--major); }
#mod-app .time-block.t-minor { background: var(--minor-soft); border-color: var(--minor); }
#mod-app .time-block.t-dominant { background: var(--dominant-soft); border-color: var(--dominant); }
#mod-app .time-block.t-diminished,
#mod-app .time-block.t-halfdim { background: var(--diminished-soft); border-color: var(--diminished); }
#mod-app .time-block.t-aug { background: var(--aug-soft); border-color: var(--aug); }

#mod-app .limit-hint {
  background: var(--danger-soft);
  border: 1px solid rgba(216, 58, 82, 0.25);
  border-radius: 9px;
  color: var(--danger);
  font-size: 10px;
  margin-top: 8px;
  padding: 6px 8px;
}

#mod-app .limit-hint[hidden] {
  display: none;
}

#mod-app .visual-legend {
  display: flex;
  gap: 4px;
}

#mod-app .visual-legend span {
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

#mod-app .visual-legend span:nth-child(1) { background: var(--major); }
#mod-app .visual-legend span:nth-child(2) { background: var(--minor); }
#mod-app .visual-legend span:nth-child(3) { background: var(--dominant); }
#mod-app .visual-legend span:nth-child(4) { background: var(--diminished); }

#mod-app .syn-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 0;
}

#mod-app .canvas-frame {
  background:
    radial-gradient(circle at 24% 18%, rgba(72, 116, 161, 0.2), transparent 34%),
    radial-gradient(circle at 77% 74%, rgba(114, 70, 128, 0.2), transparent 32%),
    #0e0f12;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.48),
    0 22px 60px rgba(0, 0, 0, 0.26);
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

#mod-app .syn-cycle-frame {
  background: #0e0f12;
}

#mod-app .syn-art-frame {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 64, 153, 0.09), transparent 34%),
    radial-gradient(circle at 22% 78%, rgba(53, 229, 255, 0.1), transparent 38%),
    #03040a;
  box-shadow:
    inset 0 0 110px rgba(0, 0, 0, 0.36),
    0 24px 70px rgba(0, 0, 0, 0.3);
}

#mod-app .synPane,
#mod-app .syn-art-canvas {
  background: transparent;
  display: block;
  height: 100%;
  width: 100%;
}

#mod-app .synPane {
  filter: saturate(0.98) contrast(1.02);
}

#mod-app .syn-art-canvas {
  filter: saturate(1.28) contrast(1.06) brightness(1.03);
}

#mod-app .canvas-frame::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent 35%, rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.24));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

#mod-app .syn-panel-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 800;
  left: 18px;
  letter-spacing: 0.15em;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
  z-index: 2;
}

#mod-app .status-line {
  align-items: flex-start;
  appearance: none;
  background: var(--teal-soft);
  border: 1px solid rgba(18, 179, 182, 0.3);
  border-radius: 11px;
  color: #255153;
  cursor: pointer;
  display: flex;
  font-family: var(--font-editorial);
  font-size: 14px;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

#mod-app .status-line:hover,
#mod-app .status-line:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 179, 182, 0.14);
  outline: 0;
}

#mod-app .status-line.is-playing {
  background: var(--accent-soft);
  border-color: rgba(47, 158, 68, 0.45);
}

#mod-app .status-line.is-playing .status-dot {
  background: var(--accent);
}

#mod-app .status-dot {
  background: var(--teal);
  border-radius: 999px;
  flex: 0 0 7px;
  height: 7px;
  margin-top: 4px;
  width: 7px;
}

#mod-app .syn-overlay {
  background:
    linear-gradient(150deg, rgba(25, 27, 34, 0.98), rgba(8, 9, 12, 0.99)),
    #0e0f12;
  border-radius: 0 0 24px 24px;
  bottom: 0;
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr);
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
  z-index: 40;
}

#mod-app .syn-overlay[hidden] {
  display: none;
}

#mod-app .syn-overlay-heading {
  align-items: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

#mod-app .syn-overlay-heading h2 {
  color: #fff;
  font-family: var(--font-editorial);
  font-size: 28px;
  font-weight: 500;
}

#mod-app .help-modal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
  color: var(--text);
  font-family: var(--font-ui);
  margin: auto;
  max-height: min(720px, calc(100vh - 36px));
  max-width: 860px;
  overflow: auto;
  padding: 16px;
  width: calc(100% - 30px);
}

#mod-app .help-modal::backdrop {
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(3px);
}

#mod-app .modal-heading {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

#mod-app .help-content {
  color: #46505d;
  font-family: var(--font-editorial);
  font-size: 18px;
  line-height: 1.65;
}

#mod-app .help-content b {
  color: var(--text);
  font-family: var(--font-ui);
}

#mod-app .help-grid {
  display: grid;
  gap: 10px;
}

#mod-app .help-step {
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 14px;
}

#mod-app .help-step h3 {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 19px;
  margin: 0 0 5px;
}

#mod-app .help-step p {
  margin: 0;
}

#mod-app .help-step kbd {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--text);
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.82em;
  font-weight: 750;
  line-height: 1.25;
  padding: 2px 6px;
  white-space: nowrap;
}

#mod-app .chords-modal {
  max-width: 980px;
}

#mod-app .catalog-intro {
  color: var(--muted);
  font-family: var(--font-editorial);
  font-size: 17px;
  margin: -2px 0 16px;
}

#mod-app .chord-types-list {
  display: grid;
  gap: 14px;
}

#mod-app .chord-type-group {
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  padding: 12px;
}

#mod-app .chord-type-group h3 {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

#mod-app .chord-type-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

#mod-app .chord-type-option {
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-family: var(--font-editorial);
  font-size: 19px;
  justify-content: center;
  min-height: 44px;
  padding: 7px;
  text-align: center;
}

#mod-app .chord-type-option:hover,
#mod-app .chord-type-option:focus-visible {
  background: var(--teal-soft);
  border-color: var(--teal);
  outline: 0;
}

@media (max-width: 1000px) {
  #mod-app .command-bar {
    gap: 14px 18px;
  }

  #mod-app .composer-card {
    grid-template-columns: 140px minmax(220px, 390px) minmax(220px, 1fr);
  }

  #mod-app .composer-feedback {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #mod-app .app-shell {
    border-radius: 18px;
    margin: 8px auto;
  }

  #mod-app .command-bar {
    border-radius: 18px 18px 0 0;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
  }

  #mod-app .transport-cluster {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #mod-app .command-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #mod-app .duration-control {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: none;
  }

  #mod-app .sliders-cluster {
    grid-column: 1 / -1;
    grid-row: 4;
    min-width: 0;
  }

  #mod-app .composer-card {
    grid-template-columns: minmax(0, 1fr);
  }

  #mod-app .composer-copy {
    grid-column: 1;
  }

  #mod-app .composer-feedback {
    grid-column: 1;
  }

  #mod-app .progression-card {
    position: static;
  }

  #mod-app .bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mod-app .syn-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(220px, 1fr));
  }

  #mod-app .syn-overlay {
    padding: 12px;
  }

}

@media (max-width: 470px) {
  #mod-app .command-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  #mod-app .transport-cluster {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  #mod-app .command-actions {
    flex-wrap: wrap;
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-end;
  }

  #mod-app .duration-control {
    align-items: start;
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr;
  }

  #mod-app .sliders-cluster {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mod-app .composer-card {
    padding: 9px;
  }

  #mod-app #chordInput {
    font-size: 16px;
  }

  #mod-app .bars {
    grid-template-columns: 1fr;
  }

  #mod-app .progression-meta span:last-child {
    display: none;
  }

  #mod-app .chord-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (prefers-reduced-motion: reduce) {
  #mod-app *,
  #mod-app *::before,
  #mod-app *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}