:root {
  --bg: #07070d;
  --surface: #0e0f1a;
  --surface-2: #12131f;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #5a96ff;
  --accent-2: #7ab4ff;
  --text: #e8eaf0;
  --text-2: #7c8fa8;
  --text-3: #4a5568;
  --success: #4ade80;
  --danger: #f87171;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 0.22s;
  --radius-card: 28px;
  --radius-btn: 14px;
  /* legacy names used in older inline / JS snippets */
  --text-primary: #e8eaf0;
  --text-dim: #7c8fa8;
  --text-muted: #4a5568;
  --divider: rgba(255, 255, 255, 0.07);
  --card: #12131f;
  --accent-hover: #7ab4ff;
  --font: Inter, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.docs-panel-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, sans-serif;
  color: #e8eaf0;
  background: radial-gradient(ellipse 70% 50% at 10% -10%, rgba(90, 150, 255, 0.14), transparent), #07070d;
}

body.docs-panel-body a:focus-visible,
body.docs-panel-body button:focus-visible,
body.docs-panel-body .btn:focus-visible {
  outline: 2px solid #5a96ff;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docs-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.docs-panel__backdrop {
  display: none;
}

.docs-panel__sidebar {
  padding: 28px 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(14, 15, 26, 0.98) 0%, rgba(8, 8, 12, 0.99) 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.docs-panel__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #e8eaf0;
  flex-shrink: 0;
}

.docs-panel__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(90, 150, 255, 0.2);
}

.docs-panel__brand-text {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.docs-panel__brand-sub {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: #7c8fa8;
}

.docs-panel__nav-wrap {
  flex: 1;
  min-height: 0;
}

.docs-panel__side-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.docs-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-panel__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #7c8fa8;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-panel__nav a i {
  width: 1.1em;
  text-align: center;
  color: #4a5568;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-panel__nav a:hover,
.docs-panel__nav a.is-active {
  background: rgba(90, 150, 255, 0.18);
  color: #7ab4ff;
}

.docs-panel__nav a:hover i,
.docs-panel__nav a.is-active i {
  color: #7ab4ff;
}

.docs-panel__nav a.is-active {
  box-shadow: inset 0 0 0 1px rgba(90, 150, 255, 0.22);
}

.docs-panel__side-nav > .docs-panel__nav {
  margin-bottom: 14px;
}

.docs-panel__side-nav > .docs-panel__nav:last-child {
  margin-bottom: 0;
}

.docs-panel__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #07070d;
  position: relative;
}

.docs-panel__topbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 28px;
  padding-right: max(28px, env(safe-area-inset-right));
  background: #0e0f1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.docs-panel__topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.docs-panel__nav-toggle {
  display: none;
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #12131f;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1200;
  color: #e8eaf0;
  transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-panel__nav-toggle:hover {
  border-color: rgba(90, 150, 255, 0.45);
  background: rgba(90, 150, 255, 0.08);
}

.docs-panel__nav-toggle span {
  width: 22px;
  height: 2px;
  background: #e8eaf0;
  border-radius: 999px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-panel__nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.docs-panel__nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.docs-panel__nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.docs-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 400px;
  min-width: min(100%, 200px);
}

.docs-search__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #12131f;
  color: #e8eaf0;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-search__input::placeholder {
  color: #4a5568;
}

.docs-search__input:focus {
  border-color: #5a96ff;
  background: rgba(90, 150, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(90, 150, 255, 0.15);
}

.docs-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(14, 15, 26, 0.95) 0%, rgba(10, 10, 18, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  display: none;
  z-index: 50;
  overflow: hidden;
}

.docs-search__result {
  display: block;
  padding: 12px 14px;
  color: #e8eaf0;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-search__result:last-child {
  border-bottom: none;
}

.docs-search__result:hover {
  background: rgba(90, 150, 255, 0.18);
  color: #7ab4ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: #12131f;
  color: #e8eaf0;
  text-decoration: none;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  border-color: rgba(90, 150, 255, 0.45);
  color: #7ab4ff;
}

.btn-primary {
  background: linear-gradient(135deg, #5a96ff 0%, #4a85e8 100%);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 28px rgba(90, 150, 255, 0.26);
}

#toast-container {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

#toast-container .toast {
  pointer-events: auto;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(14, 15, 26, 0.95) 0%, rgba(10, 10, 18, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  border-left: 4px solid #5a96ff;
  color: #e8eaf0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition-duration: 0.01ms;
  }
}
.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-left-color: #f87171;
}

.toast.success {
  border-left-color: #4ade80;
}

.docs-wiki {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.docs-wiki__article {
  flex: 1;
  min-width: 0;
  padding: clamp(20px, 4vw, 40px) clamp(18px, 3vw, 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.docs-wiki__article-inner {
  max-width: 900px;
}

.docs-breadcrumbs {
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  color: #7c8fa8;
  margin-bottom: 20px;
  line-height: 1.5;
  word-break: break-word;
}

.docs-breadcrumbs a {
  color: #7c8fa8;
  text-decoration: none;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-breadcrumbs a:hover {
  color: #7ab4ff;
}

.docs-breadcrumbs .sep {
  margin: 0 6px;
  opacity: 0.45;
}

.docs-page-title {
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #e8eaf0;
}

.docs-wiki__aside {
  width: 260px;
  flex-shrink: 0;
  padding: clamp(20px, 4vw, 40px) 20px;
  padding-right: max(20px, env(safe-area-inset-right));
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 7, 13, 0.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.docs-wiki__block {
  margin-bottom: 32px;
}

.docs-wiki__block-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a5568;
  font-weight: 700;
  margin: 0 0 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list a {
  color: #7c8fa8;
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  line-height: 1.45;
  padding: 6px 0;
  border-radius: 8px;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-list a:hover {
  color: #7ab4ff;
}

.toc-list .toc-h3 {
  padding-left: 14px;
  font-size: 0.82rem;
}

.docs-meta {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(14, 15, 26, 0.95) 0%, rgba(10, 10, 18, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: #e8eaf0;
}

.docs-meta__date {
  color: #7c8fa8;
  font-size: 0.8rem;
  display: block;
  margin-top: 6px;
}

.content {
  color: #7c8fa8;
  line-height: 1.65;
  font-size: clamp(0.92rem, 2.2vw, 1rem);
}

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

.content a {
  color: #7ab4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a:hover {
  color: #e8eaf0;
}

.content h2,
.content h3,
.content h4 {
  color: #e8eaf0;
  margin: 1.4em 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content h2 {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
}

.content h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
}

.content p {
  margin: 0.75em 0;
}

.content ul,
.content ol {
  padding-left: 1.25em;
}

.content pre,
.content table {
  max-width: 100%;
}

.content pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  border-radius: 14px;
  background: #12131f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  line-height: 1.5;
}

.content code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.content pre code {
  background: none;
  padding: 0;
}

.content table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.content table thead,
.content table tbody {
  display: table;
  width: 100%;
}

.content th,
.content td {
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 12px;
  text-align: left;
}

.content th {
  background: #0e0f1a;
  color: #e8eaf0;
  font-weight: 600;
}

.content blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 3px solid #5a96ff;
  background: rgba(90, 150, 255, 0.18);
  border-radius: 0 12px 12px 0;
  color: #7c8fa8;
}

/* Auth (login / register) */
.auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, sans-serif;
  color: #e8eaf0;
  background: radial-gradient(ellipse 70% 50% at 10% -10%, rgba(90, 150, 255, 0.14), transparent), #07070d;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  width: min(600px, 140vw);
  height: min(600px, 140vw);
  background: radial-gradient(circle, rgba(90, 150, 255, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.auth-box {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(14, 15, 26, 0.95) 0%, rgba(10, 10, 18, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 40px);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-box h1 {
  color: #e8eaf0;
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-lead {
  text-align: center;
  color: #7c8fa8;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #7c8fa8;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  background: #12131f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e8eaf0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
  border-color: #5a96ff;
  background: rgba(90, 150, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(90, 150, 255, 0.15);
}

.auth-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #5a96ff 0%, #4a85e8 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  transition: box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-btn:hover {
  box-shadow: 0 8px 28px rgba(90, 150, 255, 0.26);
}

@media (prefers-reduced-motion: no-preference) {
  .auth-btn:hover {
    transform: translateY(-1px);
  }
}
.auth-box .alert.success {
  margin-bottom: 18px;
}

.error-msg {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 0.88rem;
}

/* Admin */
.admin-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, sans-serif;
  color: #e8eaf0;
  background: #07070d;
}

.admin-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.admin-content > header {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  background: #0e0f1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-content > header h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  color: #e8eaf0;
}

.admin-content > main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 24px);
}

.admin-content h2 {
  color: #e8eaf0;
  margin-top: 0;
  font-size: 1.1rem;
}

.admin-content p {
  color: #7c8fa8;
  margin-bottom: 20px;
  line-height: 1.55;
}

.json-editor {
  width: 100%;
  min-height: 280px;
  background: #12131f;
  color: #7ab4ff;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: clamp(12px, 2.5vw, 14px);
  line-height: 1.55;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  resize: vertical;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.json-editor:focus {
  border-color: #5a96ff;
  background: rgba(90, 150, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(90, 150, 255, 0.15);
}

.alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.alert.success {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.alert.error {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* Editor */
.editor-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, sans-serif;
  color: #e8eaf0;
  background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(90, 150, 255, 0.12), transparent), #07070d;
  overflow-x: hidden;
}

.editor-container {
  max-width: 920px;
  margin: clamp(16px, 4vw, 40px) auto;
  padding: 0 clamp(12px, 3vw, 20px) max(24px, env(safe-area-inset-bottom));
}

.editor-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(14, 15, 26, 0.95) 0%, rgba(10, 10, 18, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
}

.editor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.title-input {
  width: 100%;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  padding: 12px 0;
  margin-bottom: 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  outline: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e8eaf0;
  background: transparent;
  font-family: inherit;
}

.title-input:focus {
  border-bottom-color: #5a96ff;
}

.editor-toolbar {
  background: #12131f;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.editor-toolbar button {
  min-height: 40px;
  padding: 8px 12px;
  background: #0e0f1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  cursor: pointer;
  color: #e8eaf0;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-toolbar button:hover {
  background: rgba(90, 150, 255, 0.18);
  border-color: rgba(90, 150, 255, 0.35);
  color: #7ab4ff;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 4px;
  flex-shrink: 0;
}

.editor-area {
  min-height: min(500px, 55vh);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(14px, 2vw, 22px);
  border-radius: 0 0 16px 16px;
  outline: none;
  line-height: 1.6;
  font-size: clamp(15px, 2.5vw, 16px);
  background: #12131f;
  color: #e8eaf0;
}

.editor-area:focus {
  border-color: rgba(90, 150, 255, 0.45);
}

@media (max-width: 900px) {
  .docs-panel {
    grid-template-columns: 1fr;
  }
  .docs-panel__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  body.sidebar-open .docs-panel__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .docs-panel__backdrop {
    transition: none;
  }
}
@media (max-width: 900px) {
  .docs-panel__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    max-width: 320px;
    z-index: 1150;
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.45);
    padding-top: max(28px, env(safe-area-inset-top));
  }
  body.sidebar-open .docs-panel__sidebar {
    transform: translateX(0);
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .docs-panel__sidebar {
    transition: none;
  }
}
@media (max-width: 900px) {
  body.sidebar-open.docs-panel-body {
    overflow: hidden;
    touch-action: none;
  }
  .docs-panel__nav-toggle {
    display: flex;
  }
  .docs-panel__topbar {
    padding-left: max(72px, 68px, env(safe-area-inset-left));
  }
  .docs-panel__topbar-actions {
    order: 1;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .docs-search {
    flex: 1 1 100%;
    max-width: none;
    order: 2;
  }
  .docs-wiki {
    flex-direction: column;
    overflow: auto;
  }
  .docs-wiki__article {
    overflow: visible;
  }
  .docs-wiki__aside {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 20px max(28px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 640px) {
  .docs-panel__topbar {
    padding: 12px 16px;
    padding-left: max(68px, env(safe-area-inset-left));
  }
  .docs-page-title {
    font-size: 1.35rem;
  }
}
@media (max-width: 400px) {
  .auth-box {
    border-radius: 20px;
  }
  .editor-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .editor-toolbar button {
    flex: 0 0 auto;
  }
}

/*# sourceMappingURL=docs.css.map */
