/* Voice Dictation download panel. */
#release .voice-download-main {
  display: inline-flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid #535353;
  border-color: light-dark(#535353, #dee1df);
  border-radius: 999px;
  background: #151515;
  background: light-dark(#151515, #fff);
  color: #fff;
  color: light-dark(#fff, #151515);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

#release .voice-download-main:hover {
  background: #303030;
  background: light-dark(#303030, #edf0ed);
  border-color: #666;
  border-color: light-dark(#666, #bcc4bd);
}

#release .voice-download-main:active {
  background: #080808;
  background: light-dark(#080808, #dce2dd);
}

.voice-download-main .apple-logo {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

#release .voice-download-options {
  width: 100%;
}

#release .voice-platforms {
  width: min(100%, 352px);
  margin: 4px 0 0;
  color: var(--ink);
}

.voice-platforms > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 2px 6px 2px 0;
  list-style: none;
  cursor: pointer;
}

.voice-platforms > summary::-webkit-details-marker {
  display: none;
}

.voice-platforms > summary::after {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.voice-platforms[open] > summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.voice-platforms .voice-platform-list {
  margin: 6px 0 0;
  padding: 2px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  list-style: none;
}

.voice-platform-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.voice-platform-list > li + li {
  border-top: 1px solid var(--line);
}

.voice-platform-list strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.voice-platform-list small,
.voice-platform-list .voice-platform-unavailable {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.voice-platform-list .voice-platform-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.voice-platform-list .voice-platform-download:hover {
  text-decoration: underline;
}
