.heard-main { max-width: 1520px; padding-top: 1rem; }
.heard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1.2rem; align-items: start; }
.heard-content { min-width: 0; }
.mesh-insights { display: grid; gap: 1rem; }
.insight-card { border: 1px solid var(--border); border-radius: 8px; padding: .9rem; min-width: 0; }
.insight-card h2 { font-size: 18px; margin: 0 0 .6rem; }
.insight-card .note { margin: .5rem 0 0; }
.activity-periods { display: flex; gap: .4rem; }
.activity-periods button { flex: 1; font-size: 16px; padding: .35rem; background: white; color: var(--text); border-color: #737b87; }
.activity-periods button[aria-pressed=true] { background: var(--text); color: white; }
.activity-periods button:hover { background: #e6e9ee; color: var(--text); }
.activity-total { font-size: 22px; font-weight: 650; margin: .6rem 0; }
#activity-chart { display: flex; gap: 3px; height: 112px; border-bottom: 1px solid #737b87; }
.activity-bar { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; display: flex; align-items: end; }
.activity-bar span { width: 100%; background: #a81d27; border-radius: 2px 2px 0 0; }
.activity-bar:hover:not(:disabled), .activity-bar:focus-visible { background: #e7ebf1; }
.activity-bar:hover span, .activity-bar:focus-visible span { background: #71141b; }
.activity-bar.no-history span { background: repeating-linear-gradient(135deg,#e4e7eb 0 2px,transparent 2px 7px); }
.activity-axis { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); margin-top: .3rem; }
#activity-detail { min-height: 3.3em; }
.location-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.location-totals div { display: flex; flex-direction: column; }
.location-totals strong { font-size: 25px; }
.location-totals span { font-size: 16px; color: var(--muted); }
.location-ratio { height: 8px; margin-top: .6rem; border-radius: 4px; background: #8a929f; overflow: hidden; }
.location-ratio span { display: block; height: 100%; background: #a81d27; }
#arrivals-list { list-style: none; padding: 0; margin: .6rem 0 0; }
#arrivals-list li + li { border-top: 1px solid var(--border); }
.arrival-link { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; text-align: left; color: var(--text); background: transparent; border: 0; padding: .6rem 0; font-size: 16px; font-weight: 600; }
.arrival-link span { overflow-wrap: anywhere; }
.arrival-link time { color: var(--muted); font-weight: 400; white-space: nowrap; }
.arrival-link:hover:not(:disabled) { color: var(--text); background: #eef0f3; }
@media (max-width: 1000px) {
  .heard-layout { grid-template-columns: minmax(0, 1fr); }
  .mesh-insights { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.heard-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.heard-heading h1 { font-size: 1.6rem; line-height: 1.25; margin: 0; }
.heard-heading p { margin: .4rem 0; }
.heard-tabs { display: flex; gap: .5rem; margin: .8rem 0; }
.heard-tabs button { background: white; color: var(--text); border-color: var(--border); }
.heard-tabs button[aria-selected=true] { background: var(--text); color: white; }
.heard-tabs button:hover { background: #eee; color: var(--text); }
.heard-tabs button[aria-selected=true]:hover { background: #333; color: white; }
.map-toolbar { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 .8rem; }
.map-toolbar input { flex: 1; }
.map-toolbar button { white-space: nowrap; }
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#public-map { height: clamp(360px, 62dvh, 740px); width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #eef0ed; isolation: isolate; }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 16px !important; line-height: 1.3; max-width: 100%; }
.leaflet-tooltip, .leaflet-popup-content { font-size: 18px; overflow-wrap: anywhere; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
.public-node { display: grid; place-items: center; }
.node-dot { width: 17px; height: 17px; border-radius: 50%; background: #a81d27; border: 3px solid white; box-shadow: 0 0 0 1px #63202a; }
.node-directory { margin-top: .5rem; }
#node-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: .4rem; max-height: 360px; overflow-y: auto; }
.node-link { text-align: left; width: 100%; background: #fff; border-color: var(--border); color: var(--text); overflow-wrap: anywhere; font-size: 16px; }
.node-link:hover:not(:disabled) { color: var(--text); background: #f1f2f4; }
.chat-note { margin-top: 1rem; }
#messages { max-width: 820px; display: grid; gap: .65rem; }
.public-message { color: var(--text); background: var(--message-light, var(--surface)); border: 1px solid #c4cbd1; border-radius: 8px; padding: .7rem .9rem; min-width: 0; }
.message-heading { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.message-heading strong { font-size: 16px; overflow-wrap: anywhere; }
.message-heading time { font-size: 16px; color: #4b5563; white-space: nowrap; }
.public-message p { font-size: 18px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: .35rem 0 0; }
@media (max-width: 620px) {
  .heard-page .topbar { padding: .7rem; gap: .5rem; }
  .heard-page nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 1rem; padding-bottom: .3rem; }
  .heard-page nav a { flex-shrink: 0; }
  .heard-main { padding: .8rem .7rem 1.5rem; }
  .heard-heading { display: block; }
  .heard-heading h1 { font-size: 1.4rem; }
  .map-toolbar input { padding: .65rem .5rem; }
  .map-toolbar button { padding: .65rem .6rem; font-size: 16px; }
  #public-map { height: 55dvh; min-height: 320px; }
  .public-message { padding: .65rem .75rem; }
}
