.graph-container { overflow: auto; max-height: 760px; }
.sample-row { flex-wrap: wrap; }
.random-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.random-button.secondary { background: transparent; color: #6c776e; }
.random-button { border: 1px solid #cad4bd; border-radius: 16px; padding: 5px 12px; background: #e9eee2; color: #345a40; font-size: 11px; white-space: nowrap; }
.random-button:hover:not(:disabled) { background: #dde6d3; }
.random-button span { margin-left: 4px; }
.navigation-toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 24px 0; }
.navigation-toolbar kbd { display: inline-block; margin-left: 8px; padding: 2px 5px; border: 1px solid #d5dccd; border-radius: 4px; font: inherit; font-size: 10px; }
.navigation-note { color: #6c776e; font-size: 11px; line-height: 1.8; margin: 8px 24px 14px; }
.semantic-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 24px; font-size: 11px; }
.semantic-toolbar label { display: flex; align-items: center; gap: 6px; }
.semantic-toolbar input { accent-color: #345a40; }
.semantic-toolbar > span { color: #6c776e; line-height: 1.8; }
.semantic-key { border-bottom: 2px dashed; font-size: 10px; }
.synonym-key { color: #467e9c; }
.antonym-key { color: #b86a59; }
/* Keep the reading order consistent when the window grows. */
.explorer { grid-template-columns: minmax(0, 1fr); }
.detail-panel { min-width: 0; min-height: 0; max-height: none; overflow: visible; }
.language-button { border: 0; border-bottom: 1px dotted #9aa891; padding: 1px 0; background: transparent; color: #345a40; font: inherit; text-align: left; }
.language-button:hover { color: #1d3824; border-bottom-style: solid; }
.comparison-pos { font-size: 10px; color: #6c776e; margin-top: 3px; }
.dictionary-link { display: block; text-align: left; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; }
.dictionary-entries p { overflow-wrap: anywhere; }
.dataset-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; padding: 14px 18px; border: 1px solid #d7decd; border-radius: 12px; background: #fffefa; font-size: 12px; }
.dataset-picker select { max-width: 100%; padding: 8px; border: 1px solid #cad4bd; border-radius: 6px; background: #fffefa; color: #345a40; }
#dataset-description { color: #6c776e; overflow-wrap: anywhere; }
.information-row { margin: 12px 0; overflow-wrap: anywhere; }
.information-row h4 { margin: 0 0 4px; font-size: 12px; color: #52634f; }
.information-row p { margin: 0; white-space: pre-wrap; }
.synonym-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 24px 16px; font-size: 12px; }
.synonym-chip, .synonym-origin { border: 1px solid #cad4bd; border-radius: 12px; padding: 5px 10px; background: #eff3e9; color: #345a40; font: inherit; overflow-wrap: anywhere; text-align: left; }
.synonyms-section { margin-top: 36px; }
.sources-section { margin-top: 36px; }
.sources-content { padding: 8px 22px; border: 1px solid #d7decd; border-radius: 14px; background: #fffefa; overflow-wrap: anywhere; }
.sources-content .note-section h3 { font-size: 14px; }
.sources-content .note-section p { font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.synonym-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.synonym-card { min-width: 0; padding: 22px; border: 1px solid #d7decd; border-radius: 14px; background: #fffefa; overflow-wrap: anywhere; }
.synonym-card h3 { margin: 0 0 6px; font: 25px Georgia, serif; color: #345a40; }
.synonym-card h4 { margin: 18px 0 7px; font-size: 12px; color: #52634f; }
.synonym-card p { font-size: 12px; line-height: 1.9; }
.synonym-card select { width: 100%; min-width: 0; padding: 8px; border: 1px solid #cad4bd; border-radius: 6px; background: #fffefa; color: #345a40; }
.synonym-card a { font-size: 12px; }
.synonym-card .synonym-record { display: block; margin-top: 7px; color: #6c776e; font-size: 10px; }
.synonym-origin-list > div { margin: 6px 0; }
.synonym-origin-list small { font-size: 10px; color: #6c776e; }
.synonym-etymology { white-space: pre-wrap; }
.usage-example { margin: 10px 0 14px; padding: 12px; border-left: 3px solid #9cb287; border-radius: 0 8px 8px 0; background: #f2f5ed; }
.usage-example .example-text { color: #253d32; font-size: 14px; line-height: 1.9; max-height: none; white-space: pre-wrap; }
.usage-example .example-translation { margin-top: 8px; color: #52634f; max-height: none; }
.usage-example small, .usage-example .example-sense, .usage-example .example-definition { font-size: 11px; color: #6c776e; }
.usage-example .example-definition { margin: 6px 0 10px; max-height: none; }
.usage-examples > .subtle-button { margin-top: 8px; white-space: normal; }
.meaning-review { margin-top: 7px; }
.dictionary-examples-results { overflow-wrap: anywhere; }
.synonym-other-dataset { display: block; margin-top: 9px; text-align: left; white-space: normal; }
.language-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid #cbd5bd; border-radius: 16px; padding: 30px; background: #fffefa; color: #253d32; box-shadow: 0 20px 80px #142a2840; }
.language-dialog::backdrop { background: #142a2866; }
.language-dialog form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.dialog-close { border: 1px solid #cad4bd; border-radius: 7px; padding: 7px 11px; background: #f3f6ee; color: #345a40; font-size: 12px; }
.language-dialog h2 { font-size: 26px; margin: 0; overflow-wrap: anywhere; }
.language-dialog p { font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.language-dialog .language-english { color: #6c776e; margin-top: 5px; }
.language-dialog dl { border-top: 1px solid #dfe3d8; padding-top: 15px; font-size: 12px; }
.language-dialog dt { color: #6c776e; }
.language-dialog dd { margin: 5px 0 20px; overflow-wrap: anywhere; font-family: monospace; }
.language-dialog a { font-size: 12px; }
