/* Inline spans preserve the original typography, spacing and line wrapping. */
:root { --word-ink: #ffd18a; }
#translation-text { caret-color: transparent; -webkit-user-select: none; user-select: none; cursor: default; }
.aligned-word { cursor: pointer; -webkit-tap-highlight-color: transparent; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.aligned-word.word-highlight { color: var(--word-ink); }
.aligned-word:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.word-detail { margin-top: 12px; border-top: 1px solid var(--edge); padding-top: 10px; }
.word-detail-header { display: flex; align-items: center; gap: 6px; }
.word-detail-source { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--accent); font: 500 17px/1.5 "Yu Gothic",Meiryo,sans-serif; }
.word-detail .icon-button { width: 30px; min-height: 30px; padding: 4px; }
.word-close { background: transparent; border-color: transparent; color: var(--muted); }
.word-explanation { margin: 6px 0 0; color: var(--ink); font: 400 14px/1.6 "Segoe UI",Arial,sans-serif; overflow-wrap: anywhere; }
.alignment-note { margin: 10px 0 0; color: var(--muted); font: 400 12px/1.5 "Segoe UI",Arial,sans-serif; }
