:root {
  --bg: #f3efe6;
  --panel: rgba(255, 252, 246, 0.92);
  --panel-strong: #fffaf0;
  --line: rgba(100, 82, 52, 0.18);
  --text: #23180d;
  --muted: #6d5a45;
  --accent: #c45c2f;
  --accent-strong: #8f3516;
  --accent-soft: rgba(196, 92, 47, 0.14);
  --shadow: 0 24px 60px rgba(75, 45, 18, 0.12);
  --radius: 24px;
  --sidebar-width: 360px;
  --sheet-width: 1220px;
  --sheet-height: 720px;
  --font-ui: "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  overflow: hidden;
  background: #f6f1e8;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar,
.viewer,
.panel,
.song-sheet,
.projection-sheet {
  backdrop-filter: blur(14px);
}

.sidebar {
  display: none;
  flex-direction: column;
  min-height: 0;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.78);
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(35, 24, 13, 0.2);
  backdrop-filter: blur(6px);
}

body.search-modal-open {
  overflow: hidden;
}

body.search-modal-open .sidebar {
  display: flex;
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 40px));
  max-height: min(86vh, 900px);
  z-index: 110;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: rgba(255, 248, 236, 0.96);
  transform: translate(-50%, -50%);
}

.brand h1,
.viewer-header h2,
.projection-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
}

#songTheme,
#songMeta,
#songTitle {
  display: none;
}

.subtle {
  color: var(--muted);
}

.search,
.toolbar-grid label {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.search input,
.toolbar-grid input,
.toolbar-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  outline: none;
}

.search input:focus,
.toolbar-grid input:focus,
.toolbar-grid select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 92, 47, 0.12);
}

.toolbar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.ghost-button,
.viewer-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.ghost-button:hover,
.viewer-actions button:hover {
  background: #fff;
}

.icon-button {
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button img {
  width: 24px;
  height: 24px;
  display: block;
}

.viewer-actions button.active,
.editor-tab-buttons .panel-switcher-button.active {
  background: rgba(196, 92, 47, 0.18);
  color: var(--accent-strong);
}

.song-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.song-item {
  border: 1px solid transparent;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.song-item:hover,
.song-item.active {
  transform: translateY(-1px);
  border-color: rgba(196, 92, 47, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.song-item strong,
.song-item span {
  display: block;
}

.song-item strong {
  font-size: 1rem;
}

.song-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.viewer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px 30px 30px;
}

.viewer-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.song-info,
.bottom-grid,
.top-utility-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 82px;
  gap: 14px;
  margin-top: 0;
  padding: 0;
  overflow-y: hidden;
}

.song-info {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 20px;
}

.info-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.song-stage {
  min-height: 0;
}

.stage-layout {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 22px;
  min-height: 0;
}

.stage-layout.has-side-panel {
  grid-template-columns: minmax(0, 1fr) 460px;
}

.top-utility-bar {
  align-items: center;
  min-height: 0;
  padding-block: 6px;
  overflow-y: visible;
}

.top-utility-spacer {
  min-width: 0;
  flex: 1 1 auto;
}

.top-utility-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.song-number-jump-card,
.tempo-inline-card {
  flex: 0 0 auto;
}

.calibration-panel {
  position: sticky;
  top: 0;
  width: 100%;
  align-self: start;
  max-height: 100%;
  overflow: auto;
}

.panel-switcher,
.editor-tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: end;
}

.editor-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.editor-toolbar .editor-tab-buttons {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.editor-tone-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 2px;
}

.panel-switcher {
  padding: 6px 6px 0;
  border-bottom: 1px solid rgba(100, 82, 52, 0.12);
}

.panel-switcher-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.panel-top-switcher {
  gap: 6px;
  padding: 0 0 0 6px;
  margin: -4px -4px 18px;
  border-bottom: 1px solid rgba(100, 82, 52, 0.12);
}

.panel-top-switcher #panelEditorButton {
  order: 1;
}

.panel-top-switcher #panelCalibrationButton {
  order: 2;
}

.panel-top-switcher .panel-switcher-button {
  border: 1px solid transparent;
  border-radius: 18px 18px 0 0;
  padding: 10px 16px 9px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: none;
  transform: translateY(1px);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.panel-top-switcher .panel-switcher-button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.panel-top-switcher .panel-switcher-button.active {
  background: var(--panel);
  border-color: rgba(100, 82, 52, 0.12);
  border-bottom-color: var(--panel);
  box-shadow: 0 -8px 18px rgba(75, 45, 18, 0.06);
  transform: translateY(0);
}

.editor-tone-actions .icon-button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 25px;
    background-color: #f6f1e8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.editor-tone-actions .icon-button:hover {
    background-color: #ffffff;
}

.editor-tone-actions .icon-button img {
  width: 28px;
  height: 28px;
}

.song-sheet,
.projection-sheet {
  position: relative;
  width: min(100%, var(--sheet-width));
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,248,240,0.9)),
    repeating-linear-gradient(180deg, transparent, transparent 34px, rgba(100,82,52,0.045) 34px, rgba(100,82,52,0.045) 35px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-layout:not(.has-side-panel) .song-sheet {
  width: 100%;
}

.annotations-text {
  margin: 0;
  white-space: pre-wrap;
}

.wheel-layer {
  position: absolute;
  inset: 0;
}

.chord-tag,
.note-tag,
.wheel-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.chord-tag {
  background: rgba(196, 92, 47, 0.14);
  color: var(--accent-strong);
}

.note-tag {
  background: rgba(35, 24, 13, 0.08);
  color: var(--text);
}

.song-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.svg-title,
.svg-line,
.svg-theme,
.svg-verse {
  font-family: Verdana, sans-serif;
  fill: var(--text);
  white-space: pre;
}

.svg-title {
  font-weight: 700;
}

.svg-theme,
.svg-verse {
  font-style: italic;
}

.svg-chord {
  font-family: var(--font-ui);
  font-style: italic;
  font-weight: 700;
  fill: var(--accent-strong);
}

.svg-chord-editable {
  cursor: pointer;
}

.svg-chord-selected {
  fill: #b31919;
  text-decoration: underline;
}

.svg-chord-preview {
  opacity: 0.58;
}

.svg-note {
  font-family: var(--font-ui);
  fill: var(--muted);
}

.song-svg text {
  user-select: none;
  -webkit-user-select: none;
}

.svg-entry-selection {
  stroke: rgba(47, 138, 55, 0.7);
  stroke-width: 38;
  stroke-linecap: round;
}

.svg-entry-hitbox {
  fill: transparent;
  cursor: pointer;
}

.svg-divider {
  stroke: rgba(100, 82, 52, 0.34);
  stroke-width: 36;
}

.svg-entry-line {
  stroke: #2f8a37;
  stroke-width: 26;
  stroke-linecap: round;
}

.bottom-grid {
  grid-template-columns: 240px minmax(0, 1fr) 250px;
  align-items: center;
  flex: 0 0 76px;
  min-height: 76px;
  overflow: hidden;
}

.tempo-inline-card {
  width: 170px;
  min-height: 0;
  padding: 12px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.tempo-inline-card .info-label {
  margin: 0;
  white-space: nowrap;
}

.tempo-inline-card strong {
  white-space: nowrap;
}

.bottom-grid .panel {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-grid .panel h3 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.song-number-jump-card {
  width: 190px;
  min-height: 0;
  padding: 8px 15px 8px 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: var(--panel);
  box-shadow: var(--shadow);
}


.song-number-jump-card .info-label {
  margin: 0;
  white-space: nowrap;
}

.song-number-jump-card input {
  width: 82px;
  border: none;
  border-radius: 10px;
  background: transparent;
  padding: 4px 2px;
  outline: none;
  text-align: center;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.song-number-jump-card input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.viewer-header {
  display: none;
}

.song-number-jump-card input:focus {
  box-shadow: 0 2px 0 0 rgba(196, 92, 47, 0.2);
}

.panel {
  position: relative;
  min-height: 0;
  overflow: auto;
}

.panel h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.calibration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calibration-frame {
  margin-top: 12px;
  width: calc(100% + 24px);
  margin-left: -12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.calibration-frame-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.calibration-actions {
  margin-top: 12px;
}

.calibration-grid button {
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.calibration-grid button:hover {
  background: #fff;
}

.calibration-actions button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.calibration-actions button:hover {
  background: #fff;
}

.editor-tab {
  display: grid;
  gap: 12px;
}

.editor-field {
  display: grid;
  gap: 8px;
}

.editor-field textarea,
.editor-field input,
.editor-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  outline: none;
}

.editor-field textarea:focus,
.editor-field input:focus,
.editor-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 92, 47, 0.12);
}

.editor-field textarea {
  min-height: 320px;
  resize: vertical;
}

.editor-actions,
.editor-nudges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-inline-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.editor-inline-controls .subtle {
  text-align: center;
  white-space: nowrap;
}

.editor-actions button,
.editor-nudges button,
.editor-inline-controls button {
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.editor-actions button:hover,
.editor-nudges button:hover,
.editor-inline-controls button:hover {
  background: #fff;
}

.editor-inline-controls button {
  min-width: 84px;
  padding: 7px 10px;
  font-size: 0.95rem;
}

.chord-palette-grid {
  display: grid;
  gap: 8px;
}

.chord-palette-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.chord-palette-item {
  border: 0;
  border-radius: 14px;
  padding: 9px 10px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.chord-palette-item:hover {
  background: #fff;
}

.chord-palette-item.active {
  background: rgba(196, 92, 47, 0.18);
  outline: 1px solid rgba(196, 92, 47, 0.28);
}

.hidden {
  display: none !important;
}

.print-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.print-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 24, 13, 0.26);
  backdrop-filter: blur(6px);
}

.print-modal-card {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  margin: 8vh auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-login-card {
  position: absolute;
  margin: 0;
}

.print-modal-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.print-modal-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.print-modal-field input,
.print-modal-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  outline: none;
}

.print-modal-field input:focus,
.print-modal-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 92, 47, 0.12);
}

.print-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  margin-top: 20px;
}

.print-modal-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.print-modal-actions button:hover {
  background: #fff;
}

.focus-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.focus-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at bottom right, rgba(196, 92, 47, 0.14), transparent 24%),
    linear-gradient(135deg, #efe4d0 0%, #f6f1e8 55%, #ede1ca 100%);
}

.focus-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 14px;
  gap: 10px;
}

.focus-font-badge {
  align-self: flex-start;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.95rem;
}

.focus-song-sheet {
  width: 100%;
  height: calc(100% - 52px);
  min-height: 0;
  border-radius: 32px;
}

.focus-song-svg {
  width: 100%;
  height: 100%;
}

.admin-login-form {
  display: grid;
  gap: 0;
}

.admin-login-error {
  margin: 12px 0 0;
  color: #a43a18;
  font-size: 0.95rem;
}

.wheel-layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 0 0;
}

.bottom-grid .wheel-layer {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  padding: 0;
  white-space: nowrap;
}

.bottom-grid .wheel-layer.empty-state {
  justify-content: flex-start;
}

.empty-state {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.annotations-text {
  color: var(--muted);
  line-height: 1.7;
}

.projection-body {
  background: #f6f2ea;
}

.projection-stage {
  min-height: 100vh;
  padding: 24px;
}

.projection-header {
  margin-bottom: 18px;
}

.projection-sheet {
  width: 100%;
  min-height: calc(100vh - 140px);
}

.projection-svg {
  width: 100%;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .song-list {
    max-height: 360px;
  }

  .song-info,
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-utility-bar {
    align-items: center;
    gap: 12px;
  }

  .stage-layout {
    grid-template-columns: 1fr;
  }

  .calibration-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .sidebar {
    padding: 18px 16px 14px;
  }

  body.search-modal-open .sidebar {
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    transform: none;
  }

  .brand h1 {
    font-size: 2rem;
  }

  .viewer {
    padding: 16px;
    overflow: visible;
  }

  .viewer-header,
  .toolbar-grid,
  .song-info,
  .stage-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .bottom-grid,
  .top-utility-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    flex: 0 0 auto;
    overflow: visible;
  }

  .viewer-actions {
    justify-content: start;
    gap: 8px;
    margin-top: 8px;
  }

  .viewer-action-group {
    display: contents;
  }

  .icon-button {
    width: 46px;
    height: 46px;
  }

  .stage-layout {
    gap: 14px;
  }

  .song-sheet,
  .projection-sheet {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 181 / 150;
  }

  .song-svg,
  .projection-svg {
    height: auto;
  }

  .lyrics-layer {
    padding: 20px;
  }

  .song-list {
    max-height: 38vh;
  }

  .quick-actions {
    flex-wrap: wrap;
  }

  .panel {
    overflow: visible;
  }

  .panel-top-switcher,
  .editor-tab-buttons {
    flex-wrap: wrap;
  }

  .editor-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .editor-toolbar .editor-tab-buttons {
    flex: 0 0 auto;
  }

  .editor-tone-actions {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .editor-inline-controls {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .editor-inline-controls button {
    min-width: 64px;
    padding: 7px 8px;
  }

  .calibration-grid {
    grid-template-columns: 1fr;
  }

  .chord-palette-grid {
    gap: 10px;
  }

  .chord-palette-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tempo-inline-card,
  .song-number-jump-card,
  .bottom-grid .panel,
  .utility-wheel-panel {
    padding: 12px 14px;
  }

  .song-number-jump-card {
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
    max-width: 220px;
  }

  .song-number-jump-card input {
    width: 100%;
    max-width: 110px;
  }

  .print-modal-card,
  .admin-login-card {
    width: min(420px, calc(100vw - 20px));
    padding: 18px;
  }

  .focus-modal-content {
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .viewer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .viewer-header h2 {
    font-size: 1.85rem;
  }

  .eyebrow {
    letter-spacing: 0.16em;
  }

  .panel,
  .info-card {
    border-radius: 18px;
    padding: 14px;
  }

  .song-sheet {
    border-radius: 22px;
  }

  .panel-top-switcher {
    margin-left: -2px;
    margin-right: -2px;
  }

  .panel-top-switcher .panel-switcher-button,
  .editor-tab-buttons .panel-switcher-button {
    padding: 9px 13px 8px;
    font-size: 0.96rem;
  }

  .editor-inline-controls {
    grid-template-columns: 1fr 1fr;
  }

  .editor-inline-controls .subtle {
    grid-column: 1 / -1;
    order: -1;
    text-align: left;
  }

  .chord-palette-grid {
    gap: 8px;
  }

  .chord-palette-row {
    grid-template-columns: 1fr 1fr;
  }
}
