/* ==========================================================================
   Novellion — base styles (Stage 0: branding foundation)
   Warm parchment palette, serif headings — deliberately light and literary.
   ========================================================================== */

:root {
  --nv-bg: #fdfaf3;
  --nv-bg-alt: #f5eedd;
  --nv-surface: #ffffff;
  --nv-border: #e6dcc6;

  --nv-text: #2e2620;
  --nv-text-soft: #6b5d4d;

  --nv-accent: #8a5626;
  --nv-accent-hover: #6b4219;
  --nv-accent-soft: #f0e2c8;
  --nv-highlight: #6b4219; /* Accent slot of the color palette (novellion-core → Design); falls back to accent-hover until set. */

  /* Real action buttons only (Join, Save, Follow, Add to Library, form
     submits) — kept separate from --nv-accent so dark mode can neutralize
     every decorative use of accent color while leaving buttons colored. */
  --nv-action: var(--nv-accent);
  --nv-action-hover: var(--nv-accent-hover);

  --nv-ff-heading: 'Playfair Display', Georgia, serif;
  --nv-ff-body: 'Lora', Georgia, serif;

  --nv-cta-text: #fff; /* Join button text color — Log in always mirrors this. */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--nv-bg);
  color: var(--nv-text);
  font-family: var(--nv-ff-body);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--nv-ff-heading);
  color: var(--nv-text);
  margin: 0 0 0.5em;
}

a {
  color: var(--nv-accent);
  text-decoration: none;
}

a:hover {
  color: var(--nv-accent-hover);
}

/* ==========================================================================
   Header + hero
   ========================================================================== */

.nv-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--nv-surface);
  border-bottom: 1px solid var(--nv-border);
}

.nv-header__bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nv-logo {
  font-family: var(--nv-ff-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nv-text);
  letter-spacing: 0.02em;
}

.nv-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-nav a {
  color: var(--nv-text-soft);
  font-weight: 600;
}

.nv-header__account {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nv-header__username {
  font-weight: 600;
}

.nv-header__cta {
  background: var(--nv-action);
  color: var(--nv-cta-text) !important;
  padding: 0.4rem 1rem;
  border-radius: 4px;
}

.nv-header__cta:hover {
  background: var(--nv-action-hover);
}

/* Rule: "Log in" text always matches the Join button's text color.
   Scoped to the GUEST markup only (.nv-header__account without
   .nv-account-menu) — the logged-in dropdown reuses .nv-header__account
   too, and this selector must never reach its own menu links (My Library,
   Messages, etc.) or they'd inherit this forced color and become
   unreadable against the dropdown's own background. */
.nv-header__account:not(.nv-account-menu) a:not(.nv-header__cta) {
  color: var(--nv-cta-text) !important;
}

/* Account dropdown */

.nv-account-menu {
  position: relative;
}

.nv-account-menu__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  color: var(--nv-text);
  padding: 0.25rem 0.5rem;
}

.nv-account-menu__toggle img {
  border-radius: 50%;
}

.nv-account-menu__hamburger {
  font-size: 1.2rem;
  color: var(--nv-text-soft);
  line-height: 1;
}

.nv-account-menu__name {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Mobile hamburger menu (< 768px) — the main nav becomes a dark slide-out drawer */

.nv-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nv-mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--nv-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nv-mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nv-mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nv-mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nv-mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nv-mobile-menu-backdrop.is-open {
  display: block;
  opacity: 1;
}

@media (max-width: 767px) {
  .nv-mobile-menu-toggle {
    display: flex;
  }

  .nv-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nv-nav.is-open {
    transform: translateX(0);
  }

  .nv-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nv-header .nv-nav a {
    display: block;
    padding: 1rem 0;
    color: #fff !important;
    font-size: 1.05rem;
  }
}

.nv-account-menu__dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 10;
  overflow: hidden;
}

.nv-account-menu.is-open .nv-account-menu__dropdown {
  display: block;
}

.nv-account-menu__dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--nv-text);
  font-weight: 500;
}

.nv-account-menu__dropdown a:hover {
  background: var(--nv-bg-alt);
}

.nv-account-menu__signed-in-as {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--nv-text-soft);
  border-bottom: 1px solid var(--nv-border);
}

/* Profile form */

.nv-profile-form {
  max-width: 560px;
  margin: 0 auto;
}

.nv-profile-form__section {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.nv-profile-form__section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.nv-profile-form__section input[type="text"],
.nv-profile-form__section input[type="email"],
.nv-profile-form__section select,
.nv-profile-form__section textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  font-family: inherit;
}

.nv-profile-form__section button {
  background: var(--nv-action);
  color: var(--nv-cta-text);
  border: none;
  border-radius: 4px;
  padding: 0.55rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nv-profile-form__section button:hover {
  background: var(--nv-action-hover);
}

.nv-profile-form__hint {
  color: var(--nv-text-soft);
  font-size: 0.9rem;
}

.nv-profile-form__success {
  background: #eaf5ea;
  color: #2e5c2e;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
}

.nv-profile-form__error {
  background: #fbeaea;
  color: #7a2e2e;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
}

/* My Books (Author Dashboard) */

.nv-my-books__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.nv-book-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.nv-book-row__cover img,
.nv-book-row__cover-placeholder {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--nv-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.nv-book-row__info {
  flex: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nv-book-row__meta {
  color: var(--nv-text-soft);
  font-size: 0.9rem;
}

.nv-book-row__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nv-book-row__actions form {
  display: inline;
}

.nv-book-row__delete {
  background: none;
  border: none;
  color: #a94442;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.nv-book-row__delete:hover {
  text-decoration: underline;
}

/* Book form (Add/Edit Book) */

.nv-book-form__layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.nv-book-form__cover {
  flex: 0 0 220px;
  text-align: center;
}

.nv-book-form__cover img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--nv-border);
}

.nv-book-form__cover-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--nv-bg-alt);
  border: 1px solid var(--nv-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.nv-book-form__upload-btn {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--nv-action);
  color: var(--nv-cta-text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.nv-book-form__upload-btn input {
  display: none;
}

.nv-book-form__fields {
  flex: auto;
  min-width: 0;
}

.nv-book-form__fields input[type="text"],
.nv-book-form__fields input[type="number"],
.nv-book-form__fields input[type="url"],
.nv-book-form__fields select,
.nv-book-form__fields textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  font-family: inherit;
}

.nv-book-form__fields label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.nv-char-counter__display {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--nv-text-soft);
}

.nv-book-form__row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nv-book-form__row > p {
  flex: 1;
}

.nv-book-form__mature {
  background: #fbeaea;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.nv-book-form button[type="submit"] {
  background: var(--nv-action);
  color: var(--nv-cta-text);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-right: 1rem;
}

.nv-book-form button[type="submit"]:hover {
  background: var(--nv-action-hover);
}

@media (max-width: 640px) {
  .nv-book-form__layout {
    flex-direction: column;
  }

  .nv-book-form__row {
    flex-direction: column;
  }
}

/* Chapter list */

.nv-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-chapter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  cursor: grab;
}

.nv-chapter-row.is-dragging {
  opacity: 0.4;
}

.nv-chapter-row__handle {
  color: var(--nv-text-soft);
  letter-spacing: -2px;
}

.nv-chapter-row__number {
  color: var(--nv-text-soft);
  font-weight: 600;
}

.nv-chapter-row__title {
  flex: auto;
  font-weight: 600;
}

.nv-chapter-row__meta {
  color: var(--nv-text-soft);
  font-size: 0.85rem;
}

.nv-chapter-row__actions {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nv-chapter-row__actions form {
  display: inline;
}

/* Chapter form */

.nv-chapter-form-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.nv-chapter-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.nv-chapter-form input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  font-family: inherit;
  margin-bottom: 1rem;
}

.nv-chapter-form select {
  padding: 0.5rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
}

.nv-chapter-form button[type="submit"] {
  background: var(--nv-action);
  color: var(--nv-cta-text);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nv-chapter-form button[type="submit"]:hover {
  background: var(--nv-action-hover);
}

.nv-chapter-form__word-count {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--nv-text-soft);
  margin-top: 0.5rem;
}

/* Reading page (Stage 3) */

.nv-reader {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  transition: background-color 0.2s, color 0.2s;
}

.nv-reader__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.nv-reader__breadcrumb a {
  font-weight: 600;
}

.nv-reader__position {
  color: var(--nv-text-soft);
}

.nv-reader__theme-toggle {
  background: var(--nv-bg-alt);
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--nv-text);
}

.nv-reader__title {
  margin-bottom: 1.5rem;
}

.nv-reader__content {
  font-size: 1.15rem;
  line-height: 1.8;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.nv-reader__content p {
  margin: 0 0 1.4em;
}

.nv-reader__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nv-border);
}

.nv-reader__nav-link {
  font-weight: 600;
}

/* Reader-only dark mode — scoped to .nv-reader, not the whole site */

.nv-reader.nv-reader--dark {
  background: #1c1712 !important;
  color: #ece2d1 !important;
  border-radius: 8px;
}

.nv-reader--dark .nv-reader__theme-toggle {
  background: #2e2620;
  border-color: #4d3b30;
  color: #ece2d1 !important;
}

.nv-reader--dark .nv-reader__position,
.nv-reader--dark a {
  color: #c4a984 !important;
}

.nv-reader--dark .nv-reader__title,
.nv-reader--dark .nv-reader__breadcrumb a {
  color: #ece2d1 !important;
}

.nv-reader--dark .nv-reader__content,
.nv-reader--dark .nv-reader__content *,
.nv-reader--dark .nv-reader__content p,
.nv-reader--dark .nv-reader__content li,
.nv-reader--dark .nv-reader__content span,
.nv-reader--dark .nv-reader__content blockquote,
.nv-reader--dark .nv-reader__content strong,
.nv-reader--dark .nv-reader__content em {
  color: #ece2d1 !important;
}

.nv-reader--dark .nv-reader__nav {
  border-top-color: #4d3b30;
}

/* Homepage (Stage 4) */

.nv-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2.5rem;
}

.nv-home-section {
  margin-bottom: 3rem;
}

.nv-home-section h2 {
  margin-bottom: 1rem;
}

.nv-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.nv-book-card {
  display: block;
  color: var(--nv-text);
}

.nv-book-card:hover .nv-book-card__title {
  color: var(--nv-accent);
}

.nv-book-card__cover {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--nv-border);
  margin-bottom: 0.5rem;
}

.nv-book-card__cover .nv-book-form__cover-placeholder {
  aspect-ratio: 3 / 4;
  font-size: 2.5rem;
}

.nv-book-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.nv-book-card__meta {
  color: var(--nv-text-soft);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* Single book page (Stage 5) */

.nv-book-page__header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.nv-book-page__cover {
  flex: 0 0 220px;
}

.nv-book-page__cover .nv-book-form__cover-placeholder {
  aspect-ratio: 3 / 4;
  font-size: 3rem;
}

.nv-book-page__info {
  flex: auto;
}

.nv-book-page__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--nv-text-soft);
}

.nv-follow-btn {
  background: var(--nv-bg-alt);
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  padding: 0.3rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--nv-text-soft);
}

.nv-follow-btn[disabled] {
  cursor: not-allowed;
}

.nv-follow-btn.is-following {
  background: var(--nv-action);
  border-color: var(--nv-action);
  color: var(--nv-cta-text);
}

.nv-library-btn {
  background: none;
  border: 1px solid var(--nv-action);
  border-radius: 4px;
  padding: 0.3rem 0.9rem;
  margin-left: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--nv-action);
}

.nv-library-btn.is-saved {
  background: var(--nv-action);
  color: var(--nv-cta-text);
}

.nv-library-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nv-library-btn--card {
  width: 100%;
  text-align: center;
}

.nv-progress-remove-btn {
  width: 100%;
  text-align: center;
  background: none;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  padding: 0.3rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--nv-text-soft);
}

.nv-following-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-following-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-following-list__item img {
  border-radius: 50%;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.nv-following-list__meta {
  color: var(--nv-text-soft);
  font-size: 0.85rem;
}

.nv-book-page__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--nv-text-soft);
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

.nv-book-page__status {
  font-weight: 600;
  color: var(--nv-accent);
}

.nv-book-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.nv-book-page__cta {
  display: inline-block;
}

.nv-book-tabs__nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--nv-border);
  margin-bottom: 1.5rem;
}

.nv-book-tabs__btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.25rem;
  margin-right: 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-text-soft);
  cursor: pointer;
}

.nv-book-tabs__btn.is-active {
  color: var(--nv-text);
  border-bottom-color: var(--nv-accent);
}

.nv-book-page__quotes blockquote {
  font-style: italic;
  color: var(--nv-text-soft);
  border-left: 3px solid var(--nv-accent);
  padding-left: 1rem;
  margin: 1rem 0;
}

.nv-book-page__trailer {
  margin-top: 1.5rem;
}

.nv-book-page__trailer iframe {
  max-width: 100%;
}

.nv-book-page__toc {
  padding-left: 1.5rem;
}

.nv-book-page__toc li {
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .nv-book-page__header {
    flex-direction: column;
  }

  .nv-book-page__cover {
    max-width: 180px;
  }
}

/* Comments (Stage 6) */

.nv-comments {
  max-width: 720px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--nv-border);
}

.nv-comments__heading {
  margin-bottom: 1.5rem;
}

.nv-comment-list,
.nv-comment-list ul.children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-comment-list ul.children {
  margin-left: 2.5rem;
  margin-top: 1rem;
}

.nv-comment {
  margin-bottom: 1.5rem;
}

.nv-comment__row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.nv-comment__row img {
  border-radius: 50%;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.nv-comment__body {
  flex: auto;
}

.nv-comment__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.nv-comment__badge {
  background: var(--nv-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.nv-comment__date {
  color: var(--nv-text-soft);
  font-size: 0.8rem;
}

.nv-comment__pending {
  color: var(--nv-accent);
  font-size: 0.85rem;
  font-style: italic;
}

.nv-comment__text p {
  margin: 0 0 0.5em;
}

.nv-comment-list .comment-reply-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nv-accent);
}

.nv-comment__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nv-comment__report-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--nv-text-soft);
  cursor: pointer;
}

.nv-comment__report-btn:hover {
  color: #a94442;
  text-decoration: underline;
}

.nv-comments__login-prompt,
.nv-comments__closed {
  color: var(--nv-text-soft);
}

.nv-comments #commentform textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  font-family: inherit;
}

.nv-comments #commentform .nv-header__cta {
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Book page — Comments tab summary */

.nv-book-comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-book-comments-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-book-comments-list__item img {
  border-radius: 50%;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.nv-book-comments-list__body {
  flex: auto;
}

.nv-book-comments-list__link {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Browse page (Stage 7) */

.nv-browse {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.nv-browse__filters {
  flex: 0 0 200px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.nv-browse__filters h4 {
  margin: 1rem 0 0.5rem;
  font-family: var(--nv-ff-heading);
}

.nv-browse__filters h4:first-child {
  margin-top: 0;
}

.nv-browse__filters .nv-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nv-browse__filters .nv-checkbox-pill {
  justify-content: flex-start;
}

.nv-browse__filters button[type="submit"] {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
  text-align: center;
}

.nv-browse__reset {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--nv-text-soft);
}

.nv-browse__results {
  flex: auto;
  min-width: 0;
}

.nv-browse__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.nv-browse__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nv-browse__sort select {
  padding: 0.4rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
}

.nv-browse__pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
}

.nv-browse__pagination .page-numbers {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  color: var(--nv-text);
}

.nv-browse__pagination .page-numbers.current {
  background: var(--nv-accent);
  color: #fff;
  border-color: var(--nv-accent);
}

/* Collapsible filter groups (<details>/<summary>) */

.nv-filter-group {
  border-bottom: 1px solid var(--nv-border);
  padding: 0.75rem 0;
}

.nv-filter-group:first-of-type {
  border-top: 1px solid var(--nv-border);
}

.nv-filter-group summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--nv-ff-heading);
  list-style: none;
}

.nv-filter-group summary::-webkit-details-marker {
  display: none;
}

.nv-filter-group summary::after {
  content: '+';
  float: right;
  font-weight: 400;
}

.nv-filter-group[open] summary::after {
  content: '−';
}

.nv-filter-group .nv-checkbox-group {
  margin-top: 0.75rem;
}

.nv-browse__apply-top {
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-bottom: 1rem;
}

@media (max-width: 780px) {
  .nv-browse {
    flex-direction: column;
  }

  .nv-browse__filters {
    flex: none;
    width: 100%;
  }
}

/* Browse page — row-style book preview (replaces the small grid cards) */

.nv-book-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nv-book-row-preview {
  display: flex;
  gap: 1.7rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.4rem;
  color: var(--nv-text);
}

.nv-book-row-preview:hover {
  border-color: var(--nv-accent);
}

.nv-book-row-preview__cover {
  flex: 0 0 127px;
  border-radius: 6px;
  overflow: hidden;
}

.nv-book-row-preview__cover .nv-book-form__cover-placeholder {
  aspect-ratio: 3 / 4;
  font-size: 2.3rem;
}

.nv-book-row-preview__body {
  flex: auto;
  min-width: 0;
}

.nv-book-row-preview__title {
  margin: 0 0 0.15rem;
  font-size: 1.44rem;
}

.nv-book-row-preview:hover .nv-book-row-preview__title {
  color: var(--nv-accent);
}

.nv-book-row-preview__author {
  color: var(--nv-text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.nv-book-row-preview__desc {
  margin: 0 0 0.5rem;
  color: var(--nv-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.nv-book-row-preview__tags {
  font-size: 0.85rem;
  color: var(--nv-text-soft);
  margin-bottom: 0.5rem;
}

.nv-book-row-preview__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--nv-text-soft);
}

.nv-book-row-preview__status {
  font-weight: 600;
  color: var(--nv-accent);
}

@media (max-width: 560px) {
  .nv-book-row-preview {
    flex-direction: column;
  }

  .nv-book-row-preview__cover {
    flex: none;
    max-width: 140px;
  }
}

/* Browse — "Recommended" sidebar (admin-curated, coming soon — placeholders for now) */

.nv-browse__recommended {
  flex: 0 0 240px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.25rem;
  max-height: 900px;
  overflow-y: auto;
  align-self: flex-start;
  position: sticky;
  top: 90px;
}

.nv-browse__recommended h3 {
  margin: 0 0 0.25rem;
}

.nv-browse__recommended .nv-book-row-preview--placeholder {
  padding: 0.75rem;
  gap: 0.75rem;
  margin-top: 1rem;
  opacity: 0.6;
}

.nv-browse__recommended .nv-book-row-preview--placeholder .nv-book-row-preview__cover {
  flex-basis: 50px;
}

.nv-browse__recommended .nv-book-row-preview--placeholder .nv-book-form__cover-placeholder {
  font-size: 1.2rem;
}

.nv-browse__recommended-placeholder-line {
  height: 0.6rem;
  background: var(--nv-bg-alt);
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

@media (max-width: 1080px) {
  .nv-browse__recommended {
    display: none;
  }
}

.nv-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nv-hero__text {
  flex: 0 0 50%;
}

.nv-hero__empty {
  flex: 0 0 50%;
  min-width: 0;
}

.nv-hero__main {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 0.75rem;
  text-align: left;
}

.nv-hero__sub {
  color: var(--nv-text-soft);
  font-size: 1.05rem;
  margin: 0;
  text-align: left;
}

@media (max-width: 780px) {
  .nv-hero {
    flex-direction: column;
  }

  .nv-hero__text {
    flex: none;
    width: 100%;
  }

  .nv-hero__empty {
    display: none;
  }

  .nv-hero__main,
  .nv-hero__sub {
    text-align: center;
  }
}

/* Carousel gallery — now its own section below the ticker, not inside Hero */

.nv-hero-gallery-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

/* ==========================================================================
   Content
   ========================================================================== */

.nv-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.nv-post {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.nv-post img,
.nv-container img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.nv-footer {
  background: var(--nv-bg-alt);
  border-top: 1px solid var(--nv-border);
  margin-top: 3rem;
}

.nv-footer__bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--nv-text-soft);
  font-size: 0.9rem;
}

.nv-footer-nav {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-footer__columns {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.nv-footer__column h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.nv-footer__column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nv-footer__column a {
  color: var(--nv-text-soft);
  font-size: 0.9rem;
}

.nv-footer__column a:hover {
  color: var(--nv-text);
}

/* ==========================================================================
   Registration form (Stage 1) — plain and functional, full styling later
   ========================================================================== */

.nv-register-form,
.nv-login-form {
  max-width: 420px;
  margin: 0 auto;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.nv-register-form label,
.nv-login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.nv-login-form__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nv-login-form__or {
  color: var(--nv-text-soft);
}

.nv-register-form input[type="text"],
.nv-register-form input[type="email"],
.nv-register-form input[type="password"],
.nv-login-form input[type="text"],
.nv-login-form input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  font-family: inherit;
}

.nv-register-form fieldset {
  border: none;
  padding: 0;
  margin: 1rem 0;
}

.nv-register-form button,
.nv-login-form button {
  background: var(--nv-action);
  color: var(--nv-cta-text);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nv-password-field {
  position: relative;
  display: block;
}

.nv-password-field input {
  padding-right: 2.5rem !important;
}

.nv-password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--nv-text-soft);
  display: flex;
}

.nv-password-toggle:hover,
.nv-password-toggle.is-active {
  color: var(--nv-accent);
}

.nv-register-form button:hover,
.nv-login-form button:hover {
  background: var(--nv-action-hover);
}

.nv-register-form__errors,
.nv-login-form__error {
  background: #fbeaea;
  color: #7a2e2e;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}

/* ==========================================================================
   Author page
   ========================================================================== */

.nv-author-page__banner {
  width: 100%;
  height: 200px;
  background: var(--nv-bg-alt);
  overflow: hidden;
}

.nv-author-page__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nv-author-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: -2.5rem;
  margin-bottom: 2rem;
}

.nv-author-page__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nv-author-page__identity img {
  border-radius: 50%;
  border: 3px solid var(--nv-surface);
  width: 115px;
  height: 115px;
  object-fit: cover;
  display: block;
}

.nv-author-page__name {
  margin: 0;
}

.nv-author-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--nv-text-soft);
}

/* 3 equal-width columns on the author page (Works + each Series group).
   20px gap both ways; narrower screens drop to fewer columns so cards
   never get squeezed. */
.nv-book-grid--3col {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .nv-book-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nv-book-grid--3col {
    grid-template-columns: 1fr;
  }
}

.nv-book-grid--3col .nv-book-card {
  border: 2px solid var(--nv-border);
  border-radius: 8px;
  padding: 0.75rem;
}

.nv-book-grid--3col .nv-book-card__cover {
  margin-bottom: 0.75rem;
}

.nv-book-card__desc {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--nv-text-soft);
}

.nv-following-list__avatar {
  display: block;
  flex-shrink: 0;
}

/* ==========================================================================
   About page — real, admin-editable page content (wp-admin → Pages).
   Scoped to .nv-page-about so it never leaks onto other generic pages.
   ========================================================================== */

.nv-page-about .nv-about__lede {
  font-family: var(--nv-ff-heading);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--nv-text);
  max-width: 640px;
  margin: 0 0 1.5rem;
}

.nv-page-about h2 {
  margin-top: 2rem;
}

.nv-page-about h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.nv-page-about .nv-header__cta {
  display: inline-block;
}

/* ==========================================================================
   Dark mode
   Toggled per-visitor via html[data-theme="dark"] (see assets/js/theme-
   toggle.js). Neutralizes every decorative use of --nv-accent — only real
   action buttons (--nv-action) stay colored, per the "nothing colored
   except buttons" rule. Works standalone (these are the fallback values);
   Novellion Core's Design settings (if active) override --nv-bg/--nv-text/
   --nv-action with the admin's configured dark background/text/Accent.
   ========================================================================== */

html[data-theme="dark"] {
  --nv-bg: #121212;
  --nv-bg-alt: #1a1a1a;
  --nv-surface: #1e1e1e;
  --nv-border: #333333;

  --nv-text: #f2f2f2;
  --nv-text-soft: #a6a6a6;

  /* Decorative accent uses go neutral. */
  --nv-accent: #a6a6a6;
  --nv-accent-hover: #cfcfcf;
  --nv-accent-soft: #262626;
  --nv-highlight: #a6a6a6;

  /* Buttons stay colored — re-anchored here so they don't inherit the
     neutralized --nv-accent above (custom properties resolve var()
     references live, not at definition time). Without Novellion Core's
     Design settings this just keeps the light Accent color; Core overrides
     both lines below with the palette's actual Accent color when active. */
  --nv-action: #8a5626;
  --nv-action-hover: #6b4219;
  --nv-cta-text: #fff;
}

.nv-theme-toggle {
  background: #fff;
  border: 1px solid var(--nv-border);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
  flex-shrink: 0;
}

html[data-theme="dark"] .nv-theme-toggle {
  background: none;
  color: var(--nv-text-soft);
}

.nv-theme-toggle svg {
  width: 16px;
  height: 16px;
}

.nv-theme-toggle .nv-theme-toggle__moon {
  display: none;
}

html[data-theme="dark"] .nv-theme-toggle .nv-theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .nv-theme-toggle .nv-theme-toggle__moon {
  display: block;
}

.nv-docx-upload {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.nv-docx-upload h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.nv-docx-upload form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.nv-access-codes {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.nv-access-codes h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.nv-access-codes__fresh {
  background: var(--nv-accent-soft);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.nv-access-codes__fresh ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-access-codes__fresh code {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.nv-reader__locked {
  background: var(--nv-bg-alt);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.nv-reader__locked .nv-follow-btn {
  margin: 0.75rem 0.5rem 0;
}

.nv-reader__redeem-form {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0.75rem 0.5rem 0;
  vertical-align: middle;
}

.nv-reader__redeem-form input[type="text"] {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  text-transform: uppercase;
  width: 130px;
}

.nv-book-page__toc-lock {
  margin-left: 0.4rem;
  opacity: 0.6;
}

.nv-like-btn {
  background: var(--nv-bg-alt);
  border: 1px solid var(--nv-border);
  border-radius: 4px;
  padding: 0.3rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--nv-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nv-like-btn[disabled] {
  cursor: not-allowed;
}

.nv-like-btn.is-liked {
  border-color: var(--nv-action);
  color: var(--nv-action);
}

.nv-like-btn__heart {
  font-size: 1rem;
}

.nv-authors-list__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nv-border);
}

.nv-authors-list__row:last-child {
  border-bottom: none;
}

.nv-authors-list__avatar img {
  border-radius: 50%;
  display: block;
}

.nv-authors-list__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nv-authors-list__stats {
  color: var(--nv-text-soft);
  font-size: 0.85rem;
}

/* ==========================================================================
   Messages (Stage E.D)
   ========================================================================== */

.nv-account-menu__badge {
  background: var(--nv-action);
  color: var(--nv-cta-text);
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.3rem;
}

.nv-following-list__message {
  margin-left: auto;
  align-self: center;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nv-inbox__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-inbox__row {
  /* Visual separation now comes from each row's own background + margin
     (added alongside the date/time here) — a border on top of that looked
     like a double divider. */
}

.nv-inbox__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin: 0.35rem 0;
  border-radius: 8px;
  background: var(--nv-bg-alt);
  color: var(--nv-text);
}

html[data-theme="dark"] .nv-inbox__link {
  background: rgba(255, 255, 255, 0.06);
}

.nv-inbox__link img {
  border-radius: 50%;
  flex-shrink: 0;
}

.nv-inbox__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.nv-inbox__snippet {
  color: var(--nv-text-soft);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-inbox__row.is-unread .nv-inbox__snippet,
.nv-inbox__row.is-unread strong {
  color: var(--nv-text);
  font-weight: 700;
}

.nv-inbox__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nv-action);
  flex-shrink: 0;
}

.nv-thread__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nv-thread__header img {
  border-radius: 50%;
}

.nv-thread__messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.nv-thread__bubble {
  background: var(--nv-bg-alt);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  max-width: 70%;
}

.nv-thread__bubble p {
  margin: 0 0 0.3rem;
  white-space: pre-wrap;
}

.nv-thread__bubble.is-mine {
  background: var(--nv-accent-soft);
  align-self: flex-end;
}

html[data-theme="dark"] .nv-thread__bubble {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nv-thread__bubble.is-mine {
  background: rgba(255, 255, 255, 0.16);
}

.nv-thread__time {
  font-size: 0.75rem;
  color: var(--nv-text-soft);
}

.nv-thread__reply {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nv-thread__reply textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--nv-border);
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

.nv-date-header {
  text-align: center;
  color: var(--nv-text-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.25rem 0 0.5rem;
}

.nv-thread__subject {
  margin-bottom: 1.25rem;
}

.nv-topics h2 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.nv-thread__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.nv-thread__toolbar-actions {
  color: var(--nv-text-soft);
}

.nv-thread__delete-link {
  color: #a94442;
}

.nv-thread__bubble {
  position: relative;
  padding-right: 2rem;
}

.nv-thread__delete-message {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
}

.nv-thread__delete-message button {
  background: none;
  border: none;
  color: var(--nv-text-soft);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}

.nv-thread__delete-message button:hover {
  color: #a94442;
}

.nv-emoji-picker {
  position: relative;
  margin-bottom: 0.4rem;
}

.nv-emoji-picker__toggle {
  background: var(--nv-bg-alt);
  border: 1px solid var(--nv-border);
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.nv-emoji-picker__panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  width: 260px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nv-emoji-picker__panel[hidden] {
  display: none;
}

.nv-emoji-picker__panel button {
  background: none;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.3rem;
  cursor: pointer;
  border-radius: 4px;
}

.nv-emoji-picker__panel button:hover {
  background: var(--nv-accent-soft);
}

.nv-thread__report-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nv-thread__report-form input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--nv-border);
  border-radius: 6px;
}
