#dashboard-view-docs {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.docs-app-shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #1e1e1e;
}

.docs-sidebar.sidebar {
  width: 300px;
  min-width: 220px;
  max-width: 560px;
  flex: 0 0 auto;
  background: #252526;
  border-right: 1px solid #3e3e42;
  padding: 0;
  min-height: 0;
}

.docs-sidebar.is-logo-only {
  min-width: 56px;
  max-width: 56px;
  width: 56px;
}

.docs-sidebar .search-box input {
  background: #3c3c3c;
  color: #d4d4d4;
  border: 1px solid #3e3e42;
}

.docs-sidebar .search-box input:focus {
  outline: none;
  border-color: #0e639c;
  background: #3c3c3c;
}

.docs-sidebar .sidebar-tree-header {
  justify-content: flex-end;
}

.docs-sidebar .sidebar-tree-home-btn.is-active {
  background: var(--app-hierarchy-active-bg, var(--app-button-active-bg, #0d5a8f));
  color: var(--app-button-text, #ffffff);
}

.docs-main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #1e1e1e;
}

.docs-editor-preview-container {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

.docs-editor-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.docs-editor-corner-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: var(--app-icon-button-size, 32px);
  min-width: var(--app-icon-button-size, 32px);
}

.docs-outline-toggle-btn[aria-pressed="true"] {
  background: rgba(70, 126, 199, 0.14) !important;
  border-color: rgba(107, 156, 226, 0.36) !important;
  color: #b7d5ff !important;
}

.docs-outline-toggle-btn.editor-corner-document-outline-btn {
  position: static;
  top: auto;
  right: auto;
}

.docs-document-meta {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-start;
  padding: 18px 22px 12px;
  border-bottom: 1px solid #2f3138;
  background: #1f2025;
}

.docs-meta-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.docs-library-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.docs-library-button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--app-font-family);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.docs-library-button:hover {
  border-color: rgba(137, 183, 242, 0.42);
  color: #edf2fb;
}

.docs-library-button.is-active {
  border-color: rgba(107, 156, 226, 0.38);
  background: rgba(70, 126, 199, 0.14);
  color: #d8eaff;
}

.docs-document-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #eef4fb;
}

.docs-preview-meta {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.docs-preview-content {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 0;
  background: #1e1e1e;
}

.docs-preview-state {
  margin: 0;
  padding: 22px 24px;
  color: var(--muted);
  line-height: 1.7;
}

.docs-preview-state.is-error {
  color: var(--danger);
}

.docs-preview-fallback {
  margin: 0;
  padding: 18px;
  color: #dce7f5;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 13px;
}

@media (max-width: 720px) {
  .docs-preview-content {
    min-height: 560px;
  }

  .docs-app-shell {
    min-height: calc(100vh - 320px);
    flex-direction: column;
  }

  .docs-sidebar.sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid #3e3e42;
  }

  .docs-sidebar.is-logo-only {
    width: 100%;
    max-width: none;
  }

  .docs-document-meta {
    padding: 14px 16px 10px;
    gap: 16px;
  }

  .docs-document-title {
    font-size: 16px;
  }
}
