/* RT-TXT-069 — Kyūjitai–Shinjitai Converter.
 * Light surfaces throughout: changed characters highlighted with
 * --rt-accent-soft behind --rt-ink. No navy result box, so no --rt-result-*
 * tokens (docs/contrast-conventions.md). */

.kj-form { display: flex; flex-direction: column; gap: var(--rt-s-4); min-width: 0; }
.kj-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kj-label { font-family: var(--rt-font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--rt-ink-muted); }
.kj-input {
    width: 100%; box-sizing: border-box; resize: vertical; padding: 10px 14px;
    border: 1px solid var(--rt-hairline); border-radius: var(--rt-r-button);
    background: var(--rt-surface); color: var(--rt-ink); font-size: 20px; line-height: 1.6;
}
.kj-input:focus { outline: none; border-color: var(--rt-accent); box-shadow: 0 0 0 3px var(--rt-accent-soft); }
.kj-samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kj-samples-label { font-size: 11px; color: var(--rt-ink-soft); margin-right: 2px; }
.kj-chip { padding: 5px 11px; border-radius: var(--rt-r-chip); cursor: pointer; border: 1px solid var(--rt-hairline); background: var(--rt-surface-2); color: var(--rt-ink); font-size: 14px; }
.kj-chip:hover { border-color: var(--rt-accent); background: var(--rt-surface); }
.kj-dir { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.kj-radio { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--rt-ink); cursor: pointer; }

.kj-out { min-width: 0; border: 1px solid var(--rt-hairline); border-radius: var(--rt-r-card); background: var(--rt-surface); padding: var(--rt-s-3) var(--rt-s-4); }
/* CLS floor for the default text (舊字體の本を讀む). */
.kj-out.kj-reserve { min-height: 150px; }
.kj-result { display: flex; flex-direction: column; gap: 8px; }
.kj-text { margin: 0; font-size: 24px; line-height: 1.8; color: var(--rt-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.kj-changed { background: var(--rt-accent-soft); color: var(--rt-ink); border-radius: 3px; padding: 0 1px; }
.kj-name { text-decoration: underline double var(--rt-accent); text-underline-offset: 7px; }
/* Compatibility ideograph: usually renders like the new form, and NFC undoes it. */
.kj-compat { border-bottom: 2px dotted var(--rt-ink); }
/* Followed by a variation selector: left as written. */
.kj-held { background: none; color: var(--rt-ink); border-bottom: 2px dashed var(--rt-ink-soft); }
.kj-amb {background: none; color: var(--rt-ink); outline: 2px dashed var(--rt-accent); outline-offset: 1px; border-radius: 3px; }
.kj-summary, .kj-note, .kj-choice { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--rt-ink-soft); }
.kj-choice { color: var(--rt-ink); }
.kj-big { font-size: 20px; }
.kj-copyrow { display: flex; }
.kj-copy { padding: 5px 14px; border-radius: var(--rt-r-chip); cursor: pointer; font-size: 13.5px; border: 1px solid var(--rt-hairline); background: var(--rt-surface-2); color: var(--rt-ink); }
.kj-copy:hover { border-color: var(--rt-accent); }

.kj-ack { font-size: 11.5px; color: var(--rt-ink-soft); line-height: 1.6; margin: 0; }
.kj-ack a { color: inherit; }
