/* batch-rename only: rule form and preview table. */
.rn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11em, 1fr)); gap: var(--matrix-space-12); }
.rn-field { display: grid; gap: 4px; min-width: 0; }
.rn-field input, .rn-field select { width: 100%; min-width: 0; }
.rn-inline { display: flex; flex-wrap: wrap; gap: var(--matrix-space-8) var(--matrix-space-24); }
.rn-ext { display: flex; gap: var(--matrix-space-8); }
.rn-ext input { width: 7em; }
.rn-numbering input:disabled, .rn-numbering select:disabled { opacity: 0.6; }
.rn-hint { margin: 0; font-size: var(--matrix-type-caption); }
/* the preset's file input is hidden; its label is what a keyboard user sees, so it shows the focus (review I3afb97e3) */
#rn-open-preset:focus-visible + label { outline: 2px solid var(--matrix-focus); outline-offset: 2px; }
.rn-preview h3 { margin: 0 0 var(--matrix-space-8); font-size: 1rem; }
.rn-table-wrap { max-height: 24rem; overflow: auto; }
.rn-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.rn-table th, .rn-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--matrix-border); vertical-align: top; overflow-wrap: anywhere; }
/* a name as it is: a space at either end, or two in a row, takes its room (review Ib22a55db7a1e48dca266) */
.rn-table td { white-space: pre-wrap; }
.rn-table th { position: sticky; top: 0; background: var(--matrix-surface); }
.rn-table td:last-child { font-family: var(--matrix-font-mono, ui-monospace, monospace); }
.rn-same td:last-child { color: var(--matrix-muted); }
.rn-changed td:last-child > span:first-child { font-weight: 600; }
.rn-why { font-family: var(--matrix-font, system-ui, sans-serif); font-weight: 400; }
.files-hint { margin: 0; font-size: var(--matrix-type-caption); }
/* the last rename's undo, below the result panel: it stays when the panel goes (review Idde1902488894b668010) */
.rn-last { display: grid; gap: var(--matrix-space-8); justify-items: start; margin-top: var(--matrix-space-12); }
.rn-last[hidden] { display: none; }
.rn-rules .option-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--matrix-space-12); align-items: center; }
/* each rule folds to its title line (fb_9ebe052f); open, its fields follow the title */
.rn-rule + .rn-rule, .rn-rule + .option-row { border-top: 1px solid var(--matrix-border); }
.rn-rule + .option-row { padding-top: var(--matrix-space-8); }
.rn-rule > summary { cursor: pointer; font-weight: 600; min-height: var(--matrix-control-min-height); padding-block: var(--matrix-space-8); }
.rn-rule > summary .tag { font-weight: 500; }
.rn-rule-body { display: grid; gap: var(--matrix-space-8); padding-bottom: var(--matrix-space-12); }
