body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #0e1116;
  color: #e7ebf3;
}

main {
  max-width: 840px;
  margin: 0 auto;
  padding: 1.2rem;
}

.item {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0.5rem 0;
  padding: 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid #2d3a51;
  background: #151b26;
  color: inherit;
  cursor: pointer;
}

.overlay.hidden {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.overlay-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 900px);
  max-height: 85vh;
  overflow: auto;
  background: #151b26;
  border: 1px solid #2d3a51;
  border-radius: 0.8rem;
  padding: 1rem 1rem 1.2rem;
}

.close {
  float: right;
  border: none;
  background: #2a3852;
  color: #fff;
  border-radius: 0.4rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

#source-link {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #88c8ff;
}

#source-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0f141f;
  border: 1px solid #29364f;
  border-radius: 0.5rem;
  padding: 0.8rem;
}
