#hk-rail-board {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  translate: -50% 0;
  width: min(315px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 8px 12px;
  text-align: left;
  color: #322b23;
  background: #f7eedb;
  border: 1px solid #a89576;
  border-radius: 8px;
  font: 13px/1.4 system-ui, sans-serif;
  pointer-events: auto;
  max-height: 40dvh;
  overflow: auto;
}
#hk-rail-board[hidden], #hk-aircraft-status[hidden] { display: none; }
#hk-rail-board summary { cursor: pointer; font-weight: 700; }
#hk-rail-station { display: block; padding-top: 5px; }
#hk-rail-departures { list-style: none; padding: 0; margin: 4px 0; }
#hk-rail-departures li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; border-top: 1px solid #d6c7ad; padding: 2px 0; }
#hk-rail-departures li :last-child { color: #205f51; font-weight: 700; }
#hk-rail-time { margin: 2px 0; }
#hk-rail-board a { color: inherit; }
#hk-aircraft[aria-pressed="true"] { background: #ffdc84; color: #30291f; }
#hk-aircraft-status { max-width: 114px; padding: 3px 6px; font-size: 11px; }
