/* Enterprise Documentation Clean CSS - 100% Autonomous, No External CDNs */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --accent: #2dd4bf;
  --bg: #ffffff;
  --bg-sidebar: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --bg-sidebar: #070d19;
  --bg-card: #131c31;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --code-bg: #030712;
  --code-text: #f1f5f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.wiki-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.wiki-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}
.wiki-header-left { display: flex; align-items: center; gap: 12px; }
.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--text);
}
.wiki-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.wiki-logo-icon { font-size: 1.3rem; }
.wiki-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  vertical-align: middle;
}

.wiki-header-center { flex: 1; max-width: 480px; }
.wiki-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.wiki-search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.wiki-search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-sidebar);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.wiki-search-box input:focus {
  border-color: var(--primary);
  background: var(--bg);
}

.wiki-header-right { display: flex; align-items: center; gap: 12px; }
.live-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.btn-console {
  background: var(--primary);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.btn-console:hover { background: var(--primary-dark); text-decoration: none; }

/* Layout */
.wiki-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
.wiki-sidebar {
  width: 290px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-sidebar);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
}
.wiki-nav { display: flex; flex-direction: column; gap: 20px; }
.wiki-nav-group { display: flex; flex-direction: column; gap: 4px; }
.wiki-nav-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 0 8px 4px;
}
.wiki-nav-link {
  font-size: 0.88rem;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}
.wiki-nav-link:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary);
  text-decoration: none;
}
.wiki-nav-link.active {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sidebar-footer strong { color: var(--text); }

/* Main Content */
.wiki-main {
  flex: 1;
  padding: 32px 48px;
  max-width: 960px;
}
.wiki-breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.wiki-breadcrumbs span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.doc-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}
.doc-section h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.doc-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.doc-section p {
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: var(--text);
}
.doc-section .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 0.92rem;
  border-left: 4px solid;
}
.alert-info {
  background: rgba(13, 148, 136, 0.08);
  border-color: var(--primary);
}
.alert-tip {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
}
.alert-important {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
}

/* Code block */
.code-box {
  background: var(--code-bg);
  border-radius: var(--radius);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #94a3b8;
}
.copy-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 3px 8px;
  font-size: 0.72rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); }
.code-box pre {
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--code-text);
  line-height: 1.5;
}

/* Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--bg-sidebar);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Stats cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.runbook-steps {
  margin-left: 20px;
  margin-bottom: 20px;
}
.runbook-steps li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Wiki Footer */
.wiki-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 48px;
}
.wiki-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.wiki-footer-links { display: flex; gap: 16px; }

@media (max-width: 900px) {
  .wiki-header-center { display: none; }
  .wiki-sidebar {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 99;
    box-shadow: 4px 0 16px rgba(0,0,0,0.1);
  }
  .wiki-sidebar.open { display: flex; }
  .sidebar-toggle { display: block; }
  .wiki-main { padding: 24px 20px; }
  .stats-cards { grid-template-columns: 1fr; }
}

/* f65f367c432d */
