:root { color-scheme: dark; font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #eee; background: #111315; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
#map, canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
header { position: absolute; left: 30px; top: 24px; pointer-events: none; max-width: calc(100% - 320px); }
h1 { margin: 0; font-size: 30px; font-weight: 550; letter-spacing: -1px; }
p { margin: 5px 0; }
header p, #status, #event-source, footer { color: #a1a5a8; font-size: 12px; }
#status { margin-top: 14px; max-width: 340px; }
#events-panel { position: absolute; top: 24px; right: 24px; width: 278px; max-height: calc(100dvh - 160px); background: #151719; border: 1px solid #34373a; padding: 16px; display: flex; flex-direction: column; }
h2 { font-size: 14px; font-weight: 550; margin: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#event-count { color: #c5ff65; font-size: 12px; }
#event-source { padding: 6px 0 12px; }
#event-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.event-row { background: none; display: block; border: 0; border-top: 1px solid #303336; border-radius: 0; width: 100%; text-align: left; padding: 12px 0; color: #dedfe0; cursor: pointer; }
.event-row:hover, .event-row[aria-pressed="true"] { color: #c5ff65; }
.event-row strong { display: block; font-weight: 500; font-size: 13px; line-height: 1.4; }
.event-row small { display: block; color: #92979b; margin-top: 5px; font-size: 11px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: #e1e3e5; border: 1px solid #45494d; background: #191c1f; border-radius: 4px; padding: 8px 11px; cursor: pointer; }
button:hover { border-color: #8b9298; }
button:focus-visible, a:focus-visible { outline: 2px solid #c5ff65; outline-offset: 3px; }
nav { position: absolute; bottom: 62px; left: 30px; display: flex; gap: 8px; }
footer { position: absolute; left: 30px; right: 24px; bottom: 18px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; font-size: 10px; }
footer a { pointer-events: auto; color: inherit; }
#event-card { position: absolute; width: 320px; max-width: calc(100vw - 32px); padding: 20px; border: 1px solid #52595d; background: #171a1c; z-index: 2; }
#event-card[hidden] { display: none; }
#close-card { position: absolute; top: 6px; right: 7px; border: 0; background: none; padding: 2px 7px; font-size: 20px; }
#card-label { color: #c5ff65; font-size: 11px; margin-bottom: 9px; }
#card-title { font-size: 18px; line-height: 1.3; margin-right: 8px; margin-bottom: 12px; }
#card-host, #card-date, #card-location { font-size: 12px; color: #b8bec2; }
#card-location { color: #8e979d; margin-top: 10px; }
#card-link { display: inline-block; color: #c5ff65; margin-top: 16px; font-size: 12px; text-underline-offset: 4px; }
.empty { color: #a1a5a8; padding: 10px 0; font-size: 12px; }
@media (max-width: 700px) {
  header { left: 18px; top: 16px; max-width: 85%; }
  h1 { font-size: 25px; }
  #status { max-width: 270px; }
  #events-panel { top: auto; bottom: 68px; left: 16px; right: 16px; width: auto; padding: 12px; max-height: 25dvh; }
  #event-source { padding: 0 0 6px; font-size: 10px; }
  .event-row { padding: 8px 0; }
  nav { bottom: 24px; left: 16px; }
  footer { left: auto; right: 16px; bottom: 19px; max-width: 45%; text-align: right; font-size: 9px; }
  footer > span:first-child, #height-note { display: none; }
  #event-card { left: 16px !important; top: 140px !important; max-height: calc(75dvh - 155px); overflow: auto; }
}
