:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292823;
  background: #fff;
  font-size: 14px;
  --muted: #75746e;
  --border: #ebe9e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 12px;
  color: #514b3f;
  background: #fff;
  white-space: nowrap;
}
button:hover {
  background: #f4f3ed;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #393a33;
  color: #fff;
  border-color: #393a33;
}
.primary:hover {
  background: #55574b;
}
.secondary {
  background: #f7f6f2;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 6px;
}
.text-button:hover {
  color: #36342e;
  background: #f2f1e9;
}
input,
textarea,
select {
  border: 1px solid #dedbcf;
  border-radius: 5px;
  padding: 10px 12px;
  background: #fff;
  color: inherit;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #cad9e4;
  outline-offset: 2px;
}
input[readonly] {
  background: #f7f6f1;
  color: #8c8371;
}
textarea {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  line-height: 1.7;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64635d;
}
form {
  display: grid;
  gap: 16px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.35px;
  margin-bottom: 12px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
.muted,
.meta {
  color: var(--muted);
}
.small,
.meta {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  color: #929189;
  margin-bottom: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.brand {
  font-size: 17px;
  font-weight: 650;
  color: #3c3b36;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  font-family: Georgia, serif;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid #bab9af;
  border-radius: 6px;
  color: #5b5a52;
  background: #fff;
}
.sidebar {
  width: 280px;
  background: #f6f6f2;
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 25px 14px 14px;
  overflow: hidden;
}
.sidebar .brand {
  margin: 0 10px 30px;
}
.workspace-label {
  font-size: 10px;
  color: #8d8c84;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 12px 10px;
}
.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  border: 0;
  background: none;
  text-align: left;
  padding: 10px 12px;
  margin: 2px 0;
  color: #73726a;
  border-radius: 5px;
}
.nav-item span {
  font-size: 17px;
  color: #939289;
  width: 20px;
  text-align: center;
}
.nav-item.active {
  background: #eaeae4;
  color: #42413a;
  font-weight: 600;
}
.nav-item:hover {
  background: #eeeee8;
}
.tree-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8d8c84;
  margin: 33px 8px 9px;
}
.tree-heading button {
  padding: 0 5px;
  background: none;
  border: 0;
  font-size: 20px;
  color: #94938a;
}
/* Keep navigation visible while long page trees scroll independently. */
.sidebar > .brand,
.sidebar > .workspace-label,
.sidebar > nav,
.sidebar > .tree-heading,
.sidebar > .sidebar-bottom {
  flex-shrink: 0;
}
.wiki-tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.wiki-tree ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wiki-tree ul ul {
  padding-left: 15px;
}
.tree-link {
  border: 0;
  background: none;
  text-align: left;
  padding: 7px 8px;
  width: 100%;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #74736b;
  font-size: 12px;
  overflow: hidden;
}
.tree-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-link.active {
  background: #eaeae4;
  color: #4e4d44;
}
.tree-glyph {
  font-size: 13px;
  color: #aaa99e;
}
.tree-empty {
  font-size: 11px;
  color: #99988e;
  padding: 6px 9px;
  line-height: 1.7;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 35px 10px 0;
  display: grid;
  gap: 3px;
  color: #848379;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.sidebar-bottom button {
  text-align: left;
  padding-left: 0;
}
#main {
  margin-left: 280px;
  min-height: 100vh;
}
.topbar {
  height: 65px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 38px;
}
.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #b0afa6;
  font-size: 12px;
  overflow: hidden;
}
.breadcrumbs button {
  border: 0;
  background: none;
  padding: 4px 0;
  color: #818077;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 210px;
}
.breadcrumbs button:last-child {
  color: #515047;
}
.breadcrumbs .current-crumb {
  color: #66655c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-content {
  max-width: 1030px;
  margin: 0 auto;
  padding: 35px 48px 80px;
}
.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 49px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  background: #fafaf7;
}
.search-bar input,
.search-bar select {
  background: none;
  border: 0;
  padding: 8px;
  outline-offset: 0;
}
.search-bar #query {
  flex: 1;
  min-width: 150px;
}
.search-bar #repository {
  width: 150px;
  font-size: 12px;
  border-left: 1px solid var(--border);
}
.search-bar select {
  font-size: 12px;
  max-width: 136px;
  color: #78776f;
}
.search-bar button {
  font-size: 12px;
  padding: 7px 11px;
}
.search-icon {
  font-size: 22px;
  color: #a09f94;
  padding-left: 9px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p:last-child {
  margin: 0;
}
.page-heading > .primary,
.page-heading > .actions {
  margin-top: 22px;
}
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 11px;
}
.list-toolbar p {
  margin: 0;
}
.result-list {
  margin-bottom: 25px;
}
.card {
  padding: 25px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.card:hover {
  background: #fafaf7;
}
.card h2 {
  font-size: 19px;
  margin: 0 0 9px;
  font-weight: 600;
}
.card .content {
  color: #76756c;
  font-size: 13px;
  line-height: 1.7;
  margin: 9px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.badge {
  padding: 2px 6px;
  border-radius: 3px;
  background: #f1f0ea;
  font-size: 10px;
  line-height: 1.6;
  color: #716e63;
}
.human {
  background: #faf2da;
  color: #84672a;
}
.source-badge {
  background: #eef2f5;
  color: #587082;
}
.empty-state {
  padding: 65px 20px;
  text-align: center;
  color: #8a897e;
}
.empty-state h2 {
  color: #66655b;
  font-size: 18px;
  font-weight: 500;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.actions .meta {
  margin: 0;
}
.thread-heading {
  margin-bottom: 30px;
}
.thread-heading .meta {
  margin-bottom: 20px;
}
.thread-heading .actions {
  padding-top: 15px;
}
.message {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}
.message .meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.message .actions {
  margin-top: 15px;
}
.message.human-message {
  padding-left: 17px;
  border-left: 2px solid #d6c499;
}
.message.superseded {
  opacity: 0.6;
}
.message button {
  font-size: 11px;
  padding: 5px 9px;
}
.discussion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 35px 0 20px;
}
.discussion-heading h2 {
  font-size: 17px;
  margin: 0;
}
.wiki-discussion {
  margin-top: 55px;
  border-top: 1px solid var(--border);
}
.wiki-body {
  margin: 38px 0 0;
}
.page-properties {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #76756c;
  margin: 20px 0;
}
.page-properties span {
  display: inline-flex;
  gap: 6px;
}
.page-history {
  margin: 30px 0;
  color: #807e73;
  font-size: 12px;
}
.page-history summary {
  cursor: pointer;
}
.page-history ul {
  padding-left: 20px;
  line-height: 1.9;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.markdown-editor {
  border: 1px solid #dedbcf;
  border-radius: 6px;
  overflow: hidden;
}
.editor-tabs {
  background: #fafaf7;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0;
  align-items: center;
  padding: 7px 9px;
}
.editor-tabs button {
  background: none;
  border: 0;
  color: #8a887c;
  font-size: 12px;
  padding: 6px 11px;
}
.editor-tabs button.selected {
  color: #605e53;
  background: #eae8df;
}
.editor-tabs span {
  margin-left: auto;
  font-size: 10px;
  color: #929085;
  padding: 0 9px;
}
.markdown-editor textarea {
  border: 0;
  border-radius: 0;
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  padding: 20px;
}
.preview {
  min-height: 260px;
  padding: 20px;
}
.markdown {
  font-size: 14px;
  line-height: 1.85;
  color: #45443e;
  overflow-wrap: anywhere;
}
.markdown h1 {
  font-size: 29px;
  margin: 28px 0 13px;
}
.markdown h2 {
  font-size: 23px;
  margin: 26px 0 12px;
}
.markdown h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}
.markdown p {
  margin-bottom: 18px;
}
.markdown ul,
.markdown ol {
  padding-left: 25px;
  margin-bottom: 20px;
}
.markdown li {
  margin: 4px 0;
}
.markdown pre {
  background: #f6f5ef;
  border: 1px solid #eeece2;
  border-radius: 5px;
  padding: 17px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.65;
  margin: 20px 0;
}
.markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f3f1e9;
  border-radius: 3px;
  padding: 2px 4px;
  color: #766848;
}
.markdown pre code {
  background: none;
  padding: 0;
  color: #696459;
}
.markdown blockquote {
  border-left: 3px solid #d9d6ca;
  margin: 20px 0;
  padding: 2px 17px;
  color: #878476;
}
.markdown table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 20px 0;
}
.markdown th,
.markdown td {
  padding: 9px 13px;
  border: 1px solid #e4dfd0;
  text-align: left;
}
.markdown th {
  background: #f8f6ef;
}
.markdown a {
  color: #748fb1;
  text-underline-offset: 3px;
}
.markdown hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}
.activity-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.activity-filters input {
  flex: 1;
  width: 100px;
}
.activity-record {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.activity-record strong {
  font-size: 13px;
  font-weight: 500;
}
.activity-record .meta {
  margin: 8px 0;
}
.activity-record pre {
  max-height: 300px;
  overflow: auto;
  background: #f7f6ef;
  padding: 15px;
  font-size: 11px;
}
.activity-record summary {
  font-size: 11px;
  color: #8b887a;
  cursor: pointer;
}
.notice,
.error {
  font-size: 12px;
  margin: 20px 0;
}
.notice {
  color: #72907a;
}
.error {
  color: #b45a55;
}
.login-panel {
  max-width: 480px;
  padding: 70px 25px;
  margin: auto;
}
.login-panel .brand {
  margin-bottom: 45px;
}
.login-panel h1 {
  font-size: 34px;
  line-height: 1.25;
}
.login-panel p {
  margin: 20px 0 35px;
}
body:has(#login:not([hidden])) #main {
  margin-left: 0;
}
.login-panel button {
  justify-self: start;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .sidebar {
    width: 200px;
  }
  #main {
    margin-left: 200px;
  }
  .workspace-content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  #data-info {
    display: none;
  }
  .search-bar #repository {
    width: 125px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 160px;
    padding: 20px 9px;
  }
  .sidebar .brand {
    margin-left: 5px;
    font-size: 14px;
    gap: 6px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
    font-size: 19px;
  }
  .workspace-label {
    font-size: 9px;
  }
  .nav-item {
    padding: 9px 7px;
    font-size: 12px;
  }
  .tree-link {
    font-size: 11px;
  }
  .tree-heading {
    margin-top: 25px;
  }
  .sidebar-bottom {
    font-size: 10px;
  }
  #main {
    margin-left: 160px;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .workspace-content {
    padding: 23px 20px;
  }
  .search-bar {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .search-bar #query {
    flex-basis: calc(100% - 50px);
  }
  .search-bar #repository {
    flex: 1;
    border: 0;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .page-heading > .primary,
  .page-heading > .actions {
    margin: 0;
  }
  h1 {
    font-size: 29px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .activity-filters {
    flex-wrap: wrap;
  }
  .activity-filters input {
    flex-basis: 100%;
  }
  .breadcrumbs {
    font-size: 11px;
  }
  .breadcrumbs button {
    max-width: 140px;
  }
  .card .meta {
    font-size: 11px;
  }
  .discussion-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 470px) {
  .sidebar {
    width: 120px;
    padding: 15px 5px;
  }
  .sidebar .brand {
    font-size: 12px;
    gap: 5px;
  }
  .brand-mark {
    width: 19px;
    height: 21px;
    font-size: 17px;
  }
  .workspace-label {
    font-size: 8px;
    letter-spacing: 0.3px;
    margin-left: 8px;
  }
  .nav-item {
    font-size: 11px;
    gap: 6px;
  }
  .nav-item span {
    font-size: 13px;
    width: 14px;
  }
  .tree-link {
    font-size: 10px;
    padding: 7px 4px;
    gap: 4px;
  }
  .tree-heading {
    font-size: 10px;
    margin-left: 4px;
  }
  .wiki-tree ul ul {
    padding-left: 8px;
  }
  #main {
    margin-left: 120px;
  }
  .workspace-content {
    padding: 20px 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  h1 {
    font-size: 26px;
  }
  .search-bar select {
    max-width: 100px;
  }
  .search-bar #repository {
    width: 100px;
  }
  .page-properties {
    gap: 8px;
    font-size: 11px;
  }
  .editor-tabs span {
    display: none;
  }
  .login-panel {
    padding-top: 40px;
  }
}

/* Page navigation mirrors a compact document tree. */
.tree-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  border-radius: 5px;
  color: #74736e;
}
.tree-row:hover {
  background: #eeede8;
}
.tree-row.active {
  background: #e9e8e2;
  color: #373630;
}
.tree-row button {
  border: 0;
  background: transparent;
}
.tree-toggle {
  flex: 0 0 18px;
  width: 18px;
  padding: 3px 0;
  color: #99988f;
  font-size: 20px;
  line-height: 1;
}
.tree-toggle.expanded {
  transform: rotate(90deg);
}
.tree-toggle:disabled {
  cursor: default;
  opacity: 1;
}
.tree-row .tree-link {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 6px 3px;
  color: inherit;
  border-radius: 0;
  gap: 7px;
}
.tree-row .tree-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-icon,
.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #96958d;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tree-actions {
  display: flex;
  opacity: 0;
  position: absolute;
  right: 2px;
}
.tree-row:hover .tree-link,
.tree-row:focus-within .tree-link {
  padding-right: 37px;
}
.tree-row:hover .tree-actions,
.tree-row:focus-within .tree-actions {
  opacity: 1;
}
.tree-actions button {
  padding: 2px 3px;
  color: #88877d;
  font-size: 16px;
  line-height: 1.2;
}
.tree-actions button:hover {
  background: #deddd6;
}
.tree-menu {
  position: absolute;
  top: 100%;
  right: 2px;
  z-index: 5;
  padding: 5px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 3px 15px #00000014;
  display: grid;
}
.tree-menu button {
  padding: 7px 12px;
  text-align: left;
}
.tree-menu button:hover {
  background: #f3f2ed;
}
.author-field {
  max-width: 250px;
}
.message-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.message-controls select {
  padding: 4px 7px;
  font-size: 11px;
  border-color: var(--border);
  color: #73726b;
}
.inline-page-heading {
  position: relative;
  margin-bottom: 12px;
}
.inline-wiki-title {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 3px 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.2px;
  background: transparent;
}
.inline-wiki-title:focus {
  outline: none;
  background: #fafaf7;
}
.save-status {
  display: inline-block;
  color: #8b8a82;
  font-size: 11px;
  margin-top: 7px;
}
.save-warning {
  color: #946725;
}
.inline-page-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-bottom: 8px;
}
.inline-page-fields label {
  font-size: 11px;
  font-weight: 400;
  gap: 5px;
}
.inline-page-fields select,
.inline-page-fields input {
  padding: 5px 7px;
  border-color: transparent;
  background: #f8f8f5;
  font-size: 12px;
  max-width: 230px;
}
.inline-page-fields input {
  width: 180px;
}
.inline-wiki-content {
  position: relative;
  margin-top: 22px;
}
.inline-editor-hint {
  font-size: 11px;
  color: #8b8a82;
  margin-bottom: 14px;
}
/* The wiki stays formatted while editing; the document model owns its content. */
.rich-wiki-editor {
  min-height: 200px;
}
.rich-wiki-editor .ProseMirror {
  outline: none;
  min-height: 200px;
  cursor: text;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.rich-wiki-editor .ProseMirror > :first-child {
  margin-top: 0;
}
.rich-wiki-editor .ProseMirror > :last-child {
  margin-bottom: 0;
}
.rich-wiki-editor .ProseMirror p {
  margin: 0 0 12px;
}
.rich-wiki-editor .ProseMirror h1 {
  font-size: 30px;
  margin: 28px 0 12px;
}
.rich-wiki-editor .ProseMirror h2 {
  font-size: 24px;
  margin: 24px 0 10px;
}
.rich-wiki-editor .ProseMirror h3 {
  font-size: 19px;
  margin: 20px 0 8px;
}
.rich-wiki-editor .ProseMirror li p {
  margin-bottom: 4px;
}
.rich-wiki-editor .ProseMirror li {
  margin: 5px 0;
}
.rich-wiki-editor .ProseMirror-selectednode {
  outline: 2px solid #cad9e4;
}
.rich-wiki-editor .ProseMirror pre {
  white-space: pre;
  tab-size: 4;
}
.rich-wiki-editor .ProseMirror pre code {
  white-space: inherit;
}
.rich-wiki-editor .ProseMirror .tableWrapper {
  overflow-x: auto;
}
.rich-wiki-editor .ProseMirror table {
  table-layout: fixed;
  border-collapse: collapse;
  display: table;
}
.rich-wiki-editor .ProseMirror td,
.rich-wiki-editor .ProseMirror th {
  min-width: 60px;
  position: relative;
}
.rich-wiki-editor .ProseMirror .selectedCell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #cad9e455;
  pointer-events: none;
}
#wiki-create-editor {
  min-height: 230px;
}
#wiki-create-editor {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 20px;
}
.slash-menu {
  position: fixed;
  z-index: 20;
  width: 280px;
  max-height: 310px;
  overflow: auto;
  padding: 6px;
  background: white;
  border: 1px solid #e6e5de;
  border-radius: 7px;
  box-shadow: 0 6px 24px #00000018;
}
.slash-heading {
  color: #8b8a82;
  font-size: 11px;
  margin: 4px 8px 6px;
}
.slash-menu button {
  display: grid;
  width: 100%;
  gap: 3px;
  border: 0;
  padding: 8px 10px;
  text-align: left;
}
.slash-menu button.selected {
  background: #f0f0eb;
}
.slash-menu button strong {
  font-size: 12px;
  font-weight: 500;
}
.slash-menu button span {
  font-size: 11px;
  color: #8a8981;
}
.draft-recovery {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #e8d9b6;
  background: #fffdf6;
  border-radius: 6px;
  font-size: 12px;
}
.draft-recovery > p {
  margin-bottom: 12px;
}
.draft-recovery .actions {
  flex-wrap: wrap;
}
.draft-recovery button {
  font-size: 11px;
}
.conflict-current {
  max-height: 350px;
  overflow: auto;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  background: white;
}
.conflict-current summary {
  margin-bottom: 12px;
}
@media (hover: none) {
  .tree-actions {
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .inline-wiki-title {
    font-size: 28px;
  }
  .inline-page-fields {
    gap: 12px;
  }
  .inline-page-fields select {
    max-width: 180px;
  }
}
@media (max-width: 470px) {
  .tree-actions button {
    padding: 3px 1px;
  }
  .tree-toggle {
    flex-basis: 12px;
    width: 12px;
  }
  .tree-row .tree-link {
    gap: 3px;
    font-size: 11px;
  }
  .page-icon,
  .nav-icon {
    flex-basis: 13px;
    width: 13px;
    height: 15px;
  }
  .inline-wiki-title {
    font-size: 25px;
  }
  .inline-page-fields select,
  .inline-page-fields input {
    max-width: 160px;
  }
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: block;
}
@media (hover: none) {
  .tree-row .tree-link {
    padding-right: 37px;
  }
}
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 17px;
  padding: 4px 0;
}
.rich-editor-tool {
  border: 0;
  border-radius: 4px;
  padding: 5px 8px;
  color: #77766f;
  font-size: 12px;
  background: transparent;
}
.rich-editor-tool:hover,
.rich-editor-tool.active {
  background: #eeede8;
  color: #34332d;
}
.rich-editor-block-select {
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 5px 7px;
  font-size: 12px;
  color: #77766f;
  max-width: 180px;
}
.rich-editor-tool[aria-label="Bold"] {
  font-weight: 700;
}
.rich-editor-tool[aria-label="Italic"] {
  font-style: italic;
}
.rich-wiki-editor .ProseMirror.wiki-body {
  margin-top: 0;
}
.rich-wiki-editor
  .ProseMirror
  > p:first-child:last-child:has(> br:only-child)::before {
  content: "Write a page. Type / for blocks…";
  color: #aaa99f;
  pointer-events: none;
  position: absolute;
}
