.paxopedia-right-panel-host {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
}

@media (max-width: 899px) {
  html[saved-theme="light"] .paxopedia-mobile-search-backdrop,
  html[data-theme="light"] .paxopedia-mobile-search-backdrop,
  body.theme-light .paxopedia-mobile-search-backdrop {
    background: rgba(239, 237, 232, 0.12) !important;
    -webkit-backdrop-filter: blur(8px) saturate(90%) brightness(1.02) !important;
    backdrop-filter: blur(8px) saturate(90%) brightness(1.02) !important;
  }

  html[saved-theme="light"] .paxopedia-mobile-search-panel,
  html[data-theme="light"] .paxopedia-mobile-search-panel,
  body.theme-light .paxopedia-mobile-search-panel {
    border-color: rgba(255, 255, 255, 0.72) !important;
    background:
      radial-gradient(circle at 12% -8%, rgba(164, 177, 190, 0.1), transparent 44%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(241, 239, 234, 0.38)) !important;
    -webkit-backdrop-filter: blur(20px) saturate(90%) brightness(1.03) !important;
    backdrop-filter: blur(20px) saturate(90%) brightness(1.03) !important;
    box-shadow:
      0 1.5rem 4rem rgba(34, 40, 47, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  html[saved-theme="light"] .paxopedia-mobile-search-input,
  html[data-theme="light"] .paxopedia-mobile-search-input,
  body.theme-light .paxopedia-mobile-search-input {
    border-color: rgba(77, 88, 100, 0.17) !important;
    background: rgba(255, 255, 255, 0.56) !important;
    color: #20252a !important;
    box-shadow:
      0 0.65rem 1.4rem rgba(38, 44, 50, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  }

  html[saved-theme="light"] .paxopedia-mobile-search-close,
  html[data-theme="light"] .paxopedia-mobile-search-close,
  body.theme-light .paxopedia-mobile-search-close {
    border-color: rgba(77, 88, 100, 0.14) !important;
    background: rgba(255, 255, 255, 0.46) !important;
    color: #2b3035 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  }

  html[saved-theme="light"] .paxopedia-mobile-search-result,
  html[data-theme="light"] .paxopedia-mobile-search-result,
  body.theme-light .paxopedia-mobile-search-result {
    border-color: rgba(77, 88, 100, 0.12) !important;
    background: rgba(255, 255, 255, 0.4) !important;
  }

  html[saved-theme="light"] .paxopedia-mobile-search-input:focus-visible,
  html[data-theme="light"] .paxopedia-mobile-search-input:focus-visible,
  body.theme-light .paxopedia-mobile-search-input:focus-visible {
    border-color: rgba(87, 105, 122, 0.3) !important;
    box-shadow:
      0 0 0 3px rgba(92, 111, 129, 0.08),
      0 0.65rem 1.4rem rgba(38, 44, 50, 0.09) !important;
  }
}

/* Mobile search portal: the Quartz dialog is moved out of the transformed
   sidebar so its backdrop and scroll area cover the complete viewport. */
@media (max-width: 899px) {
  html.paxopedia-mobile-native-search-open,
  body.paxopedia-mobile-native-search-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body > .search.paxopedia-mobile-native-search-host > .search-container.paxopedia-mobile-native-search.active {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: max(0.8rem, env(safe-area-inset-top)) max(0.8rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left)) !important;
    overflow: hidden auto !important;
    box-sizing: border-box !important;
    background: rgba(5, 11, 18, 0.72) !important;
    backdrop-filter: blur(14px) !important;
    contain: none !important;
    overscroll-behavior: contain !important;
  }

  body > .search.paxopedia-mobile-native-search-host > .search-container.paxopedia-mobile-native-search > .search-space {
    position: relative !important;
    width: min(100%, 34rem) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body > .search.paxopedia-mobile-native-search-host > .search-container.paxopedia-mobile-native-search > .search-space > .search-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 3.2rem !important;
    padding: 0.78rem 0.95rem !important;
    border-radius: 1rem !important;
    border: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, rgba(127, 159, 194, 0.32)) 88%, transparent) !important;
    background: var(--paxopedia-theme-surface, var(--light)) !important;
    color: var(--paxopedia-theme-heading, var(--dark)) !important;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.42) !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
  }

  body > .search.paxopedia-mobile-native-search-host > .search-container.paxopedia-mobile-native-search > .search-space > .search-layout.display-results {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 0.75rem !important;
    overflow: visible !important;
    border-radius: 1rem !important;
  }

  body > .search.paxopedia-mobile-native-search-host > .search-container.paxopedia-mobile-native-search .results-container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body > .search.paxopedia-mobile-native-search-host > .search-container.paxopedia-mobile-native-search .preview-container {
    display: none !important;
  }
}

.paxopedia-right-panel-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  margin: 0 0 0.55rem 0;
  padding: 0;
  position: relative;
  z-index: 3;
}

.paxopedia-right-panel-tab {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.22)) 72%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 82%, white 3%), color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 64%, transparent));
  color: color-mix(in srgb, var(--paxopedia-theme-muted, var(--gray)) 88%, var(--paxopedia-theme-heading, var(--dark)) 12%);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 2.05rem;
  padding: 0.48rem 0.65rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0.45rem 1rem rgba(0, 0, 0, 0.035);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.paxopedia-right-panel-tab.is-active {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 84%, white 8%), color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 82%, black 14%));
  border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 70%, white 18%);
  color: #f6fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0.55rem 1.1rem rgba(0, 0, 0, 0.10);
}

.paxopedia-right-panel-tab:not(.is-active):hover {
  border-color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 34%, var(--paxopedia-border, rgba(127, 159, 194, 0.22)));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 88%, white 5%), color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 70%, transparent));
  color: var(--paxopedia-theme-heading, var(--dark));
}

.paxopedia-right-panel-tab:focus,
.paxopedia-right-panel-tab:focus-visible {
  outline: none;
  box-shadow: none;
}

.paxopedia-right-panel-tab.is-active:focus,
.paxopedia-right-panel-tab.is-active:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0.55rem 1.1rem rgba(0, 0, 0, 0.10);
}

.paxopedia-right-panel-tab-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.paxopedia-right-panel-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
}

.paxopedia-right-panel-tab-icon-svg {
  width: 1.16rem;
  height: 1.16rem;
  display: block;
}

.paxopedia-right-panel-tab-label {
  display: inline-block;
  white-space: nowrap;
}

.paxopedia-right-panel-view {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.paxopedia-right-panel-view[hidden] {
  display: none !important;
}

.paxopedia-right-panel-view-sinapses {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.paxopedia-right-panel-view-sinapses > .graph {
  flex: 1 1 auto;
  min-height: 0;
}

.paxopedia-right-panel-view-cenaculo {
  min-height: 0;
  overflow: hidden;
}

.paxopedia-cenaculo-panel {
  --paxopedia-cenaculo-answer-indent: clamp(2.9rem, 7vw, 4.25rem);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 86%, transparent);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 16% -8%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 13%, transparent), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 16%, transparent), transparent 42%),
    var(--paxopedia-theme-background, var(--light));
  color: var(--paxopedia-theme-text, var(--darkgray));
  padding: clamp(0.8rem, 1.7vw, 1.05rem);
  padding-bottom: clamp(0.42rem, 1vw, 0.62rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.paxopedia-cenaculo-kicker {
  display: none;
}

.paxopedia-cenaculo-header {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0.08rem 0.12rem 0.28rem;
  border-bottom: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 48%, transparent);
}

.paxopedia-cenaculo-header h3,
.paxopedia-panel-header-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.16rem 0;
  color: var(--paxopedia-theme-heading, var(--dark));
  font-size: clamp(0.96rem, 1.34vw, 1.08rem);
  line-height: 1.12;
  letter-spacing: -0.026em;
}

.paxopedia-panel-header-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.paxopedia-panel-header-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.56rem;
  height: 1.56rem;
  color: currentColor;
}

.paxopedia-panel-header-title-icon svg {
  width: 100%;
  height: 100%;
}

.paxopedia-panel-header-caption-row {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 34rem;
  color: var(--paxopedia-theme-subtle, var(--gray));
}

.paxopedia-panel-header-caption-text {
  margin: 0;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1.35;
}


.paxopedia-cenaculo-header p,
.paxopedia-cenaculo-message p {
  margin: 0;
  color: var(--paxopedia-theme-muted, var(--darkgray));
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-line;
}

.paxopedia-cenaculo-message > :first-child {
  margin-top: 0;
}

.paxopedia-cenaculo-message > :last-child {
  margin-bottom: 0;
}

.paxopedia-cenaculo-message-user p {
  line-height: 1.45;
}


.paxopedia-cenaculo-message strong {
  color: var(--paxopedia-theme-heading, var(--dark));
  font-weight: 700;
}

.paxopedia-cenaculo-answer-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--paxopedia-theme-muted, var(--darkgray));
  font-size: 0.88rem;
  line-height: 1.5;
}

.paxopedia-cenaculo-answer-list + p,
.paxopedia-cenaculo-answer-list + .paxopedia-cenaculo-answer-list,
.paxopedia-cenaculo-message-answer p + .paxopedia-cenaculo-answer-list {
  margin-top: 0.55rem;
}

.paxopedia-cenaculo-answer-list li + li {
  margin-top: 0.35rem;
}


.paxopedia-cenaculo-header .paxopedia-panel-header-caption-text {
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1.35;
}

.paxopedia-cenaculo-message-answer p + p {
  margin-top: 0.55rem;
}

.paxopedia-cenaculo-citation {
  appearance: none;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 10%, transparent);
  color: var(--paxopedia-theme-link, var(--secondary));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 0.76em;
  font-weight: 760;
  line-height: 1;
  margin: 0 0.08rem;
  padding: 0.08rem 0.28rem;
  vertical-align: 0.06em;
}

.paxopedia-cenaculo-citation:hover,
.paxopedia-cenaculo-citation:focus-visible {
  border-color: var(--paxopedia-theme-link, var(--secondary));
  outline: none;
}

.paxopedia-cenaculo-citation[data-citation-hint]:hover::after,
.paxopedia-cenaculo-citation[data-citation-hint]:focus-visible::after {
  content: attr(data-citation-hint);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.42rem);
  z-index: 50;
  width: max-content;
  max-width: min(18rem, 64vw);
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, var(--paxopedia-border, rgba(127, 159, 194, 0.24))) 88%, transparent);
  border-radius: 0.52rem;
  background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 96%, black 4%);
  color: var(--paxopedia-theme-text, var(--darkgray));
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.28;
  padding: 0.42rem 0.52rem;
  pointer-events: none;
  text-align: left;
  white-space: normal;
}

.paxopedia-cenaculo-citation[data-citation-hint]:hover::before,
.paxopedia-cenaculo-citation[data-citation-hint]:focus-visible::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.19rem);
  z-index: 51;
  width: 0.46rem;
  height: 0.46rem;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, var(--paxopedia-border, rgba(127, 159, 194, 0.24))) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, var(--paxopedia-border, rgba(127, 159, 194, 0.24))) 88%, transparent);
  background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 96%, black 4%);
  pointer-events: none;
}

.paxopedia-cenaculo-suggestions {
  flex: 0 0 auto;
  display: grid;
  gap: 0.45rem;
  transition: opacity 120ms ease, transform 120ms ease;
}

.paxopedia-cenaculo-suggestions.is-hidden,
.paxopedia-cenaculo-suggestions[hidden] {
  display: none !important;
}

.paxopedia-cenaculo-suggestion {
  appearance: none;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.22)) 72%, transparent);
  border-radius: 0.82rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 72%, transparent), color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 58%, transparent));
  color: var(--paxopedia-theme-text, var(--darkgray));
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1.25;
  padding: 0.66rem 0.76rem;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.paxopedia-cenaculo-suggestion:hover,
.paxopedia-cenaculo-suggestion:focus-visible {
  border-color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 52%, var(--paxopedia-border, rgba(127, 159, 194, 0.22)));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 82%, transparent), color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 64%, transparent));
  transform: translateY(-1px);
}

.paxopedia-cenaculo-conversation {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  padding: 0.38rem 0.58rem 0.74rem 0.06rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--paxopedia-explorer-scrollbar, rgba(127, 159, 194, 0.32)) transparent;
}

.paxopedia-cenaculo-conversation:empty::before {
  content: "";
  flex: 1 1 auto;
}

.paxopedia-cenaculo-message {
  max-width: 92%;
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 72%, transparent);
  border-radius: 1.05rem;
  background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 54%, transparent);
  padding: 1.28rem 1.16rem 1.16rem;
  box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.045);
}

.paxopedia-cenaculo-message-user {
  max-width: min(82%, 27rem);
  padding: 0.86rem 1.05rem 0.88rem;
  display: inline-flex;
  align-items: center;
}

.paxopedia-cenaculo-message-answer,
.paxopedia-cenaculo-message-loading,
.paxopedia-cenaculo-message-error {
  width: calc(100% - var(--paxopedia-cenaculo-answer-indent, 2.9rem) - 0.55rem);
  max-width: calc(34rem - var(--paxopedia-cenaculo-answer-indent, 2.9rem));
  margin-left: var(--paxopedia-cenaculo-answer-indent, 2.9rem) !important;
  margin-right: 0.25rem;
  box-sizing: border-box;
}


.paxopedia-cenaculo-message-user {
  align-self: flex-end;
  border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 46%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 23%, var(--paxopedia-theme-background, var(--light)) 77%), color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 16%, var(--paxopedia-theme-background, var(--light)) 84%));
  color: var(--paxopedia-theme-heading, var(--dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.045);
}

.paxopedia-cenaculo-message-answer,
.paxopedia-cenaculo-message-loading,
.paxopedia-cenaculo-message-error {
  align-self: flex-start;
  border-color: color-mix(in srgb, var(--paxopedia-theme-border, var(--paxopedia-border, rgba(127, 159, 194, 0.18))) 78%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 68%, transparent), color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 56%, transparent));
  padding: 1.36rem 1.2rem 1.18rem;
}


[saved-theme="dark"] .paxopedia-cenaculo-message-user {
  border-color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 28%, var(--paxopedia-border, rgba(127, 159, 194, 0.22)));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 52%, var(--paxopedia-theme-surface, var(--lightgray)) 48%), color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 38%, var(--paxopedia-theme-background, var(--light)) 62%));
  color: #f2f7fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), 0 0.65rem 1.35rem rgba(0, 0, 0, 0.12);
}

[saved-theme="light"] .paxopedia-cenaculo-message-user {
  border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 42%, rgba(72, 66, 108, 0.10));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 22%, #ffffff 78%), color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 13%, #ffffff 87%));
  color: color-mix(in srgb, var(--paxopedia-theme-heading, var(--dark)) 90%, var(--paxopedia-theme-link, var(--secondary)) 10%);
}

.paxopedia-cenaculo-message-error {
  border-color: color-mix(in srgb, #d66363 48%, var(--paxopedia-border, rgba(127, 159, 194, 0.18)));
}

.paxopedia-cenaculo-message-label,
.paxopedia-cenaculo-sources-title {
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 48%, var(--paxopedia-theme-muted, var(--darkgray)) 52%);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paxopedia-cenaculo-mode-note {
  margin-top: 0.55rem;
  color: var(--paxopedia-theme-subtle, var(--gray));
  font-size: 0.75rem;
  line-height: 1.35;
}

.paxopedia-cenaculo-sources {
  margin-top: 0.85rem;
}

.paxopedia-cenaculo-sources-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.paxopedia-cenaculo-sources-list li {
  padding-left: 0.1rem;
  color: var(--paxopedia-theme-muted, var(--darkgray));
  font-size: 0.78rem;
  line-height: 1.35;
}

.paxopedia-cenaculo-sources-list li.is-highlighted {
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 12%, transparent);
  outline: 1px solid color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 36%, transparent);
  outline-offset: 0.18rem;
}

.paxopedia-cenaculo-sources-list a {
  color: var(--paxopedia-theme-link, var(--secondary));
  font-weight: 650;
  text-decoration: none;
}

.paxopedia-cenaculo-sources-list a:hover {
  text-decoration: underline;
}

.paxopedia-cenaculo-source-heading {
  margin-top: 0.18rem;
  color: var(--paxopedia-theme-muted, var(--darkgray));
  font-weight: 600;
}

.paxopedia-cenaculo-source-excerpt {
  margin-top: 0.2rem;
  color: var(--paxopedia-theme-subtle, var(--gray));
  font-size: 0.74rem;
}

.paxopedia-cenaculo-form {
  flex: 0 0 auto;
  display: grid;
  gap: 0.36rem;
  margin: 0.05rem -0.08rem -0.22rem;
  padding: 0.5rem 0.08rem 0;
  border-top: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 62%, transparent);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 96%, transparent) 26%);
}

.paxopedia-cenaculo-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.46rem;
  padding: 0.34rem 0.4rem 0.34rem 0.72rem;
  border: 1px solid var(--paxopedia-border, rgba(127, 159, 194, 0.22));
  border-radius: 1rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 76%, transparent), color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 66%, transparent));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0.35rem 1rem rgba(0, 0, 0, 0.03);
}

.paxopedia-cenaculo-input-shell:focus-within {
  border-color: var(--paxopedia-theme-link, var(--secondary));
}

.paxopedia-cenaculo-input {
  width: 100%;
  min-height: 2.25rem;
  max-height: 6rem;
  box-sizing: border-box;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--paxopedia-theme-text, var(--darkgray));
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0.28rem 0.1rem 0.28rem 0;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: var(--paxopedia-explorer-scrollbar, rgba(127, 159, 194, 0.32)) transparent;
}

.paxopedia-cenaculo-input::placeholder {
  color: color-mix(in srgb, var(--paxopedia-theme-muted, var(--darkgray)) 66%, transparent);
  opacity: 1;
}

.paxopedia-cenaculo-input:focus {
  outline: none;
}

.paxopedia-cenaculo-form-footer {
  display: block;
  margin-top: 0.35rem;
}

.paxopedia-cenaculo-status {
  min-height: 0;
  color: color-mix(in srgb, var(--paxopedia-theme-subtle, var(--gray)) 76%, transparent);
  font-size: 0.675rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.paxopedia-cenaculo-submit {
  appearance: none;
  flex: 0 0 auto;
  width: 1.88rem;
  height: 1.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.24)) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 72%, transparent);
  color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 80%, white 10%);
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.paxopedia-cenaculo-submit span {
  transform: translateY(-0.5px);
}

.paxopedia-cenaculo-submit:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 44%, white 12%);
  background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 82%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0.35rem 0.85rem rgba(0, 0, 0, 0.08);
}

.paxopedia-cenaculo-submit:not(:disabled):active {
  transform: translateY(0);
}

.paxopedia-cenaculo-submit:disabled,
.paxopedia-cenaculo-input:disabled {
  cursor: wait;
  opacity: 0.72;
}


.paxopedia-cenaculo-conversation::-webkit-scrollbar,
.paxopedia-cenaculo-input::-webkit-scrollbar {
  width: 0.42rem;
}

.paxopedia-cenaculo-conversation::-webkit-scrollbar-track,
.paxopedia-cenaculo-input::-webkit-scrollbar-track {
  background: transparent;
}

.paxopedia-cenaculo-conversation::-webkit-scrollbar-thumb,
.paxopedia-cenaculo-input::-webkit-scrollbar-thumb {
  background: var(--paxopedia-explorer-scrollbar, rgba(127, 159, 194, 0.24));
  border-radius: 999px;
}

.paxopedia-cenaculo-message-loading {
  display: flex;
  align-items: center;
  min-height: 5.25rem;
}

.paxopedia-cenaculo-loading-row {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  max-width: 100%;
  color: color-mix(in srgb, var(--paxopedia-theme-muted, var(--darkgray)) 88%, var(--paxopedia-theme-text, var(--darkgray)) 12%);
  font-size: 0.88rem;
  line-height: 1.4;
}

.paxopedia-cenaculo-loading-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paxopedia-cenaculo-loader {
  --color-1: currentColor;
  --size: 0.34px;
  width: calc(32 * var(--size));
  height: calc(32 * var(--size));
  position: relative;
  flex: 0 0 auto;
  margin-inline: calc(50 * var(--size));
  border-radius: 50%;
  color: var(--color-1);
  opacity: 0.78;
  animation: paxopedia-cenaculo-loader-fill 1s ease-in infinite alternate;
}

.paxopedia-cenaculo-loader::before,
.paxopedia-cenaculo-loader::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  left: calc(48 * var(--size));
  top: 0;
  animation: paxopedia-cenaculo-loader-fill 0.9s ease-in infinite alternate;
}

.paxopedia-cenaculo-loader::after {
  left: auto;
  right: calc(48 * var(--size));
  animation-duration: 1.1s;
}


[saved-theme="dark"] .paxopedia-cenaculo-loading-row {
  color: rgba(205, 220, 236, 0.72);
}

[saved-theme="light"] .paxopedia-cenaculo-loading-row {
  color: rgba(93, 97, 118, 0.82);
}

@keyframes paxopedia-cenaculo-loader-fill {
  0% {
    box-shadow: 0 0 0 calc(2 * var(--size)) inset;
  }
  100% {
    box-shadow: 0 0 0 calc(10 * var(--size)) inset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paxopedia-cenaculo-loader,
  .paxopedia-cenaculo-loader::before,
  .paxopedia-cenaculo-loader::after {
    animation-duration: 1.8s;
  }
}

@media (max-width: 1100px) {
  .paxopedia-cenaculo-form-footer {
    grid-template-columns: 1fr;
  }

  .paxopedia-cenaculo-actions {
    justify-content: flex-end;
  }
}

/* v0.5.101: when Cenáculo is active, the persistent graph portal must not remain visible/interactable behind the panel. */

@media (max-width: 720px) {
  .paxopedia-cenaculo-panel {
    --paxopedia-cenaculo-answer-indent: clamp(1.7rem, 8vw, 2.35rem);
  }

  .paxopedia-cenaculo-message-answer,
  .paxopedia-cenaculo-message-loading,
  .paxopedia-cenaculo-message-error {
    width: calc(100% - var(--paxopedia-cenaculo-answer-indent, 1.7rem) - 0.35rem);
    max-width: none;
  }
}

body.paxopedia-right-panel-cenaculo-active #paxopedia-local-graph-portal,
body.paxopedia-right-panel-cenaculo-active .paxopedia-local-graph-portal,
html.paxopedia-right-panel-cenaculo-active #paxopedia-local-graph-portal,
html.paxopedia-right-panel-cenaculo-active .paxopedia-local-graph-portal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.paxopedia-right-panel-host.is-cenaculo-active .paxopedia-right-panel-view-sinapses,
.paxopedia-right-panel-host.is-cenaculo-active .paxopedia-right-panel-view-sinapses .graph,
.paxopedia-right-panel-host.is-cenaculo-active .paxopedia-right-panel-view-sinapses .graph-outer,
.paxopedia-right-panel-host.is-cenaculo-active .paxopedia-right-panel-view-sinapses .graph-container,
.paxopedia-right-panel-host.is-cenaculo-active .paxopedia-right-panel-view-sinapses canvas {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* v0.5.106: reserve the Sinapses/Cenáculo tab row before JS wraps the graph, avoiding the visible first-load jump. */
:root {
  --paxopedia-right-panel-tabs-space: 2.65rem;
}

@media (min-width: 900px) {
  body #quartz-body .sidebar.right:not(.paxopedia-right-panel-ready) > .graph,
  body #quartz-body .right.sidebar:not(.paxopedia-right-panel-ready) > .graph,
  body .page #quartz-body .sidebar.right:not(.paxopedia-right-panel-ready) > .graph,
  body .page #quartz-body .right.sidebar:not(.paxopedia-right-panel-ready) > .graph {
    margin-top: var(--paxopedia-right-panel-tabs-space) !important;
  }

  .paxopedia-right-panel-view-sinapses > .graph {
    margin-top: 0 !important;
  }
}

/* v0.5.142: robust chat bubble geometry. Keep assistant indentation on the bubble itself, not on inner text. */
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
  align-self: stretch !important;
  width: auto !important;
  max-width: none !important;
  margin-left: clamp(2.45rem, 11.5%, 4.4rem) !important;
  margin-right: 0.22rem !important;
  padding: 1.52rem 1.28rem 1.34rem !important;
  box-sizing: border-box !important;
}

.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-user {
  padding: 0.92rem 1.08rem 0.94rem !important;
}

.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message > p:first-child {
  margin-top: 0 !important;
}

@media (max-width: 720px) {
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
    margin-left: clamp(1.45rem, 7.5vw, 2.3rem) !important;
    margin-right: 0.1rem !important;
    padding: 1.38rem 1.06rem 1.18rem !important;
  }
}

/* v0.5.142: UTF-8 vault packaging fix, tab icons retained. */
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
  align-self: stretch !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 1.45rem !important;
  margin-right: 0.25rem !important;
  padding: 1.72rem 1.28rem 1.28rem !important;
  box-sizing: border-box !important;
}

.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="user"],
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-user {
  padding: 0.92rem 1.08rem 0.94rem !important;
}

.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message > p:first-child {
  margin-top: 0 !important;
}

@media (max-width: 720px) {
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
    margin-left: 1rem !important;
    margin-right: 0.1rem !important;
    padding: 1.52rem 1.06rem 1.16rem !important;
  }
}

/* v0.5.152: Cronologia shared-axis layout and scroll persistence refinements. */
.paxopedia-right-panel-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.paxopedia-right-panel-tabs .paxopedia-right-panel-tab {
  min-width: 0;
  padding-left: 0.42rem;
  padding-right: 0.42rem;
}

.paxopedia-right-panel-tabs .paxopedia-right-panel-tab-inner {
  gap: 0.3rem;
}

.paxopedia-right-panel-tabs .paxopedia-right-panel-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paxopedia-right-panel-view-timeline {
  min-height: 0;
  overflow: hidden;
}

.paxopedia-timeline-panel {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 86%, transparent);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 18% -8%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 11%, transparent), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 16%, transparent), transparent 46%),
    var(--paxopedia-theme-background, var(--light));
  color: var(--paxopedia-theme-text, var(--darkgray));
  padding: clamp(0.8rem, 1.7vw, 1.05rem);
  padding-bottom: clamp(0.42rem, 1vw, 0.62rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  overflow: hidden;
}

.paxopedia-timeline-header {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.65rem;
  row-gap: 0.18rem;
  align-items: center;
  overflow: hidden;
  padding: 0.08rem 0.12rem 0.32rem;
  border-bottom: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 48%, transparent);
}

.paxopedia-timeline-header h3 {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.paxopedia-timeline-header .paxopedia-panel-header-caption-row {
  grid-column: 1 / -1;
  grid-row: 2;
}

.paxopedia-timeline-header .paxopedia-panel-header-caption-text {
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1.35;
}

.paxopedia-timeline-search {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  height: 2.35rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.44rem;
  padding: 0 0.34rem 0 0.72rem;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.22)) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 40%, transparent);
  color: var(--paxopedia-theme-muted, var(--gray));
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.paxopedia-timeline-search:focus-within {
  border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 62%, var(--paxopedia-border, rgba(127, 159, 194, 0.22)) 38%);
  background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 64%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 15%, transparent);
}

.paxopedia-timeline-search-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.paxopedia-timeline-search-input {
  appearance: none;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paxopedia-theme-heading, var(--dark));
  font: inherit;
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1;
}

.paxopedia-timeline-search-input::placeholder {
  color: var(--paxopedia-theme-muted, var(--gray));
  opacity: 0.82;
}

.paxopedia-timeline-search-input::-webkit-search-cancel-button {
  display: none;
}

.paxopedia-timeline-search-clear {
  appearance: none;
  width: 1.68rem;
  height: 1.68rem;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0 0 0.08rem;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paxopedia-theme-muted, var(--gray)) 14%, transparent);
  color: var(--paxopedia-theme-heading, var(--dark));
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.paxopedia-timeline-search-clear:hover,
.paxopedia-timeline-search-clear:focus-visible {
  background: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 22%, transparent);
  outline: none;
}

.paxopedia-timeline-search-clear[hidden] {
  display: none !important;
}

.paxopedia-timeline-meta {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.32rem;
  margin: 0;
}

.paxopedia-timeline-count {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 8%, transparent);
  color: var(--paxopedia-theme-link, var(--secondary));
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1;
  padding: 0.22rem 0.44rem;
}

.paxopedia-timeline-scroller {
  --paxopedia-timeline-gutter: 2.25rem;
  --paxopedia-timeline-axis-x: calc((var(--paxopedia-timeline-gutter) / 2) - 4px);
  --paxopedia-timeline-content-x: 2.25rem;
  --paxopedia-timeline-dot-size: 10px;
  --paxopedia-timeline-dot-offset: 1.34rem;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.18rem 0.18rem 1rem 0;
}

.paxopedia-timeline-line {
  position: absolute;
  left: var(--paxopedia-timeline-axis-x);
  top: 0;
  width: 2px;
  height: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.42)) 92%, transparent);
  border-radius: 999px;
  pointer-events: none;
  transform: translateX(-50%);
}

.paxopedia-timeline-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 96%, white 4%), color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 86%, white 4%));
  border-radius: inherit;
  box-shadow: 0 0 0.75rem color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 48%, transparent);
  will-change: height;
}

.paxopedia-timeline-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.44rem;
  padding: 0.1rem 0 0.55rem 0;
}

.paxopedia-timeline-period {
  margin: 0.72rem 0 0.24rem;
  padding-left: var(--paxopedia-timeline-content-x);
  color: color-mix(in srgb, var(--paxopedia-theme-muted, var(--gray)) 82%, var(--paxopedia-theme-heading, var(--dark)) 18%);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.paxopedia-timeline-period:first-child {
  margin-top: 0.2rem;
}

.paxopedia-timeline-event {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  font-weight: 450;
  border: 1px solid transparent;
  border-radius: 0.86rem;
  padding: 0.62rem 0.68rem 0.64rem var(--paxopedia-timeline-content-x);
  background: transparent;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.paxopedia-timeline-event[href] {
  cursor: pointer;
}

.paxopedia-timeline-event[href]:not(.is-selected):hover,
.paxopedia-timeline-event[href]:not(.is-selected):focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.paxopedia-timeline-event[href]:not(.is-selected):hover .paxopedia-timeline-event-body,
.paxopedia-timeline-event[href]:not(.is-selected):focus-visible .paxopedia-timeline-event-body {
  transform: translateX(2px);
}

.paxopedia-timeline-event[href]:not(.is-selected):hover .paxopedia-timeline-date,
.paxopedia-timeline-event[href]:not(.is-selected):focus-visible .paxopedia-timeline-date,
.paxopedia-timeline-event[href]:not(.is-selected):hover .paxopedia-timeline-title,
.paxopedia-timeline-event[href]:not(.is-selected):focus-visible .paxopedia-timeline-title {
  color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 72%, var(--paxopedia-theme-heading, var(--dark)) 28%);
}

.paxopedia-timeline-event.is-selected {
  background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 54%, transparent);
  border-color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 40%, transparent);
  box-shadow: 0 0.75rem 1.35rem rgba(0, 0, 0, 0.07);
  outline: none;
}

.paxopedia-timeline-event[href]:active {
  transform: translateY(1px);
}

.paxopedia-timeline-event[href]:not(.is-selected):hover .paxopedia-timeline-dot,
.paxopedia-timeline-event[href]:not(.is-selected):focus-visible .paxopedia-timeline-dot {
  border-color: color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 70%, white 4%);
  box-shadow: 0 0 0.45rem color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 18%, transparent);
}

.paxopedia-timeline-dot {
  position: absolute;
  z-index: 3;
  left: var(--paxopedia-timeline-axis-x);
  top: calc(var(--paxopedia-timeline-dot-offset) - (var(--paxopedia-timeline-dot-size) / 2));
  width: var(--paxopedia-timeline-dot-size);
  height: var(--paxopedia-timeline-dot-size);
  box-sizing: border-box;
  border-radius: 999px;
  border: 1.2px solid color-mix(in srgb, var(--paxopedia-theme-link, var(--secondary)) 44%, var(--paxopedia-border, rgba(127, 159, 194, 0.42)) 56%);
  background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 88%, var(--paxopedia-theme-link, var(--secondary)) 12%);
  box-shadow: none;
  transform: translateX(-50%);
  transition: border-color 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms ease, box-shadow 220ms ease;
}

.paxopedia-timeline-dot::after {
  content: "";
  position: absolute;
  inset: 1.25px;
  border-radius: inherit;
  background: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 96%, white 4%);
  transform: scale(0);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.paxopedia-timeline-event.is-active .paxopedia-timeline-dot {
  border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 84%, white 4%);
  background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 72%, var(--paxopedia-accent, var(--tertiary)) 28%);
}

.paxopedia-timeline-event.is-active .paxopedia-timeline-dot::after {
  transform: scale(1);
  opacity: 1;
}

.paxopedia-timeline-event.is-selected .paxopedia-timeline-dot {
  transform: translateX(-50%) scale(1.1);
  border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 88%, white 4%);
  background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 64%, var(--paxopedia-accent, var(--tertiary)) 36%);
}

.paxopedia-timeline-event.is-selected .paxopedia-timeline-dot::after {
  inset: 1px;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0.65rem color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 34%, transparent);
}

.paxopedia-timeline-event-body {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
  transition: transform 140ms ease;
}

.paxopedia-timeline-event-topline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.paxopedia-timeline-date {
  flex: 0 0 auto;
  color: var(--paxopedia-theme-heading, var(--dark));
  font-size: 0.98rem;
  font-weight: 860;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.paxopedia-timeline-category {
  min-width: 0;
  color: var(--paxopedia-theme-subtle, var(--gray));
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paxopedia-timeline-title {
  color: var(--paxopedia-theme-text, var(--darkgray));
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.34;
}

.paxopedia-timeline-status {
  border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.22)) 68%, transparent);
  border-radius: 0.9rem;
  color: var(--paxopedia-theme-muted, var(--darkgray));
  background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 42%, transparent);
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 0.75rem 0.82rem;
}

.paxopedia-timeline-scroller::-webkit-scrollbar {
  width: 0.42rem;
}

.paxopedia-timeline-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.paxopedia-timeline-scroller::-webkit-scrollbar-thumb {
  background: var(--paxopedia-explorer-scrollbar, rgba(127, 159, 194, 0.24));
  border-radius: 999px;
}

body.paxopedia-right-panel-graph-suspended #paxopedia-local-graph-portal,
body.paxopedia-right-panel-graph-suspended .paxopedia-local-graph-portal,
html.paxopedia-right-panel-graph-suspended #paxopedia-local-graph-portal,
html.paxopedia-right-panel-graph-suspended .paxopedia-local-graph-portal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.paxopedia-right-panel-host.is-timeline-active .paxopedia-right-panel-view-sinapses,
.paxopedia-right-panel-host.is-timeline-active .paxopedia-right-panel-view-sinapses .graph,
.paxopedia-right-panel-host.is-timeline-active .paxopedia-right-panel-view-sinapses .graph-outer,
.paxopedia-right-panel-host.is-timeline-active .paxopedia-right-panel-view-sinapses .graph-container,
.paxopedia-right-panel-host.is-timeline-active .paxopedia-right-panel-view-sinapses canvas {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1160px) {
  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab {
    font-size: 0.7rem;
  }
}


/* v0.5.202: UI uplift, calmer Cenáculo surfaces, stronger light-mode separation, quieter scrollbars and improved loading state legibility. */
.paxopedia-cenaculo-panel,
.paxopedia-timeline-panel {
  border-color: color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 74%, transparent);
  box-shadow: 0 1.1rem 2.15rem rgba(0, 0, 0, 0.075);
}

.paxopedia-cenaculo-conversation {
  padding-right: 0.46rem;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.paxopedia-cenaculo-conversation:hover,
.paxopedia-cenaculo-conversation:focus-within,
.paxopedia-cenaculo-input:hover,
.paxopedia-cenaculo-input:focus {
  scrollbar-color: color-mix(in srgb, var(--paxopedia-explorer-scrollbar, rgba(127, 159, 194, 0.28)) 58%, transparent) transparent;
}

.paxopedia-cenaculo-conversation::-webkit-scrollbar,
.paxopedia-cenaculo-input::-webkit-scrollbar {
  width: 0.34rem;
}

.paxopedia-cenaculo-conversation::-webkit-scrollbar-thumb,
.paxopedia-cenaculo-input::-webkit-scrollbar-thumb {
  background: transparent;
}

.paxopedia-cenaculo-conversation:hover::-webkit-scrollbar-thumb,
.paxopedia-cenaculo-conversation:focus-within::-webkit-scrollbar-thumb,
.paxopedia-cenaculo-input:hover::-webkit-scrollbar-thumb,
.paxopedia-cenaculo-input:focus::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--paxopedia-explorer-scrollbar, rgba(127, 159, 194, 0.28)) 58%, transparent);
}

.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
  border-color: color-mix(in srgb, var(--paxopedia-theme-border, var(--paxopedia-border, rgba(127, 159, 194, 0.18))) 58%, transparent) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 48%, transparent), color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 34%, transparent)) !important;
  box-shadow: none !important;
}

[saved-theme="dark"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
[saved-theme="dark"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
[saved-theme="dark"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
[saved-theme="dark"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
  background:
    linear-gradient(180deg, rgba(34, 47, 62, 0.58), rgba(31, 43, 58, 0.42)) !important;
  border-color: rgba(140, 174, 211, 0.14) !important;
}

[saved-theme="light"] .paxopedia-right-panel-tab {
  border-color: rgba(91, 99, 125, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 241, 236, 0.76));
  box-shadow: 0 0.55rem 1.2rem rgba(42, 47, 58, 0.045);
}

[saved-theme="light"] .paxopedia-right-panel-tab.is-active {
  border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 62%, rgba(91, 99, 125, 0.18));
  box-shadow: 0 0.68rem 1.28rem rgba(72, 66, 108, 0.12);
}

[saved-theme="light"] .paxopedia-cenaculo-panel,
[saved-theme="light"] .paxopedia-timeline-panel {
  border-color: rgba(91, 99, 125, 0.16);
  background:
    radial-gradient(circle at 14% -8%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 12%, transparent), transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 244, 239, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 1.15rem 2.55rem rgba(42, 47, 58, 0.085);
}

[saved-theme="light"] .paxopedia-cenaculo-header {
  border-bottom-color: rgba(91, 99, 125, 0.13);
}

[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
  border-color: rgba(91, 99, 125, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 245, 240, 0.58)) !important;
}

[saved-theme="light"] .paxopedia-cenaculo-input-shell {
  border-color: rgba(91, 99, 125, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 244, 239, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 0.42rem 1rem rgba(42, 47, 58, 0.055);
}

[saved-theme="light"] .paxopedia-cenaculo-form {
  border-top-color: rgba(91, 99, 125, 0.12);
}

/* v0.5.201: light-mode lavender pass for right tabs and Cenáculo surfaces. */
[saved-theme="light"] .paxopedia-right-panel-tab.is-active {
  color: #332f4f !important;
  border-color: rgba(145, 136, 190, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(239, 236, 252, 0.94), rgba(224, 219, 246, 0.78)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 0.62rem 1.25rem rgba(78, 68, 126, 0.12),
    0 0 0 1px rgba(171, 160, 218, 0.16) !important;
}

[saved-theme="light"] .paxopedia-right-panel-tab.is-active .paxopedia-right-panel-tab-label,
[saved-theme="light"] .paxopedia-right-panel-tab.is-active .paxopedia-right-panel-tab-icon,
[saved-theme="light"] .paxopedia-right-panel-tab.is-active .paxopedia-right-panel-tab-icon-svg {
  color: #332f4f !important;
  opacity: 1 !important;
}

[saved-theme="light"] .paxopedia-right-panel-tab.is-active svg {
  stroke: #332f4f !important;
  color: #332f4f !important;
}

[saved-theme="light"] .paxopedia-cenaculo-panel,
[saved-theme="light"] .paxopedia-timeline-panel {
  border-color: rgba(122, 111, 166, 0.22) !important;
  background:
    radial-gradient(circle at 15% -10%, rgba(186, 182, 221, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(249, 248, 244, 0.94), rgba(241, 239, 234, 0.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 1.05rem 2.25rem rgba(50, 45, 74, 0.085) !important;
}

[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
[saved-theme="light"] .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
  border-color: rgba(91, 99, 125, 0.18) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.91), rgba(245, 243, 238, 0.76)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0.5rem 1.1rem rgba(42, 47, 58, 0.045) !important;
}

[saved-theme="light"] .paxopedia-cenaculo-message-user {
  color: #332f4f !important;
  border-color: rgba(145, 136, 190, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(241, 238, 252, 0.96), rgba(228, 223, 247, 0.84)) !important;
}

[saved-theme="light"] .paxopedia-cenaculo-input-shell {
  border-color: rgba(91, 99, 125, 0.20) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 242, 237, 0.88)) !important;
}

/* v0.5.218: force true vertical centering for Cenáculo loading bubbles. */
.paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading {
  display: grid !important;
  place-items: center start !important;
  min-height: 6.4rem !important;
  padding-block: 0 !important;
}

.paxopedia-right-panel-host .paxopedia-cenaculo-message-loading .paxopedia-cenaculo-loading-row {
  align-self: center !important;
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}



/* v0.5.221: primeira ronda mobile. Mantém o desktop intacto e dá espaço real às tabs, ao Mapa, à Cronologia e ao Cenáculo em ecrãs pequenos. */
@media (max-width: 899px) {
  body #quartz-body .sidebar.right,
  body #quartz-body .right.sidebar,
  body .page #quartz-body .sidebar.right,
  body .page #quartz-body .right.sidebar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0.85rem 0 1.35rem !important;
    overflow: visible !important;
  }

  body #quartz-body .sidebar.right > *,
  body #quartz-body .right.sidebar > *,
  body .page #quartz-body .sidebar.right > *,
  body .page #quartz-body .right.sidebar > * {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    min-width: 0 !important;
  }

  body #quartz-body .sidebar.right > .toc,
  body #quartz-body .right.sidebar > .toc,
  body .page #quartz-body .sidebar.right > .toc,
  body .page #quartz-body .right.sidebar > .toc {
    display: none !important;
  }

  .paxopedia-right-panel-host {
    height: auto;
    min-height: 0;
    max-height: none;
    gap: 0;
  }

  .paxopedia-right-panel-tabs {
    position: sticky;
    top: 0.35rem;
    z-index: 40;
    gap: 0.24rem;
    margin-bottom: 0.48rem;
    padding: 0.2rem;
    border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 62%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 88%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 0.65rem 1.2rem rgba(0, 0, 0, 0.08);
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab {
    min-height: 2.45rem;
    padding: 0.5rem 0.32rem;
    font-size: 0.72rem;
    border-radius: 999px;
    touch-action: manipulation;
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab-inner {
    gap: 0.22rem;
  }

  .paxopedia-right-panel-tab-icon-svg {
    width: 1rem;
    height: 1rem;
  }

  .paxopedia-right-panel-view {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .paxopedia-right-panel-view-sinapses > .graph {
    width: 100% !important;
    height: clamp(18rem, 58dvh, 29rem) !important;
    min-height: 18rem !important;
    max-height: 29rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .paxopedia-right-panel-view-sinapses > .graph > h3 {
    flex: 0 0 auto !important;
    min-height: 1.85rem !important;
    margin-bottom: 0.35rem !important;
    padding-inline: 0.35rem !important;
    text-align: left !important;
  }

  .paxopedia-right-panel-view-sinapses > .graph > h3::before {
    font-size: 0.9rem !important;
  }

  .paxopedia-right-panel-view-sinapses .graph-outer,
  .paxopedia-right-panel-view-sinapses .graph-container {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: 0.95rem !important;
  }

  .paxopedia-right-panel-view-sinapses .graph-container canvas {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: fill !important;
  }

  .paxopedia-cenaculo-panel,
  .paxopedia-timeline-panel {
    height: min(74dvh, 40rem);
    min-height: 31rem;
    max-height: 40rem;
    border-radius: 1rem;
    padding: clamp(0.64rem, 2.6vw, 0.9rem);
    padding-bottom: 0.46rem;
    box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.08);
  }

  .paxopedia-cenaculo-header,
  .paxopedia-timeline-header {
    padding: 0.02rem 0.06rem 0.26rem;
  }

  .paxopedia-panel-header-title,
  .paxopedia-timeline-header h3 {
    font-size: 0.98rem;
  }

  .paxopedia-panel-header-caption-text,
  .paxopedia-timeline-caption {
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .paxopedia-cenaculo-suggestions {
    gap: 0.34rem;
    max-height: 7.6rem;
    overflow: auto;
    padding-right: 0.08rem;
  }

  .paxopedia-cenaculo-suggestion {
    min-height: 2.32rem;
    padding: 0.52rem 0.68rem;
    font-size: 0.76rem;
    line-height: 1.24;
    touch-action: manipulation;
  }

  .paxopedia-cenaculo-conversation {
    gap: 0.52rem;
    padding: 0.32rem 0.18rem 0.62rem 0;
    scrollbar-gutter: auto;
    overscroll-behavior: contain;
  }

  .paxopedia-cenaculo-message {
    max-width: 100%;
    border-radius: 0.9rem;
  }

  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
    margin-left: clamp(0.55rem, 3.8vw, 1.1rem) !important;
    margin-right: 0.06rem !important;
  }

  .paxopedia-cenaculo-message p,
  .paxopedia-cenaculo-answer-list {
    font-size: 0.86rem;
    line-height: 1.47;
  }

  .paxopedia-cenaculo-form {
    gap: 0.38rem;
    padding-top: 0.5rem;
  }

  .paxopedia-cenaculo-input-shell {
    min-height: 3.15rem;
    border-radius: 0.95rem;
    padding: 0.34rem 0.42rem 0.34rem 0.72rem;
  }

  .paxopedia-cenaculo-input {
    min-height: 2.35rem;
    max-height: 7.5rem;
    font-size: 1rem;
    line-height: 1.34;
  }

  .paxopedia-cenaculo-submit {
    width: 2.42rem;
    min-width: 2.42rem;
    height: 2.42rem;
    min-height: 2.42rem;
    touch-action: manipulation;
  }

  .paxopedia-cenaculo-form-footer {
    display: block;
    padding-inline: 0.12rem;
  }

  .paxopedia-cenaculo-status {
    width: 100%;
    text-align: center;
    font-size: 0.66rem;
    line-height: 1.25;
    opacity: 0.72;
  }

  .paxopedia-cenaculo-citation[data-citation-hint]:hover::after,
  .paxopedia-cenaculo-citation[data-citation-hint]:focus-visible::after,
  .paxopedia-cenaculo-citation[data-citation-hint]:hover::before,
  .paxopedia-cenaculo-citation[data-citation-hint]:focus-visible::before {
    display: none;
  }

  .paxopedia-timeline-scroller {
    --paxopedia-timeline-gutter: 1.85rem;
    --paxopedia-timeline-content-x: 1.88rem;
    --paxopedia-timeline-dot-size: 9px;
    padding-right: 0.05rem;
  }

  .paxopedia-timeline-event {
    padding: 0.56rem 0.48rem 0.58rem var(--paxopedia-timeline-content-x);
  }

  .paxopedia-timeline-date {
    font-size: 0.98rem;
  }

  .paxopedia-timeline-title {
    font-size: 0.84rem;
    line-height: 1.32;
  }
}

@media (max-width: 420px) {
  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab {
    font-size: 0.68rem;
    padding-inline: 0.18rem;
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab-inner {
    gap: 0.16rem;
  }

  .paxopedia-right-panel-tab-icon-svg {
    width: 0.92rem;
    height: 0.92rem;
  }

  .paxopedia-cenaculo-panel,
  .paxopedia-timeline-panel {
    min-height: 29rem;
    height: min(76dvh, 38rem);
  }
}


/* v0.5.221: segunda ronda mobile. O painel passa a comportar-se como secção móvel,
   com tabs sempre tocáveis e vistas com altura contida. */
@media (max-width: 899px) {
  .paxopedia-right-panel-host {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    padding: 0;
    contain: layout paint;
  }

  .paxopedia-right-panel-tabs {
    top: calc(var(--paxopedia-mobile-appbar-offset, 4.45rem) + 0.35rem);
    margin: 0 0 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 1rem;
    padding: 0.22rem;
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab {
    min-height: 2.64rem;
    font-size: 0.72rem;
    line-height: 1;
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab-inner {
    flex-direction: column;
    gap: 0.18rem;
  }

  .paxopedia-right-panel-tab-icon-svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .paxopedia-right-panel-view {
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .paxopedia-right-panel-view-sinapses > .graph {
    height: clamp(17.5rem, 46dvh, 24rem) !important;
    min-height: 17.5rem !important;
    max-height: 24rem !important;
    border-radius: 1rem !important;
  }

  .paxopedia-right-panel-view-sinapses .graph-outer,
  .paxopedia-right-panel-view-sinapses .graph-container {
    border-radius: 1rem !important;
  }

  .paxopedia-cenaculo-panel,
  .paxopedia-timeline-panel {
    width: 100%;
    min-width: 0;
    height: clamp(29rem, 68dvh, 36rem);
    min-height: 29rem;
    max-height: 36rem;
  }

  .paxopedia-cenaculo-panel {
    --paxopedia-cenaculo-answer-indent: clamp(0.4rem, 2.8vw, 0.9rem);
  }

  .paxopedia-cenaculo-header {
    flex: 0 0 auto;
  }

  .paxopedia-cenaculo-suggestions {
    flex: 0 0 auto;
    max-height: 6.75rem;
  }

  .paxopedia-cenaculo-conversation {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding-right: 0.12rem;
  }

  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message[data-cenaculo-bubble="assistant"],
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-answer,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-loading,
  .paxopedia-right-panel-host .paxopedia-cenaculo-conversation > article.paxopedia-cenaculo-message.paxopedia-cenaculo-message-error {
    margin-left: clamp(0.32rem, 2.8vw, 0.82rem) !important;
    margin-right: 0 !important;
  }

  .paxopedia-cenaculo-message-user {
    max-width: min(92%, 28rem) !important;
  }

  .paxopedia-cenaculo-input-shell {
    min-height: 3.35rem;
  }

  .paxopedia-cenaculo-input {
    font-size: 1rem;
  }

  .paxopedia-cenaculo-status {
    font-size: 0.64rem;
  }
}

@media (max-width: 380px) {
  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab-label {
    font-size: 0.66rem;
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab-icon-svg {
    width: 0.98rem;
    height: 0.98rem;
  }

  .paxopedia-cenaculo-panel,
  .paxopedia-timeline-panel {
    height: clamp(28rem, 66dvh, 35rem);
    min-height: 28rem;
  }
}

/* v0.5.223: mobile content-first tools overlay.
   No mobile, Mapa/Cronologia/Cenáculo deixam de ocupar espaço no artigo.
   A página mantém a leitura principal e abre cada ferramenta como overlay dedicado. */
.paxopedia-mobile-tools-overlay-header,
.paxopedia-mobile-tools-bar,
.paxopedia-mobile-cenaculo-fab {
  display: none;
}

.paxopedia-mobile-timeline-shortcut {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

a.paxopedia-timeline-content-shortcut {
  cursor: pointer;
}

a.paxopedia-timeline-content-shortcut:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 72%, transparent);
  outline-offset: 3px;
}

@media (max-width: 899px) {
  body.paxopedia-mobile-tools-open,
  html.paxopedia-mobile-tools-open {
    overflow: hidden !important;
  }

  .paxopedia-mobile-tools-bar {
    display: none !important;
  }

  .paxopedia-mobile-cenaculo-fab {
    position: fixed;
    right: max(1.05rem, env(safe-area-inset-right));
    bottom: max(1.05rem, env(safe-area-inset-bottom));
    z-index: 760;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.76rem;
    height: 3.76rem;
    min-width: 3.76rem;
    min-height: 3.76rem;
    padding: 0;
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.22)) 58%, var(--paxopedia-accent, var(--tertiary)) 42%);
    border-radius: 999px;
    background:
      radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 16%, transparent), transparent 55%),
      color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 82%, var(--paxopedia-theme-background, var(--light)) 18%);
    color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 78%, white 22%);
    box-shadow:
      0 0.7rem 1.45rem rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(16px);
    box-sizing: border-box;
    touch-action: manipulation;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease, box-shadow 160ms ease;
  }

  .paxopedia-mobile-cenaculo-fab:hover,
  .paxopedia-mobile-cenaculo-fab:focus-visible {
    transform: translateY(-1px);
    box-shadow:
      0 0.95rem 1.7rem rgba(0, 0, 0, 0.34),
      0 0 0 1px color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 22%, transparent) inset;
    outline: none;
  }

  .paxopedia-mobile-cenaculo-fab-icon,
  .paxopedia-mobile-cenaculo-fab-icon svg {
    display: block;
    width: 2.08rem;
    height: 2.08rem;
  }

  .paxopedia-mobile-cenaculo-fab-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-mobile-cenaculo-fab,
  html.paxopedia-mobile-tools-open .paxopedia-mobile-cenaculo-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.55rem) scale(0.94);
  }

  .paxopedia-mobile-tools-button {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.22)) 70%, transparent);
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 72%, var(--paxopedia-theme-surface, var(--lightgray)) 28%);
    color: color-mix(in srgb, var(--paxopedia-theme-muted, var(--gray)) 72%, var(--paxopedia-theme-heading, var(--dark)) 28%);
    min-width: 0;
    min-height: 3rem;
    padding: 0.38rem 0.2rem 0.34rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    font: inherit;
    font-size: 0.69rem;
    font-weight: 760;
    line-height: 1;
    letter-spacing: -0.01em;
    touch-action: manipulation;
  }

  .paxopedia-mobile-tools-button.is-active {
    color: #f7fbff;
    border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 76%, white 12%);
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 82%, white 8%), color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 82%, black 14%));
  }

  .paxopedia-mobile-tools-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
  }

  .paxopedia-mobile-tools-icon svg {
    width: 1.16rem;
    height: 1.16rem;
    display: block;
  }

  .paxopedia-mobile-tools-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .paxopedia-right-panel-host {
    position: fixed !important;
    inset: 0 !important;
    z-index: 850 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: calc(env(safe-area-inset-top) + 0.7rem) 0 calc(env(safe-area-inset-bottom) + 0.75rem) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
      radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 13%, transparent), transparent 38%),
      linear-gradient(180deg, color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 98%, transparent), color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 94%, black 4%));
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition: opacity 160ms ease, transform 180ms ease, visibility 160ms ease;
    contain: strict;
    overflow: hidden !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-right-panel-host,
  html.paxopedia-mobile-tools-open .paxopedia-right-panel-host {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .paxopedia-mobile-tools-overlay-header {
    flex: 0 0 auto;
    min-height: 2.72rem;
    padding: 0 0.85rem 0.55rem;
    display: grid;
    grid-template-columns: minmax(4.75rem, 1fr) minmax(0, auto) minmax(4.75rem, 1fr);
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 58%, transparent);
  }

  .paxopedia-mobile-tools-close {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.2)) 70%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 52%, transparent);
    color: var(--paxopedia-theme-heading, var(--dark));
    min-height: 2.28rem;
    padding: 0 0.78rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1;
    justify-self: start;
    touch-action: manipulation;
  }

  .paxopedia-mobile-tools-title {
    grid-column: 2;
    min-width: 0;
    color: var(--paxopedia-theme-heading, var(--dark));
    font-size: 1.08rem;
    font-weight: 820;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
    justify-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .paxopedia-right-panel-tabs {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    z-index: 2 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: auto !important;
    margin: 0.62rem 0.78rem 0.62rem !important;
    padding: 0.22rem !important;
    border-radius: 1.05rem !important;
    background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 38%, transparent) !important;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab {
    min-height: 2.48rem !important;
    padding: 0.42rem 0.18rem !important;
    font-size: 0.68rem !important;
    border-radius: 0.82rem !important;
    touch-action: manipulation;
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab-inner {
    flex-direction: column !important;
    gap: 0.14rem !important;
  }

  .paxopedia-right-panel-tabs .paxopedia-right-panel-tab-icon-svg {
    width: 1rem !important;
    height: 1rem !important;
  }

  .paxopedia-right-panel-view {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.78rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .paxopedia-right-panel-view[hidden] {
    display: none !important;
  }

  .paxopedia-right-panel-view-sinapses > .graph {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 1.05rem !important;
    overflow: hidden !important;
  }

  .paxopedia-right-panel-view-sinapses .graph-outer,
  .paxopedia-right-panel-view-sinapses .graph-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 1.05rem !important;
    overflow: hidden !important;
  }

  .paxopedia-right-panel-view-sinapses .graph-container canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .paxopedia-cenaculo-panel,
  .paxopedia-timeline-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 1.05rem !important;
    padding: 0.72rem !important;
    padding-bottom: 0.55rem !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .paxopedia-cenaculo-panel {
    --paxopedia-cenaculo-answer-indent: clamp(0.28rem, 2vw, 0.7rem);
  }

  .paxopedia-cenaculo-header,
  .paxopedia-timeline-header {
    flex: 0 0 auto;
    padding: 0.02rem 0.04rem 0.34rem !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header {
    text-align: center;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-title,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-title {
    width: 100%;
    justify-content: center;
    letter-spacing: 0;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-row,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-row {
    margin-inline: auto;
    text-align: center;
  }

  .paxopedia-cenaculo-suggestions {
    flex: 0 0 auto;
    max-height: 6.25rem !important;
    gap: 0.36rem !important;
    overflow: auto !important;
  }

  .paxopedia-cenaculo-conversation {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 0.36rem 0.14rem 0.7rem 0 !important;
  }

  .paxopedia-cenaculo-form {
    flex: 0 0 auto !important;
    padding-top: 0.52rem !important;
  }

  .paxopedia-cenaculo-input {
    font-size: 1rem !important;
  }

  .paxopedia-timeline-scroller {
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }
}

/* v0.5.224: mobile overlay polish. The bottom tool buttons choose the tool; the overlay itself should give that tool the whole screen. */
@media (max-width: 899px) {
  body.paxopedia-mobile-tools-open .paxopedia-right-panel-host .paxopedia-right-panel-tabs,
  html.paxopedia-mobile-tools-open .paxopedia-right-panel-host .paxopedia-right-panel-tabs {
    display: none !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-right-panel-host,
  html.paxopedia-mobile-tools-open .paxopedia-right-panel-host {
    padding: calc(env(safe-area-inset-top) + 0.72rem) 0 calc(env(safe-area-inset-bottom) + 0.72rem) !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-mobile-tools-overlay-header,
  html.paxopedia-mobile-tools-open .paxopedia-mobile-tools-overlay-header {
    min-height: 3.05rem;
    padding: 0 0.82rem 0.72rem;
  }

  body.paxopedia-mobile-tools-open .paxopedia-right-panel-view,
  html.paxopedia-mobile-tools-open .paxopedia-right-panel-view {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 0.64rem 0.72rem 0 !important;
    overflow: hidden !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-right-panel-view-sinapses > .graph,
  html.paxopedia-mobile-tools-open .paxopedia-right-panel-view-sinapses > .graph {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 1.08rem !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-right-panel-view-sinapses .graph-outer,
  body.paxopedia-mobile-tools-open .paxopedia-right-panel-view-sinapses .graph-container,
  html.paxopedia-mobile-tools-open .paxopedia-right-panel-view-sinapses .graph-outer,
  html.paxopedia-mobile-tools-open .paxopedia-right-panel-view-sinapses .graph-container {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.paxopedia-mobile-tools-open #paxopedia-local-graph-portal,
  body.paxopedia-mobile-tools-open .paxopedia-local-graph-portal,
  html.paxopedia-mobile-tools-open #paxopedia-local-graph-portal,
  html.paxopedia-mobile-tools-open .paxopedia-local-graph-portal {
    z-index: 920 !important;
  }

  .paxopedia-cenaculo-suggestions {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
    scrollbar-width: none !important;
  }

  .paxopedia-cenaculo-suggestions::-webkit-scrollbar {
    display: none !important;
  }

  .paxopedia-cenaculo-suggestion {
    min-height: 2.24rem !important;
  }
}

/* v0.5.226: mobile overlay hardening.
   The mobile map must be a real full-screen tool, not a hidden desktop graph. */
@media (max-width: 899px) {
  html.paxopedia-mobile-graph-overlay-active,
  body.paxopedia-mobile-graph-overlay-active {
    overflow: hidden !important;
  }

  html.paxopedia-mobile-graph-overlay-active body #paxopedia-local-graph-portal,
  html.paxopedia-mobile-graph-overlay-active body .paxopedia-local-graph-portal,
  body.paxopedia-mobile-graph-overlay-active #paxopedia-local-graph-portal,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-local-graph-portal,
  html.paxopedia-mobile-graph-overlay-active body.paxopedia-right-panel-graph-suspended #paxopedia-local-graph-portal,
  html.paxopedia-mobile-graph-overlay-active body.paxopedia-right-panel-graph-suspended .paxopedia-local-graph-portal,
  html.paxopedia-mobile-graph-overlay-active.paxopedia-right-panel-graph-suspended body #paxopedia-local-graph-portal,
  html.paxopedia-mobile-graph-overlay-active.paxopedia-right-panel-graph-suspended body .paxopedia-local-graph-portal {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 920 !important;
    touch-action: none !important;
    overscroll-behavior: contain !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-host,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-host {
    overflow: hidden !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: hidden !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses > .graph,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses > .graph {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border-radius: 1.08rem !important;
    overflow: hidden !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses > .graph > h3,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses > .graph > h3 {
    display: none !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses .graph-outer,
  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses .graph-container,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses .graph-outer,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses .graph-container {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: hidden !important;
    border-radius: 1.08rem !important;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 94%, black 6%) !important;
    touch-action: none !important;
    overscroll-behavior: contain !important;
  }

  html.paxopedia-mobile-graph-overlay-active body canvas.paxopedia-graph-canvas,
  body.paxopedia-mobile-graph-overlay-active canvas.paxopedia-graph-canvas {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view {
    padding: 0.52rem 0.58rem 0.72rem !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-mobile-tools-overlay-header,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-mobile-tools-overlay-header {
    min-height: 2.78rem !important;
    padding-bottom: 0.54rem !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestions,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestions {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
    scrollbar-width: none !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestions::-webkit-scrollbar,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestions::-webkit-scrollbar {
    display: none !important;
  }
}

/* v0.6.1: mapa mobile em canvas, visualmente próximo do mapa desktop. */
@media (max-width: 899px) {
  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses .graph-container,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses .graph-container {
    position: relative !important;
    font-size: 0 !important;
    background:
      radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--paxopedia-graph-node-current, #a9cff2) 14%, transparent), transparent 46%),
      radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--paxopedia-theme-link, #8fb9e8) 8%, transparent), transparent 34%),
      color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 90%, black 10%) !important;
  }
}


/* v0.6.1: mapa mobile fullscreen e interactivo. */
@media (max-width: 899px) {
  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-host,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-host {
    padding-bottom: 0 !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view {
    padding: 0 !important;
  }

  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses > .graph,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses > .graph,
  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses .graph-outer,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses .graph-outer,
  html.paxopedia-mobile-graph-overlay-active body .paxopedia-right-panel-view-sinapses .graph-container,
  body.paxopedia-mobile-graph-overlay-active .paxopedia-right-panel-view-sinapses .graph-container {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html.paxopedia-mobile-graph-overlay-active body #quartz-body .sidebar.right .paxopedia-right-panel-view-sinapses > .graph,
  body.paxopedia-mobile-graph-overlay-active #quartz-body .sidebar.right .paxopedia-right-panel-view-sinapses > .graph {
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  html.paxopedia-mobile-graph-overlay-active body #quartz-body .sidebar.right .paxopedia-right-panel-view-sinapses .graph-outer,
  html.paxopedia-mobile-graph-overlay-active body #quartz-body .sidebar.right .paxopedia-right-panel-view-sinapses .graph-container,
  body.paxopedia-mobile-graph-overlay-active #quartz-body .sidebar.right .paxopedia-right-panel-view-sinapses .graph-outer,
  body.paxopedia-mobile-graph-overlay-active #quartz-body .sidebar.right .paxopedia-right-panel-view-sinapses .graph-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* v0.6.16: polish mobile do Cenáculo.
   Remove o cabeçalho duplicado no overlay, aumenta legibilidade dos balões
   e torna o botão flutuante mais compacto e mais nítido. */
@media (max-width: 899px) {
  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header {
    display: none !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-panel,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-panel {
    padding-top: 0.86rem !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestion,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestion {
    min-height: 2.44rem !important;
    padding: 0.58rem 0.74rem !important;
    font-size: 0.84rem !important;
    line-height: 1.24 !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-message,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-message {
    font-size: 0.94rem !important;
    line-height: 1.48 !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-message p,
  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-answer-list,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-message p,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-answer-list {
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
  }

  .paxopedia-mobile-cenaculo-fab {
    width: 3.05rem !important;
    height: 3.05rem !important;
    min-width: 3.05rem !important;
    min-height: 3.05rem !important;
    right: max(0.92rem, env(safe-area-inset-right)) !important;
    bottom: max(0.92rem, env(safe-area-inset-bottom)) !important;
    color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 92%, white 8%) !important;
    background:
      radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 22%, transparent), transparent 58%),
      color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 88%, var(--paxopedia-theme-background, var(--light)) 12%) !important;
  }

  .paxopedia-mobile-cenaculo-fab-icon,
  .paxopedia-mobile-cenaculo-fab-icon svg {
    width: 1.74rem !important;
    height: 1.74rem !important;
    opacity: 1 !important;
  }
}

/* v0.6.20: correcções mobile do Cenáculo.
   Mantém o cabeçalho superior compacto, mas devolve ícone, introdução e legibilidade ao painel. */
@media (max-width: 899px) {
  .paxopedia-mobile-tools-title {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.44rem !important;
  }

  .paxopedia-mobile-tools-title-icon,
  .paxopedia-mobile-tools-title-icon svg {
    display: inline-flex !important;
    width: 1.08rem !important;
    height: 1.08rem !important;
    color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 88%, white 12%) !important;
    opacity: 1 !important;
  }

  .paxopedia-mobile-tools-title-text {
    display: inline-block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header {
    display: block !important;
    padding: 0 0.22rem 0.58rem !important;
    border-bottom: 1px solid color-mix(in srgb, var(--paxopedia-border, rgba(127, 159, 194, 0.18)) 44%, transparent) !important;
    text-align: center !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-title,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-title {
    display: none !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-row,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-row {
    display: block !important;
    max-width: 22rem !important;
    margin-inline: auto !important;
    color: color-mix(in srgb, var(--paxopedia-theme-muted, var(--gray)) 82%, var(--paxopedia-theme-heading, var(--dark)) 18%) !important;
    text-align: center !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-text,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-text {
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-panel,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-panel {
    padding-top: 0.78rem !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestion,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestion {
    min-height: 2.58rem !important;
    padding: 0.66rem 0.78rem !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
    font-weight: 720 !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-message,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-message,
  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-message p,
  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-answer-list,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-message p,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-answer-list {
    font-size: 0.99rem !important;
    line-height: 1.53 !important;
  }

  .paxopedia-mobile-cenaculo-fab {
    width: 2.92rem !important;
    height: 2.92rem !important;
    min-width: 2.92rem !important;
    min-height: 2.92rem !important;
    color: #e8f4ff !important;
    background:
      radial-gradient(circle at 48% 36%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 58%, white 6%), transparent 58%),
      color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 62%, var(--paxopedia-theme-surface, var(--lightgray)) 38%) !important;
    border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 82%, white 18%) !important;
    box-shadow:
      0 0.7rem 1.35rem rgba(0, 0, 0, 0.34),
      0 0 0 1px color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 34%, transparent) inset !important;
  }

  .paxopedia-mobile-cenaculo-fab-icon,
  .paxopedia-mobile-cenaculo-fab-icon svg {
    width: 1.78rem !important;
    height: 1.78rem !important;
    color: #eef7ff !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 0.28rem rgba(185, 216, 244, 0.28));
  }
}

/* v0.6.20: pesquisa mobile por cima do fundo ofuscado. */
@media (max-width: 899px) {
  body.paxopedia-mobile-search-open .search,
  html.paxopedia-mobile-search-open .search,
  body.paxopedia-mobile-search-open #quartz-body .sidebar.left .search,
  html.paxopedia-mobile-search-open #quartz-body .sidebar.left .search { overflow: visible !important; contain: none !important; }
  body.paxopedia-mobile-search-open .search > .search-container,
  html.paxopedia-mobile-search-open .search > .search-container,
  body.paxopedia-mobile-search-open .search > .search-container.active,
  html.paxopedia-mobile-search-open .search > .search-container.active {
    display: block !important; position: fixed !important; inset: 0 !important; z-index: 1200 !important; width: 100vw !important; height: 100dvh !important; overflow: hidden auto !important; background: transparent !important; backdrop-filter: none !important; pointer-events: auto !important; contain: none !important;
  }
  body.paxopedia-mobile-search-open .search > .search-container > .search-space,
  html.paxopedia-mobile-search-open .search > .search-container > .search-space { position: relative !important; z-index: 1201 !important; width: min(92vw, 34rem) !important; margin: max(5.35rem, calc(env(safe-area-inset-top) + 4.85rem)) auto 1.1rem !important; padding: 0 !important; }
  body.paxopedia-mobile-search-open .search > .search-container > .search-space > .search-bar,
  html.paxopedia-mobile-search-open .search > .search-container > .search-space > .search-bar { display: block !important; visibility: visible !important; opacity: 1 !important; width: 100% !important; min-height: 3.1rem !important; padding: 0.72rem 0.95rem !important; border-radius: 1rem !important; border: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, rgba(127, 159, 194, 0.24)) 82%, transparent) !important; background: color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 90%, var(--paxopedia-theme-background, var(--light)) 10%) !important; color: var(--paxopedia-theme-heading, var(--dark)) !important; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.34) !important; font-size: 1rem !important; line-height: 1.2 !important; box-sizing: border-box !important; }
}

/* v0.6.20: Cenáculo mobile com ícone SVG limpo e pesquisa mobile própria.
   O botão flutuante deixa de depender de glow para se perceber, e a pesquisa usa
   um overlay autónomo, em vez do painel Quartz escondido na sidebar. */
@media (max-width: 899px) {
  .paxopedia-mobile-tools-title {
    gap: 0.52rem !important;
  }

  .paxopedia-mobile-tools-title-icon,
  .paxopedia-mobile-tools-title-icon svg,
  .paxopedia-mobile-tools-title-icon .paxopedia-cenaculo-clean-icon {
    width: 1.34rem !important;
    height: 1.34rem !important;
    color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 94%, var(--paxopedia-theme-heading, var(--dark)) 6%) !important;
    opacity: 1 !important;
    filter: none !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-text,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-header .paxopedia-panel-header-caption-text {
    font-size: 0.94rem !important;
    line-height: 1.38 !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestion,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-suggestion {
    min-height: 2.74rem !important;
    padding: 0.72rem 0.84rem !important;
    font-size: 0.98rem !important;
    line-height: 1.28 !important;
  }

  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-message,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-message,
  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-message p,
  body.paxopedia-mobile-tools-open .paxopedia-cenaculo-answer-list,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-message p,
  html.paxopedia-mobile-tools-open .paxopedia-cenaculo-answer-list {
    font-size: 1.04rem !important;
    line-height: 1.56 !important;
  }

  .paxopedia-mobile-cenaculo-fab {
    width: 3.05rem !important;
    height: 3.05rem !important;
    min-width: 3.05rem !important;
    min-height: 3.05rem !important;
    color: #f4fbff !important;
    border: 1px solid color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 82%, white 18%) !important;
    background: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 58%, var(--paxopedia-theme-surface, var(--lightgray)) 42%) !important;
    box-shadow: 0 0.54rem 1.05rem rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: none !important;
  }

  .paxopedia-mobile-cenaculo-fab-icon,
  .paxopedia-mobile-cenaculo-fab-icon svg,
  .paxopedia-mobile-cenaculo-fab-icon .paxopedia-cenaculo-clean-icon {
    width: 2.24rem !important;
    height: 2.24rem !important;
    color: #f7fcff !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .paxopedia-mobile-search-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1260 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: max(0.82rem, env(safe-area-inset-top)) max(0.82rem, env(safe-area-inset-right)) max(0.82rem, env(safe-area-inset-bottom)) max(0.82rem, env(safe-area-inset-left)) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  .paxopedia-mobile-search-overlay[hidden] {
    display: none !important;
  }

  .paxopedia-mobile-search-panel {
    width: min(100%, 34rem) !important;
    max-height: calc(100dvh - 1.64rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.72rem !important;
    padding: 0.78rem !important;
    border-radius: 1.15rem !important;
    border: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, rgba(127, 159, 194, 0.24)) 80%, transparent) !important;
    background:
      radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 12%, transparent), transparent 34%),
      color-mix(in srgb, var(--paxopedia-theme-surface, var(--lightgray)) 94%, var(--paxopedia-theme-background, var(--light)) 6%) !important;
    box-shadow: 0 1.35rem 3rem rgba(0, 0, 0, 0.44) !important;
    box-sizing: border-box !important;
  }

  .paxopedia-mobile-search-header {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 0.64rem !important;
  }

  .paxopedia-mobile-search-close {
    appearance: none !important;
    min-height: 2.18rem !important;
    padding: 0 0.82rem !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, rgba(127, 159, 194, 0.24)) 74%, transparent) !important;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 68%, transparent) !important;
    color: var(--paxopedia-theme-heading, var(--dark)) !important;
    font: inherit !important;
    font-size: 0.78rem !important;
    font-weight: 780 !important;
  }

  .paxopedia-mobile-search-title {
    margin: 0 !important;
    color: var(--paxopedia-theme-heading, var(--dark)) !important;
    font-size: 1.12rem !important;
    font-weight: 820 !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  .paxopedia-mobile-search-input {
    width: 100% !important;
    min-height: 3.18rem !important;
    padding: 0.78rem 0.92rem !important;
    border-radius: 1rem !important;
    border: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, rgba(127, 159, 194, 0.24)) 82%, transparent) !important;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 76%, var(--paxopedia-theme-surface, var(--lightgray)) 24%) !important;
    color: var(--paxopedia-theme-heading, var(--dark)) !important;
    font: inherit !important;
    font-size: 1.02rem !important;
    line-height: 1.2 !important;
    outline: none !important;
    box-sizing: border-box !important;
  }

  .paxopedia-mobile-search-input:focus-visible {
    border-color: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 58%, var(--paxopedia-theme-border, rgba(127, 159, 194, 0.24)) 42%) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 20%, transparent) !important;
  }

  .paxopedia-mobile-search-results {
    min-height: 7.5rem !important;
    overflow: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.42rem !important;
    padding-right: 0.12rem !important;
    overscroll-behavior: contain !important;
  }

  .paxopedia-mobile-search-result {
    display: grid !important;
    gap: 0.16rem !important;
    padding: 0.72rem 0.82rem !important;
    border-radius: 0.92rem !important;
    text-decoration: none !important;
    color: var(--paxopedia-theme-heading, var(--dark)) !important;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 48%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--paxopedia-theme-border, rgba(127, 159, 194, 0.18)) 52%, transparent) !important;
  }

  .paxopedia-mobile-search-result-title {
    font-size: 0.95rem !important;
    font-weight: 760 !important;
    line-height: 1.2 !important;
  }

  .paxopedia-mobile-search-result-path {
    color: var(--paxopedia-theme-muted, var(--gray)) !important;
    font-size: 0.76rem !important;
    font-weight: 560 !important;
    line-height: 1.22 !important;
  }

  .paxopedia-mobile-search-empty {
    margin: 0 !important;
    padding: 0.86rem 0.92rem !important;
    color: var(--paxopedia-theme-muted, var(--gray)) !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }
}


/* v0.6.20: mobile Cenáculo FAB icon and search overlay hardening. */
@media (max-width: 899px) {
  .paxopedia-mobile-cenaculo-fab {
    width: 3.08rem !important;
    height: 3.08rem !important;
    min-width: 3.08rem !important;
    min-height: 3.08rem !important;
    border: 1px solid color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 76%, white 24%) !important;
    background: color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 72%, var(--paxopedia-theme-surface, var(--lightgray)) 28%) !important;
    color: #ffffff !important;
    box-shadow: 0 0.58rem 1.15rem rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: none !important;
  }

  .paxopedia-mobile-cenaculo-fab-icon,
  .paxopedia-mobile-cenaculo-fab-icon svg,
  .paxopedia-mobile-cenaculo-fab-icon .paxopedia-cenaculo-clean-icon {
    width: 2.18rem !important;
    height: 2.18rem !important;
    display: block !important;
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .paxopedia-mobile-cenaculo-fab-icon .paxopedia-cenaculo-clean-icon path {
    fill: currentColor !important;
    stroke: none !important;
  }

  .paxopedia-mobile-search-overlay {
    z-index: 4000 !important;
    isolation: isolate !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  html.paxopedia-mobile-search-open,
  body.paxopedia-mobile-search-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .paxopedia-mobile-search-backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: rgba(2, 7, 13, 0.16) !important;
    -webkit-backdrop-filter: blur(8px) saturate(92%) !important;
    backdrop-filter: blur(8px) saturate(92%) !important;
    pointer-events: none !important;
  }

  .paxopedia-mobile-search-panel {
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: max(0.45rem, env(safe-area-inset-top)) !important;
    width: min(100%, 31.5rem) !important;
    height: min(86dvh, 46rem) !important;
    max-height: calc(100dvh - 1.64rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    padding: 0.9rem !important;
    border: 1px solid rgba(148, 164, 178, 0.2) !important;
    background:
      radial-gradient(circle at 12% -8%, color-mix(in srgb, var(--paxopedia-accent, var(--tertiary)) 6%, transparent), transparent 44%),
      linear-gradient(145deg,
        color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 40%, rgba(40, 46, 53, 0.18) 60%),
        color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 28%, rgba(14, 19, 24, 0.2) 72%)) !important;
    -webkit-backdrop-filter: blur(20px) saturate(94%) !important;
    backdrop-filter: blur(20px) saturate(94%) !important;
    box-shadow:
      0 1.5rem 4rem rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  }

  .paxopedia-mobile-search-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .paxopedia-mobile-search-title {
    order: 1 !important;
    text-align: left !important;
  }

  .paxopedia-mobile-search-close {
    order: 2 !important;
    cursor: pointer !important;
    border-color: rgba(148, 164, 178, 0.18) !important;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 32%, transparent) !important;
    backdrop-filter: blur(12px) !important;
  }

  .paxopedia-mobile-search-results {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  .paxopedia-mobile-search-input {
    border-color: rgba(148, 164, 178, 0.22) !important;
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 38%, transparent) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow:
      0 0.65rem 1.4rem rgba(0, 0, 0, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  }

  .paxopedia-mobile-search-result {
    background: color-mix(in srgb, var(--paxopedia-theme-background, var(--light)) 28%, transparent) !important;
    backdrop-filter: blur(10px) !important;
  }

  .paxopedia-mobile-search-input:focus-visible {
    border-color: rgba(155, 175, 192, 0.34) !important;
    box-shadow:
      0 0 0 3px rgba(112, 139, 164, 0.11),
      0 0.65rem 1.4rem rgba(0, 0, 0, 0.16) !important;
  }
}

/* v0.6.20: reforço visual do ícone do Cenáculo no cabeçalho mobile.
   O ícone deixa de usar a cor de acento e passa a acompanhar a cor do título. */
@media (max-width: 899px) {
  .paxopedia-mobile-tools-title {
    gap: 0.58rem !important;
  }

  .paxopedia-mobile-tools-title-icon,
  .paxopedia-mobile-tools-title-icon svg,
  .paxopedia-mobile-tools-title-icon .paxopedia-cenaculo-clean-icon {
    width: 1.72rem !important;
    height: 1.72rem !important;
    color: var(--paxopedia-theme-heading, var(--dark)) !important;
    opacity: 1 !important;
    filter: none !important;
    flex: 0 0 auto !important;
  }

  .paxopedia-mobile-tools-title-icon .paxopedia-cenaculo-clean-icon path {
    fill: currentColor !important;
    stroke: none !important;
  }
}
