

.voice-sect-title {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--type-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-height);
}

.voice-row[hidden] { display: none; }

.voice-label {
  flex: 0 0 76px;
  color: var(--text-secondary);
  font-size: var(--type-sm);
}

.voice-out {
  flex: 0 0 auto;
  min-width: 68px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-sm);
  text-align: right;
}

.voice-hint,
.voice-state {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--type-sm);
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
}

.voice-state { color: var(--text-secondary); }

.voice-seg {
  flex: 1 1 auto;
  display: flex;
  border: var(--hairline) solid var(--line-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.voice-seg-btn {
  flex: 1 1 0;
  height: var(--control-height);
  padding: 0 var(--space-2);
  background: var(--surface-base);
  color: var(--text-secondary);
  border: 0;
  border-right: var(--hairline) solid var(--line-hairline);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  cursor: pointer;
  transition: background var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease);
}

.voice-seg-btn:last-child { border-right: 0; }
.voice-seg-btn:hover { background: var(--surface-inset); color: var(--text-primary); }

.voice-seg-btn.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.voice-pick { flex: 1 1 auto; min-width: 0; display: flex; }

.voice-select {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--control-height);
  padding: 0 var(--space-2);
  background: var(--surface-base);
  color: var(--text-primary);
  border: var(--hairline) solid var(--line-hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
}

.voice-range {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--accent);
}

.voice-check {
  margin: 0;
  accent-color: var(--accent);
}

.voice-actions {
  display: flex;
  gap: var(--space-2);
}

.voice-actions .btn { flex: 1 1 auto; }

@keyframes voice-dict-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.voice-dict.active {
  animation: voice-dict-pulse 1.1s var(--motion-ease) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .voice-dict.active { animation: none; }
}

.voice-meter {
  height: var(--space-2);
  border: var(--hairline) solid var(--line-hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  overflow: hidden;
}

.voice-meter-fill {
  height: 100%;
  width: calc(var(--voice-level, 0) * 100%);
  background: var(--accent-quiet);
  transition: width var(--motion-fast) linear;
}

.voice-meter.live .voice-meter-fill { background: var(--accent); }

.voice-pkg-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-sm);
}

.voice-pkg-why {
  color: var(--text-secondary);
  font-size: var(--type-sm);
  line-height: var(--leading-normal);
}

.pkg-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pkg-langs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pkg-langs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pkg-search {
  width: 100%;
  min-height: var(--chrome-min-hit, var(--control-height));
  padding: var(--space-2);
  background: var(--surface-inset);
  color: var(--text-primary);
  border: var(--hairline) solid var(--line-hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
}

.pkg-search:focus { outline: none; border-color: var(--accent-quiet); }

.pkg-lang-list {
  --pkg-lang-row: 38px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-height: calc(var(--pkg-lang-row) * 9);
  overflow-y: auto;
}

.pkg-lang {

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--surface-base);
  border: var(--hairline) solid var(--line-hairline);
  border-radius: var(--radius-sm);
}

.pkg-lang-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--hairline) solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  font-weight: 600;
  line-height: 1;
  cursor: help;
}

.pkg-lang-mark:hover { background: var(--surface-sunken); }

.pkg-lang-mark:focus-visible {
  outline: var(--focus-ring-width, 2px) solid var(--accent);
  outline-offset: 2px;
}

.pkg-lang .voice-pkg-meta {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pkg-lang[data-active] { border-color: var(--accent-quiet); }

.pkg-lang-name {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex: 0 0 auto;
  color: var(--text-primary);
  font-size: var(--type-md);
}

.pkg-lang-tag {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--type-sm);
  text-transform: uppercase;
}

.pkg-lang-actions {
  display: flex;
  gap: var(--space-2);

  margin-left: auto;
}

.voice-partial {
  color: var(--text-muted);
  border-bottom: var(--hairline) dotted var(--accent-quiet);
}

.voice-pkg-src {
  display: block;
  font-size: 11px;
  opacity: 0.72;
  word-break: break-word;
}
