.dashboard-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: inherit;
}
.dashboard-link:hover {
  background: rgb(243 244 246);
}
.dark .dashboard-link:hover {
  background: rgb(31 41 55);
}

.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgb(209 213 219);
  background: white;
  padding: 0.5rem 0.75rem;
}
.dark .form-input {
  border-color: rgb(55 65 81);
  background: rgb(17 24 39);
  color: rgb(243 244 246);
}

.stat-card {
  border-radius: 0.75rem;
  border: 1px solid rgb(229 231 235);
  padding: 1rem;
  background: white;
}
.dark .stat-card {
  border-color: rgb(31 41 55);
  background: rgb(17 24 39);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(209 213 219);
  color: rgb(55 65 81);
}
.share-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.dark .share-btn {
  border-color: rgb(55 65 81);
  color: rgb(209 213 219);
}
.share-btn:hover {
  background: rgb(243 244 246);
}
.dark .share-btn:hover {
  background: rgb(31 41 55);
}

.article-prose img.gallery-image {
  max-width: 100%;
  max-height: 24rem;
  object-fit: contain;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}
.gallery-modal.hidden {
  display: none;
}
.gallery-image-full {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}
.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  padding: 0.5rem 1rem;
  opacity: 0.8;
}
.gallery-nav:hover {
  opacity: 1;
}
.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
}
.preview-modal.hidden {
  display: none;
}
.preview-modal-panel {
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 0.75rem;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.dark .preview-modal-panel {
  background: rgb(17 24 39);
}
.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.preview-modal-close {
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  color: rgb(107 114 128);
}
.preview-modal-close:hover {
  color: rgb(55 65 81);
}
.dark .preview-modal-close:hover {
  color: rgb(229 231 235);
}

.article-prose h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.article-prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.article-prose h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.article-prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.article-prose p { margin-bottom: 1rem; line-height: 1.7; }
.article-prose ul,
.article-prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.article-prose ul {
  list-style-type: disc;
}
.article-prose ol {
  list-style-type: decimal;
}
.article-prose li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}
.article-prose ul ul,
.article-prose ol ol,
.article-prose ul ol,
.article-prose ol ul {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}
.article-prose ul ul {
  list-style-type: circle;
}
.article-prose ul ul ul {
  list-style-type: square;
}
.article-prose a { color: #2563eb; text-decoration: underline; }
.dark .article-prose a { color: #60a5fa; }
.article-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgb(243 244 246);
  margin-bottom: 1rem;
}
.dark .article-prose pre { background: rgb(31 41 55); }
.article-prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
.article-prose blockquote {
  border-left: 4px solid rgb(209 213 219);
  padding-left: 1rem;
  color: rgb(107 114 128);
  margin-bottom: 1rem;
}
