microscope-memory 1.2.0

Pure binary cognitive memory engine with REST API bridge for LLM integration. Zero-JSON core, mmap-based, hierarchical, sub-microsecond search.
Documentation
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  overflow-x: hidden;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #161b22;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #30363d;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .icon { font-size: 28px; }
.logo h1 { font-size: 18px; font-weight: 600; color: #e6edf3; }

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #21262d;
  color: #8b949e;
  border: 1px solid #30363d;
}

.status-badge.running {
  background: #0b2e1a;
  color: #3fb950;
  border-color: #3fb950;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #161b22;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #30363d;
}

.control-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: #238636;
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: #2ea043; }

.btn-danger {
  background: #da3633;
  color: #fff;
}
.btn-danger:hover:not(:disabled) { background: #f85149; }

/* Toggle */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-text { font-size: 13px; color: #c9d1d9; }

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle-switch input { display: none; }

.slider {
  position: absolute;
  inset: 0;
  background: #21262d;
  border-radius: 22px;
  border: 1px solid #30363d;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: #8b949e;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .slider {
  background: #1f6feb;
  border-color: #1f6feb;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(18px);
  background: #fff;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline */
.timeline {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 16px;
}

.timeline h2 {
  font-size: 14px;
  color: #e6edf3;
  margin-bottom: 12px;
}

.timeline-list {
  max-height: 300px;
  overflow-y: auto;
}

.timeline-item {
  padding: 6px 8px;
  border-bottom: 1px solid #21262d;
  font-size: 12px;
  color: #8b949e;
  line-height: 1.4;
}

.timeline-item:last-child { border-bottom: none; }
.timeline-item .time { color: #484f58; margin-right: 8px; }
.timeline-item .layer { 
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 6px;
}

.empty {
  color: #484f58;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}