.convert-section {
  margin: 28px 0 6px;
}
.convert-section > .section-head > span {
  color: var(--muted);
  font-size: 13px;
}
.formats {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 1fr));
  gap: 12px;
}
.formats button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(16, 28, 54, 0.04);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.formats button:hover,
.formats button.active {
  transform: translateY(-2px);
  border-color: #8bb0ff;
  box-shadow: 0 11px 26px rgba(41, 105, 232, 0.13);
}
.formats i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.formats .word {
  background: #2764d8;
}
.formats .excel {
  background: #1e9a60;
}
.formats .powerpoint {
  background: #dc5a32;
}
.formats .image {
  background: #8a5ce4;
}
.formats .text {
  background: #65758d;
}
.formats .html {
  background: #246bd4;
  font-size: 9px;
}
.preview-account {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
.preview-account::after {
  content: "\2197";
  font-size: 13px;
}
.preview-account:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}
.topbar .preview-account {
  border-color: var(--line) !important;
  background: #fff !important;
  color: var(--ink) !important;
}
@media (max-width: 1000px) {
  .formats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .formats {
    grid-template-columns: repeat(2, 1fr);
  }
  .convert-section > .section-head > span {
    display: none;
  }
}
.sidebar .formiva-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.sidebar .formiva-initial {
  position: relative;
  z-index: 1;
  margin-right: -2px;
  color: #7db1ff;
  font:
    italic 700 43px/0.72 "Segoe Script",
    "Brush Script MT",
    cursive;
  transform: rotate(-8deg) translateY(1px);
  text-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}
.sidebar .formiva-rest {
  color: #fff;
  font:
    800 27px/1 "Aptos Display",
    "Arial Narrow",
    Inter,
    sans-serif;
  letter-spacing: -0.055em;
}
@media (min-width: 901px) {
  body:has(.sidebar) > main {
    width: calc(100% - 235px);
    max-width: none;
  }
  body:has(aside:not(.sidebar)) > main {
    width: calc(100% - 225px);
    max-width: none;
  }
}
.sound-art {
  overflow: hidden;
}
.sound-art img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  user-select: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}
.sound:hover .sound-art img {
  transform: scale(1.075);
  filter: brightness(1.08) saturate(1.08);
}

@media (max-width: 900px) {
  body[data-page="home"] .sounds {
    grid-template-columns: repeat(
      auto-fit,
      minmax(min(100%, 130px), 1fr)
    ) !important;
    gap: clamp(12px, 2.5vw, 20px) !important;
  }

  body[data-page="home"] .sound,
  body[data-page="home"] .sound:last-child {
    grid-column: auto !important;
    min-width: 0;
  }

  body[data-page="home"] .sound-art {
    width: min(100%, clamp(118px, 24vw, 180px));
    aspect-ratio: 1 !important;
    margin-inline: auto;
    border-radius: 50% !important;
  }
}

@media (max-width: 650px) {
  body[data-page="home"] .sounds {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="home"] .sound,
  body[data-page="home"] .sound:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-rows: auto auto;
    gap: 5px 4px;
  }

  body[data-page="home"] .sound-art {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, clamp(108px, 32vw, 185px));
  }

  body[data-page="home"] .sound b {
    grid-column: 1;
    grid-row: 2;
    margin: 3px 0 0;
    font-size: clamp(12px, 3.2vw, 15px);
  }

  body[data-page="home"] .sound input {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    display: block;
    width: 8px !important;
    min-width: 8px !important;
    height: clamp(105px, 31vw, 180px) !important;
    min-height: 105px !important;
    margin: 0 auto !important;
    writing-mode: vertical-lr !important;
    direction: rtl !important;
    appearance: slider-vertical !important;
  }
}
