/* Character names: readable inputs and consistent, unboxed actions. */
.character-page .character-table { width:100%; table-layout:fixed; }
.character-page .character-table th:first-child { width:3rem; }
.character-page .character-table th:last-child { width:7.5rem; }
.character-page .character-table td { overflow-wrap:anywhere; }
.character-page .character-table input { min-width:0; max-width:100%; }
.character-page .character-table .discreet-source-display { width:100%; text-align:left; padding:.3rem .2rem; white-space:normal; overflow-wrap:anywhere; }
.character-page .character-source-form .translation-editor input { width:100%; padding:.4rem 2.3rem .4rem .5rem; }
.character-page .name-links { vertical-align:middle; }
.character-page .name-links :is(button,.name-link-form) { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; margin:0; }
.character-page .name-links button { min-width:30px; min-height:32px; padding:.25rem; gap:.2rem; border:0; background:none; box-shadow:none; color:var(--t-ink,var(--ink)); }
.character-page .name-links button:hover { background:color-mix(in srgb,var(--t-accent,#805124) 12%,transparent); transform:none; }
.character-page .name-links .icon { width:16px; height:16px; }
@media(max-width:700px) {
 .character-page main { padding:.75rem; }
 .character-page .character-navigation { display:flex; flex-wrap:wrap; gap:.5rem; margin:.25rem 0 .75rem; font-size:.85rem; }
 .character-page .summary-strip { display:flex; flex-wrap:wrap; gap:.4rem 1rem; margin-bottom:1rem; padding:.75rem; }
 .character-page .summary-strip span { font-size:.8rem; }
 .character-page .table-wrap { overflow:visible; border:0; background:none; box-shadow:none; }
 .character-page .character-table { display:block; border:0; background:none; }
 .character-page .character-table thead { display:none; }
 .character-page .character-table tbody { display:grid; gap:.85rem; }
 .character-page .character-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:0; border:1px solid var(--t-line,#b0804e); border-radius:7px; overflow:hidden; background:var(--t-field,#eadcbd); scroll-margin-top:5rem; }
 .character-page .character-table tbody td { display:block; min-width:0; padding:.75rem; border:0; background:none; box-shadow:none!important; }
 .character-page .character-table .character-number { grid-column:1; grid-row:1; display:flex; align-items:center; min-height:48px; padding:.45rem .75rem; font-weight:700; background:color-mix(in srgb,var(--t-head,#bf8a53) 30%,var(--t-field,#eadcbd)); }
 .character-page .character-table .name-links { grid-column:2; grid-row:1; display:flex; align-items:center; justify-content:flex-end; gap:.25rem; padding:.3rem .5rem; background:color-mix(in srgb,var(--t-head,#bf8a53) 30%,var(--t-field,#eadcbd)); }
 .character-page .character-source-cell { grid-row:2; }
 .character-page .character-fr-cell { grid-column:1/-1; grid-row:3; padding-top:.4rem; }
 .character-page :is(.character-source-cell,.character-fr-cell)::before { content:attr(data-label); display:block; margin-bottom:.4rem; font-size:.66rem; font-weight:700; letter-spacing:.08em; color:var(--t-muted,#69482d); }
 .character-page .character-table .translation-editor input { width:100%; min-height:42px; font-size:16px; }
 .character-page .character-table .character-name-editor { width:100%; }
 .character-page .character-table .name-links button { min-width:34px; min-height:38px; }
 .character-page .character-table tr:target { outline:2px solid var(--t-accent,#9c4d20); outline-offset:2px; }
}

.name-occurrence-actions:empty { display:none; }
.name-occurrence-actions { padding:.75rem 1rem; border-bottom:1px solid var(--t-line,#b0804e); }
.name-occurrence-actions .name-link-form { margin:0; }
.name-occurrence-actions .link-toggle { display:inline-flex; align-items:center; gap:.5rem; max-width:100%; white-space:normal; }
.name-occurrence-actions .icon { width:16px; height:16px; flex:none; }
