:root {
  --bg: #fbfbfa;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --subtle: #98989d;
  --border: #e6e6e3;
  --accent: #2f6feb;
  --code-bg: #f2f2ef;
  --code-fg: #1d1d1f;
  --quote-border: #d8d8d4;
  --max-width: 760px;
  --sidebar-width: 240px;
  --header-height: 56px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[x-cloak] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.layout { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--fg);
  cursor: pointer;
  border-radius: 4px;
}
.nav-toggle:hover { background: var(--code-bg); }

.layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 2rem 0.75rem 4rem 1.5rem;
  position: sticky;
  top: var(--header-height);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.sidebar-nav {
  font-size: 0.92rem;
}

.nav-tree, .nav-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-children {
  padding-left: 1.1rem;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 1.9rem;
}

.nav-toggle-row {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  border-radius: 3px;
}
.nav-toggle-row:hover { color: var(--fg); }
.nav-toggle-spacer { cursor: default; }

.chev {
  display: inline-flex;
  transition: transform 0.12s ease;
}
.chev.is-open { transform: rotate(90deg); }

.nav-link {
  flex: 1;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.nav-link:hover {
  color: var(--fg);
  text-decoration: none;
  background: var(--code-bg);
}
.nav-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--subtle);
}
.nav-icon svg { width: 14px; height: 14px; }
.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item.is-current > .nav-row .nav-link .nav-icon,
.nav-link:hover .nav-icon { color: currentColor; }

.nav-item.is-active > .nav-row .nav-link {
  color: var(--fg);
}
.nav-item.is-current > .nav-row .nav-link {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
  background: var(--code-bg);
}

.content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2rem 4rem;
}

.content > * {
  max-width: var(--max-width);
  margin-inline: auto;
}

.breadcrumbs {
  color: var(--subtle);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.005em;
}
.breadcrumbs a {
  color: var(--muted);
  transition: color 0.1s ease;
}
.breadcrumbs a:hover { color: var(--fg); text-decoration: none; }
.breadcrumbs .current { color: var(--fg); }
.breadcrumbs .sep {
  margin: 0 0.5rem;
  color: var(--subtle);
}

.doc {
  font-size: 1rem;
}

.doc h1, .doc h2, .doc h3, .doc h4 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 650;
  color: var(--fg);
}
.doc h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.doc h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.doc h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.doc h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.doc p, .doc ul, .doc ol { margin: 0 0 1rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li { margin-bottom: 0.25rem; }
.doc li > ul, .doc li > ol { margin-top: 0.25rem; margin-bottom: 0.25rem; }

.doc blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--quote-border);
  color: var(--muted);
  font-style: italic;
}
.doc blockquote p:last-child { margin-bottom: 0; }

.doc hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.doc th, .doc td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.doc th {
  font-weight: 600;
  background: var(--code-bg);
  border-bottom: 1px solid var(--border);
}

.doc pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 1rem 1.1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 1.25rem 0;
}
.doc code {
  background: var(--code-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.doc pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

.doc a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.doc a:hover { text-decoration-thickness: 2px; }

.listing {
  list-style: none;
  padding: 0;
  margin: 0;
}
.listing li { border-bottom: 1px solid var(--border); }
.listing li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.25rem;
  color: var(--fg);
}
.listing li a:hover { background: var(--code-bg); text-decoration: none; }

.empty { color: var(--muted); font-style: italic; }
.not-found h1 { color: var(--muted); }

.site-nav {
  margin-left: auto;
  display: inline-flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--muted);
  font-weight: 500;
}
.site-nav a:hover { color: var(--fg); text-decoration: none; }

.layout-full > .content {
  padding: 0;
}
.layout-full > .content > * {
  max-width: none;
  margin-inline: 0;
}

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--fg);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-lead code {
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-count {
  color: var(--subtle);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.35);
}

.features {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.4rem;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.feature code {
  background: var(--code-bg);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.spaces-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.spaces-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.spaces-header h1 { margin-bottom: 0.4rem; }
.spaces-sub {
  color: var(--muted);
  margin: 0;
}
.space-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}
.space-card-arrow {
  color: var(--subtle);
  display: inline-flex;
  align-self: center;
  transition: transform 0.12s ease, color 0.12s ease;
}
.space-card:hover .space-card-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
.space-card, .space-card:hover { text-decoration: none; }
.space-card * { text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg);
}
.site-footer .footer-sep { color: var(--border); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    height: auto;
    max-height: none;
    background: var(--bg);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.15s ease;
    z-index: 5;
  }
  .sidebar.sidebar-open { transform: translateX(0); }
  .content { padding: 2rem 1.25rem 3rem; }
}

.auth-card {
  max-width: 380px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.auth-card h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.auth-card .muted { color: var(--muted); margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.5rem; }
.auth-form label { font-size: 0.9rem; color: var(--muted); }
.auth-form input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: var(--bg);
}
.auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-error {
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  background: #fdecec;
  border: 1px solid #f3b8b8;
  color: #842020;
  border-radius: 6px;
  font-size: 0.9rem;
}
.btn-primary {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  padding: 0.4rem 0.8rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--code-bg); }

.admin-page {
  max-width: 880px;
  margin: 0 auto;
}
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-page-header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}
.admin-page-header .muted {
  margin: 0;
  color: var(--muted);
}
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.inline-form { margin: 0; }

.btn-ghost {
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover {
  color: var(--fg);
  background: var(--code-bg);
  border-color: #d4d4d0;
}

.space-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.space-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: start;
  column-gap: 0.9rem;
  padding: 1.1rem;
  min-height: 110px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.space-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(47, 111, 235, 0.08);
  text-decoration: none;
}
.space-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--accent);
  flex-shrink: 0;
}
.space-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.space-card-title { font-weight: 600; }
.space-card-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.space-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.empty-state code {
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .admin-page-header { flex-direction: column; gap: 1rem; }
}

.admin-page-wide { max-width: 1080px; }
.admin-header-actions { display: flex; gap: 0.5rem; align-items: center; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.admin-table thead th {
  background: var(--code-bg);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .mono { font-family: var(--font-mono); font-size: 0.85rem; }
.admin-actions-col { width: 220px; }
.admin-actions { display: flex; gap: 0.85rem; align-items: center; }
.admin-actions a { color: var(--accent); }
.admin-actions form { display: inline; }

.btn-link-danger {
  background: none;
  border: none;
  color: #b03030;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.btn-link-danger:hover { text-decoration: underline; }

.btn-danger {
  padding: 0.5rem 0.9rem;
  background: #b03030;
  color: #fff;
  border: none;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.btn-danger:hover { filter: brightness(1.05); }

.tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: var(--code-bg);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-form input[type="text"],
.admin-form input[type="number"] {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--fg);
}
.admin-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-hint { font-size: 0.8rem; color: var(--subtle); }
.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.inline-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
}

.editor-textarea {
  width: 100%;
  min-height: 60vh;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  background: #fff;
  resize: vertical;
}
.editor-textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.danger-zone {
  margin-top: 3rem;
  padding: 1.25rem;
  border: 1px solid #f3b8b8;
  border-radius: 10px;
  background: #fdf3f3;
}
.danger-zone h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #842020;
}
.danger-zone form {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.editor-form { max-width: none; gap: 0.75rem; }
.editor-stage { position: relative; }
.editor-form .editor-textarea {
  width: 100%;
  min-height: 65vh;
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}
.editor-preview {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  min-height: 65vh;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--code-bg);
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  gap: 0.15rem;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
}
.toolbar-group:last-of-type { border-right: none; }
.toolbar-spacer { flex: 1; }
.tb-btn {
  min-width: 32px;
  height: 30px;
  padding: 0 0.55rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tb-btn:hover { background: #fff; border-color: var(--border); }
.tb-btn code { font-size: 0.78rem; background: none; padding: 0; }

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--code-bg);
}
.preview-bar .muted { color: var(--muted); font-size: 0.85rem; }
.preview-bar + .editor-preview {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

.editor-status {
  font-size: 0.85rem;
  color: var(--muted);
}
.editor-status.saved { color: #2f8a4a; }
.editor-status.dirty { color: #b07a20; }
.save-status { font-size: 0.85rem; }
.save-status.saved { color: #2f8a4a; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.modal h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.modal p { margin: 0 0 1.25rem; color: var(--muted); }
.modal code { background: var(--code-bg); padding: 0.1rem 0.35rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.85rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin: 0; }

.sidebar-space { position: relative; }
.sidebar-collapse {
  position: absolute;
  top: 0.1rem;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-collapse:hover { color: var(--fg); }
.sidebar-collapse .chev { transition: transform 0.15s ease; transform: rotate(0deg); }
.sidebar-collapse .chev.is-open { transform: rotate(90deg); }
.sidebar-nav.is-collapsed .sidebar-space-desc { display: none; }

.sidebar-version-picker {
  margin: 0.6rem 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-version-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--subtle);
  margin-bottom: 0.3rem;
}

.sidebar-version-select {
  width: 100%;
  padding: 0.3rem 1.6rem 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2398989d' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.sidebar-version-select:hover {
  border-color: #c0c0bc;
  background-color: var(--code-bg);
}

.sidebar-version-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
