/* Замена топонима — формы своего города, результат, таблицы удалённых и замен. */
.tp-import { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 6px; }
.tp-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; cursor: pointer; }
.tp-file { position: relative; }
.tp-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.tp-file:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.tp-arrow { align-self: flex-end; padding-bottom: 12px; color: var(--text-muted); font-weight: 700; }
@media (max-width: 479px) { .tp-arrow { display: none; } }

.tp-custom { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: var(--s-sm); display: flex; flex-direction: column; gap: var(--s-sm); min-width: 0; }
.tp-custom[hidden] { display: none; }
.tp-custom legend { padding: 0 6px; }
.tp-guess-wrap { display: flex; align-items: flex-end; }
.tp-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tp-forms label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--text-muted); min-width: 0; }

.tp-stops summary, .tp-block summary { cursor: pointer; font-weight: 600; color: var(--text-read); min-height: 36px; display: flex; align-items: center; }
.tp-stops summary::before, .tp-block summary::before { content: "▸"; margin-right: 8px; color: var(--cyan); transition: transform var(--t); }
.tp-stops[open] summary::before, .tp-block[open] summary::before { transform: rotate(90deg); }
.tp-stops summary::-webkit-details-marker, .tp-block summary::-webkit-details-marker { display: none; }
.tp-stops[open] summary, .tp-block[open] summary { margin-bottom: 8px; }
.tp-stops .tool-textarea { min-height: 90px; }
.tp-stops .tool-hint { margin-top: 6px; }
.tp-opts { gap: 0 20px; }

.tp-result { display: flex; flex-direction: column; gap: var(--s-sm); min-width: 0; }
.tp-result[hidden] { display: none; }
.tp-out { display: flex; flex-direction: column; gap: 8px; }
.tp-out .tool-textarea { min-height: 180px; }
.tp-block[hidden] { display: none; }
.tp-table-wrap { overflow: auto; max-height: 360px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-alt); }
.tp-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tp-table th, .tp-table td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tp-table thead th { position: sticky; top: 0; background: var(--bg-alt); color: var(--text-muted); font-weight: 600; }
.tp-table tbody tr:last-child td { border-bottom: 0; }
.tp-next { font-size: .92rem; color: var(--text-read); border-left: 3px solid var(--cyan); padding: 4px 0 4px 12px; }
.tp-next a { color: var(--cyan); }
