.notes-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.notes-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 48px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle i {
  color: var(--text);
  font-size: 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-right #citationToggle {
  width: auto;
  height: auto;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.nav-right #citationToggle:hover {
  color: var(--text);
}

.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-btn span {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-dark);
}

.profile-btn:hover {
  transform: translateY(-2px);
}

.profile-wrapper {
  position: relative;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.profile-wrapper.open .profile-dropdown {
  display: block;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.profile-dropdown-item:hover {
  background: var(--bg-light);
}

.profile-dropdown-item i {
  font-size: 1.1rem;
  opacity: 0.7;
}

.profile-wrapper-sidebar {
  flex: 1;
}

.profile-dropdown-sidebar {
  top: auto;
  bottom: calc(100% + 8px);
  right: auto;
  left: 0;
}

.main-layout {
  display: flex;
  margin-top: 129px;
  min-height: calc(100vh - 129px);
}

.sidebar {
  position: fixed;
  top: 129px;
  left: 80px;
  width: 280px;
  height: calc(100vh - 129px);
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.tab-column {
  position: fixed;
  top: 129px;
  left: 0;
  width: 80px;
  height: calc(100vh - 80px);
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  gap: 8px;
  z-index: 96;
}

.tab-btn {
  width: 100%;
  padding: 12px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  background: var(--bg-light);
  color: var(--text);
}

.tab-btn.active {
  background: #f7e8c0;
  color: white;
}

.tab-btn i {
  font-size: 1.3rem;
  color: inherit;
}

.tab-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: inherit;
}

/* back button at the top of the tab rail */
body.notes-page .tab-back {
  margin-bottom: 10px;
  padding: 12px 8px;
  border-radius: 10px;
  border-bottom: 1px solid var(--paper-line);
  text-decoration: none;
  color: var(--ink-muted);
}

body.notes-page .tab-back i {
  font-size: 1.25rem;
}

body.notes-page .tab-back:hover {
  background: var(--paper-border);
  color: var(--ink);
  filter: none;
}

.sidebar-actions {
  margin-top: auto;
  padding: 24px;
  display: none;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.sidebar-actions #themeToggleSidebar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sidebar-actions #themeToggleSidebar i {
  color: var(--text);
  font-size: 1.2rem;
}

.sidebar-actions #themeToggleSidebar:hover {
  background: var(--bg-light);
}

.sidebar-actions #citationToggleSidebar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sidebar-actions #citationToggleSidebar i {
  color: var(--text);
  font-size: 1.2rem;
}

.sidebar-actions #citationToggleSidebar:hover {
  background: var(--bg-light);
}

.sidebar-actions .profile-btn {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sidebar-actions .profile-btn span {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-dark);
}

.sidebar-actions .profile-btn:hover {
  transform: translateY(-2px);
}

.sidebar-subject {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 0 24px;
  margin-bottom: 20px;
}

.chapters-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.chapter-item {
  border-bottom: 1px solid var(--border);
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  list-style: none;
}

.chapter-header::-webkit-details-marker {
  display: none;
}

.chapter-header:hover {
  background: var(--bg-light);
}

.chapter-name {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.chapter-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

details.chapter-item.active .chapter-arrow,
details.chapter-item[open] .chapter-arrow {
  transform: rotate(90deg);
}

.topics-list {
  display: none;
  flex-direction: column;
  padding: 8px 0;
}

details.chapter-item[open] .topics-list {
  display: flex;
}

.topic-item {
  padding: 10px 24px 10px 40px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.topic-item:hover {
  background: var(--bg-light);
}

.topic-item.active {
  background: var(--bg-light);
  border-left-color: var(--amber);
}

.topic-item .topic-name {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.topic-item.active .topic-name {
  color: var(--text);
}

.notes-panel {
  flex: 1;
  margin-left: 360px;
  padding: 40px 48px;
  overflow-y: auto;
  max-height: calc(100vh - 129px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.topic-header {
  margin-bottom: 32px;
}

.topic-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.paper-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.paper-tag {
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 8px;
}

.notes-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formula {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--amber-soft);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 6px;
}

.formula-inline {
  display: inline;
  padding: 0 4px;
  color: var(--text);
}

.formula-block {
  display: block;
  text-align: center;
  padding: 12px 0;
  overflow-x: auto;
}

.formula-block .katex {
  font-size: 1em;
}

.light .katex {
  color: var(--text);
}

.paper-scope-banner {
  width: 100%;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 12px 24px;
  text-align: center;
}

.paper-scope-banner p {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.key-concept-box {
  background: var(--bg-light);
  border-left: 3px solid oklch(72% 0.13 230);
  border-radius: 12px;
  padding: 20px 24px;
}

.key-concept-box .box-header {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: oklch(72% 0.13 230);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.key-concept-box .box-body {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.definition-box {
  background: var(--bg-light);
  border-left: 3px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.definition-box .box-header {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.definition-box .box-header .term {
  font-weight: 700;
}

.definition-box .box-body {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.common-mistake-box {
  background: #fbece8;
  border-left: 3px solid var(--error);
  border-radius: 12px;
  padding: 20px 24px;
}

.common-mistake-box .box-header {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--error);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.common-mistake-box .box-body {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.example-box {
  background: var(--bg-light);
  border-left: 3px solid oklch(75% 0.14 180);
  border-radius: 12px;
  padding: 20px 24px;
}

.example-box .box-header {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: oklch(75% 0.14 180);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.example-box .box-body {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.example-box .box-body .step {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.example-box .box-body .step-number {
  font-weight: 600;
  color: var(--amber);
  min-width: 20px;
}

.box-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.box-body table th,
.box-body table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}

.box-body table th {
  font-weight: 600;
  color: var(--text-muted);
}

.box-body .block {
  margin-top: 16px;
}

.box-note {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.examiner-tip-box {
  background: var(--bg-light);
  border-left: 3px solid var(--success);
  border-radius: 12px;
  padding: 20px 24px;
}

.examiner-tip-box .box-header {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.examiner-tip-box .box-body {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.common-question-box {
  background: var(--bg-light);
  border-left: 3px solid var(--warning);
  border-radius: 12px;
  padding: 20px 24px;
}

.common-question-box .box-header {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--warning);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.common-question-box .question {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.common-question-box .answer {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.common-question-box .question table,
.common-question-box .answer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.common-question-box .question table th,
.common-question-box .question table td,
.common-question-box .answer table th,
.common-question-box .answer table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}

.common-question-box .question table th,
.common-question-box .answer table th {
  font-weight: 600;
  color: var(--text-muted);
}

.common-question-box .question .block,
.common-question-box .answer .block {
  margin-top: 12px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
}

@media (max-width: 768px) {
  body.notes-page .beta-ribbon {
    top: 73px;
  }

  .notes-page .navbar {
    padding: 16px 24px;
    justify-content: start;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-actions {
    display: flex;
  }

  .tab-column {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    z-index: 200;
    transition: left 0.3s ease;
    transform: none !important;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .notes-panel {
    width: 100vw;
    margin: 0px 0px;
    padding: 24px;
    max-height: calc(100vh - 129px);
    margin-top: 0;
  }

  .topic-title {
    font-size: 1.5rem;
  }

  .box-body {
    overflow-x: auto;
  }
}

body.hide-citations .citation-btn {
  display: none;
}

.citation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 2px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--amber);
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  vertical-align: middle;
  transition: opacity 0.2s;
}

.citation-btn:hover {
  opacity: 0.8;
}

.citation-btn i {
  color: inherit;
  font-size: 0.75rem;
}

/* ── Citation Panel ───────────────────────────────────────────── */

.citation-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: 1px solid var(--border);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.citation-panel.open {
  right: 0;
}

.citation-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.citation-panel-title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.citation-panel-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.citation-panel-close:hover {
  background: var(--bg-light);
  color: var(--text);
}

.citation-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.citation-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.citation-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.citation-result-badge {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--amber);
  color: white;
  white-space: nowrap;
}

.citation-result-qnum {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.citation-result-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.citation-result-link {
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.citation-result-link:hover {
  color: #6b4a1d;
}

.citation-result-link i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.citation-panel-empty {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 16px;
}

.citation-panel-footer {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  line-height: 1.4;
}

.citation-panel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
}

.citation-panel-overlay.open {
  display: block;
}

@media (max-width: 768px) {
  .citation-panel {
    width: 100vw;
    right: -100vw;
  }

  .citation-panel.open {
    right: 0;
  }
}

/* ── Sidebar Collapse Button ──────────────────────────────────── */

.sidebar-collapse-btn {
  position: fixed;
  top: 50%;
  left: 360px;
  transform: translateY(-50%);
  z-index: 101;
  width: 20px;
  height: 48px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease, background 0.2s ease;
}

.sidebar-collapse-btn:hover {
  background: var(--bg);
  transform: translateY(-50%);
}

.sidebar-collapse-btn i {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

body.sidebar-collapsed .sidebar-collapse-btn {
  left: 80px;
}

body.sidebar-collapsed .sidebar-collapse-btn i {
  transform: rotate(180deg);
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-280px);
}

body.sidebar-collapsed .notes-panel {
  margin-left: 80px;
}

/* ── Split-Screen PDF Viewer ──────────────────────────────────── */

.pdf-viewer {
  display: none;
  position: fixed;
  top: 129px;
  right: 0;
  width: 50%;
  height: calc(100vh - 125px);
  flex-direction: column;
  border-left: 2px solid var(--bg-dark);
  background: var(--bg);
  z-index: 90;
}

body.split-screen .pdf-viewer {
  display: flex;
}

body.split-screen .notes-panel {
  width: 50vw;
  flex: none;
  margin-left: 80px;
}

body.split-screen:not(.sidebar-collapsed) .notes-panel {
  margin-left: 360px;
  width: calc(50vw - 360px);
}

body.split-screen.sidebar-collapsed .notes-panel {
  margin-left: 80px;
  width: calc(50vw - 80px);
}

.pdf-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.pdf-viewer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex-wrap: wrap;
}

.pdf-viewer-title {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-viewer-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pdf-viewer-toggle:hover {
  background: var(--bg);
  border-color: var(--text-muted);
  transform: none;
}

.pdf-viewer-toggle i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pdf-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdf-viewer-external {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.pdf-viewer-external:hover {
  background: var(--bg-light);
  color: var(--text);
}

.pdf-viewer-external i {
  font-size: 1.1rem;
  color: inherit;
}

.pdf-viewer-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.pdf-viewer-close:hover {
  background: var(--bg-light);
  color: var(--text);
}

.pdf-viewer-iframe {
  flex: 1;
  border: none;
  width: 100%;
  background: var(--bg-dark);
}

.pdf-viewer-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

body.split-screen .pdf-viewer-nav {
  display: flex;
}

.pdf-nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pdf-nav-btn:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--text-muted);
}

.pdf-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pdf-nav-btn i {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pdf-nav-counter {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 40px;
  text-align: center;
}

/* ── Papers Panel ─────────────────────────────────────────────── */

.papers-panel {
  display: none;
  flex: 1;
  margin-left: 360px;
  padding: 40px 48px;
  overflow-y: auto;
  max-height: calc(100vh - 129px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

body.tab-papers .papers-panel {
  display: block;
}

body.tab-papers .notes-panel {
  display: none;
}

body.sidebar-collapsed.tab-papers .papers-panel {
  margin-left: 80px;
}

body.split-screen.tab-papers .papers-panel {
  display: none;
}

body.split-screen.tab-papers .notes-panel {
  display: none;
}

body.split-screen.tab-papers .pdf-viewer {
  left: 360px;
  width: calc(100vw - 360px);
}

body.split-screen.tab-papers.sidebar-collapsed .pdf-viewer {
  left: 80px;
  width: calc(100vw - 80px);
}

.papers-header {
  margin-bottom: 32px;
}

.papers-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.papers-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.papers-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.papers-search:focus {
  border-color: var(--paper-accent);
}

.papers-search::placeholder {
  color: var(--text-muted);
}

.papers-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.papers-filter {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.papers-filter:focus {
  border-color: var(--paper-accent);
}

.papers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paper-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}

.paper-card:hover {
  border-color: var(--paper-accent);
}

.paper-card-code {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.paper-card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paper-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.paper-card-link:hover {
  background: var(--bg-dark);
  color: #6b4a1d;
}

.paper-card-link i {
  font-size: 1rem;
  flex-shrink: 0;
}

.papers-empty {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
}

/* ── Mobile: PDF viewer full-width ────────────────────────────── */

@media (max-width: 768px) {
  .sidebar-collapse-btn {
    display: none;
  }

  .tab-column {
    display: none;
  }

  .pdf-viewer {
    width: 100vw;
  }

  body.split-screen .notes-panel {
    width: 100%;
  }

  .papers-panel {
    width: 100vw;
    margin: 0;
    padding: 24px;
    max-height: calc(100vh - 129px);
    margin-top: 0;
  }

  .papers-title {
    font-size: 1.5rem;
  }

  .papers-filters {
    flex-direction: column;
  }
}

/* ============================================
   Notes page — paper & notebook theme
   (UI only; markup/ids unchanged so the
   JSON → KaTeX → marked → DOMPurify pipeline
   keeps working untouched)
   ============================================ */

body.notes-page {
  background: var(--paper-bg);
}

/* ---------- navbar — frosted paper ---------- */
body.notes-page .navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-border);
}

body.notes-page .navbar .logo {
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--ink);
  background-clip: border-box;
  color: var(--ink);
}

/* ---------- left rails — paper ---------- */
body.notes-page .tab-column,
body.notes-page .sidebar {
  background: var(--paper-card);
  border-right-color: var(--paper-border);
}

body.notes-page .tab-btn:hover,
body.notes-page .chapter-header:hover,
body.notes-page .topic-item:hover {
  background: #f3edd9;
}

body.notes-page .tab-btn.active {
  background: #f7e8c0;
  color: #6b4a1d;
}

body.notes-page .chapter-item {
  border-bottom-color: var(--paper-border);
}

body.notes-page .topic-item.active {
  background: #f3edd9;
  border-left-color: var(--amber);
}

body.notes-page .sidebar-subject {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ---------- profile buttons — solid ink ---------- */
body.notes-page .profile-btn {
  background: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.notes-page .profile-btn:hover {
  filter: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* ---------- handwritten titles ---------- */
body.notes-page .topic-title,
body.notes-page .papers-title {
  display: inline-block;
  position: relative;
  font-family: "Caveat", cursive;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
}

body.notes-page .topic-title::after,
body.notes-page .papers-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 4px;
  background: rgba(58, 47, 26, 0.13);
  border-radius: 6px;
  transform: rotate(-1.2deg);
}

body.notes-page .paper-tag {
  background: #f7e8c0;
  border-color: #ebd9a3;
  color: #6b4a1d;
}

body.notes-page .paper-scope-banner {
  background: #f3edd9;
}

/* ---------- content boxes — light note cards ---------- */
body.notes-page .key-concept-box,
body.notes-page .definition-box,
body.notes-page .common-mistake-box,
body.notes-page .example-box,
body.notes-page .examiner-tip-box,
body.notes-page .common-question-box {
  background: #fefdf8;
  box-shadow: 0 8px 20px rgba(90, 70, 30, 0.08);
}

body.notes-page .common-mistake-box {
  background: #fbece8; /* flat light red — replaces the gradient */
}

/* ---------- accents: purple → warm amber ---------- */
body.notes-page .formula {
  color: var(--amber-soft);
}

body.notes-page .example-box .box-body .step-number {
  color: var(--amber);
}

body.notes-page .citation-btn,
body.notes-page .citation-result-badge {
  background: var(--amber);
}

body.notes-page .citation-result-link:hover {
  color: #6b4a1d;
}

body.notes-page .papers-search:focus,
body.notes-page .papers-filter:focus {
  border-color: var(--paper-accent);
}

body.notes-page .paper-card {
  background: var(--paper-card);
  border-color: var(--paper-line);
}

body.notes-page .paper-card:hover {
  border-color: var(--paper-accent);
}

body.notes-page .paper-card-link {
  background: #fefdf8;
  color: var(--ink-soft);
}

body.notes-page .paper-card-link:hover {
  background: #f3edd9;
  color: #6b4a1d;
}

/* ---------- citation & pdf panels ---------- */
body.notes-page .citation-panel {
  background: var(--paper-card);
  border-left-color: var(--paper-border);
}

body.notes-page .citation-result {
  background: #fefdf8;
  border-color: var(--paper-line);
}

body.notes-page .pdf-viewer {
  background: #ffffff;
  border-left-color: var(--paper-border);
}

body.notes-page .pdf-viewer-header,
body.notes-page .pdf-viewer-nav {
  background: #f6f2e6;
  border-color: var(--paper-border);
}

body.notes-page .pdf-viewer-iframe {
  background: #ffffff;
}

/* ============================================
   Notes content — like a student's notebook
   (pastel notes, handwritten headers, marker
   highlights — classes unchanged so the JS
   rendering pipeline keeps working)
   ============================================ */

body.notes-page .notes-content {
  gap: 28px;
}

/* pastel notes stuck on the paper, each at its own slant */
body.notes-page .key-concept-box,
body.notes-page .definition-box,
body.notes-page .common-mistake-box,
body.notes-page .example-box,
body.notes-page .examiner-tip-box,
body.notes-page .common-question-box {
  border-left: none; /* no ribbons — just the paper notes */
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(80, 60, 20, 0.1);
}

body.notes-page .key-concept-box {
  background: #eaf2fb; /* pencil-blue note */
  transform: rotate(-0.3deg);
}

body.notes-page .definition-box {
  background: #fdf6c9; /* classic sticky yellow */
  transform: rotate(0.35deg);
}

body.notes-page .common-mistake-box {
  background: #fcebe8; /* red memo */
  transform: rotate(-0.25deg);
}

body.notes-page .example-box {
  background: #e4f3f1; /* teal note */
  transform: rotate(0.3deg);
}

body.notes-page .examiner-tip-box {
  background: #e9f4e8; /* green note */
  transform: rotate(-0.2deg);
}

body.notes-page .common-question-box {
  background: #fbf0dc; /* orange note */
  transform: rotate(0.25deg);
}

/* handwritten headers with a coloured marker swipe underneath */
body.notes-page .key-concept-box .box-header,
body.notes-page .definition-box .box-header,
body.notes-page .common-mistake-box .box-header,
body.notes-page .example-box .box-header,
body.notes-page .examiner-tip-box .box-header,
body.notes-page .common-question-box .box-header {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: none;
  letter-spacing: 0;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

body.notes-page .box-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  border-radius: 4px;
  transform: rotate(-1.2deg);
}

body.notes-page .key-concept-box .box-header { color: #3c6d99; }
body.notes-page .key-concept-box .box-header::after { background: rgba(91, 141, 184, 0.35); }

body.notes-page .definition-box .box-header { color: #a1861f; }
body.notes-page .definition-box .box-header::after { background: rgba(214, 185, 60, 0.5); }

body.notes-page .common-mistake-box .box-header { color: #b05a4e; }
body.notes-page .common-mistake-box .box-header::after { background: rgba(201, 106, 94, 0.35); }

body.notes-page .example-box .box-header { color: #3f837d; }
body.notes-page .example-box .box-header::after { background: rgba(79, 155, 148, 0.35); }

body.notes-page .examiner-tip-box .box-header { color: #55804c; }
body.notes-page .examiner-tip-box .box-header::after { background: rgba(111, 158, 99, 0.35); }

body.notes-page .common-question-box .box-header { color: #a9712e; }
body.notes-page .common-question-box .box-header::after { background: rgba(201, 141, 75, 0.35); }

/* formulas inside the handwritten card headings/terms inherit the heading's
   size and colour. KaTeX's default 1.21em serif bump + the generic --text
   black made a heading that contains a formula (e.g. the yellow definition
   term "Relative Atomic Mass (A_r)") look big, bold and black next to its
   siblings, stealing attention from the other cards. */
body.notes-page .box-header .formula-inline,
body.notes-page .box-header .formula-block,
body.notes-page .definition-box .term .formula-inline,
body.notes-page .definition-box .term .formula-block {
  color: inherit;
  padding: 0;
}
body.notes-page .box-header .katex,
body.notes-page .definition-box .term .katex {
  font-size: inherit;
  color: inherit;
}
/* the definition term should read at the same weight as its heading */
body.notes-page .definition-box .box-header .term {
  font-weight: inherit;
}

/* definition term — like highlighting a vocab word */
body.notes-page .definition-box .term {
  background: rgba(250, 204, 21, 0.4);
  border-radius: 3px;
  padding: 0 6px 2px;
}

/* (no blanket marker highlight on bold — it felt like highlighting
   the whole thing; only the definition term keeps its swipe) */

/* paper-scope banner — a taped strip */
body.notes-page .paper-scope-banner {
  background: #f7e8c0;
  border: 1px dashed #d9b44f;
  border-radius: 8px;
  transform: rotate(-0.4deg);
}

body.notes-page .paper-scope-banner p {
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: normal;
  color: #6b4a1d;
}

/* tables — light pencil lines, inked headers */
body.notes-page .box-body table th,
body.notes-page .box-body table td,
body.notes-page .common-question-box .question table th,
body.notes-page .common-question-box .question table td,
body.notes-page .common-question-box .answer table th,
body.notes-page .common-question-box .answer table td {
  border-bottom-color: rgba(120, 110, 80, 0.3);
  color: var(--ink);
}

body.notes-page .box-body table th,
body.notes-page .common-question-box .question table th,
body.notes-page .common-question-box .answer table th {
  color: #6b5a33;
  background: rgba(120, 110, 80, 0.07);
}

/* box notes — pencil margin scribbles */
body.notes-page .box-note {
  font-style: italic;
  color: var(--ink-muted);
  border-left: 3px solid rgba(120, 110, 80, 0.3);
  padding-left: 10px;
  margin-top: 14px;
}

/* ============================================
   Bottom nav — mobile (home / notes / papers)
   ============================================ */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60; /* above content, below overlays (sidebar 200 / overlay 150) */
  background: var(--paper-card);
  border-top: 1px solid var(--paper-line);
  box-shadow: 0 -6px 16px rgba(90, 70, 30, 0.1);
}

.bottom-nav-item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 6px 5px;
  padding: 10px 4px 9px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink-muted);
  text-decoration: none;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  color: inherit;
}

.bottom-nav-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: inherit;
}

.bottom-nav-item:hover {
  background: var(--paper-border);
  color: var(--ink);
  filter: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  /* active tab — warm chip, same as the desktop rail */
  body.notes-page .bottom-nav .tab-btn.active {
    background: #f7e8c0 !important;
    color: #6b4a1d !important;
  }

  /* sidebar citation toggle not needed on mobile (logout lives in the top-nav dropdown) */
  body.notes-page .sidebar-actions {
    display: none;
  }

  /* keep the page content clear of the nav */
  .notes-panel,
  .papers-panel {
    padding-bottom: 88px;
  }

  .sidebar.open {
    padding-bottom: 96px;
  }

  /* PDF viewer sits above the nav when split on mobile */
  .pdf-viewer {
    height: calc(100vh - 193px);
  }
}

/* ============================================
   Mobile PDF — full-screen overlay, never side-by-side
   (kills the desktop split layout at ≤768px so
   no leftover 360px margins / shrunk panels)
   ============================================ */
@media (max-width: 768px) {
  body.split-screen .pdf-viewer,
  body.split-screen:not(.sidebar-collapsed) .pdf-viewer,
  body.split-screen.tab-papers .pdf-viewer,
  body.split-screen.tab-papers.sidebar-collapsed .pdf-viewer {
    left: 0;
    width: 100vw;
  }

  body.split-screen .notes-panel,
  body.split-screen.sidebar-collapsed .notes-panel,
  body.split-screen:not(.sidebar-collapsed) .notes-panel,
  body.sidebar-collapsed .notes-panel {
    margin-left: 0;
    width: 100vw;
  }

  body.split-screen.tab-papers .papers-panel {
    display: block;
  }

  body.sidebar-collapsed.tab-papers .papers-panel {
    margin-left: 0;
  }
}

/* paper hidden while switching tabs on mobile (viewer state is kept) */
body.pdf-dismissed .pdf-viewer {
  display: none !important;
}

/* ---------------------------------------------------------------
   SSR notes page (SEO) — server-rendered sidebar links, prev/next,
   text/table component boxes and "coming soon" state.
   --------------------------------------------------------------- */

/* topic links in the sidebar are now real <a> tags */
.topic-item {
  display: block;
  text-decoration: none;
}

/* top-level 'text' and 'table' knowledge components reuse the key-concept box */
.text-box .box-header,
.table-box .box-header,
.key-concept-box .box-header {
  font-weight: 600;
  color: var(--ink);
}

/* topic prev/next navigation — paper-card style, matching the app's buttons */
.notes-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-line);
}

.notes-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 48%;
  box-shadow: 0 1px 2px rgba(60, 45, 15, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.notes-nav-link:hover {
  background: var(--paper-bg);
  border-color: var(--paper-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(90, 70, 30, 0.12);
}

.notes-nav-link i {
  font-size: 1.5rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.notes-nav-link:hover i {
  color: var(--ink);
}

.notes-nav-link.next {
  margin-left: auto;
  text-align: right;
  flex-direction: row-reverse;
}

.notes-nav-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.notes-nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.notes-nav-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-nav-spacer {
  flex: 0 0 48%;
}

/* topic with no generated content yet */
.topic-coming-soon {
  background: var(--paper-card);
  border: 1px dashed var(--paper-accent);
  border-radius: 14px;
  padding: 32px;
  text-align: left;
}

.topic-coming-soon h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.topic-coming-soon p {
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.notes-papers-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.notes-papers-link:hover {
  color: var(--amber);
}

/* guest "Sign in" button on notes pages (shared with papers pages) */
.notes-page .papers-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-muted);
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.notes-page .papers-signin-btn:hover {
  border-color: var(--amber-soft);
  color: var(--text);
}

/* tab rail items are real links on the SSR notes page */
.notes-page .tab-btn {
  text-decoration: none;
  box-sizing: border-box;
  justify-content: center;
}

.notes-page a.tab-btn.active {
  color: var(--ink);
}

/* ---------- topic guidance toast (top-center, mirrored from papers) ---------- */
.notes-page .papers-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 300;
  pointer-events: none;
  animation: papers-toast-move 6s ease forwards;
}

.notes-page .papers-toast-inner {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 20px;
  background: rgba(15, 11, 6, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  font-family: "Outfit", sans-serif;
  text-align: center;
  will-change: clip-path;
  animation: papers-toast-pop 6s ease forwards;
}

.notes-page .papers-toast-head {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.notes-page .papers-toast-q {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.notes-page .papers-toast-topic {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes papers-toast-pop {
  0% {
    clip-path: circle(6px at 50% 50%);
    opacity: 0;
  }
  8% {
    clip-path: circle(6px at 50% 50%);
    opacity: 1;
  }
  20% {
    clip-path: circle(210px at 50% 50%);
    opacity: 1;
  }
  80% {
    clip-path: circle(210px at 50% 50%);
    opacity: 1;
  }
  90% {
    clip-path: circle(6px at 50% 50%);
    opacity: 1;
  }
  100% {
    clip-path: circle(6px at 50% 50%);
    opacity: 0;
  }
}

@keyframes papers-toast-move {
  0% {
    transform: translate(-50%, -56px);
  }
  10% {
    transform: translate(-50%, 0);
  }
  86% {
    transform: translate(-50%, 0);
  }
  100% {
    transform: translate(-50%, -56px);
  }
}

/* ---------- topic-task capsule (next to the QP/MS toggle, orange theme) ---------- */
.notes-page .pdf-viewer-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.notes-page .pq-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid rgba(232, 163, 23, 0.55);
  border-radius: 999px;
  background: rgba(232, 163, 23, 0.12);
  color: #ffd98a;
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.notes-page .pq-chip:hover {
  border-color: #e8a317;
  background: rgba(232, 163, 23, 0.2);
  color: #ffe4b0;
}

.notes-page .pq-chip.active {
  border-color: #e8a317;
  background: #f7e8c0;
  color: #6b4a1d;
}

.notes-page .pdf-viewer-chips .pq-chip {
  cursor: default;
}
