:root {
  --reading-progress-height: var(--space-1);
}

#reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: var(--reading-progress-height);
  z-index: 10000;
  background: var(--bg-signal);
  transition: width var(--dur-2) linear;
}

#read-toggle {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 10000;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  color: var(--fg-2);
  box-shadow: var(--shadow-2);
  font: 500 var(--fs-caption)/1 var(--font-sans);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}

#read-toggle:hover {
  background: var(--bg-raised);
  color: var(--fg-1);
}

#read-toggle:active {
  transform: scale(0.98);
}

#read-toggle[data-read="true"] {
  border-color: var(--resolved);
  color: var(--resolved);
}

.read-link::after {
  content: " ✓";
  color: var(--resolved);
}
