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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cs-background);
  color: var(--cs-text);
}

.content { max-width: 760px; margin: 0 auto; padding: 72px 24px 60px;
}

.cli-hero {
  margin-bottom: 48px;
}

.cli-hero-badge {
  margin-bottom: 16px;
  display: inline-block;
}

.cli-hero-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cli-hero-subtitle {
  color: var(--cs-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.install-block {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 20px 20px 20px 16px;
  margin-top: 24px;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  white-space: pre-wrap;
}

.install-block .kw {
  color: #7c3aed;
}

.install-block .comment {
  color: var(--cs-text-muted);
}

.cmd-block {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  margin-bottom: 32px;
  overflow: hidden;
}

.cmd-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--cs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cmd-name {
  font-family: ui-monospace, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #7c3aed;
}

.cmd-body {
  padding: 20px;
}

.cmd-desc {
  color: var(--cs-text-muted);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.cmd-usage {
  background: var(--cs-background);
  border: 1px solid var(--cs-border);
  border-radius: 6px;
  padding: 12px 72px 12px 16px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  margin-bottom: 16px;
  position: relative;
  white-space: pre-wrap;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--cs-border);
  border: none;
  color: var(--cs-text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: #7c3aed;
  color: #fff;
}

.copy-btn.copied {
  background: #7c3aed;
  color: #fff;
}

.flags-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.flags-table th {
  text-align: left;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  border-bottom: 1px solid var(--cs-border);
}

.flags-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.flag {
  font-family: ui-monospace, monospace;
  color: #0ea5e9;
  font-size: 12px;
}

.flag-default {
  background: var(--cs-surface);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.component-list {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--cs-background);
  border-radius: 6px;
  font-size: 13px;
}

.component-list-label {
  color: var(--cs-text-muted);
  margin-bottom: 8px;
}

.component-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.component-badges .cs-badge {
  font-size: 10px;
}

.form-list {
  font-size: 13px;
  color: var(--cs-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.logo { font-size:18px;font-weight:800;background:linear-gradient(135deg,#7c3aed,#0ea5e9);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none; }
.nav-right { display:flex;align-items:center;gap:6px;flex-wrap:wrap; }
.nav-more-wrap { position:relative; }
.nav-more-menu { position:absolute;right:0;top:calc(100% + 8px);min-width:200px;max-height:70vh;overflow-y:auto;background:var(--cs-surface);border:1px solid var(--cs-border);border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,0.35);padding:8px 0;z-index:300; }
.nav-more-menu[hidden] { display:none; }
.nav-more-menu a { display:block;padding:8px 16px;font-size:13px;color:var(--cs-text-muted);text-decoration:none; }
.nav-more-menu a:hover { background:rgba(124,58,237,0.1);color:var(--cs-text); }
