.chord-fretboard {
  width: 100%;
  display: grid;
  gap: 8px;
}

.chord-fretboard--compact {
  max-width: 100%;
}

.chord-fretboard__header,
.chord-fretboard__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
}

.chord-fretboard__frets,
.chord-fretboard__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.chord-fretboard__fret-number,
.chord-fretboard__string-label,
.chord-fretboard__xo {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.chord-fretboard__cell {
  position: relative;
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #f8fafc;
}

.chord-fretboard__cell.is-active {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
}

.chord-fretboard__dot {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.chord-fretboard--uke .chord-fretboard__header,
.chord-fretboard--uke .chord-fretboard__row {
  grid-template-columns: 18px minmax(0, 1fr) 20px;
}

.cg-chord-diagram {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.cg-chord-diagram--compact {
  max-width: 280px;
}

.cg-chord-diagram--uke {
  max-width: 250px;
}

.cg-chord-diagram__header {
  position: relative;
  height: 24px;
  margin-bottom: 6px;
}

.cg-chord-diagram__markers {
  position: relative;
  margin-left: 28px;
  margin-right: 18px;
  height: 24px;
}

.cg-chord-diagram__top-marker {
  position: absolute;
  top: 0;
  left: calc((var(--cg-string) - 1) * (100% / 5));
  transform: translateX(-50%);
  width: 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #64748b;
}

.cg-chord-diagram--uke .cg-chord-diagram__top-marker {
  left: calc((var(--cg-string) - 1) * (100% / 3));
}

.cg-chord-diagram__main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cg-chord-diagram__left {
  width: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 34px;
}

.cg-chord-diagram__start-fret {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.cg-chord-diagram__nut {
  width: 8px;
  height: 100%;
  min-height: 180px;
  border-radius: 999px;
  background: #111827;
}

.cg-chord-diagram__board-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.cg-chord-diagram__fret-numbers {
  display: grid;
  grid-template-columns: repeat(var(--cg-fret-count, 5), 1fr);
  gap: 0;
  margin-bottom: 8px;
  padding: 0 8px;
}

.cg-chord-diagram__fret-number {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #64748b;
}

.cg-chord-diagram__board {
  position: relative;
  height: 220px;
  border-radius: 8px;
  background: #ffffff;
  overflow: visible;
}

.cg-chord-diagram--compact .cg-chord-diagram__board {
  height: 190px;
}

.cg-chord-diagram--uke .cg-chord-diagram__board {
  height: 200px;
}

.cg-chord-diagram__string-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #111827;
  left: calc((var(--cg-string) - 1) * 20%);
  transform: translateX(-50%);
}

.cg-chord-diagram--uke .cg-chord-diagram__string-line {
  left: calc((var(--cg-string) - 1) * 33.3333%);
}

.cg-chord-diagram__fret-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #9ca3af;
  top: calc((var(--cg-line) - 1) * 20%);
  transform: translateY(-50%);
}

.cg-chord-diagram__dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  left: calc((var(--cg-string) - 1) * 20%);
  top: calc((var(--cg-fret) - 0.5) * 20%);
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.cg-chord-diagram--compact .cg-chord-diagram__dot {
  width: 30px;
  height: 30px;
}

.cg-chord-diagram--uke .cg-chord-diagram__dot {
  left: calc((var(--cg-string) - 1) * 33.3333%);
}

.cg-chord-diagram__dot-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.cg-chord-diagram__dot.is-dark {
  background: #111827;
}

.cg-chord-diagram__dot.is-orange {
  background: #f59e0b;
}

.cg-chord-diagram__dot.is-black {
  background: #1f2937;
}

.cg-chord-diagram__dot.is-accent {
  background: #0f766e;
}

.cg-chord-diagram__string-names {
  position: relative;
  margin-top: 10px;
  height: 18px;
}

.cg-chord-diagram__string-label {
  position: absolute;
  left: calc((var(--cg-string) - 1) * 20%);
  transform: translateX(-50%);
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
}

.cg-chord-diagram--uke .cg-chord-diagram__string-label {
  left: calc((var(--cg-string) - 1) * 33.3333%);
}

/* ========================================
   GUITAR HORIZONTAL
   ======================================== */

.cg-chord-diagram--guitar-horizontal {
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
}

.song-chord-card__frame--instrument-compact .cg-chord-diagram--guitar-horizontal {
  max-width: 240px;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__header--horizontal {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 5px;
  align-items: end;
  height: auto;
  margin-bottom: 4px;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__header-spacer,
.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__left--horizontal {
  width: 14px;
  min-width: 14px;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__markers--horizontal {
  position: relative;
  height: 20px;
  margin: 0;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__top-marker {
  position: absolute !important;
  top: 0;
  left: calc((6 - var(--cg-string)) * 20%) !important;
  transform: translateX(-50%) !important;
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748b;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__main--horizontal {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 5px;
  align-items: stretch;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__left--horizontal {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__nut--vertical {
  width: 7px !important;
  height: 92px !important;
  min-height: 92px !important;
  border-radius: 999px;
  background: #111827;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__start-fret--vertical {
  height: 92px !important;
  min-height: 92px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__board-wrap--horizontal {
  width: 100%;
  min-width: 0;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__fret-numbers--horizontal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 6px;
  padding: 0;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__fret-number {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__board--horizontal {
  position: relative;
  width: 100%;
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  overflow: visible;
  background: #fff;
  border-radius: 0;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__string-line--horizontal {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  top: calc((6 - var(--cg-string)) * 20%) !important;
  bottom: auto !important;
  height: 2px !important;
  background: #9ca3af !important;
  transform: translateY(-50%) !important;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__fret-line--vertical {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: calc((var(--cg-line) - 1) * 20%) !important;
  right: auto !important;
  width: 2px !important;
  height: auto !important;
  background: #111827 !important;
  transform: translateX(-50%) !important;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot {
  position: absolute !important;
  left: calc((var(--cg-fret) - 0.5) * 20%) !important;
  top: calc((6 - var(--cg-string)) * 20%) !important;
  transform: translate(-50%, -50%) !important;
  width: 20px;
  height: 20px;
  z-index: 5;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot.is-dark {
  background: #111827;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot.is-orange {
  background: #f59e0b;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot.is-black {
  background: #1f2937;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot.is-accent {
  background: #0f766e;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__string-names--horizontal {
  position: relative;
  margin-top: 8px;
  height: 18px;
}

.cg-chord-diagram--guitar-horizontal .cg-chord-diagram__string-label {
  position: absolute !important;
  left: calc((6 - var(--cg-string)) * 20%) !important;
  transform: translateX(-50%) !important;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

/* ========================================
   UKULELE HORIZONTAL
   ======================================== */

.cg-chord-diagram--uke-horizontal {
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

.song-chord-card__frame--instrument-compact .cg-chord-diagram--uke-horizontal {
  max-width: 170px;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__header--horizontal {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 5px;
  align-items: end;
  height: auto;
  margin-bottom: 4px;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__header-spacer {
  width: 14px;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__markers--horizontal {
  position: relative;
  height: 20px;
  margin: 0;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__top-marker {
  top: 0;
  left: calc((4 - var(--cg-string)) * 33.3333%);
  transform: translateX(-50%);
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748b;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__main--horizontal {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__left--horizontal {
  width: 14px;
  min-width: 14px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__nut--vertical {
  width: 6px;
  min-height: 92px;
  height: 92px;
  border-radius: 999px;
  background: #111827;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__start-fret--vertical {
  min-height: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__board-wrap--horizontal {
  width: 100%;
  min-width: 0;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__fret-numbers--horizontal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 6px;
  padding: 0;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__fret-number {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__board--horizontal {
  position: relative;
  width: 100%;
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  overflow: visible;
  background: #ffffff;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__fret-line--vertical {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: calc((var(--cg-line) - 1) * 20%) !important;
  right: auto !important;
  width: 2px !important;
  height: auto !important;
  background: #111827 !important;
  transform: translateX(-50%) !important;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__string-line--horizontal {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  top: calc((4 - var(--cg-string)) * 33.3333%) !important;
  bottom: auto !important;
  height: 2px !important;
  background: #9ca3af !important;
  transform: translateY(-50%) !important;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__dot {
  position: absolute !important;
  left: calc((var(--cg-fret) - 0.5) * 20%) !important;
  top: calc((4 - var(--cg-string)) * 33.3333%) !important;
  transform: translate(-50%, -50%) !important;
  width: 20px;
  height: 20px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__dot-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  color: inherit;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__string-names--horizontal {
  position: relative;
  margin-top: 8px;
  height: 16px;
}

.cg-chord-diagram--uke-horizontal .cg-chord-diagram__string-label {
  position: absolute !important;
  left: calc((4 - var(--cg-string)) * 33.3333%) !important;
  transform: translateX(-50%) !important;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

@media (max-width: 1199.98px) {
  .cg-chord-diagram {
    max-width: 280px;
  }

  .cg-chord-diagram--compact {
    max-width: 250px;
  }

  .cg-chord-diagram__board {
    height: 200px;
  }

  .cg-chord-diagram--compact .cg-chord-diagram__board {
    height: 176px;
  }

  .cg-chord-diagram__dot {
    width: 30px;
    height: 30px;
  }

  .cg-chord-diagram__dot-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .cg-chord-diagram {
    max-width: 240px;
  }

  .cg-chord-diagram__left {
    width: 22px;
    flex-basis: 22px;
  }

  .cg-chord-diagram__board {
    height: 180px;
  }

  .cg-chord-diagram__dot {
    width: 26px;
    height: 26px;
  }

  .cg-chord-diagram__dot-label {
    font-size: 0.72rem;
  }

  .cg-chord-diagram__top-marker {
    font-size: 0.9rem;
  }

  .cg-chord-diagram__string-label,
  .cg-chord-diagram__fret-number {
    font-size: 0.8rem;
  }

  .cg-chord-diagram--guitar-horizontal {
    max-width: 170px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__nut--vertical,
  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__start-fret--vertical {
    height: 82px !important;
    min-height: 82px !important;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__board--horizontal {
    height: 82px;
    min-height: 82px;
    max-height: 82px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot {
    width: 18px;
    height: 18px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot-label {
    font-size: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .chord-fretboard__header,
  .chord-fretboard__row {
    grid-template-columns: 16px minmax(0, 1fr) 18px;
    gap: 6px;
  }

  .chord-fretboard__frets,
  .chord-fretboard__grid {
    gap: 4px;
  }

  .chord-fretboard__cell {
    min-height: 28px;
    border-radius: 8px;
  }

  .chord-fretboard__dot {
    width: 11px;
    height: 11px;
  }

  .cg-chord-diagram--guitar-horizontal {
    max-width: 150px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__header--horizontal {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 4px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__header-spacer,
  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__left--horizontal {
    width: 12px;
    min-width: 12px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__nut--vertical,
  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__start-fret--vertical {
    height: 72px !important;
    min-height: 72px !important;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__board--horizontal {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot {
    width: 16px;
    height: 16px;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__dot-label {
    font-size: 0.42rem;
  }

  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__top-marker,
  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__fret-number,
  .cg-chord-diagram--guitar-horizontal .cg-chord-diagram__string-label {
    font-size: 0.6rem;
  }

  .cg-chord-diagram--uke-horizontal {
    max-width: 150px;
  }

  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__board--horizontal {
    height: 78px;
    min-height: 78px;
    max-height: 78px;
  }

  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__nut--vertical,
  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__start-fret--vertical {
    height: 78px;
    min-height: 78px;
  }

  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__dot {
    width: 16px;
    height: 16px;
  }

  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__dot-label {
    font-size: 0.46rem;
  }

  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__top-marker,
  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__fret-number,
  .cg-chord-diagram--uke-horizontal .cg-chord-diagram__string-label {
    font-size: 0.62rem;
  }
}

/* ========================================
   ABOVE MODE - MINI UKULELE SHAPE
   ======================================== */

.cg-above-ukulele {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.cg-above-ukulele__name {
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  color: #374151;
  text-align: center;
  min-height: 14px;
}

.cg-above-ukulele__shape {
  display: grid;
  grid-template-columns: 14px auto;
  align-items: start;
  column-gap: 6px;
}

.cg-above-ukulele__shape-left {
  position: relative;
  width: 14px;
  height: 52px;
  flex: 0 0 14px;
}

.cg-above-ukulele__side-marker {
  position: absolute;
  left: 50%;
  top: calc((4 - var(--cg-string)) * 33.3333%);
  transform: translate(-50%, -50%);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: #6b7280;
}

.cg-above-ukulele__side-marker--empty {
  opacity: 0;
}

.cg-above-ukulele__shape-main {
  display: grid;
  grid-template-columns: 8px 68px;
  align-items: stretch;
  column-gap: 6px;
}

.cg-above-ukulele__nut {
  width: 6px;
  height: 52px;
  border-radius: 999px;
  background: #111827;
  display: block;
  align-self: stretch;
}

.cg-above-ukulele__start-fret {
  width: 8px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  color: #374151;
  text-align: center;
}

.cg-above-ukulele__board {
  position: relative;
  width: 68px;
  height: 52px;
  overflow: visible;
}

.cg-above-ukulele__string-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc((4 - var(--cg-string)) * 33.3333%);
  height: 1.5px;
  background: #6b7280;
  transform: translateY(-50%);
}

.cg-above-ukulele__fret-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((var(--cg-line) - 1) * 20%);
  width: 1.5px;
  background: #9ca3af;
  transform: translateX(-50%);
}

.cg-above-ukulele__dot {
  position: absolute;
  left: calc((var(--cg-fret) - 0.5) * 20%);
  top: calc((4 - var(--cg-string)) * 33.3333%);
  width: 13px;
  height: 13px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.14);
  z-index: 2;
}

.cg-above-ukulele__dot-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 4px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: inherit;
  text-align: center;
}

.cg-above-ukulele__dot.is-long-label .cg-above-ukulele__dot-label {
  font-size: 3.4px;
  letter-spacing: 0;
}

@media (max-width: 767.98px) {
  .cg-above-ukulele__name {
    font-size: 11px;
  }

  .cg-above-ukulele__shape {
    grid-template-columns: 12px auto;
    column-gap: 5px;
  }

  .cg-above-ukulele__shape-left {
    width: 12px;
    height: 46px;
    flex-basis: 12px;
  }

  .cg-above-ukulele__side-marker {
    font-size: 9px;
  }

  .cg-above-ukulele__shape-main {
    grid-template-columns: 7px 60px;
    column-gap: 5px;
  }

  .cg-above-ukulele__nut {
    width: 5px;
    height: 46px;
  }

  .cg-above-ukulele__start-fret {
    width: 7px;
    height: 46px;
    font-size: 9px;
  }

  .cg-above-ukulele__board {
    width: 60px;
    height: 46px;
  }

  .cg-above-ukulele__dot {
    width: 12px;
    height: 12px;
  }

  .cg-above-ukulele__dot-label {
    font-size: 3.5px;
    letter-spacing: 0;
  }

  .cg-above-ukulele__dot.is-long-label .cg-above-ukulele__dot-label {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .cg-above-ukulele__name {
    font-size: 10px;
  }

  .cg-above-ukulele__shape {
    grid-template-columns: 10px auto;
    column-gap: 4px;
  }

  .cg-above-ukulele__shape-left {
    width: 10px;
    height: 40px;
    flex-basis: 10px;
  }

  .cg-above-ukulele__side-marker {
    font-size: 8px;
  }

  .cg-above-ukulele__shape-main {
    grid-template-columns: 6px 52px;
    column-gap: 4px;
  }

  .cg-above-ukulele__nut {
    width: 4px;
    height: 40px;
  }

  .cg-above-ukulele__start-fret {
    width: 6px;
    height: 40px;
    font-size: 8px;
  }

  .cg-above-ukulele__board {
    width: 52px;
    height: 40px;
  }

  .cg-above-ukulele__dot {
    width: 11px;
    height: 11px;
  }

  .cg-above-ukulele__dot-label {
    font-size: 3px;
    letter-spacing: 0;
  }

  .cg-above-ukulele__dot.is-long-label .cg-above-ukulele__dot-label {
    display: none;
  }
}