.wiki-page h1 {
  text-align: left;
}

.wiki-page {
  --wiki-surface: var(--theme-surface);
  --wiki-surface-muted: var(--theme-surface-muted);
  --wiki-surface-hover: var(--theme-surface-hover);
  --wiki-text: var(--theme-text);
  --wiki-text-strong: var(--theme-text-strong);
  --wiki-text-muted: var(--theme-text-muted);
  --wiki-border: var(--theme-border);
  --wiki-link: var(--theme-link);
  --wiki-link-hover: var(--theme-link-hover);
  --wiki-selection: var(--theme-selection);
  --wiki-selection-border: var(--theme-selection-border);
}

.wiki-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  z-index: 1200;
}

.wiki-alert--success {
  color: var(--theme-success-text);
  border-color: var(--theme-success-border);
  background: var(--theme-success-surface);
}

.wiki-alert--error {
  color: var(--theme-danger-text);
  border-color: var(--theme-danger-border);
  background: var(--theme-danger-surface);
}

.wiki-layout {
  display: grid;
  gap: 18px;
}

.wiki-search-form {
  justify-content: center;
  margin-bottom: 0 !important;
}

.wiki-search-form .wiki-search {
  width: min(100%, 560px);
  max-width: 560px;
  flex: 1 1 560px;
}

.wiki-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.wiki-browser,
.wiki-preview,
.wiki-sidebar {
  min-width: 0;
}

.wiki-sidebar {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.wiki-side-section {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.wiki-side-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.wiki-side-label {
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wiki-current-folder {
  color: #111827;
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.wiki-side-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.wiki-favorites {
  display: grid;
  gap: 4px;
}

.wiki-favorites-empty {
  color: #64748b;
  font-size: .86rem;
  font-weight: 600;
}

.wiki-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.wiki-favorite-row:hover {
  background: #f8fafc;
}

.wiki-favorite-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-favorite-item:hover,
.wiki-favorite-item:focus {
  background: transparent;
  outline: 0;
}

.wiki-favorite-item::before,
.wiki-folder-toggle::before,
.wiki-file-open::before {
  content: none !important;
  display: none !important;
}

.wiki-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -4px 0 0;
}

.wiki-crumb {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.wiki-crumb-separator {
  color: #98a2b3;
}

.wiki-search-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 340px;
  overflow: auto;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

.wiki-search-result {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  text-align: left;
}

.wiki-search-result:hover,
.wiki-search-result:focus {
  background: #f8fafc;
}

.wiki-search-title {
  color: #111827;
  font-weight: 700;
}

.wiki-search-path,
.wiki-search-snippet,
.wiki-search-empty {
  color: #64748b;
  font-size: .85rem;
}

.wiki-search-empty {
  padding: 12px;
}

.wiki-list {
  display: block;
}

.wiki-tree,
.wiki-tree-children {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wiki-tree {
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.wiki-tree-children {
  margin: 2px 0 2px 18px;
  padding-left: 12px;
  border-left: 1px solid #e5e7eb;
}

.wiki-tree-folder-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 6px;
  border-radius: 6px;
}

.wiki-tree-folder-header:hover,
.wiki-file-row:hover {
  background: #f8fafc;
}

.wiki-tree-folder-header.is-drop-target,
.wiki-tree.is-drop-target {
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.wiki-file-row.is-dragging,
.wiki-tree-item.is-dragging > .wiki-tree-folder-header {
  opacity: .55;
}

.wiki-tree-folder-header.is-selected {
  background: #eef6ff;
}

.wiki-folder-toggle,
.wiki-file-open {
  min-width: 0;
  padding: 3px 4px;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-folder-menu {
  position: relative;
}

.wiki-folder-menu-button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  align-items: start;
  justify-items: center;
  padding-top: 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.wiki-tree-folder-header:hover .wiki-folder-menu-button,
.wiki-file-row:hover .wiki-folder-menu-button,
.wiki-favorite-row:hover .wiki-folder-menu-button,
.wiki-folder-menu-button[aria-expanded="true"] {
  opacity: 1;
  pointer-events: auto;
}

.wiki-folder-menu-button:hover,
.wiki-folder-menu-button:focus,
.wiki-folder-menu-button[aria-expanded="true"] {
  background: #e2e8f0;
  color: #111827;
}

.wiki-folder-menu-list {
  position: absolute;
  z-index: 6;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 150px;
  overflow: hidden;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .16);
}

.wiki-folder-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  text-align: left;
}

.wiki-menu-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dc2626;
  flex: 0 0 8px;
}

.wiki-folder-menu-item:last-child {
  border-bottom: 0;
}

.wiki-folder-menu-item:hover,
.wiki-folder-menu-item:focus {
  background: #f8fafc;
}

.wiki-move-dialog {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .18);
}

.wiki-move-dialog-panel {
  width: min(520px, 100%);
  max-height: min(78vh, 720px);
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.wiki-move-dialog-header,
.wiki-move-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
}

.wiki-move-dialog-footer {
  border-top: 1px solid #eef2f7;
  border-bottom: 0;
}

.wiki-move-dialog-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}

.wiki-move-dialog-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wiki-move-dialog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
}

.wiki-move-dialog-crumb {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
}

.wiki-move-dialog-crumb:disabled {
  color: #334155;
}

.wiki-move-dialog-separator {
  color: #94a3b8;
  font-size: .9rem;
  font-weight: 700;
}

.wiki-move-dialog-list {
  padding: 12px 16px 16px;
  overflow: auto;
}

.wiki-move-dialog-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  text-align: left;
}

.wiki-move-dialog-row:hover,
.wiki-move-dialog-row:focus {
  background: #f8fafc;
}

.wiki-move-dialog-row-icon {
  flex: 0 0 auto;
}

.wiki-move-dialog-row-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-move-dialog-row--up {
  color: #64748b;
  font-weight: 700;
}

.wiki-move-dialog-empty,
.wiki-move-dialog-hint {
  color: #64748b;
  font-size: .86rem;
  font-weight: 600;
}

.wiki-move-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiki-move-dialog-actions .btn-outline-secondary:disabled,
.wiki-move-dialog-actions .btn-outline-secondary.disabled {
  border-color: var(--bs-secondary-border-subtle, #d1d5db);
  background: #fff;
  color: var(--bs-secondary-color, #6c757d);
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.wiki-permissions-dialog {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .22);
}

.wiki-permissions-dialog-panel {
  width: min(760px, 100%);
  max-height: min(82vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.wiki-permissions-dialog-header,
.wiki-permissions-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f7;
}

.wiki-permissions-dialog-footer {
  border-top: 1px solid #eef2f7;
  border-bottom: 0;
}

.wiki-permissions-dialog-title-wrap {
  min-width: 0;
}

.wiki-permissions-dialog-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}

.wiki-permissions-dialog-subtitle,
.wiki-permissions-dialog-helper,
.wiki-permissions-dialog-status,
.wiki-permissions-empty,
.wiki-permissions-search-empty {
  color: #64748b;
  font-size: .86rem;
  font-weight: 600;
}

.wiki-permissions-dialog-subtitle {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.wiki-permissions-creator-info {
  width: min(100%, 640px);
  margin: -2px auto 0;
  color: #64748b;
  font-size: .88rem;
  font-weight: 700;
}

.wiki-permissions-dialog-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wiki-permissions-dialog-body {
  display: grid;
  gap: 16px;
  padding: 14px 16px 16px;
  overflow: auto;
}

.wiki-permissions-section {
  display: grid;
  width: min(100%, 640px);
  margin: 0 auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.wiki-permissions-section-title {
  color: #111827;
  font-size: .95rem;
  font-weight: 800;
}

.wiki-permissions-search {
  width: min(100%, 360px);
  max-width: 360px;
}

.wiki-permissions-search-results {
  position: absolute;
  z-index: 7;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

.wiki-permissions-search-item,
.wiki-permissions-search-empty {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  text-align: left;
}

.wiki-permissions-search-item:last-child,
.wiki-permissions-search-empty:last-child {
  border-bottom: 0;
}

.wiki-permissions-search-item:hover,
.wiki-permissions-search-item:focus {
  background: #f8fafc;
}

.wiki-permissions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wiki-permissions-chips--inherited {
  margin-top: -2px;
}

.wiki-permissions-inherited-title {
  color: #64748b;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.wiki-permissions-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px 6px 10px;
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #1f2937;
}

.wiki-permissions-pill--inherited {
  background: #fff;
}

.wiki-permissions-pill-label {
  display: inline-flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.1;
  min-height: 16px;
  position: relative;
  top: -1.5px;
}

.wiki-permissions-pill-source {
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.wiki-permissions-pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 16px;
  position: relative;
  top: -1.5px;
}

.wiki-permissions-pill-remove:hover,
.wiki-permissions-pill-remove:focus {
  color: #475569;
  outline: none;
}

.wiki-permissions-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiki-folder-toggle,
.wiki-file-open {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wiki-item-icon {
  flex: 0 0 auto;
}

.wiki-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-folder-icon-open {
  display: none !important;
}

.wiki-tree-item.is-open > .wiki-tree-folder-header .wiki-folder-icon-closed {
  display: none !important;
}

.wiki-tree-item.is-open > .wiki-tree-folder-header .wiki-folder-icon-open {
  display: inline-block !important;
}

.wiki-tree-item.is-empty > .wiki-tree-folder-header .wiki-folder-toggle::after {
  content: "vazia";
  margin-left: 8px;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
}

.wiki-file-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 6px;
  border-radius: 6px;
}

.wiki-file-open {
  width: 100%;
  color: #334155;
  font-weight: 600;
}

.wiki-document {
  min-height: 360px;
  border: 1px solid #dee2e6;
  border-radius: 0;
  background: #fff;
}

.wiki-document.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3ad;
  background: #fff;
}

.wiki-document-placeholder {
  padding: 20px;
  font-weight: 700;
  text-align: center;
}

.wiki-document-find-box {
  position: fixed;
  top: 20px;
  right: 20px;
  width: min(320px, calc(100vw - 24px));
  max-width: min(320px, calc(100vw - 24px));
  flex: 0 0 auto;
  z-index: 1040;
}

.wiki-document-find-box .form-control {
  height: 38px;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

.wiki-document-shell {
  display: flex;
  min-height: 360px;
  flex-direction: column;
}

.wiki-document-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 0 2px;
  background: #fff;
}

.wiki-document-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #dee2e6;
  z-index: 0;
}

.wiki-document-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  z-index: 1;
}

.wiki-document-tabs::-webkit-scrollbar {
  display: none;
}

.wiki-document-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 190px;
  align-items: center;
  gap: 8px;
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  padding: 6px 28px 7px 10px;
  border: 1px solid #dee2e6;
  border-radius: 10px 10px 0 0;
  background: #f8f9fa;
  color: #495057;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), opacity .15s ease, box-shadow .18s ease;
  will-change: transform;
}

.wiki-document-tabs.is-reordering {
  cursor: grabbing;
}

.wiki-document-tabs.is-reordering .wiki-document-tab {
  cursor: grabbing;
}

.wiki-document-tab.is-dragging {
  opacity: .48;
  box-shadow: 0 8px 20px var(--theme-shadow);
}

@media (prefers-reduced-motion: reduce) {
  .wiki-document-tab {
    transition: none;
  }
}

.wiki-document-tab.is-active {
  border-color: #ced4da;
  border-bottom-color: #fff;
  background: #fff;
  color: #212529;
  z-index: 2;
}

.wiki-document-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
}

.wiki-document-tab-label {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.wiki-document-tab-close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #9ca3af;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
}

.wiki-document-tab-close:hover,
.wiki-document-tab-close:focus {
  color: #6b7280;
  outline: none;
}

.wiki-document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  position: relative;
  top: -4.5px;
}

.wiki-document-download-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wiki-document-find-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  z-index: 1040;
}

.wiki-document-find-caret {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #d7dee7;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.wiki-document-find-caret::before {
  content: "";
  width: 0;
  height: 0;
  border-top: .34rem solid transparent;
  border-bottom: .34rem solid transparent;
}

.wiki-document-find-caret--prev::before {
  margin-left: -.1rem;
  border-right: .48rem solid currentColor;
}

.wiki-document-find-caret--next::before {
  margin-left: .08rem;
  border-left: .48rem solid currentColor;
}

.wiki-document-find-caret:hover,
.wiki-document-find-caret:focus {
  color: #495057;
  border-color: #c2ccd8;
  background: #fff;
  outline: none;
}

.wiki-document-find-caret:focus,
.wiki-document-find-caret:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, .18);
}

.wiki-document-find-box .btn-clear {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.wiki-document-find-match {
  padding: 0 .08em;
  border-radius: 4px;
  background: #fff3bf;
  color: inherit;
}

.wiki-document-find-match.is-active {
  background: #ffd43b;
}

.wiki-document-find-nav.d-none {
  display: none !important;
}

.wiki-document-download-wrap > .wiki-folder-menu-list {
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
}

.wiki-lock-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #d8e0e7;
  border-radius: 999px;
  background: #f5f7fa;
  color: #6c757d;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.wiki-lock-status:empty {
  display: none;
}

.wiki-lock-status.is-owned {
  border-color: #b7e4c7;
  background: #ecfdf3;
  color: #166534;
}

.wiki-lock-status.is-locked {
  border-color: #f6d8ae;
  background: #fff7e8;
  color: #9a6700;
}

.wiki-document-content {
  flex: 1 1 auto;
  max-height: none;
  margin: 0;
  padding: 14px 16px;
  overflow: visible;
  color: #212529;
  background: #fff;
  cursor: text;
  font-size: .95rem;
  line-height: 1.42;
}

.wiki-document-content > :first-child {
  margin-top: 0;
}

.wiki-document-content > :last-child {
  margin-bottom: 0;
}

.wiki-document-content h1,
.wiki-document-content h2,
.wiki-document-content h3,
.wiki-document-content h4,
.wiki-document-content h5,
.wiki-document-content h6 {
  margin: .9rem 0 .45rem;
  color: #212529;
  font-weight: 700;
  line-height: 1.25;
}

.wiki-document-content h1 {
  margin-top: 0;
  font-size: 1.48rem;
  text-align: center;
}

.wiki-document-content h2 {
  font-size: 1.28rem;
}

.wiki-document-content h3 {
  font-size: 1.14rem;
}

.wiki-document-content h4 {
  font-size: 1.04rem;
}

.wiki-document-content h5 {
  font-size: .98rem;
}

.wiki-document-content h6 {
  font-size: .92rem;
}

.wiki-collapse-source {
  position: relative;
}

.wiki-collapse-caret {
  position: absolute;
  display: grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
}

.wiki-collapse-caret:hover,
.wiki-collapse-caret:focus {
  color: #98a2b3;
  opacity: 1;
}

.wiki-collapse-caret:focus,
.wiki-collapse-caret:focus-visible {
  outline: none;
  box-shadow: none;
}

.wiki-collapse-caret::before {
  content: "";
  display: block;
  width: .46rem;
  height: .46rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.wiki-collapse-caret.is-collapsed::before {
  width: .46rem;
  height: .46rem;
  border-top: 0;
  border-left: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-1px) rotate(-45deg);
}

.wiki-document-content h2.wiki-collapse-source > .wiki-collapse-caret {
  left: -.95rem;
  top: .18rem;
  transform: none;
}

.wiki-document-content h3.wiki-collapse-source > .wiki-collapse-caret,
.wiki-document-content h4.wiki-collapse-source > .wiki-collapse-caret,
.wiki-document-content h5.wiki-collapse-source > .wiki-collapse-caret,
.wiki-document-content h6.wiki-collapse-source > .wiki-collapse-caret {
  left: -.95rem;
  top: .14rem;
  transform: none;
}

.wiki-document-content li.wiki-collapse-source > .wiki-collapse-caret {
  left: var(--wiki-collapse-left, -2.3rem);
  top: .16rem;
}

.wiki-collapse-hidden {
  display: none !important;
}

.wiki-document-content ul,
.wiki-document-content ol,
.wiki-document-content blockquote,
.wiki-document-content table,
.wiki-document-content .wiki-columns,
.wiki-document-content .wiki-callout {
  margin: 0 0 .65rem;
}

.wiki-document-content p {
  margin: 0 0 .25rem;
}

.wiki-document-content li.wiki-collapse-source > p:first-of-type {
  margin-bottom: 0;
}

.wiki-document-content ul,
.wiki-document-content ol {
  padding-left: 1.35rem;
}

.wiki-document-content ol {
  list-style-type: decimal;
}

.wiki-document-content ol ol {
  list-style-type: lower-alpha;
}

.wiki-document-content ol ol ol {
  list-style-type: lower-roman;
}

.wiki-document-content ol ol ol ol {
  list-style-type: decimal;
}

.wiki-document-content .wiki-column ol {
  list-style-type: decimal;
}

.wiki-document-content .wiki-column ol ol {
  list-style-type: lower-alpha;
}

.wiki-document-content .wiki-column ol ol ol {
  list-style-type: lower-roman;
}

.wiki-document-content .wiki-column ol ol ol ol {
  list-style-type: decimal;
}

.wiki-document-content ul:not([data-type="taskList"]) {
  list-style-type: disc;
}

.wiki-document-content ul:not([data-type="taskList"])
  ul:not([data-type="taskList"]) {
  list-style-type: circle;
}

.wiki-document-content ul:not([data-type="taskList"])
  ul:not([data-type="taskList"])
  ul:not([data-type="taskList"]) > li:not([data-type="taskItem"])::marker {
  content: "- ";
}

.wiki-document-content ul[data-type="taskList"] {
  padding-left: 0;
  list-style: none;
}

.wiki-document-content .wiki-task-item,
.wiki-document-content li[data-type="taskItem"] {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
  min-height: 1.55rem;
}

.wiki-document-content li[data-type="taskItem"] {
  list-style: none;
}

.wiki-document-content .wiki-task-item label,
.wiki-document-content li[data-type="taskItem"] label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding-top: .18rem;
}

.wiki-document-content .wiki-task-item input,
.wiki-document-content li[data-type="taskItem"] input {
  flex: 0 0 auto;
  width: 1.12rem;
  height: 1.12rem;
  margin: 0;
}

.wiki-document-content .wiki-task-item div,
.wiki-document-content .wiki-task-item p,
.wiki-document-content li[data-type="taskItem"] div,
.wiki-document-content li[data-type="taskItem"] p {
  min-width: 0;
  margin: 0;
}

.wiki-document-content a {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
}

.wiki-document-content a:hover,
.wiki-document-content a:focus {
  text-decoration: underline;
}

.wiki-external-embed {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #212529 !important;
  font-weight: 600;
  text-decoration: underline !important;
  vertical-align: baseline;
}

.wiki-external-embed:hover,
.wiki-external-embed:focus {
  background: transparent;
  color: #212529 !important;
  text-decoration: underline !important;
}

.wiki-external-embed__title {
  font-weight: inherit;
  line-height: inherit;
}

.wiki-external-embed__host {
  display: none;
}

.wiki-rendered-editor .ProseMirror a[href^="http"] {
  color: #212529;
  font-weight: 500;
  text-decoration: none;
  cursor: text;
}

.wiki-rendered-editor .ProseMirror a[href^="http"]::before {
  content: "[";
  color: #c0c7cf;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.wiki-rendered-editor .ProseMirror a[href^="http"]::after {
  content: "](" attr(href) ")";
  color: #c0c7cf;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.wiki-rendered-editor .ProseMirror a[href^="http"]:hover,
.wiki-rendered-editor .ProseMirror a[href^="http"]:focus {
  color: #212529;
  text-decoration: none;
}

.wiki-rendered-editor .ProseMirror .wiki-editor-internal-link {
  color: #315a7a;
  font-weight: 650;
  cursor: text;
}

.wiki-document-content .wiki-internal-link {
  color: #212529;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.wiki-document-content .wiki-internal-link::before {
  content: none;
}

.wiki-document-content .wiki-internal-link::after {
  content: none;
}

.wiki-tag {
  display: inline-block;
  padding: 0 .35rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #f8f9fa;
  color: #495057;
  font-size: .86em;
  font-weight: 650;
}

.wiki-autofill-token {
  color: #64748b;
  font-weight: 600;
}

.wiki-document-content code {
  padding: .08rem .25rem;
  border-radius: 4px;
  background: #f1f3f5;
  color: #212529;
  font-family: Consolas, "Courier New", monospace;
  font-size: .9em;
}

.wiki-document-content pre {
  margin: 0 0 .75rem;
  padding: 12px;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
  color: #212529;
}

.wiki-document-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.wiki-math-inline {
  display: inline-block;
  vertical-align: baseline;
}

.wiki-math-block {
  margin: .75rem 0 1rem;
  overflow-x: auto;
}

.wiki-rendered-editor .ProseMirror .Tiptap-mathematics-render {
  display: inline-block;
  padding: 0 .12rem;
  vertical-align: baseline;
}

.wiki-rendered-editor .ProseMirror .Tiptap-mathematics-render--editable {
  cursor: text;
}

.wiki-rendered-editor .ProseMirror .Tiptap-mathematics-editor {
  font-family: inherit;
  font-size: inherit;
}

.wiki-document-content blockquote {
  padding: 7px 10px;
  border-left: 3px solid #adb5bd;
  background: #fff;
  color: #495057;
}

.wiki-document-content blockquote p {
  margin: 0 0 .45rem;
}

.wiki-rendered-editor .ProseMirror blockquote p::before {
  content: ">";
  display: inline-block;
  margin-right: 7px;
  color: #adb5bd;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.wiki-rendered-editor .ProseMirror blockquote li > p::before {
  content: none;
}

.wiki-rendered-editor .ProseMirror blockquote ul,
.wiki-rendered-editor .ProseMirror blockquote ol {
  padding-left: 2.25rem;
}

.wiki-rendered-editor .ProseMirror blockquote li {
  position: relative;
}

.wiki-rendered-editor .ProseMirror blockquote li::before {
  content: ">";
  position: absolute;
  left: -1.85rem;
  top: 0;
  color: #adb5bd;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.wiki-document-content hr {
  margin: .9rem 0;
  border: 0;
  border-top: 1px solid #dee2e6;
  opacity: 1;
}

.wiki-comment-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 .65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa3ad;
  font-style: italic;
}

.wiki-comment-block::before {
  content: "%%";
  flex: 0 0 auto;
  margin: 0;
  color: #c0c7cf;
  font-style: normal;
  font-weight: 700;
}

.wiki-comment-block::after {
  content: "%%";
  flex: 0 0 auto;
  margin: 0;
  color: #c0c7cf;
  font-style: normal;
  font-weight: 700;
}

.wiki-comment-block:empty::before {
  margin-right: 22px;
}

.wiki-preview-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.wiki-document-content .wiki-preview-table-scroll > table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.wiki-document-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #dee2e6;
  border-radius: 0;
  background: #fff;
}

.wiki-document-content th,
.wiki-document-content td {
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
}

.wiki-document-content th {
  background: #fff;
  color: #212529;
  font-weight: 700;
}

.wiki-columns {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.wiki-column {
  flex: 1 1 0;
  min-width: 0;
}

.wiki-column[data-wiki-column-width] {
  flex: 0 1 var(--wiki-column-width);
}

.wiki-column > :first-child {
  margin-top: 0;
}

.wiki-column > :last-child {
  margin-bottom: 0;
}

.wiki-rendered-editor .ProseMirror .wiki-columns {
  position: relative;
  padding: 8px;
  padding-right: 2rem;
  border: 1px dashed #d0d7de;
  border-radius: 4px;
  background: #fff;
}

.wiki-rendered-editor .ProseMirror .wiki-columns::before {
  content: "\00D7";
  display: block;
  z-index: 4;
  position: absolute;
  top: .28rem;
  right: .45rem;
  color: #9ca3af;
  font-size: .95rem;
  line-height: 1;
  font-weight: 600;
  pointer-events: none;
}

.wiki-rendered-editor .ProseMirror .wiki-columns:hover::before {
  color: #6b7280;
}

.wiki-rendered-editor .ProseMirror .wiki-column {
  min-height: 54px;
  padding: 8px 10px;
  overflow: auto;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: #fff;
}

.wiki-rendered-editor .ProseMirror .wiki-column-marker {
  display: inline-block;
  width: auto;
  min-width: 1.65rem;
  margin: 0 0 .35rem;
  padding: 0 .25rem;
  border-radius: 3px;
  background: #f8f9fa;
  color: #9ca3af;
  font-family: Consolas, "Courier New", monospace;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
}

.wiki-callout {
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  border-left: 3px solid #6c757d;
  border-radius: 4px;
  background: #fff;
  color: #343a40;
}

.wiki-callout-title {
  margin-bottom: 5px;
  font-weight: 700;
}

.wiki-callout-body > :last-child {
  margin-bottom: 0;
}

.wiki-callout--warning,
.wiki-callout--caution,
.wiki-callout--attention {
  border-color: #dee2e6;
  border-left-color: #ffc107;
  background: #fff;
  color: #5c3d00;
}

.wiki-callout--danger,
.wiki-callout--error,
.wiki-callout--failure {
  border-color: #dee2e6;
  border-left-color: #dc3545;
  background: #fff;
  color: #842029;
}

.wiki-callout--success,
.wiki-callout--check,
.wiki-callout--done {
  border-color: #dee2e6;
  border-left-color: #198754;
  background: #fff;
  color: #0f5132;
}

.wiki-editor-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  display: block;
}

.wiki-table-move-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

.wiki-table-move-overlay-group {
  position: absolute;
  display: inline-flex;
  gap: 6px;
  pointer-events: auto;
}

.wiki-table-drag-highlight {
  position: absolute;
  pointer-events: none;
  border-radius: 2px;
}

.wiki-table-drag-highlight--row-source,
.wiki-table-drag-highlight--column-source {
  background: rgba(108, 117, 125, 0.10);
  box-shadow: inset 0 0 0 1px rgba(108, 117, 125, 0.10);
}

.wiki-table-drag-highlight--row-target {
  background: rgba(13, 110, 253, 0.05);
  box-shadow: none;
}

.wiki-table-drag-highlight--column-target {
  background: rgba(13, 110, 253, 0.05);
  box-shadow: none;
}

.wiki-table-move-overlay-group--column {
  transform: translate(-100%, 0);
}

.wiki-table-move-overlay-group--row {
  transform: translate(-100%, -100%);
}

.wiki-table-move-overlay-button {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid #d7dee7;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
  cursor: pointer;
}

.wiki-table-move-overlay-caret {
  width: 0;
  height: 0;
  display: inline-block;
  border-style: solid;
  border-color: transparent;
}

.wiki-table-move-overlay-caret--right {
  margin-left: .08rem;
  border-top-width: .34rem;
  border-bottom-width: .34rem;
  border-left-width: .48rem;
  border-left-color: currentColor;
}

.wiki-table-move-overlay-caret--left {
  margin-left: -.1rem;
  border-top-width: .34rem;
  border-bottom-width: .34rem;
  border-right-width: .48rem;
  border-right-color: currentColor;
}

.wiki-table-move-overlay-caret--up {
  margin-top: -.08rem;
  border-left-width: .34rem;
  border-right-width: .34rem;
  border-bottom-width: .48rem;
  border-bottom-color: currentColor;
}

.wiki-table-move-overlay-caret--down {
  margin-top: .08rem;
  border-left-width: .34rem;
  border-right-width: .34rem;
  border-top-width: .48rem;
  border-top-color: currentColor;
}

.wiki-table-move-overlay-button:hover {
  color: #374151;
  border-color: #c2ccd8;
  background: #fff;
}

.wiki-table-move-overlay-button:focus,
.wiki-table-move-overlay-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, .18);
}

.wiki-editor-wrap.is-table-row-dragging {
  cursor: grabbing;
}

.wiki-editor-wrap.is-table-column-dragging {
  cursor: grabbing;
}

.wiki-rendered-editor tr.wiki-table-row-drag-source > th,
.wiki-rendered-editor tr.wiki-table-row-drag-source > td,
.wiki-document-editor tr.wiki-table-row-drag-source > th,
.wiki-document-editor tr.wiki-table-row-drag-source > td {
  background: rgba(13, 110, 253, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.28);
}

.wiki-rendered-editor tr.wiki-table-row-drag-target > th,
.wiki-rendered-editor tr.wiki-table-row-drag-target > td,
.wiki-document-editor tr.wiki-table-row-drag-target > th,
.wiki-document-editor tr.wiki-table-row-drag-target > td {
  background: rgba(13, 110, 253, 0.14) !important;
  box-shadow: inset 0 4px 0 #0d6efd, inset 0 -4px 0 #0d6efd;
}

.wiki-rendered-editor .wiki-table-column-drag-source,
.wiki-document-editor .wiki-table-column-drag-source {
  background: rgba(13, 110, 253, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.28);
}

.wiki-rendered-editor .wiki-table-column-drag-target,
.wiki-document-editor .wiki-table-column-drag-target {
  background: rgba(13, 110, 253, 0.14) !important;
  box-shadow: inset 4px 0 0 #0d6efd, inset -4px 0 0 #0d6efd;
}

.wiki-document-editor {
  min-height: 320px;
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92rem;
  line-height: 1.5;
  resize: vertical;
}

.wiki-rendered-editor {
  min-height: 320px;
  min-width: 0;
  max-width: 100%;
  outline: none;
}

.wiki-rendered-editor .ProseMirror {
  min-height: 320px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.wiki-rendered-editor .ProseMirror table {
  display: table;
  width: 100%;
  min-width: 100%;
  max-width: none;
  position: relative;
}

.wiki-rendered-editor .ProseMirror .selectedCell {
  background: rgba(13, 110, 253, 0.16);
  box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.7);
}

.wiki-rendered-editor .ProseMirror thead th:last-child,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child {
  position: relative;
  padding-right: 2rem;
}

.wiki-rendered-editor .ProseMirror thead th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child::before {
  content: "×";
  position: absolute;
  top: .28rem;
  right: .45rem;
  color: #9ca3af;
  font-size: .95rem;
  line-height: 1;
  font-weight: 600;
  pointer-events: none;
}

.wiki-rendered-editor .ProseMirror thead th:last-child:hover::before,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child:hover::before,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child:hover::before {
  color: #6b7280;
}

.wiki-rendered-editor .ProseMirror thead th:last-child,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child {
  padding-right: 3.9rem;
}


.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child {
  position: relative;
}

.wiki-rendered-editor .ProseMirror table::before {
  content: "×";
  position: absolute;
  top: .28rem;
  right: .45rem;
  color: #9ca3af;
  font-size: .95rem;
  line-height: 1;
  font-weight: 600;
  pointer-events: none;
}

.wiki-rendered-editor .ProseMirror thead th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child::before,
.wiki-rendered-editor .ProseMirror thead th:last-child::after,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child::after,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child::after,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child::before,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child::before,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child::before,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child::before,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child::after,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child::after {
  position: absolute;
  color: #9ca3af;
  font-size: .95rem;
  line-height: 1;
  font-weight: 600;
  pointer-events: none;
}

.wiki-rendered-editor .ProseMirror thead th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child::before {
  content: "+";
  top: .18rem;
  right: 1.96rem;
}

.wiki-rendered-editor .ProseMirror thead th:last-child::after,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child::after,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child::after {
  content: "-";
  top: .18rem;
  right: 1.3rem;
}

.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child::before,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child::before,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child::before,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child::before {
  content: "+";
  left: .45rem;
  bottom: .28rem;
}

.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child::after,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child::after {
  content: "−";
  left: 1.42rem;
  bottom: .28rem;
}

.wiki-rendered-editor .ProseMirror table:hover::before,
.wiki-rendered-editor .ProseMirror thead th:last-child:hover::before,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child:hover::before,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child:hover::before,
.wiki-rendered-editor .ProseMirror thead th:last-child:hover::after,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child:hover::after,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child:hover::after,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child:hover::before,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child:hover::before,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child:hover::before,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child:hover::before,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child:hover::after,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child:hover::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child:hover::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child:hover::after {
  color: #6b7280;
}

/* Override the earlier corrupted glyphs with stable symbols. */
.wiki-rendered-editor .ProseMirror thead th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child::before,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child::before {
  content: "+";
}

.wiki-rendered-editor .ProseMirror thead th:last-child::after,
.wiki-rendered-editor .ProseMirror tr:first-child > th:last-child::after,
.wiki-rendered-editor .ProseMirror tr:first-child > td:last-child::after,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > th:first-child::after,
.wiki-rendered-editor .ProseMirror tbody tr:last-child > td:first-child::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > th:first-child::after,
.wiki-rendered-editor .ProseMirror table > tr:last-child > td:first-child::after {
  content: "-";
}

.wiki-rendered-editor .ProseMirror table::before {
  content: "\00D7";
  display: block;
  z-index: 4;
}


.wiki-rendered-editor .ProseMirror > :first-child {
  margin-top: 0;
}

.wiki-rendered-editor .ProseMirror > :last-child {
  margin-bottom: 0;
}

.wiki-rendered-editor .ProseMirror > p {
  margin: 0;
}

.wiki-markerless-list-line > li::marker {
  color: transparent;
}

.wiki-rendered-editor .ProseMirror .wiki-markerless-list-line {
  padding-left: 0;
  list-style: none;
}

.wiki-document-content .wiki-markerless-list-line {
  margin-bottom: 0;
}

.wiki-rendered-editor:focus {
  box-shadow: inset 0 -2px 0 rgba(13, 110, 253, .25);
}

.wiki-rendered-editor:focus-within {
  box-shadow: inset 0 -2px 0 rgba(13, 110, 253, .25);
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] {
  padding-left: 0 !important;
  list-style: none !important;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] {
  display: grid !important;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  list-style: none !important;
  margin: 0 0 .65rem;
  padding: 0;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  margin: .17rem 0 0;
  padding: 0;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > label input {
  width: 1.12rem;
  height: 1.12rem;
  margin: 0;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > div {
  grid-column: 2;
  min-width: 0;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > div > p {
  margin: 0;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"],
.wiki-document-content ul[data-type="taskList"] {
  padding-left: 0 !important;
  list-style: none !important;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"],
.wiki-document-content ul[data-type="taskList"] > li[data-type="taskItem"] {
  position: relative !important;
  display: block !important;
  min-height: 1.75rem;
  margin: 0 0 .65rem !important;
  padding: 0 0 0 1.9rem !important;
  list-style: none !important;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"]::marker,
.wiki-document-content ul[data-type="taskList"] > li[data-type="taskItem"]::marker {
  content: "" !important;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > label,
.wiki-document-content ul[data-type="taskList"] > li[data-type="taskItem"] > label {
  position: absolute !important;
  left: 0 !important;
  top: .22rem !important;
  display: block !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > label input,
.wiki-document-content ul[data-type="taskList"] > li[data-type="taskItem"] > label input {
  display: block !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin: 0 !important;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > div,
.wiki-document-content ul[data-type="taskList"] > li[data-type="taskItem"] > div {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wiki-rendered-editor .ProseMirror ul[data-type="taskList"] > li[data-type="taskItem"] > div > p,
.wiki-document-content ul[data-type="taskList"] > li[data-type="taskItem"] > div > p {
  margin: 0 !important;
}

.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-list,
.wiki-document-content .wiki-tiptap-task-list {
  padding-left: 0 !important;
  list-style: none !important;
}

.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-item,
.wiki-document-content .wiki-tiptap-task-item {
  position: relative !important;
  display: block !important;
  min-height: 1.75rem !important;
  margin: 0 0 .65rem !important;
  padding: 0 0 0 2rem !important;
  list-style: none !important;
}

.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-item::marker,
.wiki-document-content .wiki-tiptap-task-item::marker {
  content: "" !important;
}

.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-item > label,
.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-label,
.wiki-document-content .wiki-tiptap-task-item > label,
.wiki-document-content .wiki-tiptap-task-label {
  position: absolute !important;
  left: 0 !important;
  top: .22rem !important;
  display: block !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-item input[type="checkbox"],
.wiki-document-content .wiki-tiptap-task-item input[type="checkbox"] {
  display: block !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin: 0 !important;
}

.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-content,
.wiki-document-content .wiki-tiptap-task-content {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wiki-rendered-editor .ProseMirror .wiki-tiptap-task-content > p,
.wiki-document-content .wiki-tiptap-task-content > p {
  margin: 0 !important;
}

.wiki-slash-menu {
  position: absolute;
  z-index: 8;
  left: 12px;
  top: 12px;
  display: grid;
  width: min(360px, calc(100% - 24px));
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--wiki-border);
  border-radius: 4px;
  background: var(--wiki-surface);
  box-shadow: 0 10px 24px rgba(33, 37, 41, .14);
}

.wiki-slash-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--wiki-border);
  background: var(--wiki-surface);
}

.wiki-slash-item-row:hover,
.wiki-slash-item-row:focus-within,
.wiki-slash-item-row:has(.wiki-slash-item.is-active) {
  background: var(--wiki-surface-hover);
}

.wiki-slash-item-row:last-child {
  border-bottom: 0;
}

.wiki-slash-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--wiki-border);
  background: var(--wiki-surface);
  color: var(--wiki-text-strong);
  font: inherit;
  text-align: left;
}

.wiki-slash-item-row .wiki-slash-item {
  border-bottom: 0;
  background: transparent;
}

.wiki-slash-item:last-child {
  border-bottom: 0;
}

.wiki-slash-item:hover,
.wiki-slash-item:focus,
.wiki-slash-item.is-active {
  background: var(--wiki-surface-hover);
}

.wiki-slash-item.is-active {
  box-shadow: inset 3px 0 0 #5680a7;
}

.wiki-slash-item span {
  font-size: .92rem;
  font-weight: 700;
}

.wiki-slash-item small {
  color: var(--wiki-text-muted);
  font-size: .78rem;
  font-weight: 600;
}

.wiki-slash-item-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 12px;
}

.wiki-slash-item-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 0;
  color: var(--wiki-text-muted);
  background: transparent;
  line-height: 1;
  cursor: pointer;
}

.wiki-slash-item-action:hover,
.wiki-slash-item-action:focus-visible {
  color: var(--wiki-text-strong);
  background: transparent;
}

.wiki-slash-item-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.wiki-slash-item-action--danger:hover,
.wiki-slash-item-action--danger:focus-visible {
  color: var(--theme-danger-text);
  background: transparent;
}

.wiki-attachment-paste-create {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--wiki-border);
  background: var(--wiki-surface-hover);
  color: var(--wiki-text-strong);
}

.wiki-attachment-paste-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.wiki-attachment-paste-field .form-control {
  min-width: 0;
  height: auto;
  padding: 4px 2px 3px;
  border: 0;
  border-bottom: 1px solid var(--wiki-border);
  border-radius: 0;
  background: transparent;
  color: var(--wiki-text-strong);
  box-shadow: none;
}

.wiki-attachment-paste-field .form-control:focus {
  border-bottom-color: var(--wiki-selection-border);
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.wiki-attachment-paste-field .form-control::placeholder {
  color: var(--wiki-text-muted);
  opacity: .75;
}

.wiki-attachment-paste-suffix,
.wiki-attachment-paste-status,
.wiki-attachment-paste-list-label {
  color: var(--wiki-text-muted);
}

.wiki-attachment-paste-confirm {
  padding: 6px 10px;
  border: 1px solid var(--wiki-border);
  border-radius: 6px;
  background: var(--wiki-surface);
  color: var(--wiki-text-strong);
  font: inherit;
  font-weight: 700;
}

.wiki-attachment-paste-confirm:hover:not(:disabled),
.wiki-attachment-paste-confirm:focus-visible {
  background: var(--wiki-surface-muted);
}

.wiki-attachment-paste-confirm:disabled {
  color: var(--wiki-text-muted);
  cursor: not-allowed;
  opacity: .6;
}

.wiki-attachment-paste-list-label {
  padding: 8px 12px 4px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wiki-attachment-paste-existing {
  padding: 8px 12px;
  border-bottom: 1px solid var(--wiki-border);
  background: var(--wiki-surface);
  color: var(--wiki-text-strong);
  overflow-wrap: anywhere;
}

.wiki-attachment-paste-existing:last-child {
  border-bottom: 0;
}

@media (max-width: 576px) {
  .wiki-attachment-paste-field {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .wiki-attachment-paste-confirm {
    grid-column: 1 / -1;
  }
}

.wiki-empty {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #667085;
  background: #f8fafc;
}

.wiki-attachment-preview {
  width: 100%;
}

.wiki-attachment-preview--image {
  display: flex;
  justify-content: center;
}

.wiki-attachment-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.wiki-attachment-preview--pdf {
  display: grid;
  gap: 12px;
}

.wiki-attachment-toolbar {
  display: flex;
  justify-content: flex-end;
}

.wiki-document-content .wiki-attachment-link,
.wiki-document-content .wiki-attachment-embed--file,
.wiki-document-content .wiki-attachment-link:visited,
.wiki-document-content .wiki-attachment-embed--file:visited,
.wiki-document-content .wiki-attachment-link:hover,
.wiki-document-content .wiki-attachment-embed--file:hover,
.wiki-document-content .wiki-attachment-link:focus,
.wiki-document-content .wiki-attachment-embed--file:focus {
  color: #212529 !important;
  font-weight: 600;
  text-decoration: underline !important;
}

.wiki-attachment-embed {
  cursor: pointer;
}

.wiki-attachment-inline {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  flex-wrap: wrap;
  max-width: 100%;
  vertical-align: top;
}

.wiki-attachment-inline-status {
  color: #6c757d;
  font-weight: 500;
}

.wiki-attachment-inline.is-loaded .wiki-attachment-inline-status {
  display: none;
}

.wiki-attachment-inline.is-loaded .wiki-attachment-embed--file {
  display: none;
}

.wiki-attachment-embed--image {
  display: block;
  max-width: 100%;
  height: auto;
}

.wiki-attachment-inline[data-wiki-attachment-size] .wiki-attachment-embed--image,
.wiki-attachment-inline[data-wiki-attachment-auto-size] .wiki-attachment-embed--image {
  width: 100%;
  max-width: none;
}

.wiki-document-content .wiki-attachment-embed--file.is-loading,
.wiki-document-content .wiki-attachment-embed--file.is-loading:visited,
.wiki-document-content .wiki-attachment-embed--file.is-loading:hover,
.wiki-document-content .wiki-attachment-embed--file.is-loading:focus {
  color: #6c757d !important;
}

.wiki-attachment-frame {
  width: 100%;
  height: min(1280px, calc(100vw * 0.9));
  min-height: 86vh;
  max-height: 1400px;
  border: 1px solid #dee2e6;
  background: #fff;
}

/* Wiki components consume semantic theme tokens in both color schemes. */
.wiki-page .wiki-crumb,
.wiki-page .wiki-move-dialog-crumb {
  color: var(--wiki-link);
}

.wiki-page .wiki-crumb:hover,
.wiki-page .wiki-crumb:focus-visible,
.wiki-page .wiki-move-dialog-crumb:hover,
.wiki-page .wiki-move-dialog-crumb:focus-visible {
  color: var(--wiki-link-hover);
}

.wiki-page .wiki-crumb-separator,
.wiki-page .wiki-move-dialog-separator,
.wiki-page .wiki-side-label,
.wiki-page .wiki-favorites-empty,
.wiki-page .wiki-search-path,
.wiki-page .wiki-search-snippet,
.wiki-page .wiki-search-empty,
.wiki-page .wiki-tree-item.is-empty > .wiki-tree-folder-header .wiki-folder-toggle::after,
.wiki-page .wiki-attachment-inline-status {
  color: var(--wiki-text-muted);
}

.wiki-page .wiki-sidebar,
.wiki-page .wiki-tree,
.wiki-page .wiki-search-results,
.wiki-page .wiki-folder-menu-list,
.wiki-page .wiki-document,
.wiki-page .wiki-document.is-placeholder,
.wiki-page .wiki-document-header,
.wiki-page .wiki-document-content,
.wiki-page .wiki-document-editor,
.wiki-page .wiki-document-content table,
.wiki-page .wiki-document-content th,
.wiki-page .wiki-document-content blockquote,
.wiki-page .wiki-rendered-editor .ProseMirror .wiki-columns,
.wiki-page .wiki-rendered-editor .ProseMirror .wiki-column,
.wiki-page .wiki-callout {
  color: var(--wiki-text);
  border-color: var(--wiki-border);
  background: var(--wiki-surface);
}

.wiki-page .wiki-side-section,
.wiki-page .wiki-tree-children,
.wiki-page .wiki-document-content th,
.wiki-page .wiki-document-content td,
.wiki-page .wiki-document-content hr,
.wiki-page .wiki-rendered-editor .ProseMirror .wiki-columns,
.wiki-page .wiki-rendered-editor .ProseMirror .wiki-column,
.wiki-page .wiki-attachment-frame {
  border-color: var(--wiki-border);
}

.wiki-page .wiki-document-header::after {
  background: var(--wiki-border);
}

.wiki-page .wiki-favorite-item,
.wiki-page .wiki-folder-toggle,
.wiki-page .wiki-file-open,
.wiki-page .wiki-search-title,
.wiki-page .wiki-current-folder,
.wiki-page .wiki-document-content h1,
.wiki-page .wiki-document-content h2,
.wiki-page .wiki-document-content h3,
.wiki-page .wiki-document-content h4,
.wiki-page .wiki-document-content h5,
.wiki-page .wiki-document-content h6,
.wiki-page .wiki-document-content th,
.wiki-page .wiki-document-content .wiki-internal-link,
.wiki-page .wiki-external-embed,
.wiki-page .wiki-rendered-editor .ProseMirror a[href^="http"],
.wiki-page .wiki-document-content .wiki-attachment-link,
.wiki-page .wiki-document-content .wiki-attachment-embed--file {
  color: var(--wiki-text-strong) !important;
}

.wiki-page .wiki-favorite-row:hover,
.wiki-page .wiki-tree-folder-header:hover,
.wiki-page .wiki-file-row:hover,
.wiki-page .wiki-search-result:hover,
.wiki-page .wiki-search-result:focus,
.wiki-page .wiki-folder-menu-item:hover,
.wiki-page .wiki-folder-menu-item:focus {
  background: var(--wiki-surface-hover);
}

.wiki-page .wiki-tree-folder-header.is-selected,
.wiki-page .wiki-tree-folder-header.is-drop-target,
.wiki-page .wiki-tree.is-drop-target {
  background: var(--wiki-selection);
  box-shadow: inset 0 0 0 1px var(--wiki-selection-border);
}

.wiki-page .wiki-search-result,
.wiki-page .wiki-folder-menu-item {
  color: var(--wiki-text);
  border-color: var(--wiki-border);
  background: var(--wiki-surface);
}

.wiki-page .wiki-folder-menu-button {
  color: var(--wiki-text-muted);
}

.wiki-page .wiki-folder-menu-button:hover,
.wiki-page .wiki-folder-menu-button:focus,
.wiki-page .wiki-folder-menu-button[aria-expanded="true"] {
  color: var(--wiki-text-strong);
  background: var(--wiki-surface-hover);
}

.wiki-page .wiki-document-tab {
  color: var(--wiki-text-muted);
  border-color: var(--wiki-border);
  background: var(--wiki-surface-muted);
}

.wiki-page .wiki-document-tab.is-active {
  color: var(--wiki-text-strong);
  border-color: var(--wiki-border);
  border-bottom-color: var(--wiki-surface);
  background: var(--wiki-surface);
}

.wiki-page .wiki-document-tab.is-active::after {
  background: var(--wiki-surface);
}

.wiki-page .wiki-document-find-box .form-control,
.wiki-page .wiki-document-find-nav,
.wiki-page .wiki-document-find-caret,
.wiki-page .wiki-table-move-overlay-button {
  color: var(--wiki-text);
  border-color: var(--wiki-border);
  background: var(--wiki-surface-muted);
  box-shadow: 0 10px 26px var(--theme-shadow);
}

.wiki-page .wiki-document-find-match {
  background: var(--theme-highlight);
}

.wiki-page .wiki-document-find-match.is-active {
  background: var(--theme-highlight-active);
}

.wiki-page .wiki-lock-status {
  color: var(--wiki-text-muted);
  border-color: var(--wiki-border);
  background: var(--wiki-surface-muted);
}

.wiki-page .wiki-lock-status.is-owned {
  color: var(--theme-success-text);
  border-color: var(--theme-success-border);
  background: var(--theme-success-surface);
}

.wiki-page .wiki-lock-status.is-locked {
  color: var(--theme-warning-text);
  border-color: var(--theme-warning-border);
  background: var(--theme-warning-surface);
}

.wiki-page .wiki-document-content a {
  color: var(--wiki-link);
}

.wiki-page .wiki-rendered-editor .ProseMirror .wiki-editor-internal-link {
  color: var(--wiki-link);
}

.wiki-page .wiki-tag,
.wiki-page .wiki-rendered-editor .ProseMirror .wiki-column-marker,
.wiki-page .wiki-document-content code {
  color: var(--wiki-text);
  border-color: var(--wiki-border);
  background: var(--theme-code-surface);
}

.wiki-page .wiki-document-content pre {
  color: var(--wiki-text);
  border-color: var(--wiki-border);
  background: var(--theme-code-surface);
}

.wiki-page .wiki-callout--warning,
.wiki-page .wiki-callout--caution,
.wiki-page .wiki-callout--attention {
  color: var(--theme-warning-text);
  border-color: var(--wiki-border);
  border-left-color: var(--theme-warning-border);
  background: var(--theme-warning-surface);
}

.wiki-page .wiki-callout--danger,
.wiki-page .wiki-callout--error,
.wiki-page .wiki-callout--failure {
  color: var(--theme-danger-text);
  border-color: var(--wiki-border);
  border-left-color: var(--theme-danger-border);
  background: var(--theme-danger-surface);
}

.wiki-page .wiki-callout--success,
.wiki-page .wiki-callout--check,
.wiki-page .wiki-callout--done {
  color: var(--theme-success-text);
  border-color: var(--wiki-border);
  border-left-color: var(--theme-success-border);
  background: var(--theme-success-surface);
}

.wiki-page .wiki-attachment-frame {
  background: var(--wiki-surface-muted);
}

@media (max-width: 992px) {
  .wiki-workspace {
    grid-template-columns: 1fr;
  }

  .wiki-preview .wiki-document,
  .wiki-preview .wiki-document-shell,
  .wiki-preview [data-wiki-document-content] {
    min-width: 0;
    max-width: 100%;
  }

  .wiki-attachment-frame {
    height: 82vh;
    min-height: 82vh;
  }
}

@media (max-width: 576px) {
  .wiki-columns {
    flex-direction: column;
  }

  .wiki-column {
    flex-basis: auto;
  }

  .wiki-document-editor,
  .wiki-rendered-editor,
  .wiki-rendered-editor .ProseMirror,
  .wiki-rendered-editor .ProseMirror td,
  .wiki-rendered-editor .ProseMirror th,
  .wiki-rendered-editor .ProseMirror p,
  .wiki-rendered-editor .ProseMirror li,
  .wiki-rendered-editor .ProseMirror blockquote,
  .wiki-rendered-editor .ProseMirror code,
  .wiki-rendered-editor .ProseMirror a,
  .wiki-rendered-editor .ProseMirror .wiki-editor-internal-link,
  .wiki-rendered-editor .ProseMirror .wiki-autofill-token {
    font-size: 16px;
  }

  .wiki-folder-menu-button {
    padding-top: 5px;
  }

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

  .wiki-document-header {
    align-items: stretch;
    flex-direction: column;
  }

  .wiki-document-tabs {
    order: 2;
    width: 100%;
    scrollbar-width: none;
  }

  .wiki-document-tabs::-webkit-scrollbar {
    display: none;
  }

  .wiki-document-tab {
    flex: 0 0 190px;
    width: 190px;
    min-width: 190px;
    max-width: 190px;
  }

  .wiki-document-actions {
    order: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    top: 0;
    padding: 0 4px 4px 4px;
  }

  .wiki-document-actions::-webkit-scrollbar {
    display: none;
  }

  .wiki-document-actions > * {
    flex: 0 0 auto;
  }

  .wiki-document-find-nav {
    right: 12px;
    bottom: 12px;
  }

  .wiki-document-find-box {
    top: 12px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
    max-width: min(280px, calc(100vw - 24px));
  }

  .wiki-attachment-frame {
    height: 76vh;
    min-height: 76vh;
  }
}
