.wiki-desk-active .admin-workspace { grid-template-columns: minmax(0, 1fr); }
.wiki-desk-active .admin-overview,
.wiki-desk-active .admin-workspace > aside { display: none; }
#editor-wiki { --desk-line: #43394f; --desk-ink: #f3edf7; --desk-muted: #b9acbf; }
.wiki-desk-header { margin: 4px 0 22px; }
.wiki-desk-header h2 { margin: 0; color: var(--desk-ink); font-size: 25px; letter-spacing: -.05em; }
.wiki-desk-header p, .wiki-body-help { margin: 7px 0 0; color: var(--desk-muted); line-height: 1.65; font-size: 13px; }
.wiki-desk-layout { display: grid; grid-template-columns: minmax(175px, 22%) minmax(0, 1fr); border-top: 1px solid var(--desk-line); }
.wiki-desk-nav { min-width: 0; padding: 23px 18px 18px 0; border-right: 1px solid var(--desk-line); }
.wiki-desk-nav > label { margin-top: 0; }
#wiki-find { margin-bottom: 14px; }
#wiki-document-list { max-height: min(77vh, 850px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #61516c transparent; }
.wiki-desk-category { margin: 16px 0 6px; color: var(--desk-muted); font-size: 12px; font-weight: 650; }
.wiki-desk-category:first-child { margin-top: 2px; }
#wiki-document-list button { display: block; width: 100%; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #ddd3e2; font: inherit; font-size: 13px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
#wiki-document-list button:hover { background: #312938; color: #fff; }
#wiki-document-list button[aria-current] { border-color: #665072; background: #3b2d47; color: #f2ddff; font-weight: 650; }
.wiki-desk-page { min-width: 0; padding: 23px 0 0 24px; }
#wiki-load-state:empty { display: none; }
#wiki-edit-fields { border: 0; min-width: 0; margin: 0; padding: 0; }
.wiki-metadata { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(105px, 1fr); gap: 13px; }
.wiki-metadata label { margin-top: 0; }
.wiki-body-heading, .wiki-edit-actions, #wiki-image-form header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiki-body-heading { margin: 20px 0 8px; }
.wiki-body-heading label, #wiki-image-form h2 { margin: 0; }
#wiki-edit-body { min-height: 265px; line-height: 1.7; font-family: inherit; resize: vertical; tab-size: 2; }
.wiki-body-help { margin: 6px 0 18px; }
.wiki-edit-actions { padding-top: 16px; border-top: 1px solid var(--desk-line); flex-wrap: wrap; }
#wiki-edit-message { margin: 12px 0; }
#wiki-conflict-reload { margin-top: 12px; }
#wiki-image-dialog { width: min(440px, calc(100vw - 30px)); box-sizing: border-box; max-height: calc(100dvh - 36px); border: 1px solid #665473; color: #f3edf7; background: #231d2a; border-radius: 14px; padding: 24px; box-shadow: 0 18px 74px #0d0a14aa; }
#wiki-image-dialog::backdrop { background: #0e0a14c4; }
#wiki-image-form header { margin: 0 0 12px; }
#wiki-image-limits { display: block; margin-top: 7px; color: var(--desk-muted); line-height: 1.6; }
#wiki-image-file { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; }
#wiki-image-file::file-selector-button { margin-right: 10px; padding: 4px 8px; border: 1px solid #695373; border-radius: 5px; background: #382d42; color: #ecdef3; }
#wiki-image-preview { display: block; max-width: 100%; max-height: 160px; width: auto; height: auto; margin: 15px auto 0; border-radius: 4px; object-fit: contain; }
#wiki-image-preview[hidden] { display: none; }
.wiki-dialog-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
@media (max-width: 790px) {
  .wiki-desk-layout { grid-template-columns: minmax(0, 1fr); }
  .wiki-desk-nav { padding: 16px 0; border: 0; border-bottom: 1px solid var(--desk-line); }
  #wiki-document-list { max-height: 135px; }
  .wiki-desk-page { padding: 18px 0 0; }
}
@media (max-width: 460px) {
  .wiki-metadata { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #wiki-image-dialog { padding: 18px; }
  .wiki-edit-actions .button { flex: 1 0 auto; justify-content: center; }
}
