.ggwebgl-host {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ggwebgl {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  padding: 1rem 1.25rem 1.1rem;
  border: 1px solid #d7dce3;
  border-radius: 0.9rem;
  background:
	radial-gradient(circle at top left, rgba(12, 74, 110, 0.08), transparent 35%),
	linear-gradient(135deg, rgba(12, 74, 110, 0.03), rgba(245, 158, 11, 0.05)),
	#f8fafc;
  color: #102a43;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 0.55rem;
  overflow: hidden;
}

.ggwebgl__header {
  min-height: 0;
}

.ggwebgl__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #486581;
}

.ggwebgl__title {
  margin: 0.3rem 0 0.5rem;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 1.35rem;
}

.ggwebgl__subtitle {
  margin: 0 0 0.35rem;
  color: #486581;
}

.ggwebgl__meta {
  margin: 0;
  line-height: 1.4;
  color: #334e68;
}

.ggwebgl__stage {
  position: relative;
  min-height: 0;
  min-height: 320px;
  border-radius: 0.8rem;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background:
	linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.98)),
	#e2e8f0;
  border: 1px solid rgba(72, 101, 129, 0.18);
}

.ggwebgl--hover-enabled .ggwebgl__stage {
  cursor: crosshair;
}

.ggwebgl--selection-enabled .ggwebgl__stage {
  cursor: crosshair;
}

.ggwebgl--pan-enabled .ggwebgl__stage {
  cursor: grab;
}

.ggwebgl--dragging .ggwebgl__stage {
  cursor: grabbing;
}

.ggwebgl__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;  
}

.ggwebgl__selection-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.ggwebgl__selection-overlay svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ggwebgl__selection-controls {
  display: none;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
  font-size: 0.82rem;
  color: #334e68;
}

.ggwebgl__selection-label {
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #486581;
}

.ggwebgl__selection-mode {
  border: 1px solid rgba(72, 101, 129, 0.22);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.86);
  color: #334e68;
  font: inherit;
  padding: 0.22rem 0.42rem;
}

.ggwebgl__selection-mode[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(219, 234, 254, 0.94);
  color: #1d4ed8;
}

.ggwebgl__selection-status {
  display: none;
  min-height: 0;
  font-size: 0.82rem;
  color: #486581;
}

.ggwebgl--selection-enabled .ggwebgl__selection-status {
  display: block;
}

.ggwebgl__panel-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ggwebgl__panel-frame {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(72, 101, 129, 0.18);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ggwebgl__panel-strip {
  padding: 0.38rem 0.6rem;
  border-bottom: 1px solid rgba(72, 101, 129, 0.16);
  border-top-left-radius: 0.7rem;
  border-top-right-radius: 0.7rem;
  background: rgba(241, 245, 249, 0.82);
  color: #334e68;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ggwebgl__empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.2rem;
  text-align: center;
  color: #486581;
  background: rgba(252, 252, 253, 0.94);
  z-index: 3;
}

.ggwebgl__tooltip {
  position: absolute;
  display: none;
  min-width: 10rem;
  max-width: min(18rem, calc(100% - 1.25rem));
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(72, 101, 129, 0.22);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
  pointer-events: none;
  z-index: 4;
}

.ggwebgl__tooltip-title {
  margin-bottom: 0.28rem;
  font-weight: 700;
  color: #e2e8f0;
}

.ggwebgl__axes {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 0.5rem;
  min-height: 0;
}

.ggwebgl__axis {
  color: #486581;
  font-size: 0.92rem;
}

.ggwebgl__axis--y {
  transform: rotate(-90deg);
  transform-origin: center;
  text-align: center;
}

.ggwebgl__axis--x {
  text-align: center;
}

.ggwebgl__notes {
  min-height: 0;
  font-size: 0.92rem;
  color: #486581;
}

.ggwebgl__timeline {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 0;
  font-size: 0.82rem;
  color: #334e68;
}

.ggwebgl__timeline button,
.ggwebgl__timeline select {
  border: 1px solid rgba(72, 101, 129, 0.22);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.86);
  color: #334e68;
  font: inherit;
  padding: 0.22rem 0.42rem;
}

.ggwebgl__timeline input[type="range"] {
  flex: 1;
  min-width: 5rem;
}

.ggwebgl--publication {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #111827;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.ggwebgl--publication .ggwebgl__header,
.ggwebgl--publication .ggwebgl__selection-controls,
.ggwebgl--publication .ggwebgl__selection-status,
.ggwebgl--publication .ggwebgl__timeline,
.ggwebgl--publication .ggwebgl__axes,
.ggwebgl--publication .ggwebgl__notes,
.ggwebgl--publication .ggwebgl__tooltip,
.ggwebgl--publication .ggwebgl__empty {
  display: none !important;
}

.ggwebgl--publication .ggwebgl__stage {
  min-height: 0 !important;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  cursor: default !important;
}

.ggwebgl--publication .ggwebgl__canvas {
  background: #ffffff;
}

.ggwebgl--publication .ggwebgl__panel-frame {
  border: 1px solid rgba(51, 65, 85, 0.22);
  border-radius: 0.65rem;
  background: transparent;
  box-shadow: none;
}

.ggwebgl--publication .ggwebgl__panel-strip {
  padding: 0.24rem 0.45rem;
  border-bottom: 0;
  border-top-left-radius: 0.65rem;
  border-top-right-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(51, 65, 85, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
