.external-history { margin-block:2.5rem; padding:clamp(1.25rem,3vw,2rem); background:#fff; border:1px solid #e6e8eb; border-radius:1.75rem; color:#231f20; min-width:0; }
.external-history-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.external-history h2 { font-size:clamp(1.65rem,3vw,2.1rem); line-height:1.2; margin:.4rem 0; letter-spacing:-.04em; }
.external-history-source { color:#3e8314; font-weight:650; font-size:1rem; text-underline-offset:3px; }
.external-history-status,.external-history-context { color:#6c6c70; font-size:1rem; line-height:1.65; margin:.65rem 0; }
.external-history-status.is-stale { color:#8a5900; }
.external-history-lines { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap:1rem; margin:1.5rem 0; }
.external-history-line { background:#f4f6f8; border:1px solid #e8ebee; border-radius:1.25rem; padding:1.25rem; min-width:0; }
.external-history-line h3 { display:flex; align-items:center; gap:.65rem; font-size:1.15rem; margin:0 0 1.3rem; }
.external-history-line dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin:0; }
.external-history-line dl div { display:flex; flex-direction:column-reverse; gap:.4rem; }
.external-history-line dt { font-size:.875rem; line-height:1.5; color:#6c6c70; }
.external-history-line dd { font-size:1.35rem; font-weight:750; margin:0; color:#231f20; letter-spacing:-.03em; }
.external-history-line p { color:#6c6c70; font-size:.875rem; line-height:1.5; margin:1.25rem 0 0; }
.external-history-controls label { display:flex; flex-direction:column; gap:.5rem; font-size:1rem; font-weight:650; max-width:30rem; }
.external-history-controls input { width:100%; min-height:48px; border:1px solid #d9dce0; border-radius:.9rem; padding:.75rem 1rem; background:#fff; font-size:1rem; color:#231f20; }
.external-history-trips { overflow-x:auto; margin-top:1.25rem; border-radius:1rem; }
.external-history-table { width:100%; border-collapse:collapse; text-align:left; font-size:1rem; }
.external-history-table caption { text-align:left; color:#6c6c70; line-height:1.6; font-size:.9rem; padding-bottom:1rem; }
.external-history-table th { white-space:nowrap; font-weight:600; color:#6c6c70; font-size:.9rem; }
.external-history-table th,.external-history-table td { padding:1rem .85rem; border-bottom:1px solid #e9ebed; vertical-align:middle; }
.external-history-table td { font-weight:650; }
.external-history-table td:first-child { min-width:18rem; }
.external-history-table .external-history-train { display:flex; align-items:center; gap:.6rem; margin-bottom:.4rem; }
.external-history-train a { color:#231f20; font-size:1.1rem; text-underline-offset:3px; }
.external-history-route,.external-history-table small { display:block; font-weight:400; color:#6c6c70; line-height:1.6; }
.external-history-table small { font-size:.875rem; margin-top:.3rem; }
.external-history-table .app-platform-chip { white-space:nowrap; }
.external-history-more { margin-top:1.25rem; background:#b6dc79; color:#231f20; border-radius:999px; padding:.8rem 1.15rem; font-weight:650; min-height:44px; }
.external-history-method { font-size:.9rem; color:#6c6c70; line-height:1.75; max-width:90ch; margin:1.5rem 0 0; }
@media(max-width:600px){ .external-history { margin-inline:0; padding:1.25rem; border-radius:1.25rem; } .external-history-line { padding:1rem; } .external-history-line dd { font-size:1.25rem; } }

.external-history-jump { display:inline-flex; align-items:center; gap:.5rem; color:#3e8314; font-size:1rem; font-weight:650; min-height:44px; text-underline-offset:3px; }

.external-history-line-summary { margin-top:1.5rem; }
.external-history-line-summary summary { min-height:44px; padding-block:.7rem; color:#3e8314; font-size:1rem; font-weight:650; cursor:pointer; }
.external-history { scroll-margin-top:6rem; }
