.wiki-page {
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  --wiki-page-toc-width: 320px;
  color: #202122;
  background: #f8f9fa;
  overflow: hidden;
}

.wiki-page a {
  color: #0645ad;
  text-decoration: none;
}

.wiki-page a:hover {
  text-decoration: underline;
}

.wiki-page__sidebar {
  min-height: 0;
  padding: 18px 14px;
  border-right: 1px solid #a2a9b1;
  background: #f8f9fa;
  overflow-y: auto;
  overflow-x: hidden;
}

.wiki-page__brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 18px;
  text-align: center;
  color: inherit !important;
}

.wiki-page__brand:hover {
  text-decoration: none !important;
}

.wiki-page__mark {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #d8d8d8);
  color: #202122;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
}

.wiki-page__brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.wiki-page__brand span {
  font-size: 12px;
}

.wiki-page__sidebar-section {
  border-top: 1px solid #c8ccd1;
  padding: 10px 0;
}

.wiki-page__sidebar-section h2 {
  margin: 0 0 8px;
  color: #54595d;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wiki-page__sidebar-links {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.wiki-page__sidebar-links a,
.wiki-page__sidebar-links span {
  display: block;
}

.wiki-page__path-tree,
.wiki-page__path-tree ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.wiki-page__path-tree ul {
  padding-left: 12px;
}

.wiki-page__path-tree summary {
  color: #202122;
  font-weight: 700;
  cursor: context-menu;
}

.wiki-page__path-page {
  display: block;
  align-items: center;
  cursor: context-menu;
}

.wiki-page__path-page a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-wiki-path-item] {
  border-radius: 4px;
}

[data-wiki-path-item].is-dragging {
  opacity: 0.45;
}

[data-wiki-path-item].is-drop-target {
  box-shadow: inset 0 2px 0 #3366cc;
}

.wiki-path-copy-menu {
  position: fixed;
  z-index: 120;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.98);
  box-shadow: 0 18px 44px rgba(32, 33, 34, 0.18);
  color: #2f3437;
  font-size: 14px;
}

.wiki-path-copy-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wiki-path-copy-menu button:hover,
.wiki-path-copy-menu button:focus-visible {
  background: #ececec;
  outline: none;
}

.wiki-path-copy-menu__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  padding: 0 8px;
}

.wiki-path-copy-menu__icon {
  width: 17px;
  height: 17px;
  border: 1.5px solid #6b7280;
  border-radius: 3px;
  box-shadow: 3px -3px 0 -1px #fafafa, 3px -3px 0 0 #6b7280;
}

.wiki-path-copy-menu__arrow {
  color: #6b7280;
  text-align: right;
}

.wiki-path-copy-menu__submenu {
  position: absolute;
  top: 6px;
  left: calc(100% - 4px);
  display: none;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.98);
  box-shadow: 0 18px 44px rgba(32, 33, 34, 0.16);
}

.wiki-path-copy-menu:hover .wiki-path-copy-menu__submenu,
.wiki-path-copy-menu:focus-within .wiki-path-copy-menu__submenu {
  display: grid;
  gap: 2px;
}

.wiki-path-copy-menu__submenu button {
  padding: 0 12px;
}

.wiki-path-copy-menu__submenu span {
  min-height: 16px;
  color: #54595d;
  font-size: 12px;
}

.wiki-page__main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 24px 28px 0;
  background: #ffffff;
  overflow: hidden;
}

.wiki-page__chrome {
  min-width: 0;
}

.wiki-page__body {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 0 32px;
}

.wiki-page__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px) auto;
  gap: 16px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid #a2a9b1;
}

.wiki-page__eyebrow {
  color: #54595d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.wiki-page__header h1 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.08;
}

.wiki-page__subtitle {
  margin: 6px 0 0;
  color: #54595d;
  font-size: 14px;
}

.wiki-page__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #a2a9b1;
  background: #fff;
}

.wiki-page__search input {
  min-width: 0;
  border: 0;
  padding: 9px 10px;
  background: transparent;
}

.wiki-page__search button,
.wiki-page__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  color: #202122;
  font-size: 14px;
}

.wiki-page__tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
  margin-top: 12px;
  border-bottom: 1px solid #a2a9b1;
}

.wiki-page__tab-group {
  display: inline-flex;
  align-items: end;
}

.wiki-page__tab-group--mode {
  gap: 0;
}

.wiki-page__tab-group--tools {
  gap: 4px;
  padding: 6px;
  border: 1px solid #c8ccd1;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #eaecf0 100%);
}

.wiki-page__tabs a {
  display: block;
  padding: 12px 16px 10px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  color: #0645ad;
}

.wiki-page__tabs a.is-active {
  color: #202122;
  border-color: #a2a9b1;
  border-bottom: 1px solid #ffffff;
  margin-bottom: -1px;
  background: #ffffff;
}

.wiki-page__lead {
  display: flex;
  justify-content: space-between;
}

.wiki-page__article-layout {
  margin-top: 16px;
}

.wiki-page__selection-toolbar {
  position: fixed;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(162, 169, 177, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 32px rgba(32, 33, 34, 0.16),
    0 2px 8px rgba(32, 33, 34, 0.12);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -100%);
}

.wiki-page__selection-toolbar .wiki-page__tab-action {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%);
  box-shadow: none;
  white-space: nowrap;
}

.wiki-page__selection-toolbar .wiki-page__tab-action:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaecf0 100%);
}

.wiki-page__selection-toolbar .wiki-page__tab-action:focus-visible {
  outline: 2px solid #36c;
  outline-offset: 2px;
}

.wiki-page__article-path {
  color: #54595d;
  font-size: 13px;
}

.wiki-page__article-meta {
  margin: 4px 0 0;
  color: #54595d;
  font-size: 13px;
}

.wiki-page__article {
  display: flow-root;
  padding: 22px 24px;
  border: 1px solid #a2a9b1;
  background: #ffffff;
}

.wiki-page__side-image-box {
  float: right;
  width: 320px;
  margin: 4px 0 18px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #a2a9b1;
  background: #ffffff;
}

.wiki-page__side-image-header h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.wiki-page__side-image-preview {
  width: 100%;
  border: 1px solid #c8ccd1;
  background: #f8f9fa;
  object-fit: cover;
}

.wiki-page__side-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 16px;
  border: 1px dashed #a2a9b1;
  background: #f8f9fa;
  color: #54595d;
  text-align: center;
  line-height: 1.6;
}

.wiki-page__side-image-caption,
.wiki-page__side-image-hint {
  margin: 0;
  color: #54595d;
  font-size: 13px;
  line-height: 1.55;
}

.wiki-page__side-image-caption {
  text-align: center;
}

.wiki-page__side-image-upload {
  justify-self: start;
}

.wiki-page__comments {
  position: fixed;
  top: 176px;
  right: 24px;
  bottom: 24px;
  z-index: 28;
  width: min(320px, calc(100vw - 48px));
  min-width: 0;
  overflow: auto;
  border: 1px solid #a2a9b1;
  background: rgba(248, 249, 250, 0.98);
  box-shadow:
    0 24px 80px rgba(60, 72, 88, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.wiki-page__toc {
  position: fixed;
  top: 72px;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  width: min(var(--wiki-page-toc-width), calc(100vw - 120px));
}

.wiki-page__toc-card {
  min-width: 0;
  overflow: auto;
  padding: 20px;
  border: 1px solid #a2a9b1;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(60, 72, 88, 0.18);
}

.wiki-page__toc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wiki-page__toc-header h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.wiki-page__toc-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  color: #202122;
  font-size: 22px;
  line-height: 1;
}

.wiki-page__toc-close:hover {
  background: #eaecf0;
}

.wiki-page__toc-list {
  display: grid;
  gap: 8px;
}

.wiki-page__toc-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #54595d;
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}

.wiki-page__toc-link:hover {
  color: #0645ad;
}

.wiki-page__toc-link--level-1 {
  font-size: 15px;
  font-weight: 700;
}

.wiki-page__toc-link--level-2 {
  padding-left: 12px;
  font-size: 14px;
  font-weight: 600;
}

.wiki-page__toc-link--level-3,
.wiki-page__toc-link--level-4 {
  padding-left: 24px;
  font-size: 13px;
}

.wiki-page__article.markdown-rendered > :first-child {
  margin-top: 0;
}

.wiki-page__article.markdown-rendered > :last-child {
  margin-bottom: 0;
}

.wiki-page__article.markdown-rendered h1,
.wiki-page__article.markdown-rendered h2,
.wiki-page__article.markdown-rendered h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.wiki-page__article.markdown-rendered h1 {
  margin-bottom: 0.5em;
  font-size: 30px;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 8px;
}

.wiki-page__article.markdown-rendered h2 {
  margin-top: 1.2em;
  font-size: 24px;
}

.wiki-page__article.markdown-rendered p,
.wiki-page__article.markdown-rendered li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

.wiki-page__article.markdown-rendered ul {
  padding-left: 20px;
}

.wiki-page__article.markdown-rendered a {
  color: #3366cc;
}

.wiki-page__article.markdown-rendered a:hover {
  color: #0645ad;
}

.personal-timeline {
  display: grid;
  gap: 16px;
  margin: 22px 0 28px;
}

.personal-timeline__filters {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(220px, 1fr) minmax(200px, 260px);
  gap: 18px;
  align-items: stretch;
  padding: 12px 14px;
  border: 1px solid #e1e7f0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(32, 33, 34, 0.06);
}

.personal-timeline__filter-group,
.personal-timeline__search-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.personal-timeline__filter-group + .personal-timeline__filter-group,
.personal-timeline__search-panel {
  padding-left: 18px;
  border-left: 1px solid #edf1f6;
}

.personal-timeline__filter-group > span,
.personal-timeline__search-panel label > span {
  color: #54595d;
  font-size: 12px;
  font-weight: 700;
}

.personal-timeline__source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.personal-timeline__source-head span {
  color: #54595d;
  font-size: 12px;
  font-weight: 700;
}

.personal-timeline__source-head button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.personal-timeline__button-row,
.personal-timeline__theme-scroll,
.personal-timeline__source-scroll {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.personal-timeline__theme-scroll,
.personal-timeline__source-scroll {
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.personal-timeline__filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  background: #ffffff;
  color: #344767;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.personal-timeline__filters button.is-active {
  border-color: #2f6df6;
  background: #2f6df6;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.18);
}

.personal-timeline__filters button.has-entry {
  border-color: #a7d8bf;
  background: #f3fbf6;
  color: #1f7a4d;
}

.personal-timeline__filters button.has-no-entry {
  border-color: #e2e6ee;
  background: #f8f9fb;
  color: #718096;
}

.personal-timeline__filters button.has-entry.is-active,
.personal-timeline__filters button.has-no-entry.is-active {
  border-color: #2f6df6;
  background: #2f6df6;
  color: #ffffff;
}

.personal-timeline__filters button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.personal-timeline__source-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 33, 34, 0.18);
}

.personal-timeline__source-modal[hidden] {
  display: none;
}

.personal-timeline__source-dialog {
  display: grid;
  gap: 12px;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(32, 33, 34, 0.18);
}

.personal-timeline__source-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.personal-timeline__source-dialog ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.personal-timeline__source-dialog li,
.personal-timeline__source-dialog div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.personal-timeline__source-dialog code {
  min-width: 0;
  overflow: hidden;
  color: #344767;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-timeline__source-dialog input {
  min-width: 0;
  height: 34px;
  flex: 1 1 auto;
  padding: 0 10px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
}

.personal-timeline__source-dialog textarea {
  width: 100%;
  min-height: 150px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  resize: vertical;
  color: #202122;
  font: inherit;
}

.personal-timeline__source-dialog button {
  min-height: 30px;
  padding: 0 10px;
}

.personal-timeline__source-empty {
  color: #718096;
  font-size: 13px;
}

.personal-timeline__source-editor-status {
  min-height: 18px;
  margin: 0;
  color: #54595d;
  font-size: 12px;
}

.personal-timeline__source-status {
  display: grid;
  gap: 6px;
  color: #54595d;
  font-size: 12px;
}

.personal-timeline__source-status[hidden] {
  display: none;
}

.personal-timeline__source-status.is-done {
  color: #1f7a4d;
}

.personal-timeline__source-status.is-failed {
  color: #b32424;
}

.personal-timeline__source-status div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef6;
}

.personal-timeline__source-status i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #2f6df6;
  animation: personal-timeline-progress 1s ease-in-out infinite;
}

.personal-timeline__source-status.is-done i {
  width: 100%;
  background: #1f7a4d;
  animation: none;
  transform: none;
}

.pending-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pending-timeline-actions button,
.pending-timeline-modal button {
  min-height: 30px;
  border: 1px solid #c8d4e4;
  border-radius: 6px;
  background: #fff;
  color: #24364d;
  font: inherit;
  cursor: pointer;
}

.pending-timeline-actions button {
  padding: 0 10px;
}

.pending-timeline-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgb(32 33 36 / 30%);
}

.pending-timeline-modal[hidden] {
  display: none;
}

.pending-timeline-modal__dialog {
  display: grid;
  width: min(520px, calc(100vw - 32px));
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background: #fff;
}

.pending-timeline-modal__dialog header,
.pending-timeline-modal__dialog footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pending-timeline-modal__dialog textarea {
  min-height: 120px;
  padding: 10px;
  border: 1px solid #c8d4e4;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

@keyframes personal-timeline-progress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(250%);
  }
}

.personal-timeline__search-panel label {
  display: grid;
  gap: 8px;
}

.personal-timeline__search-panel input {
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  color: #202122;
  font: inherit;
}

.personal-timeline__view {
  display: none;
}

.personal-timeline__view.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: start;
}

.personal-timeline__facts,
.personal-timeline__rail {
  min-width: 0;
}

.personal-timeline__facts {
  display: grid;
  gap: 12px;
}

.personal-timeline__facts h2,
.personal-timeline__rail h2 {
  margin-top: 0 !important;
}

.personal-timeline__facts table {
  width: 100%;
  table-layout: fixed;
}

.personal-timeline__facts th,
.personal-timeline__facts td {
  word-break: break-word;
}

.personal-timeline__rail {
  padding: 16px;
  border: 1px solid #a2a9b1;
  background: #ffffff;
}

.personal-timeline__rail-list {
  position: relative;
  display: grid;
  gap: 10px;
  max-height: min(520px, 62vh);
  overflow-y: auto;
  padding: 0 6px 0 16px;
}

.personal-timeline__rail-list::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 1px;
  background: #c8ccd1;
}

.personal-timeline__rail-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #c8ccd1;
  background: #f8f9fa;
}

.personal-timeline__rail-item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -18px;
  width: 9px;
  height: 9px;
  border: 2px solid #3366cc;
  border-radius: 50%;
  background: #ffffff;
}

.personal-timeline__rail-item span {
  color: #54595d;
  font-size: 12px;
}

.personal-timeline__rail-item strong {
  color: #202122;
  font-size: 15px;
}

.personal-timeline__rail-item em {
  color: #3366cc;
  font-size: 12px;
  font-style: normal;
}

.personal-timeline__empty {
  margin: 0;
  color: #54595d;
  font-size: 14px;
}

.wiki-link-preview {
  position: fixed;
  z-index: 80;
  width: 420px;
  height: 360px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #c8ccd1;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(32, 33, 34, 0.22);
}

.wiki-link-preview::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-right: 1px solid #c8ccd1;
  border-bottom: 1px solid #c8ccd1;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.wiki-link-preview__image {
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid #eaecf0;
  background: #f8f9fa;
}

.wiki-link-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wiki-link-preview__image-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: #3366cc;
  font-size: 68px;
  font-weight: 700;
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
}

.wiki-link-preview__body {
  height: 170px;
  box-sizing: border-box;
  padding: 18px 20px;
  overflow: hidden;
}

.wiki-link-preview__body h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
}

.wiki-link-preview__body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: #202122;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.wiki-link-preview__empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  color: #54595d;
  font-size: 14px;
}

.wiki-page__article.markdown-rendered .wiki-page__anchor-target {
  background: rgba(255, 231, 138, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 231, 138, 0.35);
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease;
}

.wiki-page__empty-state {
  padding: 8px 0;
}

.wiki-page__empty-state h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.wiki-page__empty-state p,
.wiki-page__empty-state li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

.wiki-page__modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.wiki-page__module {
  border: 1px solid #a2a9b1;
  background: #fff;
}

.wiki-page__module h2 {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #a2a9b1;
  background: #eaecf0;
  font-size: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.wiki-page__module-body {
  padding: 12px;
  font-size: 14px;
}

.wiki-page__directory + .wiki-page__directory {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #c8ccd1;
}

.wiki-page__directory h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.wiki-page__directory ul,
.wiki-page__recent-list {
  margin: 0;
  padding-left: 18px;
}

.wiki-page__recent-list li {
  margin-bottom: 8px;
}

.wiki-page__recent-list span {
  display: block;
  color: #54595d;
  font-size: 12px;
}

.wiki-page__placeholder {
  color: #54595d;
  font-size: 14px;
}

.wiki-page__search-results {
  display: grid;
  gap: 16px;
}

.wiki-page__search-result {
  padding-bottom: 14px;
  border-bottom: 1px solid #c8ccd1;
}

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

.wiki-page__search-result h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.wiki-page__search-result p {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
}

.wiki-page__search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #54595d;
  font-size: 12px;
}

.wiki-page__search-meta code,
.wiki-page__search-meta span {
  padding: 2px 6px;
  background: #f8f9fa;
  border: 1px solid #c8ccd1;
}

.wiki-comments-panel__card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #c8ccd1;
}

.wiki-comments-panel__card:first-child {
  border-top: 0;
}

.wiki-comments-panel__card blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid #a2a9b1;
  color: #54595d;
}

.wiki-comments-panel__input,
.wiki-comments-panel__diff {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #c8ccd1;
  background: #fff;
  color: #202122;
}

.wiki-comments-panel__input {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
  font: inherit;
}

.wiki-comments-panel__diff {
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  background: #f8f9fa;
}

.wiki-comments-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wiki-comments-panel__error {
  margin: 0;
  color: #b32424;
  font-size: 13px;
}

.wiki-comments-panel__highlight.is-resolved {
  background: rgba(125, 191, 115, 0.26);
}

.about-me-profile {
  height: 100%;
  min-height: 100%;
  padding: 14px 18px 20px;
  box-sizing: border-box;
  color: #102042;
  background:
    radial-gradient(circle at top left, rgba(135, 176, 255, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(187, 164, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
  overflow: hidden;
}

.about-me-profile [data-about-me-profile] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.about-me-profile__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.about-me-profile__topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.about-me-profile__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit !important;
}

.about-me-profile__brand:hover {
  text-decoration: none !important;
}

.about-me-profile__brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, #7e7bff 0%, #49b3ff 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(100, 133, 255, 0.24);
}

.about-me-profile__brand-copy {
  display: grid;
  gap: 4px;
}

.about-me-profile__brand-copy strong {
  font-size: 14px;
}

.about-me-profile__brand-copy span {
  color: #67789e;
  font-size: 11px;
}

.about-me-profile__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.about-me-profile__editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.about-me-profile__toolbar-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(211, 222, 248, 0.98);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #29416d;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(97, 124, 196, 0.08);
}

.about-me-profile__toolbar-btn--primary {
  border-color: #2d62ff;
  background: linear-gradient(180deg, #4a7cff 0%, #285fff 100%);
  color: #ffffff;
}

.about-me-profile__editor-status {
  min-width: 48px;
  color: #5f7198;
  font-size: 12px;
}

.about-me-profile__tab,
.about-me-profile__theme {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #29416d;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(97, 124, 196, 0.08);
}

.about-me-profile__tab.is-active {
  color: #205cf4;
  box-shadow:
    inset 0 -3px 0 #205cf4,
    0 10px 24px rgba(71, 105, 255, 0.14);
}

.about-me-profile__panel-wrap {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.about-me-profile__editor-shell {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(227, 234, 251, 0.98);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(134, 156, 204, 0.1);
}

.about-me-profile__editor-hint {
  margin: 0;
  color: #4b5f86;
  font-size: 13px;
  line-height: 1.5;
}

.about-me-profile__editor {
  min-height: 560px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 227, 248, 0.98);
  border-radius: 18px;
  background: #fcfdff;
  color: #1a2a4d;
  resize: vertical;
  font: 13px/1.6 Consolas, "Courier New", monospace;
}

.about-me-profile__panel {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.about-me-profile__panel--home {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  align-content: stretch;
}

.about-me-profile__hero {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 360px;
  gap: 18px;
  min-height: 150px;
  padding: 14px 18px;
  border: 1px solid rgba(213, 225, 255, 0.96);
  border-radius: 22px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.86), transparent 42%),
    linear-gradient(135deg, rgba(233, 241, 255, 0.96) 0%, rgba(242, 245, 255, 0.98) 52%, rgba(220, 229, 255, 0.96) 100%);
  box-shadow: 0 12px 28px rgba(133, 157, 214, 0.12);
}

.about-me-profile__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 26%, rgba(255, 255, 255, 0.92) 0 3px, transparent 4px),
    linear-gradient(160deg, transparent 0 76%, rgba(134, 148, 255, 0.18) 76%, transparent 77%);
  pointer-events: none;
}

.about-me-profile__avatar {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 164px;
}

.about-me-profile__avatar img,
.about-me-profile__avatar-fallback {
  width: 154px;
  height: 154px;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 24px rgba(112, 136, 194, 0.18);
}

.about-me-profile__avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef4ff 0%, #d9e8ff 100%);
  font-size: 66px;
  font-weight: 800;
  color: #1b2b58;
}

.about-me-profile__hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.about-me-profile__hero-updated,
.about-me-profile__hero-subtitle {
  margin: 0;
  color: #5e6f94;
}

.about-me-profile__hero-copy h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.04;
}

.about-me-profile__hero-quote {
  margin: 2px 0 0;
  color: #445881;
  font-size: 15px;
}

.about-me-profile__hero-tags,
.about-me-profile__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-me-profile__tag {
  padding: 6px 10px;
  border: 1px solid rgba(214, 225, 255, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3e5ef1;
  font-size: 11px;
  font-weight: 600;
}

.about-me-profile__stats-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center;
  min-height: 108px;
  padding: 10px;
  border: 1px solid rgba(221, 230, 255, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 24px rgba(108, 128, 180, 0.1);
}

.about-me-profile__stat {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 72px;
  border-right: 1px solid rgba(223, 231, 252, 0.92);
}

.about-me-profile__stat:last-child {
  border-right: 0;
}

.about-me-profile__stat strong {
  font-size: 28px;
}

.about-me-profile__stat span {
  color: #5d7097;
  font-size: 12px;
}

.about-me-profile__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}

.about-me-profile__home-intro {
  display: block;
  min-height: 0;
}

.about-me-profile__home-intro p {
  margin: 0;
  color: #33486d;
  font-size: 13px;
  line-height: 1.5;
}

.about-me-profile__board,
.about-me-profile__side-card,
.about-me-profile__timeline-card,
.about-me-profile__resume-card,
.about-me-profile__timeline-page,
.about-me-profile__resume-page,
.about-me-profile__ability-page,
.about-me-profile__empty-card {
  border: 1px solid rgba(227, 234, 251, 0.98);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(134, 156, 204, 0.1);
}

.about-me-profile__section-title,
.about-me-profile__board h2,
.about-me-profile__side-card h2,
.about-me-profile__timeline-card h2,
.about-me-profile__resume-card h2,
.about-me-profile__timeline-page h2,
.about-me-profile__resume-page h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.about-me-profile__board,
.about-me-profile__side-card,
.about-me-profile__timeline-card,
.about-me-profile__resume-card,
.about-me-profile__timeline-page,
.about-me-profile__resume-page {
  padding: 14px;
}

.about-me-profile__board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.about-me-profile__achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  min-height: 0;
}

.about-me-profile__achievement-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(229, 236, 251, 0.98);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.about-me-profile__achievement-card header,
.about-me-profile__timeline-card header,
.about-me-profile__side-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.about-me-profile__achievement-card header h2 {
  font-size: 14px;
}

.about-me-profile__achievement-card header span,
.about-me-profile__timeline-card header span {
  color: #4470ff;
  font-size: 12px;
  font-weight: 700;
}

.about-me-profile__side-card-switches {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(225, 233, 250, 0.98);
  border-radius: 999px;
  background: #f7f9ff;
}

.about-me-profile__side-card-switch {
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6f82a8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.about-me-profile__side-card-switch.is-active {
  background: #4470ff;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(68, 112, 255, 0.18);
}

.about-me-profile__achievement-items {
  display: grid;
  gap: 8px;
}

.about-me-profile__achievement-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(236, 241, 252, 0.98);
  border-radius: 12px;
  background: #fcfdff;
}

.about-me-profile__achievement-item--text {
  grid-template-columns: minmax(0, 1fr);
}

.about-me-profile__achievement-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, #deebff 0%, #eef3ff 100%);
}

.about-me-profile__achievement-copy strong,
.about-me-profile__timeline-copy strong,
.about-me-profile__strength-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.about-me-profile__achievement-copy p,
.about-me-profile__timeline-copy p,
.about-me-profile__strength-card p,
.about-me-profile__resume-section p {
  margin: 0;
  color: #67799e;
  font-size: 12px;
  line-height: 1.45;
}

.about-me-profile__achievement-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.about-me-profile__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #4871ff;
  font-size: 11px;
  font-weight: 700;
}

.about-me-profile__side-column,
.about-me-profile__timeline-list,
.about-me-profile__timeline-page-list,
.about-me-profile__side-card-body,
.about-me-profile__resume-card-body,
.about-me-profile__resume-page,
.about-me-profile__ability-page {
  display: grid;
  gap: 12px;
}

.about-me-profile__side-column {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  align-content: start;
}

.about-me-profile__side-card,
.about-me-profile__timeline-card,
.about-me-profile__resume-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  min-height: 0;
}

.about-me-profile__timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  padding-left: 18px;
}

.about-me-profile__timeline-entry::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid #8ba8ff;
  border-radius: 50%;
  background: #ffffff;
}

.about-me-profile__timeline-entry::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -8px;
  left: 10px;
  width: 2px;
  background: linear-gradient(180deg, #d9e4ff 0%, rgba(217, 228, 255, 0.06) 100%);
}

.about-me-profile__timeline-entry:last-child::after {
  display: none;
}

.about-me-profile__timeline-year {
  color: #4465d8;
  font-weight: 700;
  font-size: 12px;
}

.about-me-profile__resume-section {
  display: grid;
  gap: 8px;
}

.about-me-profile__resume-section h3,
.about-me-profile__ability-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.about-me-profile__resume-items {
  display: grid;
  gap: 6px;
}

.about-me-profile__field-row,
.about-me-profile__plain-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #33486d;
  font-size: 12px;
}

.about-me-profile__field-row span {
  color: #617496;
}

.about-me-profile__strengths {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
}

.about-me-profile__strength-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.about-me-profile__strength-card,
.about-me-profile__ability-card {
  padding: 12px;
  border: 1px solid rgba(229, 236, 251, 0.98);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(134, 156, 204, 0.07);
}

.about-me-profile__strength-dots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.about-me-profile__strength-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5f82ff 0%, #2a63ff 100%);
}

.about-me-profile__empty-state {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
}

.about-me-profile__empty-card {
  width: min(640px, 100%);
  padding: 28px;
}

@media (max-width: 1040px) {
  .wiki-page {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .wiki-page__sidebar {
    display: none;
  }

  .wiki-page__header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wiki-page__main {
    grid-template-rows: auto;
    padding-bottom: 32px;
    overflow: visible;
  }

  .wiki-page__body {
    overflow: visible;
    padding-bottom: 0;
  }

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

  .wiki-page__article-layout {
    display: block;
  }

  .wiki-page__side-image-box {
    float: none;
    width: auto;
    margin: 8px 0 16px;
  }

  .personal-timeline__view.is-active {
    grid-template-columns: 1fr;
  }

  .personal-timeline__filters {
    grid-template-columns: 1fr;
  }

  .personal-timeline__filter-group + .personal-timeline__filter-group,
  .personal-timeline__search-panel {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid #edf1f6;
  }

  .personal-timeline__rail-list {
    max-height: 360px;
  }

  .wiki-page__selection-toolbar {
    max-width: calc(100vw - 48px);
  }

  .wiki-link-preview {
    width: min(340px, calc(100vw - 28px));
    height: 320px;
  }

  .wiki-link-preview__image {
    height: 160px;
  }

  .wiki-link-preview__body {
    height: 160px;
  }

  .wiki-page__comments {
    top: 204px;
    left: 24px;
    right: 24px;
    width: auto;
  }

  .wiki-page__toc {
    left: 24px;
    width: auto;
  }

  .about-me-profile {
    padding: 14px 14px 20px;
    overflow-y: auto;
  }

  .about-me-profile [data-about-me-profile] {
    height: auto;
  }

  .about-me-profile__topbar,
  .about-me-profile__hero,
  .about-me-profile__content,
  .about-me-profile__achievement-grid,
  .about-me-profile__strength-grid {
    grid-template-columns: 1fr;
  }

  .about-me-profile__panel--home,
  .about-me-profile__side-column,
  .about-me-profile__achievement-grid {
    grid-template-rows: auto;
    height: auto;
  }

  .about-me-profile__tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .about-me-profile__topbar-tools,
  .about-me-profile__editor-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .about-me-profile__hero {
    display: grid;
  }

  .about-me-profile__stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-me-profile__achievement-item,
  .about-me-profile__field-row,
  .about-me-profile__plain-row {
    grid-template-columns: 1fr;
    justify-content: start;
  }
}
