@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  min-height: 100vh;
  line-height: 1.5;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 54px;
  background: var(--sidebar-dark-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo { width: 28px; height: 28px; object-fit: contain; }
.nav-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-title span { color: var(--splunk-orange); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-link svg { width: 15px; height: 15px; }
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link.active { color: var(--accent-cyan); background: rgba(147,51,234,0.08); }
.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.hero { padding: 32px 0 20px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--splunk-orange); }
.hero-sub { margin-top: 8px; color: var(--text-secondary); font-size: 14px; max-width: 600px; }
.main-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  min-height: calc(100vh - 280px);
}
.sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  height: fit-content;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--dark-primary-25); border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--dark-primary-50); }
.sidebar-search-wrap { padding: 0 4px 8px; }
.sidebar-search {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color var(--transition);
}
.sidebar-search::placeholder { color: var(--text-dim); }
.sidebar-search:focus { border-color: var(--border-accent); }
.sidebar-group { margin-bottom: 4px; }
.sidebar-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-item.active { background: var(--bg-active); color: var(--text-primary); }
.sidebar-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-icon svg { width: 14px; height: 14px; }
.sidebar-cat svg { width: 12px; height: 12px; flex-shrink: 0; }
.cmd-card-icon svg { width: 18px; height: 18px; }
.cmd-big-icon svg { width: 36px; height: 36px; }
.grid-cat-label svg { width: 12px; height: 12px; display: inline; vertical-align: middle; margin-right: 2px; }
.sidebar-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.sidebar-tag {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-component { background: rgba(147,51,234,0.12); color: var(--accent-cyan); }
.tag-config    { background: rgba(192,132,252,0.12); color: var(--accent-green); }
.tag-storage   { background: rgba(245,158,11,0.12);  color: var(--accent-orange); }
.tag-ingest    { background: rgba(232,121,249,0.12); color: var(--accent-purple); }
.tag-auth      { background: rgba(251,191,36,0.12);  color: var(--accent-yellow); }
.tag-deploy    { background: rgba(244,63,94,0.12);   color: var(--accent-red); }
.tag-cluster   { background: rgba(129,140,248,0.12); color: var(--accent-blue); }
.content-area {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  min-height: 500px;
  overflow: hidden;
}
#home-grid-wrap { padding: 16px; }
.grid-cat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 12px 0 6px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#home-grid { display: flex; flex-direction: column; gap: 4px; }
.cmd-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.1s;
}
.cmd-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateX(2px);
}
.cmd-card-icon { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cmd-card-body { flex: 1; min-width: 0; }
.cmd-card-name { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cmd-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-feed { margin-bottom: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-primary); }
.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}
.live-indicator { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-green); }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: livepulse 1.4s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--dark-primary-20); }
  50%       { box-shadow: 0 0 0 5px transparent; }
}
.live-feed-body { font-family: var(--font-mono); font-size: 11px; min-height: 140px; }
.feed-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--border-subtle);
  animation: feedin 0.3s ease;
}
@keyframes feedin {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.feed-row:last-child { border-bottom: none; }
.fe-time  { color: var(--text-dim); min-width: 68px; }
.fe-level { min-width: 48px; font-weight: 700; }
.fe-level-info  { color: var(--accent-green); }
.fe-level-warn  { color: var(--accent-yellow); }
.fe-level-error { color: var(--accent-red); }
.fe-component   { color: var(--accent-orange); min-width: 140px; }
.fe-msg         { color: var(--text-secondary); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-panel { padding: 20px 24px; }
.cmd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.cmd-header-left { display: flex; align-items: center; gap: 16px; }
.cmd-big-icon { font-size: 36px; line-height: 1; display: flex; align-items: center; }
.cmd-title { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--accent-cyan); }
.cmd-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.cmd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
}
.section-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.tab.active { background: var(--bg-active); color: var(--accent-cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.arch-tab-wrap {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px;
}
.arch-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 640px;
  overflow: visible;
}
.arch-svg foreignObject {
  overflow: visible;
}
.arch-svg foreignObject > div {
  box-sizing: border-box;
}
.desc-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 780px; }
.desc-text code, .desc-text strong { color: var(--text-primary); }
.desc-text code { font-family: var(--font-mono); font-size: 12px; padding: 1px 4px; background: var(--bg-tertiary); border-radius: 3px; }
.desc-text em { font-style: italic; color: var(--accent-yellow); }
.section-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.stanza-block { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.stanza-line {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
  white-space: pre-wrap;
  transition: background var(--transition), border-color var(--transition);
}
.stanza-line:hover { background: var(--bg-hover); border-color: var(--border-accent); }
.cf-stanza  { color: var(--accent-cyan); font-weight: 700; }
.cf-key     { color: var(--cmd-keyword); }
.cf-eq      { color: var(--text-muted); }
.cf-val     { color: var(--cmd-value); }
.cf-path    { color: var(--accent-blue); }
.cf-comment { color: var(--cmd-comment); font-style: italic; }
.cf-bool-t  { color: var(--accent-green); font-weight: 600; }
.cf-bool-f  { color: var(--accent-red); font-weight: 600; }
.cf-num     { color: var(--accent-orange); }
.opts-table { width: 100%; border-collapse: collapse; }
.opts-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; vertical-align: top; }
.opts-table tr:last-child td { border-bottom: none; }
.opts-table td:first-child { width: 260px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-primary); white-space: nowrap; }
.opts-table td:last-child { color: var(--text-secondary); }
.opts-table code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-primary); }
.tips-block { display: flex; flex-direction: column; gap: 8px; }
.tip-item {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(245,158,11,0.04);
  border: 1px solid rgba(245,158,11,0.2);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.tip-item strong { color: var(--accent-yellow); }
.tip-item code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-primary); padding: 1px 4px; background: var(--bg-tertiary); border-radius: 3px; }
.sim-wrap { display: flex; flex-direction: column; gap: 12px; }
.sim-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sim-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.preset-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-accent); }
.sim-actions { display: flex; gap: 6px; }
.sim-run-btn {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan);
  border: none;
  cursor: pointer;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  transition: opacity var(--transition);
}
.sim-run-btn:hover { opacity: 0.85; }
.sim-clear-btn {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.sim-clear-btn:hover { background: var(--bg-hover); color: var(--accent-red); }
.sim-terminal { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-default); background: var(--bg-primary); }
.terminal-dots { display: flex; gap: 6px; padding: 8px 12px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-subtle); }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-label { padding: 4px 14px; font-size: 10px; font-family: var(--font-mono); color: var(--text-dim); background: var(--bg-tertiary); border-bottom: 1px solid var(--border-subtle); }
.sim-input {
  width: 100%;
  min-height: 120px;
  max-height: 280px;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: none;
  outline: none;
  resize: vertical;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  caret-color: var(--accent-cyan);
}
.sim-output { min-height: 80px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-primary); overflow: hidden; }
.sim-empty { padding: 24px 20px; font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); text-align: center; }
.sim-error { padding: 16px 20px; font-size: 13px; color: var(--accent-red); font-family: var(--font-mono); background: rgba(244,63,94,0.06); }
.sim-loading { display: flex; align-items: center; gap: 10px; padding: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-default); border-top-color: var(--accent-cyan); animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.conf-output { padding: 14px 16px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; }
.conf-result-header { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.conf-result-header .ok   { color: var(--accent-green); font-weight: 700; }
.conf-result-header .err  { color: var(--accent-red);   font-weight: 700; }
.conf-result-header .warn { color: var(--accent-yellow); font-weight: 700; }
.conf-finding { padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.conf-finding:last-child { border-bottom: none; }
.cf-ok   { color: var(--accent-green); }
.cf-err  { color: var(--accent-red); }
.cf-warn { color: var(--accent-yellow); }
.cf-info { color: var(--accent-cyan); }
.site-footer { border-top: 1px solid var(--border-subtle); padding: 14px 24px; text-align: center; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-cyan); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 99px; }
::-webkit-scrollbar-thumb { background: var(--dark-primary-30); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-primary-60); }
::-webkit-scrollbar-corner { background: var(--bg-secondary); }
* { scrollbar-width: thin; scrollbar-color: var(--dark-primary-30) var(--bg-secondary); }
.sim-input::-webkit-scrollbar { width: 4px; }
.sim-input::-webkit-scrollbar-track { background: transparent; }
.sim-input::-webkit-scrollbar-thumb { background: var(--dark-primary-20); border-radius: 99px; }
@media (max-width: 768px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .cmd-header { flex-direction: column; }
}.sidebar-divider { height: 1px; background: var(--border-subtle); margin: 6px 8px; }
.sidebar-steps-label { padding: 6px 12px 4px; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tag-full-arch { background: rgba(147,51,234,0.18); color: var(--accent-purple); }
.sidebar-item-full-arch { background: rgba(147,51,234,0.06); border: 1px solid var(--border-subtle); margin-bottom: 2px; }
.sidebar-item-full-arch:hover { background: var(--bg-hover); border-color: var(--border-accent); }
.sidebar-item-full-arch.active { background: var(--bg-active); border-color: var(--border-accent); color: var(--accent-purple); }
.sidebar-item-step { padding-left: 4px; }
.sidebar-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex-shrink: 0;
}
.sidebar-item-step.active .sidebar-step-num { background: var(--accent-cyan); border-color: var(--accent-cyan); color: var(--bg-primary); }
.cmd-card-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex-shrink: 0;
}
.cmd-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.full-arch-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}
.full-arch-container::-webkit-scrollbar { width: 6px; }
.full-arch-container::-webkit-scrollbar-track { background: transparent; }
.full-arch-container::-webkit-scrollbar-thumb { background: var(--dark-primary-25); border-radius: 99px; }
.full-arch-step { border-bottom: 1px solid var(--border-subtle); }
.full-arch-step:last-child { border-bottom: none; }
.full-arch-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 8px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}
.full-arch-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.full-arch-step-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.full-arch-step-sub {
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
}
.full-arch-svg-wrap {
  padding: 12px 16px;
  background: var(--bg-primary);
  overflow-x: auto;
}
.full-arch-svg-wrap .arch-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 520px;
}