.npg-reader {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center;
  justify-content: center; padding: 20px; backdrop-filter: blur(6px);
  background: hsl(var(--background) / .85); color: hsl(var(--foreground));
}
.npg-reader-panel {
  display: flex; flex-direction: column; width: 100%; max-width: 1152px;
  height: calc(100dvh - 40px); max-height: 1000px; overflow: hidden;
  border: 1px solid hsl(var(--border)); border-radius: 16px;
  background: hsl(var(--card)); box-shadow: 0 20px 60px #0003;
}
.npg-reader-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; flex-shrink: 0; padding: 12px 32px;
  background: hsl(var(--muted) / .4); border-bottom: 1px solid hsl(var(--border));
}
.npg-reader nav { border-bottom: 0; border-top: 1px solid hsl(var(--border)); }
.npg-reader-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--primary)); }
.npg-reader-name { font-size: 14px; font-weight: 600; }
.npg-reader-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.npg-reader-avatar {
  width: 48px; height: 48px; flex-shrink: 0; overflow: hidden; border-radius: 50%;
  border: 1px solid hsl(var(--border)); background: hsl(var(--muted));
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground)); font-size: 16px; font-weight: 700;
}
.npg-reader-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.npg-reader button {
  border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 8px 14px;
  background: hsl(var(--card)); color: hsl(var(--foreground)); font-size: 13px; font-weight: 600;
}
.npg-reader button:hover { background: hsl(var(--muted)); }
.npg-reader button:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.npg-reader button:disabled { opacity: .4; cursor: not-allowed; }
.npg-reader nav span { font-size: 12px; color: hsl(var(--muted-foreground)); }
.npg-reader-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 36px 40px; }
.npg-reader-content article { max-width: 896px; margin: 0 auto; overflow-wrap: anywhere; }
.npg-reader-title { padding-bottom: 24px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 24px; }
.npg-reader-title h2 { font-size: 28px; line-height: 1.25; font-weight: 700; outline: none; }
.npg-reader-title p { margin-top: 12px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.npg-reader-title .npg-reader-readonly { font-size: 12px; }
.npg-reader-content ol { margin-top: 20px; }
.npg-reader-content li { padding: 20px 0; border: 0; border-bottom: 1px solid hsl(var(--border)); border-radius: 0; background: transparent; }
.npg-reader-content li > p:first-child { color: hsl(var(--muted-foreground)); font-size: 12px; }
.npg-reader-content li > p + p { font-size: 16px; line-height: 2; }
@media (max-width: 639px) {
  .npg-reader { padding: 8px; }
  .npg-reader-panel { height: calc(100dvh - 16px); }
  .npg-reader-bar { padding: 12px 16px; gap: 10px; }
  .npg-reader-content { padding: 24px 20px; }
  .npg-reader-title h2 { font-size: 23px; }
  .npg-reader button { padding: 8px 10px; font-size: 12px; }
}
