@import url("https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap");

:root {
  --wiki-text: #202122;
  --wiki-text-soft: #54595d;
  --wiki-link: #0645ad;
  --wiki-link-visited: #0b0080;
  --wiki-link-red: #ba0000;
  --wiki-bg: #ffffff;
  --wiki-bg-alt: #f8f9fa;
  --wiki-bg-chrome: #f6f6f6;
  --wiki-border: #a2a9b1;
  --wiki-border-light: #c8ccd1;
  --wiki-border-subtle: #eaecf0;
  --wiki-accent: #36c;
  --site-page-bg: #f6f8fb;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #36c;
  --site-theme-accent-border: rgba(51, 102, 204, .24);
  --site-theme-action-ink: #36c;
  --site-theme-heading: #243142;
  --site-theme-surface: rgba(255, 255, 255, .86);
  --site-theme-chrome-border: color-mix(in srgb, var(--site-theme-accent) 24%, var(--wiki-border-light));
  --site-theme-chrome-surface: color-mix(in srgb, var(--site-theme-accent) 4%, var(--wiki-bg));
  --site-theme-chrome-surface-strong: color-mix(in srgb, var(--site-theme-accent) 8%, var(--wiki-bg-alt));
  --font-serif: "Linux Libertine", Georgia, "Times New Roman", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-signature: "Alex Brush", "Brush Script MT", "Segoe Script", cursive;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  --content-width: 920px;
  --sidebar-width: 192px;
  --infobox-width: 300px;
  --article-gap: 28px;
  --lh-body: 1.58;
}

html[data-site-palette="text"] {
  --wiki-accent: #36c;
  --site-page-bg: #ffffff;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #36c;
  --site-theme-accent-border: rgba(51, 102, 204, .24);
  --site-theme-action-ink: #36c;
  --site-theme-heading: #202122;
  --site-theme-surface: rgba(255, 255, 255, .96);
  --site-theme-chrome-border: var(--wiki-border-light);
  --site-theme-chrome-surface: var(--wiki-bg);
  --site-theme-chrome-surface-strong: var(--wiki-bg-alt);
}

html[data-site-palette="blue"] {
  --wiki-accent: #2b5f94;
  --site-page-bg: #f3f8ff;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #2b5f94;
  --site-theme-accent-border: rgba(43, 95, 148, .26);
  --site-theme-action-ink: #2b5f94;
  --site-theme-heading: #243142;
  --site-theme-surface: rgba(255, 255, 255, .88);
}

html[data-site-palette="gold"] {
  --wiki-accent: #8a5b0d;
  --site-page-bg: #fff7e6;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #b8871b;
  --site-theme-accent-border: rgba(184, 135, 27, .28);
  --site-theme-action-ink: #8a5b0d;
  --site-theme-heading: #4a3a1f;
  --site-theme-surface: rgba(255, 255, 255, .9);
}

html[data-site-palette="rose"] {
  --wiki-accent: #97425a;
  --site-page-bg: #fff4f7;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #a44962;
  --site-theme-accent-border: rgba(164, 73, 98, .26);
  --site-theme-action-ink: #97425a;
  --site-theme-heading: #4c2a34;
  --site-theme-surface: rgba(255, 255, 255, .9);
}

html[data-site-palette="green"] {
  --wiki-accent: #2a7f62;
  --site-page-bg: #f2faf6;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #2a7f62;
  --site-theme-accent-border: rgba(42, 127, 98, .26);
  --site-theme-action-ink: #236b52;
  --site-theme-heading: #1d3f35;
  --site-theme-surface: rgba(255, 255, 255, .88);
}

html[data-site-palette="violet"] {
  --wiki-accent: #684985;
  --site-page-bg: #f8f4fc;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #70518f;
  --site-theme-accent-border: rgba(112, 81, 143, .26);
  --site-theme-action-ink: #684985;
  --site-theme-heading: #392c46;
  --site-theme-surface: rgba(255, 255, 255, .9);
}

html[data-site-palette="charcoal"] {
  --wiki-accent: #3c4247;
  --site-page-bg: #f4f4f2;
  --site-page-bg-end: #ffffff;
  --site-theme-accent: #2f3437;
  --site-theme-accent-border: rgba(47, 52, 55, .26);
  --site-theme-action-ink: #3c4247;
  --site-theme-heading: #282d30;
  --site-theme-surface: rgba(255, 255, 255, .9);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--site-page-bg) 0, var(--site-page-bg-end) 68vh);
  color: var(--wiki-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: var(--lh-body);
  transition: background-color .28s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--wiki-link);
  text-decoration: none;
}

a:visited {
  color: var(--wiki-link-visited);
}

a:hover {
  text-decoration: underline;
}

.skip-to-content {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 8px 12px;
  border: 2px solid var(--site-theme-action-ink);
  background: var(--wiki-bg);
  color: var(--site-theme-action-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(calc(-100% - 16px));
  transition: transform .16s ease;
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
  outline: 0;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

a.redlink {
  color: var(--wiki-link-red);
}

a.external::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 2px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%230645ad' d='M6 1h5v5h-1V2.7L5.7 7 5 6.3 9.3 2H6V1zM2 3h3v1H3v5h5V7h1v3H2V3z'/></svg>") no-repeat center / contain;
  vertical-align: baseline;
}

.site-palette-switcher {
  position: fixed;
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--site-theme-accent-border);
  border-radius: 8px;
  background: var(--site-theme-surface);
  box-shadow: 0 8px 24px rgba(32, 33, 34, .12);
  backdrop-filter: blur(12px);
  transition: width .22s ease, border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.site-palette-button {
  --site-palette-swatch: #36c;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--site-palette-swatch) 62%, #ffffff);
  border-radius: 4px;
  background: var(--site-palette-swatch);
  cursor: pointer;
}

.site-palette-text {
  border-color: #a2a9b1;
  background: #ffffff;
}

.site-palette-auto {
  background:
    conic-gradient(from 45deg, #2b5f94, #b8871b, #a44962, #2a7f62, #70518f, #2f3437, #2b5f94);
}

.site-palette-button:hover,
.site-palette-button:focus-visible {
  outline: 2px solid var(--site-theme-accent);
  outline-offset: 2px;
}

.site-palette-button.is-active {
  order: -1;
  box-shadow: 0 0 0 2px var(--wiki-bg), 0 0 0 4px var(--site-theme-accent);
}

@media (hover: hover) and (pointer: fine) {
  .site-palette-switcher {
    overflow: hidden;
    width: 30px;
  }

  .site-palette-switcher:hover,
  .site-palette-switcher:focus-within {
    width: 198px;
  }
}

.wiki-topbar {
  border-bottom: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface);
  font-family: var(--font-sans);
  font-size: 13px;
}

.wiki-topbar-inner {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--article-gap);
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 24px 9px;
}

.wiki-topbar-controls {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}

.wiki-logo {
  display: inline-grid;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: var(--site-theme-heading);
  line-height: 1;
  text-decoration: none;
}

.wiki-logo:visited {
  color: var(--site-theme-heading);
}

.wiki-logo:hover {
  text-decoration: none;
}

.wiki-logo:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 3px;
}

.wiki-logo-word {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
}

.wiki-logo-subtitle {
  color: var(--site-theme-action-ink);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .09em;
  margin-top: 2px;
  text-transform: uppercase;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface);
  color: var(--site-theme-action-ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.lang-toggle:visited {
  color: var(--site-theme-action-ink);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--site-theme-action-ink);
  background: var(--site-theme-chrome-surface-strong);
  text-decoration: none;
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

.wiki-topbar .wiki-search input,
.wiki-topbar .wiki-search-language-select,
.wiki-topbar .wiki-search-panel {
  border-color: var(--site-theme-chrome-border);
}

.wiki-search {
  --wiki-search-control-size: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 20;
}

.wiki-search-form {
  flex: 1 1;
  margin: 0;
  min-width: 0;
}

.wiki-search-fields {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.wiki-search input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--wiki-border);
  border-right: 0;
  border-radius: 0;
  background: var(--wiki-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2354595d' d='M6.7 2a4.7 4.7 0 0 1 3.73 7.56l3.01 3.01-.87.87-3.01-3.01A4.7 4.7 0 1 1 6.7 2Zm0 1.2a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z'/></svg>") no-repeat right 9px center / 14px 14px;
  color: var(--wiki-text);
  font-family: var(--font-sans);
  font-size: 13px;
}

.wiki-search input:focus {
  border-color: var(--wiki-accent);
  box-shadow: inset 0 0 0 1px var(--wiki-accent);
  outline: 0;
}

.wiki-search input:focus + .wiki-search-submit,
.wiki-search input:focus ~ .wiki-search-submit {
  border-color: var(--wiki-accent);
  border-left-color: var(--wiki-border);
}

.wiki-search-language-select {
  width: 86px;
  height: 32px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--wiki-border);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: var(--wiki-bg);
  color: var(--wiki-text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
}

.wiki-search-language-select:focus {
  border-color: var(--wiki-accent);
  box-shadow: inset 0 0 0 1px var(--wiki-accent);
  outline: 0;
}

.wiki-search-submit {
  min-width: 72px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--site-theme-accent) 22%, var(--wiki-border));
  border-radius: 0;
  background: color-mix(in srgb, var(--site-theme-accent) 5%, var(--wiki-bg-alt));
  color: var(--site-theme-heading);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
}

.wiki-search-submit:hover,
.wiki-search-submit:focus {
  border-color: var(--site-theme-action-ink);
  background: color-mix(in srgb, var(--site-theme-accent) 10%, var(--wiki-bg-alt));
  box-shadow: inset 0 0 0 1px var(--site-theme-action-ink);
  outline: 0;
}

.wiki-search-panel {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 36px;
  overflow-y: auto;
  max-height: min(420px, 70vh);
  border: 1px solid var(--wiki-border);
  background: var(--wiki-bg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  font-family: var(--font-sans);
}

.wiki-search-no-chat .wiki-search-panel {
  left: 0;
}

.wiki-search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--wiki-border-light);
  color: var(--wiki-text);
  text-decoration: none;
}

.wiki-search-result:last-child {
  border-bottom: 0;
}

.wiki-search-result:hover,
.wiki-search-result[aria-selected="true"] {
  background: color-mix(in srgb, var(--site-theme-accent) 8%, var(--wiki-bg-alt));
  text-decoration: none;
}

.wiki-search-result-title {
  overflow: hidden;
  color: var(--wiki-link);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-search-result-meta {
  display: inline-flex;
  gap: 5px;
  justify-content: flex-end;
  color: var(--wiki-text-soft);
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
}

.wiki-search-result-meta span {
  padding: 1px 4px;
  border: 1px solid var(--wiki-border-light);
  background: var(--wiki-bg-alt);
}

.wiki-search-result-excerpt {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--wiki-text-soft);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-search-empty {
  padding: 10px;
  color: var(--wiki-text-soft);
  font-size: 12px;
}

.wiki-search-portal {
  --wiki-search-control-size: 44px;
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
}

.wiki-search-portal .wiki-search-form,
.wiki-search-portal .wiki-search-fields {
  width: 100%;
}

.wiki-search-portal input {
  height: 44px;
  padding: 9px 38px 9px 12px;
  background-size: 17px 17px;
  font-size: 16px;
}

.wiki-search-portal .wiki-search-language-select {
  width: 112px;
  height: 44px;
  padding-left: 12px;
  font-size: 14px;
}

.wiki-search-portal .wiki-search-submit {
  min-width: 96px;
  height: 44px;
  font-size: 14px;
}

.wiki-search-portal .wiki-search-panel {
  top: calc(100% + 6px);
  max-height: min(440px, 58vh);
  text-align: left;
}

.chat-xinbao-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wiki-search-control-size);
  height: var(--wiki-search-control-size);
  flex: 0 0 var(--wiki-search-control-size);
  border: 1px solid var(--site-theme-accent-border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--site-theme-accent) 5%, var(--wiki-bg));
  color: var(--site-theme-action-ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.chat-xinbao-trigger:hover,
.chat-xinbao-trigger:focus {
  border-color: var(--site-theme-action-ink);
  background: color-mix(in srgb, var(--site-theme-accent) 10%, var(--wiki-bg));
  outline: 0;
}

.chat-xinbao-trigger:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

.chat-xinbao-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  width: min(420px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 48px));
  border: 1px solid var(--site-theme-chrome-border);
  border-top: 3px solid var(--site-theme-accent);
  border-radius: 8px;
  background: var(--site-theme-chrome-surface);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--site-theme-accent) 18%, rgba(32, 33, 34, .18));
  color: var(--wiki-text);
  font-family: var(--font-sans);
  animation: chat-xinbao-open .16s ease-out;
}

.chat-xinbao-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface-strong);
}

.chat-xinbao-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--site-theme-heading);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.chat-xinbao-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--site-theme-action-ink);
  border-radius: 3px;
  background: var(--site-theme-action-ink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.chat-xinbao-header p {
  margin: 2px 0 0;
  color: var(--wiki-text-soft);
  font-size: 11px;
  line-height: 1.3;
}

.chat-xinbao-actions {
  display: flex;
  gap: 4px;
}

.chat-xinbao-actions button,
.chat-xinbao-composer button,
.chat-xinbao-minimized {
  border: 1px solid var(--site-theme-chrome-border);
  border-radius: 4px;
  background: var(--site-theme-chrome-surface);
  color: var(--site-theme-action-ink);
  cursor: pointer;
  font-family: var(--font-sans);
}

.chat-xinbao-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.chat-xinbao-actions button:hover,
.chat-xinbao-minimized:hover {
  border-color: var(--site-theme-action-ink);
  background: var(--site-theme-chrome-surface-strong);
}

.chat-xinbao-actions button:focus-visible,
.chat-xinbao-minimized:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

.chat-xinbao-composer button:hover {
  border-color: color-mix(in srgb, var(--site-theme-action-ink) 82%, #202122);
  background: color-mix(in srgb, var(--site-theme-action-ink) 82%, #202122);
}

.chat-xinbao-messages {
  overflow-y: auto;
  min-height: 230px;
  max-height: 420px;
  padding: 14px;
  background: color-mix(in srgb, var(--site-theme-accent) 5%, var(--wiki-bg-alt));
}

.chat-xinbao-message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--site-theme-chrome-border);
  border-radius: 8px;
  color: var(--wiki-text);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-xinbao-message.assistant {
  border-left: 3px solid color-mix(in srgb, var(--site-theme-accent) 68%, var(--wiki-border-light));
  background: var(--site-theme-chrome-surface);
  white-space: normal;
}

.chat-xinbao-message.user {
  margin-left: auto;
  border-color: var(--site-theme-accent-border);
  border-right: 3px solid var(--site-theme-accent);
  background: color-mix(in srgb, var(--site-theme-accent) 12%, var(--wiki-bg));
  white-space: pre-wrap;
}

.chat-xinbao-message nav {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid var(--site-theme-chrome-border);
}

.chat-xinbao-message nav a {
  color: var(--site-theme-action-ink);
}

.chat-xinbao-message p,
.chat-xinbao-message ul,
.chat-xinbao-message ol {
  margin: 0 0 8px;
}

.chat-xinbao-message p:last-child,
.chat-xinbao-message ul:last-child,
.chat-xinbao-message ol:last-child {
  margin-bottom: 0;
}

.chat-xinbao-message ul,
.chat-xinbao-message ol {
  padding-left: 18px;
}

.chat-xinbao-message code {
  padding: 1px 3px;
  background: #eaecf0;
  font-family: var(--font-mono);
  font-size: .92em;
}

.chat-xinbao-message pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 8px;
  background: #eaecf0;
}

.chat-xinbao-message pre code {
  padding: 0;
  background: transparent;
}

.chat-xinbao-message .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  margin: 8px 0;
  padding-bottom: 2px;
}

.chat-xinbao-message .katex {
  font-size: 1em;
}

.chat-xinbao-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid var(--site-theme-chrome-border);
  border-radius: 8px;
  background: var(--site-theme-chrome-surface);
  color: var(--wiki-text-soft);
  font-size: 12px;
}

.chat-xinbao-typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--site-theme-accent);
  animation: chat-xinbao-dot 1s infinite ease-in-out;
}

.chat-xinbao-typing i:nth-child(3) {
  animation-delay: .12s;
}

.chat-xinbao-typing i:nth-child(4) {
  animation-delay: .24s;
}

.chat-xinbao-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid #e2a9a9;
  background: #fff6f6;
  color: #8f0000;
  font-size: 12px;
  line-height: 1.35;
}

.chat-xinbao-error span {
  min-width: 0;
}

.chat-xinbao-retry,
.chat-xinbao-cancel {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--site-theme-accent-border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--site-theme-accent) 5%, var(--wiki-bg));
  color: var(--site-theme-action-ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.chat-xinbao-retry:hover,
.chat-xinbao-retry:focus-visible,
.chat-xinbao-cancel:hover,
.chat-xinbao-cancel:focus-visible {
  border-color: var(--site-theme-action-ink);
  background: color-mix(in srgb, var(--site-theme-accent) 10%, var(--wiki-bg));
}

.chat-xinbao-retry:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.chat-xinbao-composer {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface-strong);
}

.chat-xinbao-composer textarea {
  width: 100%;
  min-height: 78px;
  max-height: 150px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid var(--site-theme-chrome-border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--site-theme-accent) 2%, var(--wiki-bg));
  color: var(--wiki-text);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
}

.chat-xinbao-composer textarea:focus {
  border-color: var(--site-theme-action-ink);
  box-shadow: inset 0 0 0 1px var(--site-theme-action-ink);
  outline: 0;
}

.chat-xinbao-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--wiki-text-soft);
  font-size: 11px;
}

.chat-xinbao-composer button {
  min-width: 62px;
  padding: 6px 12px;
  border-color: var(--site-theme-action-ink);
  background: var(--site-theme-action-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.chat-xinbao-composer button:disabled,
.chat-xinbao-composer textarea:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.chat-xinbao-minimized {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  padding: 8px 12px;
  border-left: 3px solid var(--site-theme-accent);
  background: var(--site-theme-chrome-surface-strong);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--site-theme-accent) 16%, rgba(32, 33, 34, .16));
  font-size: 12px;
  font-weight: 700;
}

html[data-site-palette="text"] .chat-xinbao-trigger,
html[data-site-palette="text"] .chat-xinbao-shell,
html[data-site-palette="text"] .chat-xinbao-header,
html[data-site-palette="text"] .chat-xinbao-actions button,
html[data-site-palette="text"] .chat-xinbao-messages,
html[data-site-palette="text"] .chat-xinbao-message,
html[data-site-palette="text"] .chat-xinbao-typing,
html[data-site-palette="text"] .chat-xinbao-composer,
html[data-site-palette="text"] .chat-xinbao-composer textarea,
html[data-site-palette="text"] .chat-xinbao-minimized {
  background: #ffffff;
}

html[data-site-palette="text"] .chat-xinbao-shell {
  border-color: var(--wiki-border-light);
  border-top-color: var(--wiki-border);
  box-shadow: 0 18px 48px rgba(32, 33, 34, .2);
}

html[data-site-palette="text"] .chat-xinbao-mark {
  border-color: var(--wiki-border);
  background: #ffffff;
  color: var(--wiki-text);
}

html[data-site-palette="text"] .chat-xinbao-message.assistant,
html[data-site-palette="text"] .chat-xinbao-message.user,
html[data-site-palette="text"] .chat-xinbao-minimized {
  border-color: var(--wiki-border-light);
}

html[data-site-palette="text"] .chat-xinbao-message.assistant {
  border-left-color: var(--wiki-border);
}

html[data-site-palette="text"] .chat-xinbao-message.user {
  border-right-color: var(--wiki-border);
}

@keyframes chat-xinbao-open {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chat-xinbao-dot {
  0%,
  80%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.wiki-tabs {
  border-bottom: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface);
  font-family: var(--font-sans);
  font-size: 13px;
}

.wiki-tabs-inner {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width));
  gap: var(--article-gap);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.wiki-tabs-content,
.wiki-tabs-primary,
.wiki-tabs-actions {
  display: flex;
  align-items: stretch;
}

.wiki-tabs-content {
  grid-column: 2;
  min-width: 0;
}

.wiki-tabs-actions {
  margin-left: auto;
}

.wiki-tabs a {
  margin-right: 2px;
  padding: 8px 12px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--wiki-link);
}

.wiki-tabs a:hover,
.wiki-tabs a:focus-visible {
  background: var(--site-theme-chrome-surface-strong);
  color: var(--site-theme-action-ink);
  text-decoration: none;
}

.wiki-tabs a:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: -2px;
}

.wiki-tabs a.active,
.wiki-tabs a[aria-current="page"] {
  border-bottom-color: var(--site-theme-action-ink);
  background: var(--site-theme-chrome-surface-strong);
  color: var(--site-theme-heading);
  font-weight: 700;
}

.wiki-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width));
  gap: var(--article-gap);
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px 80px;
}

.wiki-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  padding: 2px 14px 0 0;
  border-right: 1px solid var(--site-theme-chrome-border);
}

.wiki-sidebar,
.wiki-sidebar-content {
  color: var(--wiki-text-soft);
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
}

.wiki-sidebar h4,
.wiki-sidebar-content h4 {
  margin: 18px 0 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--site-theme-chrome-border);
  color: var(--site-theme-action-ink);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.wiki-sidebar ul,
.wiki-sidebar-content ul {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.wiki-sidebar li,
.wiki-sidebar-content li {
  padding: 2.5px 0;
}

.wiki-sidebar a,
.wiki-sidebar-content a {
  color: var(--wiki-link);
}

.wiki-sidebar a:hover,
.wiki-sidebar a:focus-visible,
.wiki-sidebar-content a:hover,
.wiki-sidebar-content a:focus-visible {
  color: var(--site-theme-action-ink);
}

.wiki-sidebar a:focus-visible,
.wiki-sidebar-content a:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

.wiki-sidebar a[aria-current="page"],
.wiki-sidebar-content a[aria-current="page"] {
  display: block;
  margin-left: -8px;
  padding: 2px 6px 2px 7px;
  border-left: 3px solid var(--site-theme-action-ink);
  background: var(--site-theme-chrome-surface-strong);
  color: var(--site-theme-action-ink);
  font-weight: 700;
  text-decoration: none;
}

.wiki-mobile-nav-toggle,
.wiki-mobile-nav-dialog {
  display: none;
}

.wiki-main {
  width: 100%;
  max-width: var(--content-width);
  min-width: 0;
}

.wiki-main:has(.wiki-portal) {
  grid-column: 1 / -1;
  max-width: 100%;
}

.wiki-shell:has(.wiki-portal) {
  display: grid;
  align-items: start;
  justify-items: stretch;
  max-width: 1080px;
  min-height: 100svh;
  padding: clamp(20px, 4vh, 42px) 24px 72px;
  transition: padding .24s ease;
}

.wiki-shell:has(.wiki-portal-collapsed) {
  place-items: center;
  padding: clamp(24px, 8vh, 72px) 24px;
}

.wiki-shell:has(.wiki-portal-collapsed) .wiki-main {
  width: 100%;
  max-width: 760px;
}

.wiki-shell:has(.wiki-portal) .wiki-sidebar {
  display: none;
}

.wiki-shell:has(.wiki-portal) .wiki-mobile-nav-toggle {
  display: none;
}

body:has(.wiki-portal) .wiki-footer,
body:has(.wiki-portal) .wiki-topbar {
  display: none;
}

.wiki-page {
  max-width: 100%;
  font-size: 15.5px;
  line-height: 1.68;
  overflow-wrap: break-word;
}

.wiki-page:lang(zh-CN),
.wiki-page[data-page-language="zh"] {
  line-height: 1.76;
}

.wiki-title {
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--site-theme-chrome-border);
  color: var(--site-theme-heading);
  font-family: var(--font-serif);
  font-size: 2.16em;
  font-weight: 400;
  line-height: 1.18;
  text-wrap: balance;
}

.wiki-page[data-page-type="publication"] .wiki-title {
  font-size: clamp(1.55em, 2.3vw, 1.9em);
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wiki-page-meta {
  margin: 6px 0 10px;
  color: var(--wiki-text-soft);
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.35;
}

.wiki-page-meta time {
  font-variant-numeric: tabular-nums;
}

.wiki-title-sub {
  margin: 8px 0 20px;
  padding: 8px 11px;
  border-left: 3px solid var(--site-theme-action-ink);
  background: var(--site-theme-chrome-surface);
  color: var(--wiki-text-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  line-height: 1.58;
}

.wiki-infobox {
  float: right;
  width: var(--infobox-width);
  margin: 0 0 18px 22px;
  border: 1px solid var(--site-theme-chrome-border);
  border-top: 3px solid var(--site-theme-accent);
  background: var(--wiki-bg-alt);
  color: var(--wiki-text);
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
}

.wiki-infobox-title {
  padding: 8px 10px 7px;
  border-bottom: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface-strong);
  color: var(--site-theme-heading);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.wiki-infobox-image {
  padding: 7px;
  border-bottom: 1px solid var(--site-theme-chrome-border);
  text-align: center;
}

.wiki-infobox-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: cover;
  object-position: center 38%;
  border: 1px solid var(--site-theme-chrome-border);
  background: var(--wiki-bg);
}

.wiki-portrait-gallery-frame {
  position: relative;
  overflow: hidden;
  background: var(--wiki-bg);
}

.wiki-infobox .wiki-portrait-gallery-frame img {
  width: 100%;
  height: 330px;
  max-height: none;
}

.wiki-portrait-gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(32, 33, 34, .68);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.wiki-portrait-gallery-arrow:hover {
  background: rgba(32, 33, 34, .84);
}

.wiki-portrait-gallery-arrow:focus-visible {
  outline: 3px solid var(--wiki-accent);
  outline-offset: -3px;
}

.wiki-portrait-gallery-arrow-previous {
  left: 7px;
}

.wiki-portrait-gallery-arrow-next {
  right: 7px;
}

.wiki-portrait-gallery-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(32, 33, 34, .68);
  color: #fff;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .wiki-portrait-gallery-frame .wiki-portrait-gallery-arrow,
  .wiki-portrait-gallery-frame .wiki-portrait-gallery-count {
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .wiki-portrait-gallery-frame:hover .wiki-portrait-gallery-arrow,
  .wiki-portrait-gallery-frame:hover .wiki-portrait-gallery-count,
  .wiki-portrait-gallery-frame:focus-within .wiki-portrait-gallery-arrow,
  .wiki-portrait-gallery-frame:focus-within .wiki-portrait-gallery-count {
    opacity: 1;
    pointer-events: auto;
  }
}

.wiki-infobox-caption {
  margin-top: 6px;
  padding: 0 4px;
  color: var(--wiki-text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.wiki-portrait-gallery .wiki-infobox-caption {
  font-size: 10px;
  white-space: nowrap;
}

.wiki-infobox table {
  width: 100%;
  border-collapse: collapse;
}

.wiki-infobox th,
.wiki-infobox td {
  padding: 5px 7px;
  border-top: 1px solid var(--site-theme-chrome-border);
  color: var(--wiki-text);
  text-align: left;
  vertical-align: top;
}

.wiki-infobox th {
  width: 36%;
  border-right: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface);
  color: var(--site-theme-heading);
  font-weight: 700;
}

.wiki-infobox-section {
  padding: 4px 8px;
  border-top: 1px solid var(--site-theme-chrome-border);
  background: var(--site-theme-chrome-surface-strong);
  color: var(--site-theme-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
}

.infobox-lines {
  display: block;
}

.infobox-line {
  display: block;
  margin: 0;
  padding: 0;
}

.infobox-line + .infobox-line {
  margin-top: 3px;
}

.infobox-detail {
  color: var(--wiki-text);
}

.wiki-main h2 {
  margin: 31px 0 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--site-theme-chrome-border);
  color: var(--site-theme-heading);
  font-family: var(--font-serif);
  font-size: 1.62em;
  font-weight: 400;
  line-height: 1.25;
  scroll-margin-top: 72px;
  text-wrap: balance;
}

.wiki-main h3 {
  margin: 23px 0 8px;
  font-family: var(--font-serif);
  color: var(--site-theme-heading);
  font-size: 1.22em;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 72px;
  text-wrap: balance;
}

.edit-link {
  margin-left: 10px;
  color: var(--wiki-text-soft);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}

.edit-link::before {
  content: "[";
  color: var(--wiki-text-soft);
}

.edit-link::after {
  content: "]";
  color: var(--wiki-text-soft);
}

.edit-link a {
  color: var(--wiki-link);
}

.wiki-main p {
  margin: 0 0 .82em;
  text-align: left;
}

.wiki-body > p:first-child {
  font-size: 1.025em;
  line-height: 1.72;
}

.wiki-main ul,
.wiki-main ol {
  margin: 0 0 .82em;
  padding-left: 26px;
}

.wiki-main li {
  margin-bottom: 4px;
}

.wiki-main blockquote {
  margin: 18px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--site-theme-accent);
  background: var(--site-theme-chrome-surface);
  color: var(--wiki-text-soft);
  font-style: normal;
}

.wiki-main table {
  width: 100%;
  max-width: 100%;
  margin: 10px 0 16px;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.45;
}

.wiki-main th,
.wiki-main td {
  padding: 6px 8px;
  border: 1px solid var(--site-theme-chrome-border);
  overflow-wrap: break-word;
  text-align: left;
  vertical-align: top;
}

.wiki-main th {
  background: var(--site-theme-chrome-surface-strong);
  color: var(--site-theme-heading);
  font-weight: 700;
}

.wiki-main .wiki-infobox th {
  background: var(--site-theme-chrome-surface);
  color: var(--site-theme-heading);
}

.wiki-page[data-page-slug="Publications"] .wiki-body table,
.wiki-page[data-page-slug="Publications_zh"] .wiki-body table {
  table-layout: auto;
}

.wiki-page[data-page-slug="Publications"] .wiki-body th:nth-child(2),
.wiki-page[data-page-slug="Publications"] .wiki-body td:nth-child(2),
.wiki-page[data-page-slug="Publications_zh"] .wiki-body th:nth-child(2),
.wiki-page[data-page-slug="Publications_zh"] .wiki-body td:nth-child(2) {
  width: 154px;
  white-space: nowrap;
}

.wiki-page[data-page-slug="Publications"] .wiki-body td:first-child em,
.wiki-page[data-page-slug="Publications_zh"] .wiki-body td:first-child em {
  display: inline-block;
  margin-top: 2px;
  color: var(--wiki-text-soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.wiki-main code {
  padding: 1px 4px;
  border: 1px solid var(--wiki-border-light);
  background: var(--wiki-bg-alt);
  font-family: var(--font-mono);
  font-size: .92em;
}

.wiki-main pre {
  overflow-x: auto;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--wiki-border-light);
  background: var(--wiki-bg-alt);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

.wiki-main pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
}

.wiki-main section[data-footnotes] {
  margin-top: 18px;
  border-top: 1px solid var(--site-theme-chrome-border);
  color: var(--wiki-text-soft);
  font-size: 12px;
}

.wiki-main figure,
.wiki-main img {
  border: 1px solid var(--wiki-border-light);
}

.wiki-main img {
  max-width: 100%;
  height: auto;
}

.wiki-body p:has(> img:only-child) {
  display: flow-root;
  margin: 18px 0;
  text-align: center;
}

.wiki-body img {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  max-height: 380px;
  margin: 14px auto;
  object-fit: contain;
  background: var(--wiki-bg);
}

.wiki-body img[src$="poster.png"] {
  max-width: min(100%, 720px);
  max-height: 640px;
}

.wiki-body img[src$=".svg"] {
  max-height: 440px;
}

.wiki-body .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
}

.wiki-portal {
  width: 100%;
  color: var(--wiki-text);
  font-family: var(--font-sans);
  transition: transform .26s ease;
}

.wiki-portal-collapsed {
  animation: wiki-portal-recenter .26s ease-out;
  transform: translateY(-2vh);
}

.wiki-portal-hero {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.wiki-portal-collapsed .wiki-portal-hero {
  margin-bottom: 0;
}

.wiki-portal-masthead {
  display: grid;
  justify-items: center;
  margin: 0 auto 8px;
}

.wiki-main .wiki-portal-tagline {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--site-theme-action-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.wiki-portal-tagline-copy {
  display: none;
  animation: wiki-tagline-reveal .16s ease-out both;
}

html:not([data-site-palette]) .wiki-portal-tagline-text,
html[data-site-palette="text"] .wiki-portal-tagline-text,
html[data-site-palette="blue"] .wiki-portal-tagline-blue,
html[data-site-palette="gold"] .wiki-portal-tagline-gold,
html[data-site-palette="rose"] .wiki-portal-tagline-rose,
html[data-site-palette="green"] .wiki-portal-tagline-green,
html[data-site-palette="violet"] .wiki-portal-tagline-violet,
html[data-site-palette="charcoal"] .wiki-portal-tagline-charcoal {
  display: inline-block;
}

.wiki-portal-brand {
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.wiki-portal-name-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  max-width: min(620px, 86vw);
}

.wiki-portal-name {
  margin: 0;
  color: var(--site-theme-heading);
  font-family: var(--font-signature);
  font-size: 124px;
  font-style: normal;
  font-weight: 400;
  line-height: .95;
}

.wiki-portal-name-button {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wiki-portal-name-button:hover,
.wiki-portal-name-button:focus,
.wiki-portal-name-button:active {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-portal-name-button:focus-visible {
  border: 0;
  outline: 3px solid var(--site-theme-action-ink);
  outline-offset: 8px;
  background: transparent;
  box-shadow: none;
}

.wiki-portal-name-button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.wiki-portal-name-logos,
.wiki-portal-name-logo {
  grid-area: 1 / 1;
}

.wiki-portal-name-logos {
  display: none;
  width: min(620px, 86vw);
  max-width: 100%;
  line-height: 0;
}

.wiki-portal-name-logo {
  display: none;
  width: 100%;
  height: auto;
  max-height: 124px;
  object-fit: contain;
}

.wiki-portal-name-logo-tinted {
  aspect-ratio: 641 / 158;
  background: var(--site-theme-accent);
  -webkit-mask: var(--portal-wordmark-mask) center / contain no-repeat;
  mask: var(--portal-wordmark-mask) center / contain no-repeat;
}

.wiki-main .wiki-portal-name-logo {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
}

.wiki-main .wiki-portal-name-logo-tinted {
  background: var(--site-theme-accent);
}

.wiki-portal-name-text {
  --signature-ink: var(--site-theme-heading);
  grid-area: 1 / 1;
  animation: wiki-name-write 2.4s cubic-bezier(.33, 0, .2, 1) .12s both;
  transform-origin: left center;
  display: inline-block;
  max-width: 100%;
  color: var(--signature-ink);
  line-height: .95;
  white-space: nowrap;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .wiki-portal-name-text {
    background-image: linear-gradient(90deg, var(--signature-ink), var(--signature-ink));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

html[data-site-palette="blue"] .wiki-portal-name-text,
html[data-site-palette="gold"] .wiki-portal-name-text,
html[data-site-palette="rose"] .wiki-portal-name-text,
html[data-site-palette="green"] .wiki-portal-name-text,
html[data-site-palette="violet"] .wiki-portal-name-text,
html[data-site-palette="charcoal"] .wiki-portal-name-text {
  display: none;
}

html[data-site-palette="blue"] .wiki-portal-name-logos,
html[data-site-palette="gold"] .wiki-portal-name-logos,
html[data-site-palette="rose"] .wiki-portal-name-logos,
html[data-site-palette="green"] .wiki-portal-name-logos,
html[data-site-palette="violet"] .wiki-portal-name-logos,
html[data-site-palette="charcoal"] .wiki-portal-name-logos {
  display: block;
  animation: wiki-logo-write 2.4s cubic-bezier(.33, 0, .2, 1) .12s both;
  transform-origin: left center;
  will-change: clip-path;
}

html[data-site-palette="blue"] .wiki-portal-name-logo-blue,
html[data-site-palette="gold"] .wiki-portal-name-logo-gold,
html[data-site-palette="green"] .wiki-portal-name-logo-green,
html[data-site-palette="charcoal"] .wiki-portal-name-logo-charcoal {
  display: block;
}

html[data-site-palette="rose"] .wiki-portal-name-logo-tinted,
html[data-site-palette="violet"] .wiki-portal-name-logo-tinted {
  display: block;
}

.wiki-portal-search {
  --portal-search-leading-width: 50px;
  --portal-search-submit-width: 96px;
  max-width: 690px;
  margin: 18px auto 0;
}

.wiki-portal-editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: calc(100% - var(--portal-search-leading-width) - var(--portal-search-submit-width));
  margin: 14px 0 0 var(--portal-search-leading-width);
}

.wiki-portal-edition {
  min-width: 0;
  padding: 8px 10px 9px;
  border-top: 2px solid color-mix(in srgb, var(--site-theme-accent) 62%, var(--wiki-border-light));
  border-radius: 2px;
  background: color-mix(in srgb, var(--site-theme-accent) 3%, var(--wiki-bg));
  text-align: center;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}

.wiki-portal-edition:hover,
.wiki-portal-edition:focus-visible {
  border-color: var(--site-theme-action-ink);
  background: color-mix(in srgb, var(--site-theme-accent) 8%, var(--wiki-bg));
  text-decoration: none;
}

.wiki-portal-edition:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

.wiki-portal-edition strong {
  display: block;
  color: var(--site-theme-action-ink);
  font-size: 17px;
  line-height: 1.25;
}

.wiki-portal-edition:hover strong {
  text-decoration: underline;
}

.wiki-portal-edition span {
  display: block;
  margin-top: 2px;
  color: var(--wiki-text-soft);
  font-size: 12px;
  line-height: 1.35;
}

.wiki-portal-disclosures {
  --portal-search-width: 690px;
  --portal-search-leading-width: 50px;
  --portal-search-submit-width: 96px;
  --portal-updates-track-width: min(
    calc(var(--portal-search-width) - var(--portal-search-leading-width) - var(--portal-search-submit-width)),
    calc(100% - var(--portal-search-leading-width) - var(--portal-search-submit-width))
  );
  --portal-updates-track-offset: max(
    var(--portal-search-leading-width),
    calc((100% - var(--portal-search-width)) / 2 + var(--portal-search-leading-width))
  );
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 920px;
  margin: 16px auto 0;
}

.wiki-portal-disclosures > details {
  interpolate-size: allow-keywords;
}

.wiki-portal-disclosures > details::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    block-size .24s cubic-bezier(.22, 1, .36, 1),
    opacity .16s ease,
    transform .24s cubic-bezier(.22, 1, .36, 1);
}

.wiki-portal-disclosures > details[open]::details-content {
  block-size: auto;
  opacity: 1;
  transform: translateY(0);
}

.wiki-portal-timeline {
  position: relative;
  overflow: hidden;
  width: var(--portal-updates-track-width);
  margin-right: auto;
  margin-left: var(--portal-updates-track-offset);
  border: 1px solid var(--wiki-border-light);
  border-left: 4px solid var(--site-theme-accent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--site-theme-accent) 3%, var(--wiki-bg-alt));
  color: var(--wiki-text);
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease;
}

.wiki-portal-timeline:hover,
.wiki-portal-timeline:focus-within {
  border-color: var(--site-theme-accent);
  background: color-mix(in srgb, var(--site-theme-accent) 5%, var(--wiki-bg-alt));
}

.wiki-portal-timeline summary {
  display: block;
  padding: 11px 48px 11px 16px;
  cursor: pointer;
  list-style: none;
}

.wiki-portal-timeline summary::-webkit-details-marker {
  display: none;
}

.wiki-portal-timeline-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wiki-portal-timeline-heading::after {
  position: absolute;
  top: 21px;
  right: 14px;
  color: var(--site-theme-accent);
  content: "▸";
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
}

.wiki-portal-timeline[open] .wiki-portal-timeline-heading::after {
  transform: translateY(-50%) rotate(90deg);
}

.wiki-portal-timeline summary strong {
  color: var(--site-theme-heading);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
}

.wiki-portal-timeline summary em {
  margin-left: auto;
  color: var(--wiki-text-soft);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.35;
}

.wiki-portal-news-preview {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--site-theme-accent) 14%, var(--wiki-border-light));
}

.wiki-portal-news-preview time {
  padding-top: 2px;
  color: var(--site-theme-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.wiki-portal-news-preview b,
.wiki-portal-news-preview small {
  display: block;
  text-wrap: balance;
}

.wiki-portal-news-preview b {
  color: var(--site-theme-action-ink);
  font-size: 14px;
  line-height: 1.35;
}

.wiki-portal-news-preview small {
  margin-top: 1px;
  color: var(--wiki-text-soft);
  font-size: 12.5px;
  line-height: 1.4;
}

.wiki-portal-news[open] .wiki-portal-news-preview {
  display: none;
}

.wiki-portal-updates-window {
  height: var(--portal-updates-window-height, 316px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.wiki-portal-updates-window:focus-visible {
  outline: 2px solid var(--wiki-accent);
  outline-offset: -2px;
}

.wiki-portal-news-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0 12px 4px;
  border-top: 1px solid color-mix(in srgb, var(--site-theme-accent) 14%, var(--wiki-border-light));
  list-style: none;
}

.wiki-portal-news-list li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--site-theme-accent) 10%, var(--wiki-border-light));
}

.wiki-portal-news-list li:last-child {
  border-bottom: 0;
}

.wiki-portal-news-list time {
  padding-top: 2px;
  color: var(--site-theme-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.wiki-portal-news-list a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.wiki-portal-news-list p {
  margin: 1px 0 0;
  color: var(--wiki-text-soft);
  font-size: 12.5px;
  line-height: 1.4;
  text-wrap: balance;
}

.wiki-visitor-atlas {
  padding: 12px;
  border-top: 1px solid color-mix(in srgb, var(--site-theme-accent) 14%, var(--wiki-border-light));
}

.wiki-visitor-atlas figure {
  margin: 0;
}

.wiki-visitor-atlas-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 672 / 276;
  overflow: hidden;
  border: 1px solid var(--wiki-border-light);
  border-radius: 2px;
  background: var(--wiki-bg-alt);
}

.wiki-visitor-atlas-cluster {
  fill: var(--site-theme-action-ink);
  pointer-events: none;
}

.wiki-visitor-atlas-cluster.level-1 {
  opacity: .42;
}

.wiki-visitor-atlas-cluster.level-2 {
  opacity: .68;
}

.wiki-visitor-atlas-cluster.level-3 {
  opacity: .92;
}

.wiki-visitor-atlas figcaption {
  margin-top: 9px;
  color: var(--wiki-text-soft);
  font-size: 10.5px;
  line-height: 1.4;
}

.wiki-visitor-atlas-legend {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2.8vw, 24px);
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--site-theme-accent) 12%, var(--wiki-border-light));
  color: var(--wiki-text-soft);
}

.wiki-visitor-atlas-legend-trigger {
  position: relative;
  appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--wiki-text);
  cursor: default;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .055em;
  text-align: left;
  text-transform: uppercase;
}

.wiki-visitor-atlas-legend-trigger::after {
  position: absolute;
  inset: -12px -6px;
  content: "";
}

.wiki-visitor-atlas-legend-trigger:hover {
  border-bottom-color: var(--site-theme-accent);
  color: var(--site-theme-action-ink);
}

.wiki-visitor-atlas-legend-trigger:focus-visible {
  border-bottom-color: transparent;
  border-radius: 1px;
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 3px;
}

.wiki-visitor-atlas-legend-scale {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3px, 1vw, 9px);
}

.wiki-visitor-atlas-legend-scale > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-inline: clamp(3px, .8vw, 8px);
  border-left: 1px solid color-mix(in srgb, var(--wiki-border-light) 72%, transparent);
  white-space: nowrap;
}

.wiki-visitor-atlas-legend-scale > span:first-child {
  border-left: 0;
}

.wiki-visitor-atlas-legend-scale i {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wiki-border);
}

.wiki-visitor-atlas-legend-scale i.level-1,
.wiki-visitor-atlas-legend-scale i.level-2,
.wiki-visitor-atlas-legend-scale i.level-3 {
  background: var(--site-theme-action-ink);
}

.wiki-visitor-atlas-legend-scale i.level-1 {
  opacity: .42;
}

.wiki-visitor-atlas-legend-scale i.level-2 {
  width: 7px;
  height: 7px;
  opacity: .68;
}

.wiki-visitor-atlas-legend-scale i.level-3 {
  width: 8px;
  height: 8px;
  opacity: .92;
}

.wiki-visitor-atlas-owner-dialog {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  max-height: min(620px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--wiki-border);
  border-top: 3px solid var(--site-theme-accent);
  border-radius: 2px;
  background: var(--wiki-bg);
  box-shadow: 0 18px 54px rgb(0 0 0 / 20%);
  color: var(--wiki-text);
}

.wiki-visitor-atlas-owner-dialog::backdrop {
  background: rgb(32 33 34 / 38%);
}

.wiki-visitor-atlas-owner-dialog form {
  display: grid;
  gap: 0;
  margin: 0;
}

.wiki-visitor-atlas-owner-dialog header,
.wiki-visitor-atlas-owner-dialog footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.wiki-visitor-atlas-owner-dialog header {
  justify-content: space-between;
  border-bottom: 1px solid var(--wiki-border-light);
}

.wiki-visitor-atlas-owner-dialog header strong {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.25;
}

.wiki-visitor-atlas-owner-dialog header button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wiki-text-soft);
  cursor: pointer;
  font: 24px/1 var(--font-sans);
}

.wiki-visitor-atlas-owner-body {
  display: grid;
  gap: 8px;
  padding: 15px 14px 8px;
}

.wiki-visitor-atlas-owner-body p {
  margin: 0 0 4px;
  color: var(--wiki-text-soft);
  font-size: 12.5px;
  line-height: 1.5;
  text-wrap: balance;
}

.wiki-visitor-atlas-owner-body label {
  color: var(--wiki-text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}

.wiki-visitor-atlas-owner-body input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--wiki-border);
  border-radius: 1px;
  background: var(--wiki-bg);
  color: var(--wiki-text);
  font: 15px/1.3 var(--font-sans);
}

.wiki-visitor-atlas-owner-dialog button:focus-visible,
.wiki-visitor-atlas-owner-body input:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

.wiki-visitor-atlas-owner-message {
  min-height: 1.5em;
  color: var(--site-theme-heading) !important;
  font-weight: 650;
}

.wiki-visitor-atlas-owner-message.is-success {
  color: var(--site-theme-action-ink) !important;
}

.wiki-visitor-atlas-owner-dialog footer {
  justify-content: flex-end;
  padding-top: 10px;
}

.wiki-visitor-atlas-owner-dialog footer button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--wiki-border);
  border-radius: 1px;
  background: var(--wiki-bg);
  color: var(--wiki-text);
  cursor: pointer;
  font: 700 12px/1.2 var(--font-sans);
}

.wiki-visitor-atlas-owner-dialog footer button[type="submit"] {
  border-color: var(--site-theme-action-ink);
  background: var(--site-theme-action-ink);
  color: var(--wiki-bg);
}

.wiki-visitor-atlas-owner-dialog footer button:disabled {
  cursor: wait;
  opacity: .55;
}

.wiki-visitor-atlas-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}

.wiki-visitor-atlas-status {
  margin: 0;
  color: var(--site-theme-heading);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-wrap: balance;
}

.wiki-visitor-atlas-retry {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--site-theme-chrome-border);
  border-radius: 1px;
  background: var(--wiki-bg);
  color: var(--site-theme-action-ink);
  cursor: pointer;
  font: 700 12px/1.2 var(--font-sans);
}

.wiki-visitor-atlas-retry:hover {
  background: var(--site-theme-chrome-surface-strong);
}

.wiki-visitor-atlas-retry:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 2px;
}

.wiki-visitor-atlas[data-status="loading"] .wiki-visitor-atlas-map {
  opacity: .76;
}

.wiki-portal-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wiki-portal-directory {
  width: 100%;
}

.wiki-portal-directory summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 620px);
  margin-inline: auto;
  min-height: 42px;
  color: var(--site-theme-heading);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  list-style: none;
}

.wiki-portal-directory summary::-webkit-details-marker {
  display: none;
}

.wiki-portal-directory summary span::after {
  content: "▸";
  display: inline-block;
  margin-left: 8px;
  color: var(--site-theme-action-ink);
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(1px) rotate(0deg);
  transition: transform .2s ease;
}

@keyframes wiki-portal-recenter {
  from {
    opacity: .92;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(-2vh);
  }
}

@keyframes wiki-name-write {
  from {
    background-size: 0% 100%;
    opacity: .72;
  }

  52% {
    opacity: 1;
  }

  to {
    background-size: 100% 100%;
    opacity: 1;
  }
}

@keyframes wiki-logo-write {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: .72;
  }

  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes wiki-tagline-reveal {
  from {
    opacity: .3;
  }

  to {
    opacity: 1;
  }
}

.wiki-portal-directory[open] summary span::after {
  transform: translateY(1px) rotate(90deg);
}

.wiki-portal-view-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 4px;
  color: var(--wiki-text-soft);
  font-family: var(--font-sans);
  font-size: 11px;
}

.wiki-portal-view-switcher > span {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wiki-portal-view-switcher > div {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--site-theme-chrome-border);
  border-radius: 999px;
  background: var(--wiki-bg-alt);
}

.wiki-portal-view-switcher button {
  min-height: 30px;
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wiki-text-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.wiki-portal-view-switcher button:hover,
.wiki-portal-view-switcher button.is-active {
  background: color-mix(in srgb, var(--site-theme-accent) 10%, var(--wiki-bg));
  color: var(--site-theme-action-ink);
}

.wiki-portal-view-switcher button:focus-visible {
  outline: 2px solid var(--site-theme-action-ink);
  outline-offset: 1px;
}

.wiki-portal-cube-stage-cube {
  --portal-cube-reading-width: var(--portal-updates-track-width);
  --portal-cube-reading-height: 620px;
  --portal-cube-reading-top: 32px;
  --portal-cube-pin-height: 44px;
  position: relative;
  isolation: isolate;
  width: min(100%, 920px);
  height: 820px;
  margin-inline: auto;
  overflow: clip;
  perspective: 2050px;
  perspective-origin: 50% 40%;
  transition: height .78s cubic-bezier(.16, 1, .3, 1);
}

.wiki-portal-cube-stage-cube[data-active-face] {
  height: 680px;
  overflow: visible;
}

.wiki-portal-cube-stage-cube[data-face-settled][data-active-face] {
  perspective: none;
}

.wiki-portal-cube-stage-cube::after {
  position: absolute;
  z-index: 0;
  bottom: 28px;
  left: 50%;
  width: 610px;
  height: 82px;
  background:
    radial-gradient(ellipse, color-mix(in srgb, var(--site-theme-accent) 12%, rgb(24 28 36 / 24%)) 0, transparent 70%);
  content: '';
  filter: blur(18px);
  opacity: .76;
  pointer-events: none;
  transform: translateX(-50%);
}

.wiki-portal-grid-cube {
  --portal-cube-size: 550px;
  --portal-cube-width: var(--portal-cube-size);
  --portal-cube-height: var(--portal-cube-size);
  --portal-cube-accent: var(--site-theme-action-ink);
  --portal-cube-edge: color-mix(in srgb, var(--site-theme-accent) 34%, var(--wiki-border-light));
  --portal-cube-paper: color-mix(in srgb, var(--wiki-bg) 86%, #f0e8dc 14%);
  --portal-cube-paper-deep: color-mix(in srgb, var(--wiki-bg) 78%, #e8ded0 17%, var(--site-theme-accent) 5%);
  position: relative;
  z-index: 1;
  top: 88px;
  display: block;
  width: var(--portal-cube-width);
  height: var(--portal-cube-height);
  margin: 0 auto;
  transform: rotateX(-19deg) rotateY(-34deg);
  transform-style: preserve-3d;
  transition:
    top .68s cubic-bezier(.16, 1, .3, 1),
    width .68s cubic-bezier(.16, 1, .3, 1),
    height .68s cubic-bezier(.16, 1, .3, 1),
    transform .78s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
  will-change: transform;
}

.wiki-portal-grid-cube:hover {
  transform: rotateX(-17.5deg) rotateY(-32.5deg) translateY(-2px);
}

.wiki-portal-grid-cube[data-active-face] {
  --portal-cube-width: var(--portal-cube-reading-width);
  --portal-cube-height: var(--portal-cube-reading-height);
  margin-right: auto;
  margin-left: var(--portal-updates-track-offset);
  top: var(--portal-cube-reading-top);
  transform: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.wiki-portal-grid-cube[data-active-face]:hover {
  transform: none;
}

.wiki-portal-grid-cube[data-face-settled][data-active-face] {
  transform-style: flat;
  will-change: auto;
}

.wiki-portal-grid-cube[data-face-settled][data-active-face] {
  pointer-events: auto;
}

.wiki-portal-grid-cube .wiki-portal-cube-panel {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--portal-cube-edge);
  border-radius: 7px;
  background:
    radial-gradient(circle at 18% 8%, rgb(255 255 255 / 76%) 0, transparent 31%),
    linear-gradient(145deg, rgb(255 255 255 / 52%) 0, transparent 38%),
    linear-gradient(155deg, var(--portal-cube-paper) 0, var(--portal-cube-paper-deep) 100%);
  backface-visibility: hidden;
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 88%),
    inset -1px -1px 0 color-mix(in srgb, var(--portal-cube-accent) 9%, transparent),
    0 24px 58px rgb(31 35 42 / 8%);
  transform: var(--portal-cube-face-transform);
  transform-style: preserve-3d;
  transition:
    width .68s cubic-bezier(.16, 1, .3, 1),
    height .68s cubic-bezier(.16, 1, .3, 1),
    background-color .36s ease,
    border-color .36s ease,
    box-shadow .36s ease,
    opacity .24s ease,
    transform .78s cubic-bezier(.16, 1, .3, 1);
  pointer-events: auto;
}

.wiki-portal-grid-cube .wiki-portal-block {
  --portal-section-accent-resolved: var(--portal-cube-accent);
  padding: 30px 32px;
}

.wiki-portal-grid-cube .wiki-portal-cube-face-top {
  --portal-cube-face-transform: rotateX(90deg) translateZ(calc(var(--portal-cube-size) / 2));
}

html[data-site-palette="text"] .wiki-portal-grid-cube {
  --portal-cube-paper: var(--wiki-bg);
  --portal-cube-paper-deep: var(--wiki-bg-alt);
}

.wiki-portal-grid-cube .wiki-portal-cube-face-front {
  --portal-cube-face-transform: translateZ(calc(var(--portal-cube-size) / 2));
  background:
    radial-gradient(circle at 15% 5%, rgb(255 255 255 / 82%) 0, transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 55%) 0, transparent 36%),
    linear-gradient(155deg, var(--portal-cube-paper) 0, var(--portal-cube-paper-deep) 100%);
}

.wiki-portal-grid-cube .wiki-portal-cube-face-right {
  --portal-cube-face-transform: rotateY(90deg) translateZ(calc(var(--portal-cube-size) / 2));
  background:
    radial-gradient(circle at 10% 4%, rgb(255 255 255 / 52%) 0, transparent 31%),
    linear-gradient(105deg, color-mix(in srgb, var(--portal-cube-accent) 4%, transparent) 0, transparent 34%),
    linear-gradient(145deg, var(--portal-cube-paper) 0, var(--portal-cube-paper-deep) 100%);
}

.wiki-portal-cube-hover-zones {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: auto;
}

.wiki-portal-cube-hover-zone {
  position: absolute;
  inset: 0;
  display: block;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.wiki-portal-cube-hover-zone-top {
  clip-path: polygon(
    calc(50% - 316px) 128px,
    calc(50% - 50px) 42px,
    calc(50% + 300px) 98px,
    calc(50% + 65px) 184px
  );
}

.wiki-portal-cube-hover-zone-front {
  clip-path: polygon(
    calc(50% - 316px) 128px,
    calc(50% + 65px) 184px,
    calc(50% + 65px) 658px,
    calc(50% - 242px) 542px
  );
}

.wiki-portal-cube-hover-zone-right {
  clip-path: polygon(
    calc(50% + 65px) 184px,
    calc(50% + 300px) 98px,
    calc(50% + 282px) 544px,
    calc(50% + 65px) 658px
  );
}

.wiki-portal-cube-touch-angles {
  display: none;
}

.wiki-portal-cube-touch-return {
  display: none;
}

.wiki-portal-grid-cube .wiki-portal-cube-panel::before {
  position: absolute;
  z-index: 2;
  inset: 1px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: inherit;
  box-shadow:
    inset 0 0 34px color-mix(in srgb, var(--portal-cube-accent) 3%, transparent),
    inset 0 -22px 38px rgb(70 60 48 / 3%);
  content: '';
  pointer-events: none;
}

.wiki-portal-grid-cube .wiki-portal-cube-face-top::after,
.wiki-portal-grid-cube .wiki-portal-cube-face-front::after,
.wiki-portal-grid-cube .wiki-portal-cube-face-right::after {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--portal-cube-accent) 42%, white);
  box-shadow: 0 0 5px color-mix(in srgb, var(--portal-cube-accent) 20%, transparent);
  content: '';
  opacity: .62;
  pointer-events: none;
}

.wiki-portal-grid-cube .wiki-portal-cube-face-top::after {
  right: 0;
  bottom: -1px;
  left: 0;
  top: auto;
  width: auto;
  height: 1px;
}

.wiki-portal-grid-cube .wiki-portal-cube-face-front::after {
  right: -1px;
}

.wiki-portal-grid-cube .wiki-portal-cube-face-right::after {
  left: -1px;
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"],
.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"]:hover,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"],
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"]:hover,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"],
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"]:hover {
  border-color: color-mix(in srgb, var(--portal-section-accent-resolved) 46%, var(--site-theme-chrome-border));
  background:
    linear-gradient(145deg, rgb(255 255 255 / 86%) 0, transparent 38%),
    color-mix(in srgb, var(--portal-cube-paper) 96%, var(--portal-section-accent-resolved) 4%);
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 96%),
    0 28px 72px color-mix(in srgb, var(--portal-section-accent-resolved) 13%, rgb(18 22 29 / 13%));
}

.wiki-portal-grid-cube[data-active-face] .wiki-portal-block {
  opacity: 0;
  pointer-events: none;
}

.wiki-portal-grid-cube[data-face-settled][data-active-face] .wiki-portal-block {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"],
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"],
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"] {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backface-visibility: visible;
  transform: none;
  transform-style: preserve-3d;
}

.wiki-portal-grid-cube[data-face-settled][data-active-face="top"] [data-cube-face="top"],
.wiki-portal-grid-cube[data-face-settled][data-active-face="front"] [data-cube-face="front"],
.wiki-portal-grid-cube[data-face-settled][data-active-face="right"] [data-cube-face="right"] {
  display: block;
  opacity: 1;
  visibility: visible;
  transform-style: flat;
}

.wiki-portal-grid-cube[data-face-settled][data-active-face="top"] [data-cube-face="top"],
.wiki-portal-grid-cube[data-face-settled][data-active-face="front"] [data-cube-face="front"],
.wiki-portal-grid-cube[data-face-settled][data-active-face="right"] [data-cube-face="right"] {
  pointer-events: auto;
}

.wiki-portal-grid-cube[data-face-settled][data-active-face="top"] [data-cube-face="top"] a,
.wiki-portal-grid-cube[data-face-settled][data-active-face="front"] [data-cube-face="front"] a,
.wiki-portal-grid-cube[data-face-settled][data-active-face="right"] [data-cube-face="right"] a {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"]::before,
.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"]::after,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"]::before,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"]::after,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"]::before,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"]::after {
  display: none;
}

.wiki-portal-grid-cube .wiki-portal-block h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  padding: 0 0 14px;
  border-left: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--portal-section-accent-resolved) 34%, transparent);
  background: transparent;
  font-family: var(--font-sans);
  color: var(--site-theme-heading);
  font-size: 33px;
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: 1.06;
  text-transform: none;
  transform: translateZ(6px);
  transition: color .25s ease, letter-spacing .35s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"] h3,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"] h3,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"] h3 {
  color: color-mix(in srgb, var(--portal-cube-accent) 72%, var(--site-theme-heading));
  letter-spacing: -.045em;
  transform: none;
}

.wiki-portal-grid-cube .wiki-portal-group {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  transform: translateZ(4px);
}

.wiki-portal-grid-cube .wiki-portal-group + .wiki-portal-group {
  margin-top: 12px;
  padding-top: 11px;
  border-color: color-mix(in srgb, var(--portal-section-accent-resolved) 18%, var(--wiki-border-light));
}

.wiki-portal-grid-cube .wiki-portal-group-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 6px;
  padding: 4px 10px 4px 9px;
  border: 0;
  border-left: 2px solid var(--portal-section-accent-resolved);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--portal-section-accent-resolved) 9%, var(--wiki-bg)), transparent);
  font-size: 12px;
  font-weight: 820;
  color: color-mix(in srgb, var(--portal-section-accent-resolved) 78%, var(--wiki-text));
  letter-spacing: .075em;
  line-height: 1.2;
  transform: translateZ(4px);
  transition: background-color .24s ease, border-color .24s ease, box-shadow .3s ease, color .24s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"] .wiki-portal-group-label,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"] .wiki-portal-group-label,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"] .wiki-portal-group-label {
  border-color: var(--portal-section-accent-resolved);
  background: linear-gradient(90deg, color-mix(in srgb, var(--portal-section-accent-resolved) 14%, var(--wiki-bg)), transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--portal-section-accent-resolved) 8%, transparent);
  color: var(--portal-cube-accent);
  transform: none;
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"] .wiki-portal-group,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"] .wiki-portal-group,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"] .wiki-portal-group {
  transform: none;
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"] *,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"] *,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"] * {
  backface-visibility: visible;
  transform: none;
  transform-style: flat;
}

.wiki-portal-grid-cube .wiki-portal-block li {
  padding: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--portal-section-accent-resolved) 11%, transparent);
  line-height: 1.15;
}

.wiki-portal-grid-cube .wiki-portal-block a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 5px 3px;
  color: color-mix(in srgb, var(--portal-section-accent-resolved) 82%, var(--wiki-text));
  font-size: 11px;
  font-weight: 660;
  letter-spacing: .015em;
  line-height: 1.18;
  text-decoration: none;
  transform-origin: left center;
  transition: background-color .14s ease, color .14s ease, letter-spacing .14s ease, padding .16s ease, transform .18s cubic-bezier(.16, 1, .3, 1);
}

.wiki-portal-grid-cube .wiki-portal-block a::after {
  flex: 0 0 auto;
  color: var(--portal-cube-accent);
  content: '↗';
  font-size: 12px;
  opacity: .3;
  transform: translateX(-5px);
  transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.wiki-portal-grid-cube .wiki-portal-block a:hover,
.wiki-portal-grid-cube .wiki-portal-block a:focus-visible {
  padding-inline: 7px 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--portal-section-accent-resolved) 9%, var(--wiki-bg)), transparent 88%);
  color: var(--portal-cube-accent);
  letter-spacing: .025em;
  transform: translateX(3px) translateZ(18px) scale(1.025);
}

.wiki-portal-grid-cube[data-active-face] .wiki-portal-block a:hover,
.wiki-portal-grid-cube[data-active-face] .wiki-portal-block a:focus-visible {
  font-weight: 780;
  transform: none;
}

.wiki-portal-grid-cube .wiki-portal-block a:hover {
  outline: 0;
}

.wiki-portal-grid-cube .wiki-portal-block a:focus-visible {
  border-radius: 2px;
  outline: 2px solid color-mix(in srgb, var(--portal-cube-accent) 74%, white);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--portal-cube-accent) 10%, transparent);
}

.wiki-portal-grid-cube[data-active-face="top"] [data-cube-face="top"] a,
.wiki-portal-grid-cube[data-active-face="front"] [data-cube-face="front"] a,
.wiki-portal-grid-cube[data-active-face="right"] [data-cube-face="right"] a {
  padding-block: 4px;
  font-size: 11.5px;
  font-weight: 700;
}

.wiki-portal-grid-cube .wiki-portal-cube-face-top .wiki-portal-group + .wiki-portal-group,
.wiki-portal-grid-cube .wiki-portal-cube-face-front .wiki-portal-group + .wiki-portal-group,
.wiki-portal-grid-cube .wiki-portal-cube-face-right .wiki-portal-group + .wiki-portal-group {
  margin-top: 7px;
  padding-top: 6px;
}

.wiki-portal-grid-cube .wiki-portal-cube-face-top a,
.wiki-portal-grid-cube .wiki-portal-cube-face-front a,
.wiki-portal-grid-cube .wiki-portal-cube-face-right a {
  padding-block: 3px;
}

.wiki-portal-grid-cube .wiki-portal-block a:hover::after,
.wiki-portal-grid-cube .wiki-portal-block a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.wiki-portal-grid-cube .wiki-portal-block li > span {
  display: none;
}

.wiki-portal-cube-pin {
  --portal-cube-accent: var(--site-theme-action-ink);
  position: absolute;
  z-index: 5;
  top: calc(var(--portal-cube-reading-top) - var(--portal-cube-pin-height));
  right: calc(100% - var(--portal-updates-track-offset) - var(--portal-cube-reading-width));
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--portal-cube-pin-height);
  min-width: var(--portal-cube-pin-height);
  min-height: var(--portal-cube-pin-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--portal-cube-accent);
  cursor: pointer;
  transition: color .18s ease, transform .18s cubic-bezier(.16, 1, .3, 1);
}

.wiki-portal-cube-pin-icon {
  width: 27px;
  height: 34px;
  overflow: visible;
  fill: none;
  filter: drop-shadow(0 4px 3px rgb(18 22 29 / 18%));
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-18deg) translateY(-1px);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.wiki-portal-cube-pin-head {
  fill: color-mix(in srgb, var(--portal-cube-accent) 78%, white);
  stroke: color-mix(in srgb, var(--portal-cube-accent) 70%, black);
  stroke-width: 1;
}

.wiki-portal-cube-pin-body {
  fill: color-mix(in srgb, var(--portal-cube-accent) 62%, white);
  stroke: color-mix(in srgb, var(--portal-cube-accent) 70%, black);
  stroke-width: 1;
}

.wiki-portal-cube-pin-collar {
  fill: color-mix(in srgb, var(--portal-cube-accent) 82%, white);
  stroke: color-mix(in srgb, var(--portal-cube-accent) 70%, black);
  stroke-width: 1;
}

.wiki-portal-cube-pin-needle {
  stroke: color-mix(in srgb, var(--wiki-text-soft) 76%, white);
  stroke-width: 1.4;
}

.wiki-portal-cube-pin-highlight {
  fill: rgb(255 255 255 / 62%);
}

.wiki-portal-cube-pin:hover,
.wiki-portal-cube-pin:focus-visible {
  transform: scale(1.03);
}

.wiki-portal-cube-pin[aria-pressed="true"] {
  background: transparent;
  box-shadow: none;
}

.wiki-portal-cube-pin[aria-pressed="true"] .wiki-portal-cube-pin-icon {
  filter: drop-shadow(0 1px 1px rgb(18 22 29 / 12%));
  transform: rotate(0deg) translateY(10px) scale(.94);
  transition: none;
}

.wiki-portal-cube-pin:focus-visible {
  outline: 2px solid var(--portal-cube-accent);
  outline-offset: 2px;
}

.wiki-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
  margin-top: 16px;
  text-align: left;
}

.wiki-portal-block {
  --portal-section-accent: #36c;
  --portal-section-accent-resolved: color-mix(in srgb, var(--portal-section-accent) 72%, var(--site-theme-accent));
  min-width: 0;
}

.wiki-portal-block:nth-of-type(2) {
  --portal-section-accent: #2a7f62;
}

.wiki-portal-block:nth-of-type(3) {
  --portal-section-accent: #7b5ea7;
}

.wiki-portal-block h3 {
  margin: 0 0 14px;
  padding: 7px 10px;
  border-left: 4px solid var(--portal-section-accent-resolved);
  border-bottom: 1px solid color-mix(in srgb, var(--portal-section-accent-resolved) 18%, #eaecf0);
  background: color-mix(in srgb, var(--portal-section-accent-resolved) 7%, var(--wiki-bg-alt));
  color: var(--wiki-text);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
}

.wiki-portal-block h3 span {
  display: block;
  color: color-mix(in srgb, var(--portal-section-accent-resolved) 38%, var(--wiki-text));
}

.wiki-portal-group {
  margin-top: 12px;
}

.wiki-portal-group:first-of-type {
  margin-top: 0;
}

.wiki-portal-group + .wiki-portal-group {
  padding-top: 10px;
  border-top: 1px solid #eaecf0;
}

.wiki-portal-group-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin: 0 0 5px;
  padding: 2px 7px 2px 6px;
  border: 1px solid #eaecf0;
  border-left: 3px solid var(--portal-section-accent-resolved);
  border-radius: 2px;
  background: var(--wiki-bg-alt);
  color: color-mix(in srgb, var(--portal-section-accent-resolved) 62%, var(--wiki-text));
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.wiki-portal-block li {
  padding: 7px 0;
  border-top: 1px solid #eaecf0;
}

.wiki-portal-block li:first-child {
  border-top: 0;
}

.wiki-portal-block a {
  display: inline-block;
  font-weight: 700;
  line-height: 1.3;
}

.wiki-portal-block li > span {
  display: block;
  margin-top: 2px;
  color: var(--wiki-text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.wiki-footer {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--site-theme-chrome-border);
  color: var(--wiki-text-soft);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
}

.wiki-footer p {
  margin: 0 0 6px;
}

@media (max-width: 1100px) and (min-width: 721px) {
  .wiki-topbar-inner {
    grid-template-columns: 168px minmax(0, 1fr);
    column-gap: 18px;
  }

  .wiki-topbar-controls {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .wiki-shell {
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 16px 16px 60px;
  }

  .wiki-shell:has(.wiki-portal) {
    padding: clamp(16px, 4vh, 32px) 16px 56px;
  }

  .wiki-shell:has(.wiki-portal-collapsed) {
    padding: clamp(20px, 7vh, 56px) 16px;
  }

  .wiki-sidebar-desktop {
    display: none;
  }

  .wiki-mobile-nav-toggle {
    position: sticky;
    top: 8px;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 7px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--site-theme-accent-border);
    border-radius: 2px;
    background: color-mix(in srgb, var(--site-theme-accent) 3%, var(--wiki-bg));
    color: var(--site-theme-action-ink);
    box-shadow: none;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .wiki-mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--site-theme-action-ink);
    outline-offset: 2px;
  }

  .wiki-mobile-nav-dialog[open] {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: min(82vw, 320px);
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 0 18px 28px;
    border: 0;
    border-right: 1px solid var(--site-theme-chrome-border);
    margin: 0;
    background: var(--wiki-bg);
    box-shadow: 10px 0 30px rgba(32, 33, 34, .18);
    color: var(--wiki-text);
    overscroll-behavior: contain;
  }

  .wiki-mobile-nav-dialog::backdrop {
    background: rgba(32, 33, 34, .42);
  }

  .wiki-mobile-nav-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    border-bottom: 1px solid var(--site-theme-chrome-border);
    background: var(--site-theme-chrome-surface);
    color: var(--site-theme-heading);
    font-family: var(--font-sans);
    font-size: 15px;
  }

  .wiki-mobile-nav-header button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--site-theme-action-ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .wiki-mobile-nav-header button:focus-visible {
    border-color: var(--site-theme-action-ink);
    outline: 2px solid var(--site-theme-action-ink);
    outline-offset: 1px;
  }

  .wiki-mobile-nav-dialog .wiki-sidebar-content {
    padding-top: 2px;
  }

  .wiki-mobile-nav-dialog .wiki-sidebar-content h4:first-child {
    margin-top: 14px;
  }

  .wiki-tabs-inner {
    display: block;
    overflow-x: auto;
    padding: 0 16px;
    white-space: nowrap;
  }

  .wiki-tabs-content {
    width: max-content;
    min-width: 100%;
  }

  .wiki-main {
    max-width: 100%;
  }

  .wiki-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .wiki-portal-cube-stage-cube {
    height: 670px;
  }

  .wiki-portal-grid-cube {
    --portal-cube-size: 430px;
    top: 88px;
  }

  .wiki-portal-cube-hover-zone-top {
    clip-path: polygon(
      calc(50% - 247px) 119px,
      calc(50% - 39px) 52px,
      calc(50% + 235px) 96px,
      calc(50% + 51px) 163px
    );
  }

  .wiki-portal-cube-hover-zone-front {
    clip-path: polygon(
      calc(50% - 247px) 119px,
      calc(50% + 51px) 163px,
      calc(50% + 51px) 534px,
      calc(50% - 232px) 443px
    );
  }

  .wiki-portal-cube-hover-zone-right {
    clip-path: polygon(
      calc(50% + 51px) 163px,
      calc(50% + 235px) 96px,
      calc(50% + 221px) 444px,
      calc(50% + 51px) 534px
    );
  }

}

@media (max-width: 720px) {
  .wiki-topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding-block: 8px;
  }

  .wiki-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .wiki-topbar-controls {
    display: contents;
  }

  .lang-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .wiki-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .wiki-search-panel {
    left: 36px;
  }

  .wiki-search-submit {
    min-width: 66px;
    padding: 0 10px;
  }

  .chat-xinbao-shell {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(620px, calc(100vh - 24px));
  }

  .chat-xinbao-minimized {
    right: 12px;
    bottom: 12px;
  }

  .wiki-infobox {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }

  .wiki-title {
    font-size: 1.6em;
  }

  .wiki-page[data-page-type="publication"] .wiki-title {
    font-size: 1.36em;
  }

  .wiki-main h2 {
    font-size: 1.35em;
  }

  .wiki-portal-hero {
    margin-top: 4px;
  }

  .wiki-portal-masthead {
    margin-bottom: 14px;
  }

  .wiki-portal-name {
    font-size: 84px;
  }

  .wiki-portal-search {
    --portal-search-leading-width: 46px;
    margin-top: 18px;
  }

  .wiki-search-portal {
    --wiki-search-control-size: 40px;
  }

  .wiki-search-portal input,
  .wiki-search-portal .wiki-search-language-select,
  .wiki-search-portal .wiki-search-submit {
    height: 40px;
  }

  .wiki-search-portal input {
    font-size: 14px;
  }

  .wiki-search-portal .wiki-search-language-select {
    width: 86px;
    padding-left: 8px;
    font-size: 12px;
  }

  .wiki-portal-editions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wiki-portal-grid {
    grid-template-columns: 1fr;
  }

  .wiki-portal-cube-stage-cube {
    --portal-touch-cube-size: min(78vw, 310px);
    height: 470px;
    overflow: clip;
    perspective: 1450px;
    perspective-origin: 50% 36%;
  }

  .wiki-portal-grid-cube,
  .wiki-portal-grid-cube:hover,
  .wiki-portal-grid-cube:not([data-active-face]) {
    --portal-cube-size: var(--portal-touch-cube-size);
    display: block;
    width: var(--portal-cube-size);
    height: var(--portal-cube-size);
    margin-top: 0;
    top: 70px;
    animation: none;
    pointer-events: none;
  }

  .wiki-portal-grid-cube:not([data-active-face]) .wiki-portal-cube-panel {
    width: var(--portal-cube-size);
    height: var(--portal-cube-size);
  }

  .wiki-portal-grid-cube:not([data-active-face]) .wiki-portal-block {
    padding: 20px;
  }

  .wiki-portal-grid-cube:not([data-active-face]) .wiki-portal-block h3 {
    margin-bottom: 11px;
    padding-bottom: 9px;
    font-size: 24px;
  }

  .wiki-portal-grid-cube:not([data-active-face]) .wiki-portal-group {
    margin-top: 7px;
  }

  .wiki-portal-grid-cube:not([data-active-face]) .wiki-portal-group-label {
    min-height: 20px;
    margin-bottom: 3px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .wiki-portal-grid-cube:not([data-active-face]) .wiki-portal-block a {
    padding-block: 2px;
    font-size: 9.5px;
  }

  .wiki-portal-cube-stage-cube[data-active-face] {
    height: auto;
    min-height: 0;
    padding-block: 16px;
    overflow: visible;
  }

  .wiki-portal-grid-cube[data-active-face],
  .wiki-portal-grid-cube[data-active-face]:hover {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    top: auto;
    transform: none;
    pointer-events: auto;
  }

  .wiki-portal-grid-cube[data-active-face] .wiki-portal-cube-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 24px 20px;
    overflow: visible;
    transform: none;
    pointer-events: auto;
  }

  .wiki-portal-cube-pin {
    display: none;
  }

  .wiki-portal-grid-cube[data-active-face] .wiki-portal-block h3 {
    font-size: 30px;
  }

  .wiki-portal-grid-cube[data-active-face] .wiki-portal-block a {
    min-height: 38px;
    padding-block: 8px;
    font-size: 13px;
  }

  .wiki-portal-cube-hover-zones {
    left: 50%;
    width: min(96%, 370px);
    height: 430px;
    transform: translateX(-50%);
  }

  .wiki-portal-cube-hover-zone-top {
    clip-path: polygon(3% 21%, 42% 9%, 96% 16%, 61% 28%);
  }

  .wiki-portal-cube-hover-zone-front {
    clip-path: polygon(3% 21%, 61% 28%, 61% 88%, 13% 73%);
  }

  .wiki-portal-cube-hover-zone-right {
    clip-path: polygon(61% 28%, 96% 16%, 93% 74%, 61% 88%);
  }

  .wiki-portal-cube-stage-cube::after {
    bottom: 32px;
    width: min(92%, 360px);
    height: 58px;
  }

  .wiki-portal-timeline {
    width: 100%;
    margin-inline: 0;
  }

  .wiki-portal-news-list {
    grid-template-columns: 1fr;
  }

  .wiki-visitor-atlas-legend {
    gap: 5px;
  }

  .wiki-visitor-atlas-legend-trigger {
    font-size: 8px;
    letter-spacing: .035em;
  }

  .wiki-visitor-atlas-legend-scale > span {
    gap: 1px;
    padding-inline: 1px;
    font-size: 9px;
  }

  .wiki-visitor-atlas-legend-scale {
    gap: 0;
  }

  .wiki-visitor-atlas-owner-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}

@media (hover: none), (pointer: coarse) {
  .wiki-portal-cube-stage-cube {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
  }

  .wiki-portal-cube-stage-cube[data-active-face] {
    height: auto;
    min-height: 0;
    padding-block: 16px;
    overflow: visible;
  }

  .wiki-portal-grid-cube[data-active-face],
  .wiki-portal-grid-cube[data-active-face]:hover {
    display: block;
    width: min(100%, 620px);
    height: auto;
    margin: 0 auto;
    top: auto;
    transform: none;
    pointer-events: auto;
  }

  .wiki-portal-grid-cube[data-active-face] .wiki-portal-cube-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding:
      clamp(68px, 8vw, 76px)
      clamp(22px, 4vw, 32px)
      clamp(22px, 4vw, 32px);
    overflow: visible;
    transform: none;
  }

  .wiki-portal-grid-cube[data-active-face] .wiki-portal-block a {
    min-height: 40px;
    padding-block: 8px;
    font-size: 13px;
  }

  .wiki-portal-grid-cube:not([data-active-face]) {
    --portal-touch-rotate-x: -19deg;
    --portal-touch-rotate-y: -34deg;
    transform: rotateX(var(--portal-touch-rotate-x)) rotateY(calc(var(--portal-touch-rotate-y) + var(--portal-touch-drag-y, 0deg)));
    transition: transform .42s cubic-bezier(.16, 1, .3, 1);
  }

  .wiki-portal-grid-cube:not([data-active-face])[data-touch-cube-angle="top"] {
    --portal-touch-rotate-x: -27deg;
    --portal-touch-rotate-y: -29deg;
  }

  .wiki-portal-grid-cube:not([data-active-face])[data-touch-cube-angle="right"] {
    --portal-touch-rotate-x: -15deg;
    --portal-touch-rotate-y: -43deg;
  }

  .wiki-portal-cube-stage-cube[data-touch-cube-dragging] .wiki-portal-grid-cube {
    transition: none;
  }

  .wiki-portal-grid-cube:not([data-active-face]) a {
    pointer-events: none;
  }

  .wiki-portal-cube-hover-zone {
    cursor: grab;
  }

  .wiki-portal-cube-stage-cube[data-touch-cube-dragging] .wiki-portal-cube-hover-zone {
    cursor: grabbing;
  }

  .wiki-portal-cube-pin {
    display: none;
  }

  .wiki-portal-cube-touch-return {
    position: absolute;
    z-index: 5;
    top: 28px;
    right: max(12px, calc((100% - 620px) / 2 + 12px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--site-theme-action-ink) 24%, var(--wiki-border-light));
    border-radius: 11px;
    background: color-mix(in srgb, var(--wiki-bg) 92%, var(--site-theme-accent) 8%);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 72%),
      0 6px 18px color-mix(in srgb, var(--site-theme-action-ink) 10%, transparent);
    color: var(--site-theme-action-ink);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 760;
    letter-spacing: .01em;
    line-height: 1;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  .wiki-portal-cube-touch-return svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .wiki-portal-cube-touch-return:active {
    box-shadow: inset 0 2px 5px color-mix(in srgb, var(--site-theme-action-ink) 12%, transparent);
    transform: translateY(1px);
  }

  .wiki-portal-cube-touch-return:focus-visible {
    outline: 2px solid var(--site-theme-action-ink);
    outline-offset: 2px;
  }

  .wiki-portal-cube-touch-angles {
    position: absolute;
    z-index: 4;
    bottom: 12px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 2px;
    transform: translateX(-50%);
  }

  .wiki-portal-cube-touch-angles button {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .wiki-portal-cube-touch-angles button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-theme-action-ink) 32%, var(--wiki-border-light));
    content: '';
    transform: translate(-50%, -50%);
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .wiki-portal-cube-touch-angles button[aria-pressed="true"]::after {
    background: var(--site-theme-action-ink);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-theme-action-ink) 10%, transparent);
    transform: translate(-50%, -50%) scale(1.25);
  }

  .wiki-portal-cube-touch-angles button:focus-visible {
    border-radius: 999px;
    outline: 2px solid var(--site-theme-action-ink);
    outline-offset: -4px;
  }
}

@media (max-width: 420px) {
  .wiki-portal-name {
    font-size: 72px;
  }
}

@media (max-width: 360px) {
  .wiki-main .wiki-portal-tagline {
    min-height: 3em;
  }

  .wiki-portal-name {
    font-size: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-xinbao-shell,
  .chat-xinbao-typing i,
  .wiki-portal-name-logos,
  .wiki-portal-tagline-copy,
  .wiki-portal-name-text,
  .wiki-portal-collapsed {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .wiki-portal,
  .wiki-portal-directory,
  .wiki-portal-disclosures,
  .wiki-portal-timeline,
  .site-palette-switcher,
  .skip-to-content,
  .wiki-shell:has(.wiki-portal) {
    transition: none;
  }

  .wiki-portal-disclosures > details::details-content,
  .wiki-portal-directory summary span::after,
  .wiki-portal-timeline-heading::after,
  .wiki-portrait-gallery-frame .wiki-portrait-gallery-arrow,
  .wiki-portrait-gallery-frame .wiki-portrait-gallery-count {
    transition: none;
  }

  .wiki-portal-grid-cube,
  .wiki-portal-grid-cube:hover,
  .wiki-portal-grid-cube[data-active-face],
  .wiki-portal-grid-cube .wiki-portal-block,
  .wiki-portal-grid-cube .wiki-portal-block:hover,
  .wiki-portal-grid-cube .wiki-portal-block:focus-within,
  .wiki-portal-grid-cube .wiki-portal-cube-panel,
  .wiki-portal-grid-cube .wiki-portal-block h3,
  .wiki-portal-grid-cube .wiki-portal-group-label,
  .wiki-portal-grid-cube .wiki-portal-block a,
  .wiki-portal-grid-cube .wiki-portal-block a::after {
    animation: none;
    transition: none;
  }

  .wiki-portal-grid-cube:hover {
    transform: rotateX(-19deg) rotateY(-34deg);
  }

  .wiki-portal-grid-cube[data-active-face] {
    transform: none;
    transform-style: flat;
  }

  .wiki-portal-grid-cube .wiki-portal-block:hover,
  .wiki-portal-grid-cube .wiki-portal-block:focus-within {
    transform: var(--portal-cube-face-transform);
  }

  .wiki-portal-grid-cube .wiki-portal-block a:hover,
  .wiki-portal-grid-cube .wiki-portal-block a:focus-visible {
    transform: none;
  }

  .wiki-portal-collapsed {
    transform: none;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .wiki-portal-grid-cube,
  .wiki-portal-grid-cube:hover,
  .wiki-portal-grid-cube[data-active-face],
  .wiki-portal-grid-cube .wiki-portal-block,
  .wiki-portal-grid-cube .wiki-portal-block:hover,
  .wiki-portal-grid-cube .wiki-portal-block:focus-within {
    transition: none;
  }
}

@media print {
  .edit-link,
  .site-palette-switcher,
  .wiki-footer,
  .wiki-sidebar,
  .wiki-tabs,
  .wiki-topbar {
    display: none;
  }

  .wiki-shell {
    display: block;
    padding: 0;
  }

  .wiki-main,
  .wiki-shell {
    max-width: 100%;
  }

  body {
    font-size: 11pt;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .wiki-infobox {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
