.ssml-pronunciation {
  --pr-ink: #172b23;
  --pr-text: #40574d;
  --pr-accent: #224f3f;
  --pr-line: #d4dfd8;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 22px;
  color: var(--pr-ink);
  font-size: 14px;
  line-height: 1.5;
}
.ssml-pronunciation [hidden] { display: none !important; }
.ssml-pronunciation .pr-panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--pr-line);
  border-radius: 14px;
  background: #fff;
}
.ssml-pronunciation .pr-result { background: #f1f6f2; }
.ssml-pronunciation h2 { margin: 0 0 12px; font-size: 19px; font-weight: 650; }
.ssml-pronunciation label { display: block; margin-bottom: 6px; font-weight: 650; }
.ssml-pronunciation .pr-rules-label { margin-top: 17px; }
.ssml-pronunciation textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #aebeb5;
  border-radius: 8px;
  background: #fff;
  color: var(--pr-ink);
  overflow-wrap: anywhere;
  resize: vertical;
}
.ssml-pronunciation textarea::placeholder { color: #5b6d64; }
.ssml-pronunciation textarea::selection { background: #cae8d7; }
.ssml-pronunciation :is(#pr-rules, #pr-result) { font-family: ui-monospace, monospace; font-size: 13px; }
.ssml-pronunciation #pr-result { margin-top: 10px; }
.ssml-pronunciation .pr-summary { margin: 0; font-weight: 650; }
.ssml-pronunciation .pr-note { margin: 7px 0 0; color: var(--pr-text); font-size: 13px; }
.ssml-pronunciation .pr-unmatched { overflow-wrap: anywhere; }
.ssml-pronunciation .pr-status:empty { display: none; }
.ssml-pronunciation .pr-error { margin: 11px 0 0; color: #852d22; font-size: 13px; }
.ssml-pronunciation .pr-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.ssml-pronunciation :is(.pr-primary, .pr-sample) { min-height: 44px; cursor: pointer; font-weight: 650; }
.ssml-pronunciation .pr-primary {
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--pr-accent);
  color: #fff;
}
.ssml-pronunciation .pr-primary:hover { background: #193e30; }
.ssml-pronunciation .pr-sample { padding: 4px 0; color: var(--pr-accent); text-decoration: underline; text-underline-offset: 3px; }
.ssml-pronunciation :is(button, textarea):focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 2px; }

@media (min-width: 760px) {
  .ssml-pronunciation { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
