/* My Research — tablet page, save pills, profile dropdown */

.tvih-profile-nav-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-left: 0;
}
#page-header.tvih-prof-topbar .tvih-prof-topbar-inner {
  width: 100%;
  max-width: none;
  justify-content: space-between;
}
#page-header #tvih-header-right {
  margin-left: auto;
}
.tvih-profile-nav-wrap .tvih-profile-nav-btn.dropdown-toggle::after {
  display: none;
}
.tvih-profile-menu {
  min-width: 13.5rem;
  padding: 0.35rem 0;
  margin-top: 0.4rem !important;
  background: rgba(12, 10, 8, 0.97) !important;
  border: 1px solid rgba(212, 163, 115, 0.4) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.tvih-profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  font-family: 'Atkinson Hyperlegible', Georgia, serif;
  font-size: 0.92rem;
  color: #ccc !important;
}
.tvih-profile-menu .dropdown-item i {
  width: 1.1em;
  color: #d4a373;
}
.tvih-profile-menu .dropdown-item:hover,
.tvih-profile-menu .dropdown-item:focus {
  background: rgba(212, 163, 115, 0.12) !important;
  color: #fff !important;
}
.tvih-profile-menu .dropdown-item.is-active {
  color: #fff !important;
  background: rgba(212, 163, 115, 0.16) !important;
}
.tvih-profile-menu-count {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #d4a373;
  border: 1px solid rgba(212, 163, 115, 0.45);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}
.tvih-profile-menu .dropdown-divider {
  border-top-color: rgba(212, 163, 115, 0.22);
  margin: 0.3rem 0;
}

/* Save-to-research pill on Grok answers */
.tvih-research-save-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(212, 163, 115, 0.18);
}
.tvih-research-save-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Atkinson Hyperlegible', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #d4a373 !important;
  background: transparent;
  border: 1px solid rgba(212, 163, 115, 0.55);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
}
.tvih-research-save-pill:hover,
.tvih-research-save-pill:focus-visible {
  color: #fff !important;
  border-color: #d4a373;
  background: rgba(212, 163, 115, 0.16);
}
.tvih-research-save-pill.is-saved {
  color: #1a120c !important;
  background: #d4a373;
  border-color: #d4a373;
}
.tvih-research-save-pill.is-saved:hover {
  color: #1a120c !important;
  filter: brightness(1.06);
}
.tvih-research-save-pill .tvih-research-open {
  margin-left: 0.15rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Research page */
/* Same seated hearth as the book pages. A 40vh band left a black slab under the lead. */
#page-container.tvih-profile-page.tvih-research-page #main-container.tvih-prof-main {
  padding-top: 0 !important;
}
.tvih-research-page .tvih-book-hero {
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--tvih-header-h, 4rem);
  padding-bottom: 0;
}
.tvih-research-page .tvih-book-hero #hero-video {
  opacity: 1;
}
.tvih-research-page .tvih-book-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  max-width: 40rem;
}
.tvih-research-page .tvih-rs-hero-kicker {
  font-family: Cinzel, Georgia, serif !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #d4a373 !important;
  margin: 0.55rem 0 0.45rem !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}
.tvih-research-page .tvih-rs-hero-lead {
  font-family: 'Atkinson Hyperlegible', Georgia, serif !important;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem) !important;
  line-height: 1.5 !important;
  color: #e8e0d4 !important;
  margin: 0 auto !important;
  max-width: 34rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.tvih-rs-hero {
  /* Top margin was page-black between the hearth and the first pills. */
  margin: 0 0 1.25rem;
}
.tvih-rs-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4a373;
  margin-bottom: 0.3rem;
}
.tvih-rs-title {
  font-family: 'Cinzel', serif !important;
  font-size: 2rem !important;
  color: #fff !important;
  margin: 0 0 0.4rem !important;
  border: none !important;
}
.tvih-rs-lead {
  color: #999;
  font-size: 1.02rem;
  max-width: 38rem;
  margin: 0 0 1rem;
}
.tvih-rs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tvih-rs-stat {
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  color: #ccc;
}
.tvih-rs-stat strong {
  color: #d4a373;
  font-weight: 600;
}

.tvih-rs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}
.tvih-rs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tvih-rs-filter {
  font-size: 0.8rem;
  color: #999 !important;
  background: transparent;
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  cursor: pointer;
}
.tvih-rs-filter:hover,
.tvih-rs-filter.is-on {
  color: #fff !important;
  border-color: #d4a373;
  background: rgba(212, 163, 115, 0.14);
}
.tvih-rs-search {
  min-width: 12rem;
  flex: 1 1 14rem;
  max-width: 22rem;
  background: #000 !important;
  color: #fff !important;
  border: 1px solid rgba(212, 163, 115, 0.35) !important;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

.tvih-rs-empty {
  text-align: center;
  padding: 2.4rem 1.2rem;
  border: 1px solid rgba(212, 163, 115, 0.28);
  border-radius: 14px;
  background: rgba(12, 10, 8, 0.6);
}
.tvih-rs-empty i {
  color: #d4a373;
  margin-bottom: 0.7rem;
}
.tvih-rs-empty h3 {
  font-family: 'Cinzel', serif;
  color: #fff;
  margin: 0.3rem 0 0.5rem;
}
.tvih-rs-empty p {
  color: #999;
  margin: 0 auto;
  max-width: 28rem;
}

.tvih-keep-strip {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid rgba(212, 163, 115, 0.32);
  background: rgba(212, 163, 115, 0.07);
  text-align: center;
}
.tvih-keep-copy {
  font-family: 'Atkinson Hyperlegible', Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #c8c8c8;
  margin: 0 0 0.7rem;
}
.tvih-keep-cta {
  font-family: 'Atkinson Hyperlegible', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #d4a373;
  background: transparent;
  border: 1px solid rgba(212, 163, 115, 0.55);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  line-height: 1.2;
  cursor: pointer;
}
.tvih-keep-cta:hover,
.tvih-keep-cta:focus {
  color: #fff;
  border-color: #d4a373;
  background: rgba(212, 163, 115, 0.16);
}
.tvih-prof-research-preview .tvih-keep-strip {
  margin: 0.65rem 0 0.85rem;
}

.tvih-rs-work {
  border: 1px solid rgba(212, 163, 115, 0.32);
  border-radius: 14px;
  background: rgba(12, 10, 8, 0.92);
  margin-bottom: 0.9rem;
  overflow: visible;
  scroll-margin-top: calc(var(--tvih-header-h, 4rem) + 0.85rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tvih-rs-work[open] {
  border-color: rgba(212, 163, 115, 1);
  box-shadow:
    0 0 7px rgba(212, 163, 115, 0.41),
    0 0 14px rgba(212, 163, 115, 0.26);
  animation: tvih-rs-shelf-glow 1.5s ease-in-out infinite;
}
.tvih-rs-work[open] .tvih-rs-work-title {
  color: #fff;
  text-shadow: 0 0 7px rgba(212, 163, 115, 0.58), 0 0 14px rgba(212, 163, 115, 0.41);
  animation: tvih-rs-title-glow 1.5s ease-in-out infinite;
}
@keyframes tvih-rs-shelf-glow {
  0%, 100% {
    border-color: rgba(212, 163, 115, 0.94);
    box-shadow: 0 0 6px rgba(212, 163, 115, 0.41), 0 0 12px rgba(212, 163, 115, 0.26);
  }
  50% {
    border-color: #d4a373;
    box-shadow: 0 0 8px rgba(212, 163, 115, 0.55), 0 0 17px rgba(212, 163, 115, 0.35);
  }
}
@keyframes tvih-rs-title-glow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(212, 163, 115, 0.52), 0 0 12px rgba(212, 163, 115, 0.35);
  }
  50% {
    text-shadow: 0 0 8px rgba(212, 163, 115, 0.70), 0 0 17px rgba(212, 163, 115, 0.46);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tvih-rs-work[open] {
    animation: none;
    box-shadow: 0 0 7px rgba(212, 163, 115, 0.41), 0 0 13px rgba(212, 163, 115, 0.23);
  }
  .tvih-rs-work[open] .tvih-rs-work-title {
    animation: none;
  }
}
.tvih-rs-work > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.35rem;
}
.tvih-rs-work > summary::-webkit-details-marker { display: none; }
.tvih-rs-work-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.tvih-rs-work-title {
  font-family: 'Cinzel', serif;
  font-size: 1.12rem;
  color: #fff;
  line-height: 1.35;
}
.tvih-rs-work-meta {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.tvih-rs-work-count {
  color: #d4a373;
  font-size: 0.8rem;
  white-space: nowrap;
}
.tvih-rs-work[open] > summary {
  border-bottom: 1px solid rgba(212, 163, 115, 0.28);
}
.tvih-rs-work-body {
  padding: 0 1.35rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tvih-rs-card,
.tvih-research-page .tvih-rs-card,
.tvih-research-page .tvih-rs-card.tvih-bm-card,
.tvih-rs-work-body .tvih-bm-card {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 1.1rem 0 1.2rem !important;
  scroll-margin-top: calc(var(--tvih-header-h, 4rem) + 0.85rem);
}
.tvih-rs-work-body .tvih-rs-card + .tvih-rs-card {
  border-top: 1px solid rgba(212, 163, 115, 0.18) !important;
}
.tvih-rs-card.is-grok,
.tvih-research-page .tvih-rs-card.is-grok {
  border-color: transparent !important;
  background: transparent !important;
}
.tvih-research-page .tvih-bm-card:hover,
.tvih-research-page .tvih-rs-card.tvih-bm-card:hover {
  border-color: transparent !important;
}
.tvih-rs-card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4a373;
}
.tvih-rs-card-kicker i { margin-right: 0.15rem; }
.tvih-rs-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 0.35rem;
}
.tvih-rs-excerpt {
  margin: 0 0 0.45rem;
}
.tvih-rs-note {
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  border: none;
  background: none;
}
.tvih-rs-answer {
  white-space: pre-wrap;
  max-height: 12rem;
  overflow: auto;
  margin: 0.2rem 0 0.65rem;
}
.tvih-research-page .tvih-rs-work .tvih-bm-passage,
.tvih-research-page .tvih-rs-work .tvih-bm-passage span.word,
.tvih-research-page .tvih-rs-work .tvih-rs-answer,
.tvih-research-page .tvih-rs-work .tvih-rs-answer strong,
.tvih-research-page .tvih-rs-work .tvih-rs-excerpt,
.tvih-research-page .tvih-rs-work .tvih-rs-note,
.tvih-research-page .tvih-rs-work .bookmark-notes {
  font-family: 'Atkinson Hyperlegible', Georgia, serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.7 !important;
  color: #8a8a8a !important;
}
.tvih-research-page .tvih-rs-work .tvih-rs-answer strong {
  font-weight: 700 !important;
  color: #8a8a8a !important;
}
.tvih-rs-mark {
  background: rgba(212, 163, 115, 0.42);
  color: #fff;
  padding: 0 0.14em;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212, 163, 115, 0.28);
}
.tvih-rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tvih-rs-actions .tvih-rs-pill,
.tvih-research-page .tvih-rs-pill {
  display: inline-flex;
  align-items: center;
  width: auto;
  font-family: 'Atkinson Hyperlegible', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #d4a373 !important;
  background: transparent;
  border: 1px solid rgba(212, 163, 115, 0.55);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}
.tvih-rs-actions .tvih-rs-pill:hover,
.tvih-rs-actions .tvih-rs-pill:focus-visible {
  color: #fff !important;
  border-color: #d4a373;
  background: rgba(212, 163, 115, 0.16);
}
.tvih-rs-nested-grok {
  margin-top: 0.85rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(212, 163, 115, 0.2);
  background: none;
  border-radius: 0;
}
.tvih-rs-nested-grok-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 0.3rem;
}

/* Profile preview */
.tvih-prof-research-preview {
  padding: 1.15rem 1.25rem 1.1rem;
  border: 1px solid rgba(212, 163, 115, 0.4);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(212, 163, 115, 0.08), transparent 48%),
    rgba(12, 10, 8, 0.95);
}
.tvih-prof-research-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.tvih-prof-research-head .tvih-prof-h2 {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 0.2rem !important;
}
.tvih-rs-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tvih-rs-preview-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #ddd !important;
  text-decoration: none !important;
  border: 1px solid rgba(212, 163, 115, 0.18);
}
.tvih-rs-preview-row:hover {
  border-color: rgba(212, 163, 115, 0.45);
  color: #fff !important;
}
.tvih-rs-preview-icon {
  color: #d4a373;
  width: 1.1rem;
  text-align: center;
}
.tvih-rs-preview-title {
  font-size: 0.92rem;
  color: inherit;
}
.tvih-rs-preview-meta {
  font-size: 0.78rem;
  color: #888;
}
.tvih-rs-preview-empty {
  color: #999;
  font-size: 0.92rem;
  margin: 0;
}

/* Bookmark cards — same control bar / passage / notes as Study Hub */
.tvih-research-page .tvih-rs-card.tvih-bm-card {
  padding-bottom: 1.15rem;
}
.tvih-research-page .tvih-rs-bm-pills {
  display: none;
}
.tvih-research-page .tvih-bm-passage.bookmark-passage {
  width: 100%;
  max-height: 14rem;
  overflow-y: auto;
  color: #b3b3b3 !important;
  line-height: 1.7 !important;
  padding: 0 !important;
  margin: 0.15rem 0 0.9rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  -webkit-overflow-scrolling: touch;
}
.tvih-research-page .tvih-bm-passage .para-inline-icons,
.tvih-research-page .tvih-bm-passage .para-actions-row,
.tvih-research-page .tvih-bm-passage .para-controls-group,
.tvih-research-page .tvih-bm-passage .para-controls-break,
.tvih-research-page .tvih-bm-passage .para-icon,
.tvih-research-page .tvih-bm-passage .para-grok-mark {
  display: none !important;
}
.tvih-research-page .tvih-bm-passage span.word {
  color: #8a8a8a;
}
.tvih-research-page .tvih-bm-passage .grok-first,
.tvih-research-page .tvih-bm-passage .grok-phrase {
  cursor: pointer !important;
  text-decoration: underline !important;
  text-decoration-color: #8a8a8a !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}
.tvih-research-page .tvih-bm-passage .grok-first span.word,
.tvih-research-page .tvih-bm-passage .grok-phrase span.word {
  text-decoration: none !important;
}
.tvih-research-page .tvih-bm-passage .grok-first:hover,
.tvih-research-page .tvih-bm-passage .grok-phrase:hover,
.tvih-research-page .tvih-bm-passage .grok-first:hover span.word,
.tvih-research-page .tvih-bm-passage .grok-phrase:hover span.word {
  color: #d4a373 !important;
  text-decoration-color: #d4a373 !important;
}
.tvih-research-page .tvih-bm-passage span.word.highlight {
  color: #fff !important;
  text-shadow: 0 0 6px #d4a373, 0 0 12px #d4a373 !important;
  animation: tvihPreviewHighlightPulse 1.5s ease-in-out infinite;
}
.tvih-research-page .tvih-bm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  margin: 0 0 1.1rem;
  position: relative;
  z-index: 2;
}
.tvih-research-page .tvih-rs-icon-pills > .dropdown {
  flex: 0 0 auto;
}
.tvih-research-page .tvih-rs-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 115, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #999 !important;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.tvih-research-page .tvih-rs-icon-pill:hover,
.tvih-research-page .tvih-rs-icon-pill:focus,
.tvih-research-page .tvih-rs-icon-pill:focus-visible,
.tvih-research-page .tvih-rs-icon-pill.show {
  color: #fff !important;
  border-color: #d4a373;
  background: rgba(212, 163, 115, 0.16);
  outline: none;
}
.tvih-research-page .tvih-rs-icon-pill i {
  color: inherit !important;
  font-size: 0.9rem;
  line-height: 1;
}
.tvih-research-page .tvih-rs-icon-pill.dropdown-toggle::after {
  display: none !important;
}
.tvih-research-page .tvih-rs-card:has(.dropdown.show) {
  z-index: 6;
  position: relative;
}
.tvih-research-page .tvih-bm-share-menu {
  background: #111 !important;
  border: 1px solid #d4a373 !important;
  min-width: 11.5rem;
  padding: 0.35rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.tvih-research-page .tvih-bm-share-menu .dropdown-item {
  color: #999 !important;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
}
.tvih-research-page .tvih-bm-share-menu .dropdown-item i {
  color: #d4a373;
  width: 1.1em;
  text-align: center;
}
.tvih-research-page .tvih-bm-share-menu .dropdown-item:hover,
.tvih-research-page .tvih-bm-share-menu .dropdown-item:focus {
  background: rgba(212, 163, 115, 0.12) !important;
  color: #fff !important;
}
.tvih-research-page .tvih-bm-notes {
  width: 100%;
  margin: 0;
}
.tvih-research-page .tvih-bm-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
}
.tvih-research-page .tvih-bm-notes-kicker {
  display: block !important;
  font-family: 'Atkinson Hyperlegible', sans-serif !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(212, 163, 115, 0.9) !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}
.tvih-research-page .tvih-bm-notes .bookmark-notes {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(212, 163, 115, 0.35) !important;
  color: #8a8a8a !important;
  font-family: 'Atkinson Hyperlegible', Georgia, serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  resize: none;
  overflow-y: hidden;
  width: 100%;
  padding: 0.2rem 0 0.4rem !important;
  border-radius: 0 !important;
  min-height: 2.4rem;
  max-height: 14rem;
  line-height: 1.7 !important;
}
.tvih-research-page .tvih-bm-notes .bookmark-notes:focus {
  border-color: #d4a373 !important;
  box-shadow: none !important;
  outline: none !important;
}
.tvih-research-page .tvih-bm-notes .bookmark-notes::placeholder {
  color: #777 !important;
}
.tvih-research-page .tvih-bm-notes .save-note-btn {
  position: static;
  flex: 0 0 auto;
  z-index: 2;
  display: inline-grid !important;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  line-height: 1.2;
  color: #d4a373 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(212, 163, 115, 0.55) !important;
  border-radius: 999px;
  overflow: visible;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.tvih-research-page .tvih-bm-notes .save-note-btn .save-note-btn-idle,
.tvih-research-page .tvih-bm-notes .save-note-btn .save-note-btn-done {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32em;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(.2, .8, .2, 1);
}
.tvih-research-page .tvih-bm-notes .save-note-btn .save-note-btn-done {
  opacity: 0;
  transform: translateY(6px) scale(0.86);
  pointer-events: none;
  font-weight: 700;
}
.tvih-research-page .tvih-bm-notes .save-note-btn:hover,
.tvih-research-page .tvih-bm-notes .save-note-btn:focus {
  color: #111 !important;
  background: #d4a373 !important;
  border-color: #d4a373 !important;
}
.tvih-research-page .tvih-bm-notes .save-note-btn.is-saved {
  color: #111 !important;
  background: #d4a373 !important;
  border-color: #f0d2ad !important;
  box-shadow:
    0 0 0 1px rgba(212, 163, 115, 0.45),
    0 0 16px rgba(212, 163, 115, 0.55);
}
.tvih-research-page .tvih-bm-notes .save-note-btn.is-saved .save-note-btn-idle {
  opacity: 0;
  transform: translateY(-6px) scale(0.86);
}
.tvih-research-page .tvih-bm-notes .save-note-btn.is-saved .save-note-btn-done {
  opacity: 1;
  transform: none;
}
.tvih-research-page .tvih-bm-notes.is-saved .bookmark-notes {
  border-bottom-color: #d4a373 !important;
}

@media (max-width: 767.98px) {
  .tvih-rs-title { font-size: 1.55rem !important; }
  .tvih-rs-search { max-width: none; }
}
