:root{
  --bg:#0b0f14;
  --panel:#0f1621;
  --panel2:#101b2a;
  --card:#121c2b;
  --text:#e8eef7;
  --muted:#9fb0c5;
  --accent:#46a6ff;
  --accent2:#49f5c1;
  --danger:#ff4d4d;
  --warn:#ffcc66;
  --ok:#66ff99;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:22px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 800px at 20% 0%, rgba(70,166,255,.10), transparent 60%),
              radial-gradient(900px 700px at 100% 40%, rgba(73,245,193,.08), transparent 55%),
              var(--bg);
  color:var(--text);
  overflow:hidden;
}

a{color:inherit;text-decoration:none}
small{color:var(--muted)}

.app{
  display:grid;
  grid-template-columns: 360px 1fr;
  height:100vh;
}

.sidebar{
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 50%),
              var(--panel);
  border-right:1px solid var(--border);
  padding:18px;
  overflow:auto;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}

.logo{
  width:44px;height:44px;border-radius:14px;
  background: linear-gradient(135deg, rgba(70,166,255,.9), rgba(73,245,193,.75));
  display:grid;place-items:center;
  font-weight:800;color:#071018;
}

.brand h1{
  font-size:15px;margin:0;line-height:1.1;
}
.brand p{
  font-size:12px;margin:2px 0 0 0;color:var(--muted);
}

.controls{
  margin-top:14px;
  display:grid;
  gap:10px;
}

.search{
  width:100%;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color:var(--text);
  outline:none;
}
.search::placeholder{color:rgba(159,176,197,.75)}

.btnrow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.btn{
  cursor:pointer;
  padding:11px 12px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color:var(--text);
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
  font-weight:600;
  text-align:center;
  user-select:none;
}
.btn:hover{background: rgba(255,255,255,.04); border-color: rgba(70,166,255,.35)}
.btn:active{transform: translateY(1px)}

.nav{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.groupTitle{
  margin:14px 6px 6px;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.nav a{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid transparent;
  background: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.nav a:hover{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
}
.nav a.active{
  background: rgba(70,166,255,.10);
  border-color: rgba(70,166,255,.25);
}
.nav .pill{
  margin-left:auto;
  font-size:11px;
  color: rgba(232,238,247,.85);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  padding:3px 8px;
  border-radius: 999px;
  white-space:nowrap;
}

.main{
  overflow:auto;
  padding:22px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,15,20,.92), rgba(11,15,20,.70));
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding:14px 16px;
  box-shadow: var(--shadow);
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.breadcrumb{
  display:flex; flex-direction:column; gap:2px;
}
.breadcrumb .title{
  font-size:16px; margin:0; font-weight:800;
}
.breadcrumb .sub{
  font-size:12px; color: var(--muted);
}

.actions{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}

.iconbtn{
  cursor:pointer;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color:var(--text);
  padding:10px 12px;
  border-radius: 16px;
  font-weight:700;
  transition: background .2s ease, border-color .2s ease;
}
.iconbtn:hover{background: rgba(255,255,255,.04); border-color: rgba(73,245,193,.25)}
.iconbtn:active{transform: translateY(1px)}

.content{
  margin-top:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}

.article{
  max-width: 980px;
  margin: 0 auto;
}

.article h1{font-size:30px; margin:0 0 10px}
.article h2{font-size:22px; margin:18px 0 8px}
.article h3{font-size:18px; margin:16px 0 8px}
.article p, .article li{color: rgba(232,238,247,.92); line-height:1.55}
.article ul{margin:8px 0 14px 22px}
.article hr{border:0;border-top:1px solid var(--border); margin:16px 0}

.callout{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(16,27,42,.65);
  border-radius: 18px;
  padding:12px 14px;
  margin:12px 0;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.callout .tag{
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  white-space:nowrap;
}
.callout.danger .tag{border-color: rgba(255,77,77,.35); background: rgba(255,77,77,.10)}
.callout.notice .tag{border-color: rgba(255,204,102,.35); background: rgba(255,204,102,.10)}
.callout.hint .tag{border-color: rgba(70,166,255,.35); background: rgba(70,166,255,.10)}
.callout.task .tag{border-color: rgba(73,245,193,.35); background: rgba(73,245,193,.10)}

kbd{
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:2px 7px;
  border-radius: 10px;
}

.code{
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  padding:10px 12px;
  border-radius: 16px;
  overflow:auto;
}

.footer{
  margin-top:14px;
  color: var(--muted);
  font-size:12px;
  text-align:center;
}

@media (max-width: 980px){
  body{overflow:auto}
  .app{grid-template-columns: 1fr; height:auto; min-height:100vh}
  .sidebar{position:sticky; top:0; z-index:20; border-right:none; border-bottom:1px solid var(--border)}
  .main{padding:14px}
}