:root {
  --bg: #08111f;
  --bg-soft: #0e1a2f;
  --panel: #11203a;
  --panel-2: #152844;
  --text: #eaf1ff;
  --muted: #97a7c8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #6ab0ff;
  --accent-2: #80ffd3;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(106, 176, 255, 0.12), transparent 30%),
    radial-gradient(circle at top left, rgba(128, 255, 211, 0.08), transparent 20%),
    linear-gradient(180deg, #07101d, #08111f 35%, #091220);
  color: var(--text);
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
code { font-family: Consolas, Menlo, monospace; }

.glass {
  background: linear-gradient(180deg, rgba(21, 40, 68, 0.92), rgba(16, 30, 52, 0.86));
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.72);
}

.main-content {
  padding: 24px;
  overflow: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08203a;
  font-weight: 800;
  font-size: 1.1rem;
}
.brand-block h1 { margin: 0; font-size: 1.1rem; }
.brand-block p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.search-wrap { margin-bottom: 16px; }
.search-wrap input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.sidebar-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  margin-bottom: 18px;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.mini-stat strong { font-size: 1.2rem; }
.mini-stat span { color: var(--muted); font-size: 0.75rem; }

.nav-section { margin-bottom: 20px; }
.nav-section h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: 0.18s ease;
}
.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(106, 176, 255, 0.1);
  border-color: rgba(106, 176, 255, 0.25);
}
.sidebar-item small { color: var(--muted); }

.hero-panel {
  border-radius: 28px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
}
.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.15;
  max-width: 900px;
}
.hero-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 950px;
  line-height: 1.6;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-width: 300px;
}
.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: center;
}
.stat-card strong { display: block; font-size: 1.9rem; }
.stat-card span { color: var(--muted); font-size: 0.85rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.dashboard-card {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: 0.18s ease;
}
.dashboard-card.active,
.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 176, 255, 0.34);
  background: rgba(106, 176, 255, 0.08);
}
.dashboard-card h3 { margin: 4px 0 8px; }
.dashboard-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}
.topic-subtle { color: var(--muted); font-size: 0.9rem; }

.workspace-grid {
  display: grid;
  grid-template-columns: 340px 340px 1fr;
  gap: 18px;
  align-items: start;
}
.topic-column, .vendor-column, .detail-column {
  display: grid;
  gap: 18px;
}

.panel {
  border-radius: 24px;
  padding: 18px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.panel-header h3 { margin: 4px 0 0; }

.sticky-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(17, 32, 58, 0.98), rgba(17, 32, 58, 0.92));
  z-index: 3;
  padding-bottom: 10px;
}

.chip,
.mini-chip,
.section-meta {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-summary {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.timeline,
.bullet-grid,
.coverage-grid,
.check-grid,
.vendor-list,
.guide-container,
.playbook-grid,
.command-stack,
.catalog-grid,
.troubleshooting-grid,
.resource-grid,
.visual-gallery {
  display: grid;
  gap: 12px;
}

.timeline-item {
  border-left: 3px solid rgba(106, 176, 255, 0.4);
  padding: 10px 0 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
}
.timeline-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.rank-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(128, 255, 211, 0.12);
  border: 1px solid rgba(128, 255, 211, 0.2);
  color: var(--accent-2);
}

.practice-card,
.coverage-card,
.check-card,
.vendor-card,
.overview-card,
.guide-step,
.playbook-card,
.command-card,
.catalog-card,
.trouble-card,
.resource-card,
.visual-card,
.empty-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.practice-card,
.coverage-card,
.check-card,
.vendor-card,
.overview-card,
.guide-step,
.playbook-card,
.catalog-card,
.trouble-card,
.resource-card,
.visual-copy,
.empty-card {
  padding: 14px;
}

.practice-card h4,
.coverage-card h4,
.guide-step h4,
.playbook-card h4,
.catalog-card h4,
.trouble-card h4,
.visual-copy h4 {
  margin: 0 0 8px;
}
.practice-card p,
.coverage-card p,
.check-card,
.overview-card p,
.catalog-card p,
.trouble-card p,
.resource-card p,
.visual-copy p,
.empty-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.vendor-card {
  cursor: pointer;
  transition: 0.18s ease;
}
.vendor-card:hover,
.vendor-card.active {
  background: rgba(106, 176, 255, 0.08);
  border-color: rgba(106, 176, 255, 0.32);
  transform: translateY(-2px);
}
.vendor-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.vendor-card h4 { margin: 8px 0; }
.vendor-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}
.vendor-tags,
.overview-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vendor-tags span,
.overview-points span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: #d6e2ff;
}
.overview-points.alt span {
  background: rgba(128, 255, 211, 0.08);
}
.vendor-overview { margin-bottom: 18px; }

.detail-section { margin-top: 18px; }
.detail-section h4 { margin: 0 0 12px; font-size: 1rem; }
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.guide-step ul,
.playbook-card ul,
.trouble-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.command-card { overflow: hidden; }
.command-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.command-header h4 { margin: 0; }
.command-header span {
  color: var(--muted);
  font-size: 0.82rem;
}
.command-card pre {
  padding: 14px;
  background: rgba(3, 7, 14, 0.56);
  color: #ddf4ff;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: auto;
}

.catalog-entry,
.playbook-phase,
.trouble-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.catalog-entry strong { display: block; margin-bottom: 5px; }
.playbook-phase h5,
.trouble-block h5 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}
.catalog-entry .syntax {
  font-family: Consolas, Menlo, monospace;
  background: rgba(3, 7, 14, 0.5);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ddf4ff;
  margin-top: 8px;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.18s ease;
}
.resource-card:hover {
  border-color: rgba(106, 176, 255, 0.32);
  background: rgba(106, 176, 255, 0.08);
}
.resource-card strong { font-size: 0.96rem; }
.resource-card span { color: var(--accent-2); font-size: 0.8rem; }
.resource-card small { color: var(--muted); word-break: break-all; }

.visual-gallery {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.visual-card { overflow: hidden; }
.visual-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}
.visual-copy a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
}

.empty-card {
  background: rgba(255, 255, 255, 0.025);
}
.empty-card strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 1450px) {
  .workspace-grid { grid-template-columns: 320px 320px 1fr; }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .workspace-grid { grid-template-columns: 1fr; }
  .hero-panel { flex-direction: column; }
}
