.tr h2 { font-size: 1.3rem; margin: 1.25rem 0 .45rem; }
.tr-prompt, .tr-rules { color: var(--bh-muted); line-height: 1.55; margin: .5rem 0; }
.tr-rules { font-size: .9rem; }
.tr-stations { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; margin: 1.5rem 0; }
.tr-stations > div { min-width: 0; }
.tr-stations > div:last-child { text-align: right; }
.tr-stations span { display: block; color: var(--bh-muted); font-size: .85rem; margin-bottom: .35rem; }
.tr-stations h3, .tr-stations strong { display: block; font-size: 1.75rem; line-height: 1.25; margin: 0; overflow-wrap: break-word; }
.tr-stations > i { color: var(--bh-muted); }
.tr-neighbor-title, .tr-route-title { font-size: 1rem; margin: 1.4rem 0 .65rem; }
.tr-neighbors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.tr-neighbor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 64px; padding: .65rem; border: 1px solid var(--bh-line); border-radius: 8px; background: #fff; color: var(--bh-ink); font-weight: 650; line-height: 1.35; overflow-wrap: break-word; cursor: pointer; }
.tr-neighbor small { font-size: .75rem; color: var(--bh-muted); font-weight: 400; }
.tr-neighbor.is-hinted { border-color: var(--bh-accent); background: var(--bh-selected); color: #085c55; }
.tr-neighbor.is-hinted small { color: #085c55; }
.tr-neighbor:focus-visible { outline: 3px solid var(--bh-accent); outline-offset: 3px; }
.tr-play-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 .4rem; }
.tr-route { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .65rem 0 1rem; }
.tr-route li { display: flex; align-items: center; gap: .45rem; min-width: 0; max-width: 100%; }
.tr-route-word { border: 1px solid var(--bh-line); border-radius: 6px; padding: .4rem .65rem; font-size: .9rem; line-height: 1.35; overflow-wrap: break-word; max-width: 100%; }
.tr-route i { color: var(--bh-muted); font-size: .85rem; }
.tr-route li:last-child .tr-route-word { background: var(--bh-selected); color: #085c55; border-color: var(--bh-accent); }
.tr-history { margin: .8rem 0 1rem; padding-left: 1.3rem; color: var(--bh-muted); line-height: 1.6; }
.tr-history li { padding: .2rem 0 .45rem; }
.tr-example { border-top: 1px solid var(--bh-line); margin: 1.4rem 0 0; padding-top: .6rem; }
.tr-example summary { min-height: 44px; padding: .4rem 0; font-weight: 650; cursor: pointer; }
.tr-example > p { color: var(--bh-muted); line-height: 1.55; }
.tr-benchmark { border-bottom: 1px solid var(--bh-line); padding-bottom: .65rem; margin-bottom: 1rem; }
.tr-benchmark h2 { font-size: 1rem; }
.tr-benchmark p { margin: .35rem 0; color: var(--bh-muted); font-size: .9rem; line-height: 1.6; }
.tr-comparison { color: var(--bh-accent); font-weight: 650; line-height: 1.6; }
.tr-error { color: #933a26; background: #fff2ed; border: 1px solid #ebc4b8; border-radius: 8px; padding: .8rem; line-height: 1.6; }
.tr .bh-progress { font-variant-numeric: tabular-nums; }
@media (hover: hover) { .tr-neighbor:hover { border-color: var(--bh-accent); background: #f4f9f7; } }
@media (max-width: 540px) { .tr-stations { gap: .65rem; } .tr-stations h3, .tr-stations strong { font-size: 1.45rem; } .tr-neighbors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } }
@media (max-width: 380px) { .tr-result-actions { display: flex; flex-direction: column; } .tr-result-actions > * { width: 100%; } .tr-play-actions { align-items: stretch; flex-direction: column; } .tr-stations h3, .tr-stations strong { font-size: 1.3rem; } }

.tr[data-locale="de"] :is(#tr-invitation-label, #tr-invitation-link-label) { display:block; margin-block:1rem .4rem; font-weight:600; }
.tr[data-locale="de"] :is(#tr-invitation-note, #tr-invitation-arrival) { max-width:65ch; }
.tr[data-locale="de"] #tr-link-recovery { display:inline-block; margin-block:.5rem 1.25rem; }
.tr[data-locale="de"] [hidden] { display:none!important; }
.tr[data-locale="de"] #tr-share { white-space:normal; }

.tr[data-locale="de"] #tr-invitation-link { margin-block-end:1.5rem; }
@media(max-width:540px) {
    .tr[data-locale="de"] .tr-result-actions { flex-direction:column; align-items:stretch; }
    .tr[data-locale="de"] .tr-result-actions > * { width:100%; text-align:center; }
}

.tr-return { margin-block: 1rem 1.25rem; max-width: 70ch; }
.tr-return h2 { font-size: 1.2rem; margin-block: 0 .5rem; }
.tr-return p { line-height: 1.6; margin-block: .5rem .85rem; }
.tr-return a { display: inline-block; margin: 0 1.25rem .65rem 0; text-underline-offset: .2em; }
#tr-replay-goal { margin-block: 1.5rem .65rem; max-width: 70ch; }
\n.tr-return summary { cursor: pointer; }\n.tr-return details > p { margin-block: .65rem; }\n