html {
  scroll-behavior: smooth;
}

button,
select,
input {
  font: inherit;
}

#app-notice {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid #86efac;
  border-radius: 0.75rem;
  background: #f0fdf4;
  color: #14532d;
  box-shadow: 0 12px 32px rgb(15 23 42 / 18%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

#app-notice.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#app-notice[data-error="true"] {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #7f1d1d;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.editor-tool {
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #374151;
  border-radius: 0.35rem;
  background: #1f2937;
  color: #f9fafb;
  font-weight: 700;
}

.editor-tool:hover {
  background: #374151;
}

.article-content {
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-content > * + * {
  margin-top: 1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #111827;
  font-weight: 800;
  line-height: 1.3;
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content blockquote {
  padding: 0.75rem 1rem;
  border-left: 3px solid #f95721;
  background: #f9fafb;
  color: #4b5563;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.article-content a {
  color: #4f46e5;
  text-decoration: underline;
}