/* All rules scoped to #dans-phonetic-form to avoid theme conflicts */
#dans-phonetic-form {
margin: 1.5em 0;
font-size: 1em; /* inherit theme font size */
}
#dans-phonetic-form .dpa-mode-row {
display: flex;
flex-wrap: wrap;
gap: 1em;
align-items: center;
margin-bottom: 0.8em;
}
#dans-phonetic-form .dpa-mode-legend {
font-weight: bold;
}
#dans-phonetic-form .dpa-mode-row label {
display: flex;
align-items: center;
gap: 0.3em;
cursor: pointer;
}
#dans-phonetic-form label[for="dpa-input"] {
display: block;
margin-bottom: 0.4em;
font-weight: bold;
}
#dans-phonetic-form .dpa-input-row {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
align-items: center;
}
#dans-phonetic-form #dpa-input {
flex: 1 1 14em;
min-width: 0;
padding: 0.45em 0.6em;
font-size: 1em;
font-family: monospace;
border: 1px solid currentColor;
border-radius: 3px;
box-sizing: border-box;
}
#dans-phonetic-form button {
padding: 0.45em 1.1em;
font-size: 1em;
cursor: pointer;
border-radius: 3px;
border: 1px solid currentColor;
background: transparent;
color: inherit;
}
#dans-phonetic-form button:hover,
#dans-phonetic-form button:focus {
opacity: 0.75;
outline: 2px solid currentColor;
outline-offset: 2px;
}
#dans-phonetic-form #dpa-output-wrapper {
margin-top: 1.2em;
}
#dans-phonetic-form .dpa-output-label {
margin: 0 0 0.3em;
font-weight: bold;
}
#dans-phonetic-form #dpa-output {
font-family: monospace;
font-size: 1.05em;
line-height: 1.6;
padding: 0.6em 0.8em;
border-left: 3px solid currentColor;
word-break: break-word;
white-space: pre-wrap;
}
#dans-phonetic-form #dpa-copy-btn {
margin-top: 0.7em;
}
#dans-phonetic-form #dpa-copied-notice {
margin-left: 0.7em;
font-size: 0.9em;
opacity: 0.75;
}