@font-face{font-family:"JetBrains Mono";src:url("./fonts/jetbrains-mono.woff2?events-version=events-ui-worker-v34") format("woff2");font-weight:100 800;font-style:normal;font-display:swap}
:root {
  --ui-font: "JetBrains Mono", monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  background: var(--color-background-canvas);
  font-family: "JetBrains Mono", monospace;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: var(--events-surface-width, 100%);
  height: var(--events-surface-height, 100%);
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--color-background-canvas);
}

body {
  position: fixed;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  min-width: 280px;
  min-height: 360px;
  touch-action: pan-y;
}

#events-canvas {
  position: fixed;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  display: block;
  width: var(--events-surface-width, 100%);
  height: var(--events-surface-height, 100%);
  background: var(--color-background-canvas);
  z-index: 0;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.timeline-scroll {
  position: fixed;
  z-index: 1;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: var(--events-surface-width, 100%);
  height: var(--events-surface-height, 100%);
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.timeline-scroll.timeline-dragging {
  overflow-y: hidden;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

.timeline-scroll.timeline-zooming {
  overflow-y: hidden;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

.timeline-scroll::-webkit-scrollbar {
  display: none;
}

.timeline-scroll-spacer {
  width: 1px;
  height: 2000000px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Timeline gestures retain their native infinite scroll area. Standard pages,
   fields, sheets, controls, and accessibility styles come from shared ui.css. */
@media print {
  body::after {content:"Open Events on screen to use the interactive timeline.";display:block;padding:2rem;color:var(--color-foreground-primary);background:var(--color-background-canvas)}
  #events-canvas {display:none}
}
