.move-panel.notation-hidden {
  height: auto;
  min-height: 0;
  grid-template-rows: auto;
}

.move-panel.notation-hidden .move-panel-title {
  border-bottom: 0;
}

.move-panel.notation-hidden .move-panel-title p {
  display: none;
}

.notation-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.notation-content .moves-scroll {
  flex: 1;
}

.move-panel-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .24rem .47rem;
}

.move-panel-actions .notation-button {
  min-height: 2rem;
  padding: .25rem .39rem;
  line-height: 1.22;
  white-space: nowrap;
}

#share-game {
  color: var(--accent);
}

.share-dialog {
  width: min(32rem, 100% - 2.2rem);
}

.share-formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .48rem;
}

.share-format {
  display: flex;
  min-height: 3.3rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .19rem;
  padding: .46rem .69rem;
  border: 1px solid #415646;
  border-radius: .52rem;
  background: #1d3123;
  text-align: left;
}

.share-format:hover {
  border-color: #6c856a;
}

.share-format[aria-pressed="true"] {
  border-color: #99ad6d;
  background: #34492e;
}

.share-format strong {
  font-size: .94rem;
}

.share-format span,
.share-description {
  color: var(--muted);
  font-size: .88rem;
}

.share-description {
  min-height: 2.3em;
  margin: .72rem 0 .7rem;
}

.share-preview-label {
  display: block;
  margin-bottom: .3rem;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 680;
}

.share-preview {
  display: block;
  width: 100%;
  max-height: 50dvh;
  min-height: 3.5rem;
  resize: vertical;
  padding: .56rem .65rem;
  border: 1px solid #465c4a;
  border-radius: .45rem;
  background: #101e16;
  color: var(--ink);
  font: 500 .84rem/1.46 var(--mono);
  scrollbar-color: #57705a #142319;
  scrollbar-width: thin;
}

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

.share-status {
  min-height: 1.4em;
  margin-top: .52rem;
  color: var(--accent);
  font-size: .83rem;
  text-align: right;
}

@media (max-width: 520px) {
  .move-panel-title {
    flex-wrap: wrap;
  }

  .move-panel-actions {
    margin-inline-start: auto;
  }

  .move-panel-actions .notation-button {
    padding-inline: .29rem;
  }
}
